configure revision 1.13 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 (at] 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 poststage1_ldflags
653 poststage1_libs
654 stage1_ldflags
655 stage1_libs
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 extra_liboffloadmic_configure_flags
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
680 AWK
681 SED
682 LN_S
683 LN
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 with_system_zlib
750 enable_as_accelerator_for
751 enable_offload_targets
752 enable_gold
753 enable_ld
754 enable_compressed_debug_sections
755 enable_libquadmath
756 enable_libquadmath_support
757 enable_libada
758 enable_libssp
759 enable_libstdcxx
760 enable_liboffloadmic
761 enable_bootstrap
762 with_mpc
763 with_mpc_include
764 with_mpc_lib
765 with_mpfr_dir
766 with_mpfr
767 with_mpfr_include
768 with_mpfr_lib
769 with_gmp_dir
770 with_gmp
771 with_gmp_include
772 with_gmp_lib
773 with_stage1_libs
774 with_stage1_ldflags
775 with_boot_libs
776 with_boot_ldflags
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 enable_lto
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_stage1_languages
785 enable_objc_gc
786 with_target_bdw_gc
787 with_target_bdw_gc_include
788 with_target_bdw_gc_lib
789 with_gcc_major_version_only
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 with_build_time_tools
796 enable_maintainer_mode
797 enable_stage1_checking
798 enable_werror
799 enable_host_shared
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CXX
810 CXXFLAGS
811 CCC
812 build_configargs
813 host_configargs
814 target_configargs
815 AR
816 AS
817 DLLTOOL
818 LD
819 LIPO
820 NM
821 RANLIB
822 STRIP
823 WINDRES
824 WINDMC
825 OBJCOPY
826 OBJDUMP
827 READELF
828 CC_FOR_TARGET
829 CXX_FOR_TARGET
830 GCC_FOR_TARGET
831 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJCOPY_FOR_TARGET
840 OBJDUMP_FOR_TARGET
841 RANLIB_FOR_TARGET
842 READELF_FOR_TARGET
843 STRIP_FOR_TARGET
844 WINDRES_FOR_TARGET
845 WINDMC_FOR_TARGET'
846
847
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
869
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
905 fi
906
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
922
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
937
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
942
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
975
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1011
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1016
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1046
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1120
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352 else
1353 ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 case $srcdir in
1374 *" "*)
1375 as_fn_error "path to source, $srcdir, contains spaces"
1376 ;;
1377 esac
1378 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1448
1449 cat <<\_ACEOF
1450
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-as-accelerator-for=ARG
1472 build as offload target compiler. Specify offload
1473 host triple by ARG
1474 --enable-offload-targets=LIST
1475 enable offloading to devices from comma-separated
1476 LIST of TARGET[=DIR]. Use optional path to find
1477 offload target compiler during the build
1478 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1479 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1480 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1481 Enable compressed debug sections for gas, gold or ld
1482 by default
1483 --disable-libquadmath do not build libquadmath directory
1484 --disable-libquadmath-support
1485 disable libquadmath support for Fortran
1486 --enable-libada build libada directory
1487 --enable-libssp build libssp directory
1488 --disable-libstdcxx do not build libstdc++-v3 directory
1489 --enable-liboffloadmic=ARG
1490 build liboffloadmic [ARG={no,host,target}]
1491 --enable-bootstrap enable bootstrapping [yes if native build]
1492 --disable-isl-version-check
1493 disable check for isl version
1494 --enable-lto enable link time optimization support
1495 --enable-linker-plugin-configure-flags=FLAGS
1496 additional flags for configuring linker plugins
1497 [none]
1498 --enable-linker-plugin-flags=FLAGS
1499 additional flags for configuring and building linker
1500 plugins [none]
1501 --enable-stage1-languages[=all]
1502 choose additional languages to build during stage1.
1503 Mostly useful for compiler development
1504 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1505 Objective-C runtime
1506 --enable-vtable-verify Enable vtable verification feature
1507 --enable-serial-[{host,target,build}-]configure
1508 force sequential configuration of sub-packages for
1509 the host, target or build machine, or all
1510 sub-packages
1511 --enable-maintainer-mode
1512 enable make rules and dependencies not useful (and
1513 sometimes confusing) to the casual installer
1514 --enable-stage1-checking[=all]
1515 choose additional checking for stage1 of the
1516 compiler
1517 --enable-werror enable -Werror in bootstrap stage2 and later
1518 --enable-host-shared build host code as shared libraries
1519
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-build-libsubdir=DIR Directory where to find libraries for build system
1524 --with-system-zlib use installed libz
1525 --with-mpc=PATH specify prefix directory for installed MPC package.
1526 Equivalent to --with-mpc-include=PATH/include plus
1527 --with-mpc-lib=PATH/lib
1528 --with-mpc-include=PATH specify directory for installed MPC include files
1529 --with-mpc-lib=PATH specify directory for the installed MPC library
1530 --with-mpfr-dir=PATH this option has been REMOVED
1531 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1532 Equivalent to --with-mpfr-include=PATH/include plus
1533 --with-mpfr-lib=PATH/lib
1534 --with-mpfr-include=PATH
1535 specify directory for installed MPFR include files
1536 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1537 --with-gmp-dir=PATH this option has been REMOVED
1538 --with-gmp=PATH specify prefix directory for the installed GMP
1539 package. Equivalent to
1540 --with-gmp-include=PATH/include plus
1541 --with-gmp-lib=PATH/lib
1542 --with-gmp-include=PATH specify directory for installed GMP include files
1543 --with-gmp-lib=PATH specify directory for the installed GMP library
1544 --with-stage1-libs=LIBS libraries for stage1
1545 --with-stage1-ldflags=FLAGS
1546 linker flags for stage1
1547 --with-boot-libs=LIBS libraries for stage2 and later
1548 --with-boot-ldflags=FLAGS
1549 linker flags for stage2 and later
1550 --with-isl=PATH Specify prefix directory for the installed isl
1551 package. Equivalent to
1552 --with-isl-include=PATH/include plus
1553 --with-isl-lib=PATH/lib
1554 --with-isl-include=PATH Specify directory for installed isl include files
1555 --with-isl-lib=PATH Specify the directory for the installed isl library
1556 --with-target-bdw-gc=PATHLIST
1557 specify prefix directory for installed bdw-gc
1558 package. Equivalent to
1559 --with-target-bdw-gc-include=PATH/include plus
1560 --with-target-bdw-gc-lib=PATH/lib
1561 --with-target-bdw-gc-include=PATHLIST
1562 specify directories for installed bdw-gc include
1563 files
1564 --with-target-bdw-gc-lib=PATHLIST
1565 specify directories for installed bdw-gc library
1566 --with-gcc-major-version-only
1567 use only GCC major number in filesystem paths
1568 --with-build-sysroot=SYSROOT
1569 use sysroot as the system root during the build
1570 --with-debug-prefix-map='A=B C=D ...'
1571 map A to B, C to D ... in debug information
1572 --with-build-config='NAME NAME2...'
1573 use config/NAME.mk build configuration
1574 --with-build-time-tools=PATH
1575 use given path to find target tools during the build
1576
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 build_configargs
1588 additional configure arguments for build directories
1589 host_configargs
1590 additional configure arguments for host directories
1591 target_configargs
1592 additional configure arguments for target directories
1593 AR AR for the host
1594 AS AS for the host
1595 DLLTOOL DLLTOOL for the host
1596 LD LD for the host
1597 LIPO LIPO for the host
1598 NM NM for the host
1599 RANLIB RANLIB for the host
1600 STRIP STRIP for the host
1601 WINDRES WINDRES for the host
1602 WINDMC WINDMC for the host
1603 OBJCOPY OBJCOPY for the host
1604 OBJDUMP OBJDUMP for the host
1605 READELF READELF for the host
1606 CC_FOR_TARGET
1607 CC for the target
1608 CXX_FOR_TARGET
1609 CXX for the target
1610 GCC_FOR_TARGET
1611 GCC for the target
1612 GFORTRAN_FOR_TARGET
1613 GFORTRAN for the target
1614 GOC_FOR_TARGET
1615 GOC for the target
1616 AR_FOR_TARGET
1617 AR for the target
1618 AS_FOR_TARGET
1619 AS for the target
1620 DLLTOOL_FOR_TARGET
1621 DLLTOOL for the target
1622 LD_FOR_TARGET
1623 LD for the target
1624 LIPO_FOR_TARGET
1625 LIPO for the target
1626 NM_FOR_TARGET
1627 NM for the target
1628 OBJCOPY_FOR_TARGET
1629 OBJCOPY for the target
1630 OBJDUMP_FOR_TARGET
1631 OBJDUMP for the target
1632 RANLIB_FOR_TARGET
1633 RANLIB for the target
1634 READELF_FOR_TARGET
1635 READELF for the target
1636 STRIP_FOR_TARGET
1637 STRIP for the target
1638 WINDRES_FOR_TARGET
1639 WINDRES for the target
1640 WINDMC_FOR_TARGET
1641 WINDMC for the target
1642
1643 Use these variables to override the choices made by `configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1645
1646 Report bugs to the package provider.
1647 _ACEOF
1648 ac_status=$?
1649 fi
1650
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
1657 ac_builddir=.
1658
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *)
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1674
1675 case $srcdir in
1676 .) # We are building in place.
1677 ac_srcdir=.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1699 else
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1703 done
1704 fi
1705
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708 cat <<\_ACEOF
1709 configure
1710 generated by GNU Autoconf 2.64
1711
1712 Copyright (C) 2009 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715 _ACEOF
1716 exit
1717 fi
1718
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1722
1723 # ac_fn_c_try_compile LINENO
1724 # --------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_compile ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1758
1759 } # ac_fn_c_try_compile
1760
1761 # ac_fn_cxx_try_compile LINENO
1762 # ----------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_cxx_try_compile ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_cxx_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793 fi
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 return $ac_retval
1796
1797 } # ac_fn_cxx_try_compile
1798
1799 # ac_fn_cxx_try_link LINENO
1800 # -------------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_link ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 $as_test_x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 return $ac_retval
1842
1843 } # ac_fn_cxx_try_link
1844
1845 # ac_fn_c_try_link LINENO
1846 # -----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_link ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 $as_test_x conftest$ac_exeext
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1888
1889 } # ac_fn_c_try_link
1890 cat >config.log <<_ACEOF
1891 This file contains any messages produced by compilers while
1892 running configure, to aid debugging if configure makes a mistake.
1893
1894 It was created by $as_me, which was
1895 generated by GNU Autoconf 2.64. Invocation command line was
1896
1897 $ $0 $@
1898
1899 _ACEOF
1900 exec 5>>config.log
1901 {
1902 cat <<_ASUNAME
1903 ## --------- ##
1904 ## Platform. ##
1905 ## --------- ##
1906
1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1915
1916 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1917 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1920 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1921 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1922 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1923
1924 _ASUNAME
1925
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 $as_echo "PATH: $as_dir"
1932 done
1933 IFS=$as_save_IFS
1934
1935 } >&5
1936
1937 cat >&5 <<_ACEOF
1938
1939
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1943
1944 _ACEOF
1945
1946
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1957 do
1958 for ac_arg
1959 do
1960 case $ac_arg in
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1964 continue ;;
1965 *\'*)
1966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 esac
1968 case $ac_pass in
1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970 2)
1971 as_fn_append ac_configure_args1 " '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1974 else
1975 case $ac_arg in
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 esac
1983 ;;
1984 -* ) ac_must_keep_next=true ;;
1985 esac
1986 fi
1987 as_fn_append ac_configure_args " '$ac_arg'"
1988 ;;
1989 esac
1990 done
1991 done
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1994
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Save into config.log some information that might help in debugging.
2002 {
2003 echo
2004
2005 cat <<\_ASBOX
2006 ## ---------------- ##
2007 ## Cache variables. ##
2008 ## ---------------- ##
2009 _ASBOX
2010 echo
2011 # The following way of writing the cache mishandles newlines in values,
2012 (
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in #(
2016 *${as_nl}*)
2017 case $ac_var in #(
2018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 esac
2021 case $ac_var in #(
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2025 esac ;;
2026 esac
2027 done
2028 (set) 2>&1 |
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2031 sed -n \
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 ;; #(
2035 *)
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037 ;;
2038 esac |
2039 sort
2040 )
2041 echo
2042
2043 cat <<\_ASBOX
2044 ## ----------------- ##
2045 ## Output variables. ##
2046 ## ----------------- ##
2047 _ASBOX
2048 echo
2049 for ac_var in $ac_subst_vars
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058
2059 if test -n "$ac_subst_files"; then
2060 cat <<\_ASBOX
2061 ## ------------------- ##
2062 ## File substitutions. ##
2063 ## ------------------- ##
2064 _ASBOX
2065 echo
2066 for ac_var in $ac_subst_files
2067 do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 esac
2072 $as_echo "$ac_var='\''$ac_val'\''"
2073 done | sort
2074 echo
2075 fi
2076
2077 if test -s confdefs.h; then
2078 cat <<\_ASBOX
2079 ## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##
2082 _ASBOX
2083 echo
2084 cat confdefs.h
2085 echo
2086 fi
2087 test "$ac_signal" != 0 &&
2088 $as_echo "$as_me: caught signal $ac_signal"
2089 $as_echo "$as_me: exit $exit_status"
2090 } >&5
2091 rm -f core *.core core.conftest.* &&
2092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2093 exit $exit_status
2094 ' 0
2095 for ac_signal in 1 2 13 15; do
2096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2097 done
2098 ac_signal=0
2099
2100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2101 rm -f -r conftest* confdefs.h
2102
2103 $as_echo "/* confdefs.h */" > confdefs.h
2104
2105 # Predefined preprocessor variables.
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_NAME "$PACKAGE_NAME"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_STRING "$PACKAGE_STRING"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_URL "$PACKAGE_URL"
2129 _ACEOF
2130
2131
2132 # Let the site file select an alternate cache file if it wants to.
2133 # Prefer an explicitly selected file to automatically selected ones.
2134 ac_site_file1=NONE
2135 ac_site_file2=NONE
2136 if test -n "$CONFIG_SITE"; then
2137 ac_site_file1=$CONFIG_SITE
2138 elif test "x$prefix" != xNONE; then
2139 ac_site_file1=$prefix/share/config.site
2140 ac_site_file2=$prefix/etc/config.site
2141 else
2142 ac_site_file1=$ac_default_prefix/share/config.site
2143 ac_site_file2=$ac_default_prefix/etc/config.site
2144 fi
2145 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2146 do
2147 test "x$ac_site_file" = xNONE && continue
2148 if test -r "$ac_site_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2150 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2151 sed 's/^/| /' "$ac_site_file" >&5
2152 . "$ac_site_file"
2153 fi
2154 done
2155
2156 if test -r "$cache_file"; then
2157 # Some versions of bash will fail to source /dev/null (special
2158 # files actually), so we avoid doing that.
2159 if test -f "$cache_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161 $as_echo "$as_me: loading cache $cache_file" >&6;}
2162 case $cache_file in
2163 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164 *) . "./$cache_file";;
2165 esac
2166 fi
2167 else
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169 $as_echo "$as_me: creating cache $cache_file" >&6;}
2170 >$cache_file
2171 fi
2172
2173 # Check that the precious variables saved in the cache have kept the same
2174 # value.
2175 ac_cache_corrupted=false
2176 for ac_var in $ac_precious_vars; do
2177 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2178 eval ac_new_set=\$ac_env_${ac_var}_set
2179 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2180 eval ac_new_val=\$ac_env_${ac_var}_value
2181 case $ac_old_set,$ac_new_set in
2182 set,)
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2185 ac_cache_corrupted=: ;;
2186 ,set)
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2189 ac_cache_corrupted=: ;;
2190 ,);;
2191 *)
2192 if test "x$ac_old_val" != "x$ac_new_val"; then
2193 # differences in whitespace do not lead to failure.
2194 ac_old_val_w=`echo x $ac_old_val`
2195 ac_new_val_w=`echo x $ac_new_val`
2196 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2199 ac_cache_corrupted=:
2200 else
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2203 eval $ac_var=\$ac_old_val
2204 fi
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2206 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2208 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2209 fi;;
2210 esac
2211 # Pass precious variables to config.status.
2212 if test "$ac_new_set" = set; then
2213 case $ac_new_val in
2214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2215 *) ac_arg=$ac_var=$ac_new_val ;;
2216 esac
2217 case " $ac_configure_args " in
2218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2219 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2220 esac
2221 fi
2222 done
2223 if $ac_cache_corrupted; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2228 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2229 fi
2230 ## -------------------- ##
2231 ## Main body of script. ##
2232 ## -------------------- ##
2233
2234 ac_ext=c
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248 progname=$0
2249 # if PWD already has a value, it is probably wrong.
2250 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2251
2252 # Export original configure arguments for use by sub-configures.
2253 # Quote arguments with shell meta charatcers.
2254 TOPLEVEL_CONFIGURE_ARGUMENTS=
2255 set -- "$progname" "$@"
2256 for ac_arg
2257 do
2258 case "$ac_arg" in
2259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2261 # if the argument is of the form -foo=baz, quote the baz part only
2262 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2263 *) ;;
2264 esac
2265 # Add the quoted argument to the list.
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2267 done
2268 if test "$silent" = yes; then
2269 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2270 fi
2271 # Remove the initial space we just introduced and, as these will be
2272 # expanded by make, quote '$'.
2273 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2274
2275
2276 # Find the build, host, and target systems.
2277 ac_aux_dir=
2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 for ac_t in install-sh install.sh shtool; do
2280 if test -f "$ac_dir/$ac_t"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
2283 break 2
2284 fi
2285 done
2286 done
2287 if test -z "$ac_aux_dir"; then
2288 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2289 fi
2290
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2298
2299
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2303
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2305 $as_echo_n "checking build system type... " >&6; }
2306 if test "${ac_cv_build+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
2308 else
2309 ac_build_alias=$build_alias
2310 test "x$ac_build_alias" = x &&
2311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2312 test "x$ac_build_alias" = x &&
2313 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2314 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2315 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2316
2317 fi
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2319 $as_echo "$ac_cv_build" >&6; }
2320 case $ac_cv_build in
2321 *-*-*) ;;
2322 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2323 esac
2324 build=$ac_cv_build
2325 ac_save_IFS=$IFS; IFS='-'
2326 set x $ac_cv_build
2327 shift
2328 build_cpu=$1
2329 build_vendor=$2
2330 shift; shift
2331 # Remember, the first character of IFS is used to create $*,
2332 # except with old shells:
2333 build_os=$*
2334 IFS=$ac_save_IFS
2335 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2336
2337
2338 case ${build_alias} in
2339 "") build_noncanonical=${build} ;;
2340 *) build_noncanonical=${build_alias} ;;
2341 esac
2342
2343
2344
2345 case ${host_alias} in
2346 "") host_noncanonical=${build_noncanonical} ;;
2347 *) host_noncanonical=${host_alias} ;;
2348 esac
2349
2350
2351
2352 case ${target_alias} in
2353 "") target_noncanonical=${host_noncanonical} ;;
2354 *) target_noncanonical=${target_alias} ;;
2355 esac
2356
2357
2358
2359
2360 test "$host_noncanonical" = "$target_noncanonical" &&
2361 test "$program_prefix$program_suffix$program_transform_name" = \
2362 NONENONEs,x,x, &&
2363 program_transform_name=s,y,y,
2364
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2366 $as_echo_n "checking host system type... " >&6; }
2367 if test "${ac_cv_host+set}" = set; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 if test "x$host_alias" = x; then
2371 ac_cv_host=$ac_cv_build
2372 else
2373 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2374 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2375 fi
2376
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2379 $as_echo "$ac_cv_host" >&6; }
2380 case $ac_cv_host in
2381 *-*-*) ;;
2382 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2383 esac
2384 host=$ac_cv_host
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_host
2387 shift
2388 host_cpu=$1
2389 host_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 host_os=$*
2394 IFS=$ac_save_IFS
2395 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2396
2397
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2399 $as_echo_n "checking target system type... " >&6; }
2400 if test "${ac_cv_target+set}" = set; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 if test "x$target_alias" = x; then
2404 ac_cv_target=$ac_cv_host
2405 else
2406 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2407 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2408 fi
2409
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2412 $as_echo "$ac_cv_target" >&6; }
2413 case $ac_cv_target in
2414 *-*-*) ;;
2415 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2416 esac
2417 target=$ac_cv_target
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_target
2420 shift
2421 target_cpu=$1
2422 target_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 target_os=$*
2427 IFS=$ac_save_IFS
2428 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2429
2430
2431 # The aliases save the names the user supplied, while $host etc.
2432 # will get canonicalized.
2433 test -n "$target_alias" &&
2434 test "$program_prefix$program_suffix$program_transform_name" = \
2435 NONENONEs,x,x, &&
2436 program_prefix=${target_alias}-
2437
2438 test "$program_prefix" != NONE &&
2439 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2440 # Use a double $ so make ignores it.
2441 test "$program_suffix" != NONE &&
2442 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2443 # Double any \ or $.
2444 # By default was `s,x,x', remove it if useless.
2445 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2446 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447
2448
2449
2450 # Get 'install' or 'install-sh' and its variants.
2451 # Find a good install program. We prefer a C program (faster),
2452 # so one script is as good as another. But avoid the broken or
2453 # incompatible versions:
2454 # SysV /etc/install, /usr/sbin/install
2455 # SunOS /usr/etc/install
2456 # IRIX /sbin/install
2457 # AIX /bin/install
2458 # AmigaOS /C/install, which installs bootblocks on floppy discs
2459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # OS/2's system install, which has a completely different semantic
2463 # ./install, which can be erroneously created by make from ./install.sh.
2464 # Reject install programs that cannot install multiple files.
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2467 if test -z "$INSTALL"; then
2468 if test "${ac_cv_path_install+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 # Account for people who put trailing slashes in PATH elements.
2477 case $as_dir/ in #((
2478 ./ | .// | /[cC]/* | \
2479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2481 /usr/ucb/* ) ;;
2482 *)
2483 # OSF1 and SCO ODT 3.0 have their own names for install.
2484 # Don't use installbsd from OSF since it installs stuff as root
2485 # by default.
2486 for ac_prog in ginstall scoinst install; do
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2489 if test $ac_prog = install &&
2490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # AIX install. It has an incompatible calling convention.
2492 :
2493 elif test $ac_prog = install &&
2494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # program-specific install script used by HP pwplus--don't use.
2496 :
2497 else
2498 rm -rf conftest.one conftest.two conftest.dir
2499 echo one > conftest.one
2500 echo two > conftest.two
2501 mkdir conftest.dir
2502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2503 test -s conftest.one && test -s conftest.two &&
2504 test -s conftest.dir/conftest.one &&
2505 test -s conftest.dir/conftest.two
2506 then
2507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2508 break 3
2509 fi
2510 fi
2511 fi
2512 done
2513 done
2514 ;;
2515 esac
2516
2517 done
2518 IFS=$as_save_IFS
2519
2520 rm -rf conftest.one conftest.two conftest.dir
2521
2522 fi
2523 if test "${ac_cv_path_install+set}" = set; then
2524 INSTALL=$ac_cv_path_install
2525 else
2526 # As a last resort, use the slow shell script. Don't cache a
2527 # value for INSTALL within a source directory, because that will
2528 # break other packages using the cache if that directory is
2529 # removed, or if the value is a relative name.
2530 INSTALL=$ac_install_sh
2531 fi
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2534 $as_echo "$INSTALL" >&6; }
2535
2536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2537 # It thinks the first close brace ends the variable substitution.
2538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2539
2540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2541
2542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2543
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2545 $as_echo_n "checking whether ln works... " >&6; }
2546 if test "${acx_cv_prog_LN+set}" = set; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 rm -f conftestdata_t
2550 echo >conftestdata_f
2551 if ln conftestdata_f conftestdata_t 2>/dev/null
2552 then
2553 acx_cv_prog_LN=ln
2554 else
2555 acx_cv_prog_LN=no
2556 fi
2557 rm -f conftestdata_f conftestdata_t
2558
2559 fi
2560 if test $acx_cv_prog_LN = no; then
2561 LN="cp"
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2563 $as_echo "no, using $LN" >&6; }
2564 else
2565 LN="$acx_cv_prog_LN"
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2567 $as_echo "yes" >&6; }
2568 fi
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2571 $as_echo_n "checking whether ln -s works... " >&6; }
2572 LN_S=$as_ln_s
2573 if test "$LN_S" = "ln -s"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575 $as_echo "yes" >&6; }
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2578 $as_echo "no, using $LN_S" >&6; }
2579 fi
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2582 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2583 if test "${ac_cv_path_SED+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2587 for ac_i in 1 2 3 4 5 6 7; do
2588 ac_script="$ac_script$as_nl$ac_script"
2589 done
2590 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2591 { ac_script=; unset ac_script;}
2592 if test -z "$SED"; then
2593 ac_path_SED_found=false
2594 # Loop through the user's path and test for each of PROGNAME-LIST
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_prog in sed gsed; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2603 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2604 # Check for GNU ac_path_SED and select it if it is found.
2605 # Check for GNU $ac_path_SED
2606 case `"$ac_path_SED" --version 2>&1` in
2607 *GNU*)
2608 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2609 *)
2610 ac_count=0
2611 $as_echo_n 0123456789 >"conftest.in"
2612 while :
2613 do
2614 cat "conftest.in" "conftest.in" >"conftest.tmp"
2615 mv "conftest.tmp" "conftest.in"
2616 cp "conftest.in" "conftest.nl"
2617 $as_echo '' >> "conftest.nl"
2618 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2620 as_fn_arith $ac_count + 1 && ac_count=$as_val
2621 if test $ac_count -gt ${ac_path_SED_max-0}; then
2622 # Best one so far, save it but keep looking for a better one
2623 ac_cv_path_SED="$ac_path_SED"
2624 ac_path_SED_max=$ac_count
2625 fi
2626 # 10*(2^10) chars as input seems more than enough
2627 test $ac_count -gt 10 && break
2628 done
2629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2630 esac
2631
2632 $ac_path_SED_found && break 3
2633 done
2634 done
2635 done
2636 IFS=$as_save_IFS
2637 if test -z "$ac_cv_path_SED"; then
2638 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2639 fi
2640 else
2641 ac_cv_path_SED=$SED
2642 fi
2643
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2646 $as_echo "$ac_cv_path_SED" >&6; }
2647 SED="$ac_cv_path_SED"
2648 rm -f conftest.sed
2649
2650 for ac_prog in gawk mawk nawk awk
2651 do
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if test "${ac_cv_prog_AWK+set}" = set; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test -n "$AWK"; then
2660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_AWK="$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 AWK=$ac_cv_prog_AWK
2680 if test -n "$AWK"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2682 $as_echo "$AWK" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689 test -n "$AWK" && break
2690 done
2691
2692
2693 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2694
2695 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2696 # a relative path.
2697 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2698 INSTALL="${srcpwd}/install-sh -c"
2699 fi
2700
2701 # Set srcdir to "." if that's what it is.
2702 # This is important for multilib support.
2703 pwd=`${PWDCMD-pwd}`
2704 if test "${pwd}" = "${srcpwd}" ; then
2705 srcdir=.
2706 fi
2707
2708 topsrcdir=$srcpwd
2709
2710 extra_host_args=
2711
2712 ### To add a new directory to the tree, first choose whether it is a target
2713 ### or a host dependent tool. Then put it into the appropriate list
2714 ### (library or tools, host or target), doing a dependency sort.
2715
2716 # Subdirs will be configured in the order listed in build_configdirs,
2717 # configdirs, or target_configdirs; see the serialization section below.
2718
2719 # Dependency sorting is only needed when *configuration* must be done in
2720 # a particular order. In all cases a dependency should be specified in
2721 # the Makefile, whether or not it's implicitly specified here.
2722
2723 # Double entries in build_configdirs, configdirs, or target_configdirs may
2724 # cause circular dependencies and break everything horribly.
2725
2726 # these library is used by various programs built for the build
2727 # environment
2728 #
2729 build_libs="build-libiberty build-libcpp"
2730
2731 # these tools are built for the build environment
2732 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2733
2734 # these libraries are used by various programs built for the host environment
2735 #f
2736 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2737
2738 # these tools are built for the host environment
2739 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2740 # know that we are building the simulator.
2741 # binutils, gas and ld appear in that order because it makes sense to run
2742 # "make check" in that particular order.
2743 # If --enable-gold is used, "gold" may replace "ld".
2744 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"
2745
2746 # these libraries are built for the target environment, and are built after
2747 # the host libraries and the host tools (which may be a cross compiler)
2748 # Note that libiberty is not a target library.
2749 target_libraries="target-libgcc \
2750 target-libbacktrace \
2751 target-libgloss \
2752 target-newlib \
2753 target-libgomp \
2754 target-libcilkrts \
2755 target-liboffloadmic \
2756 target-libhsail-rt \
2757 target-libatomic \
2758 target-libitm \
2759 target-libstdc++-v3 \
2760 target-libsanitizer \
2761 target-libvtv \
2762 target-libmpx \
2763 target-libssp \
2764 target-libquadmath \
2765 target-libgfortran \
2766 target-libffi \
2767 target-libobjc \
2768 target-libada \
2769 target-libgo"
2770
2771 # these tools are built using the target libraries, and are intended to
2772 # run only in the target environment
2773 #
2774 # note: any program that *uses* libraries that are in the "target_libraries"
2775 # list belongs in this list.
2776 #
2777 target_tools="target-rda"
2778
2779 ################################################################################
2780
2781 ## All tools belong in one of the four categories, and are assigned above
2782 ## We assign ${configdirs} this way to remove all embedded newlines. This
2783 ## is important because configure will choke if they ever get through.
2784 ## ${configdirs} is directories we build using the host tools.
2785 ## ${target_configdirs} is directories we build using the target tools.
2786 configdirs=`echo ${host_libs} ${host_tools}`
2787 target_configdirs=`echo ${target_libraries} ${target_tools}`
2788 build_configdirs=`echo ${build_libs} ${build_tools}`
2789
2790
2791
2792 ################################################################################
2793
2794 srcname="gnu development package"
2795
2796 # This gets set non-empty for some net releases of packages.
2797 appdirs=""
2798
2799 # Define is_cross_compiler to save on calls to 'test'.
2800 is_cross_compiler=
2801 if test x"${host}" = x"${target}" ; then
2802 is_cross_compiler=no
2803 else
2804 is_cross_compiler=yes
2805 fi
2806
2807 # Find the build and target subdir names.
2808
2809 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2810 # have matching libraries, they should use host libraries: Makefile.tpl
2811 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2812 # However, they still use the build modules, because the corresponding
2813 # host modules (e.g. bison) are only built for the host when bootstrap
2814 # finishes. So:
2815 # - build_subdir is where we find build modules, and never changes.
2816 # - build_libsubdir is where we find build libraries, and can be overridden.
2817
2818 # Prefix 'build-' so this never conflicts with target_subdir.
2819 build_subdir="build-${build_noncanonical}"
2820
2821 # Check whether --with-build-libsubdir was given.
2822 if test "${with_build_libsubdir+set}" = set; then :
2823 withval=$with_build_libsubdir; build_libsubdir="$withval"
2824 else
2825 build_libsubdir="$build_subdir"
2826 fi
2827
2828 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2829 if ( test $srcdir = . && test -d gcc ) \
2830 || test -d $srcdir/../host-${host_noncanonical}; then
2831 host_subdir="host-${host_noncanonical}"
2832 else
2833 host_subdir=.
2834 fi
2835 # No prefix.
2836 target_subdir=${target_noncanonical}
2837
2838 # Be sure to cover against remnants of an in-tree build.
2839 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2840 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2841 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2842 fi
2843
2844 # Skipdirs are removed silently.
2845 skipdirs=
2846 # Noconfigdirs are removed loudly.
2847 noconfigdirs=""
2848
2849 use_gnu_ld=
2850 # Make sure we don't let GNU ld be added if we didn't want it.
2851 if test x$with_gnu_ld = xno ; then
2852 use_gnu_ld=no
2853 noconfigdirs="$noconfigdirs ld gold"
2854 fi
2855
2856 use_gnu_as=
2857 # Make sure we don't let GNU as be added if we didn't want it.
2858 if test x$with_gnu_as = xno ; then
2859 use_gnu_as=no
2860 noconfigdirs="$noconfigdirs gas"
2861 fi
2862
2863 use_included_zlib=
2864
2865 # Check whether --with-system-zlib was given.
2866 if test "${with_system_zlib+set}" = set; then :
2867 withval=$with_system_zlib;
2868 fi
2869
2870 # Make sure we don't let ZLIB be added if we didn't want it.
2871 if test x$with_system_zlib = xyes ; then
2872 use_included_zlib=no
2873 noconfigdirs="$noconfigdirs zlib"
2874 fi
2875
2876 # some tools are so dependent upon X11 that if we're not building with X,
2877 # it's not even worth trying to configure, much less build, that tool.
2878
2879 case ${with_x} in
2880 yes | "") ;; # the default value for this tree is that X11 is available
2881 no)
2882 skipdirs="${skipdirs} tk itcl libgui"
2883 # We won't be able to build gdbtk without X.
2884 enable_gdbtk=no
2885 ;;
2886 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2887 esac
2888
2889 # Some are only suitable for cross toolchains.
2890 # Remove these if host=target.
2891 cross_only="target-libgloss target-newlib target-opcodes"
2892
2893 case $is_cross_compiler in
2894 no) skipdirs="${skipdirs} ${cross_only}" ;;
2895 esac
2896
2897 # If both --with-headers and --with-libs are specified, default to
2898 # --without-newlib.
2899 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2900 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2901 if test x"${with_newlib}" = x ; then
2902 with_newlib=no
2903 fi
2904 fi
2905
2906 # Recognize --with-newlib/--without-newlib.
2907 case ${with_newlib} in
2908 no) skipdirs="${skipdirs} target-newlib" ;;
2909 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2910 esac
2911
2912 # Check whether --enable-as-accelerator-for was given.
2913 if test "${enable_as_accelerator_for+set}" = set; then :
2914 enableval=$enable_as_accelerator_for;
2915 fi
2916
2917
2918 # Check whether --enable-offload-targets was given.
2919 if test "${enable_offload_targets+set}" = set; then :
2920 enableval=$enable_offload_targets;
2921 if test x"$enable_offload_targets" = x; then
2922 as_fn_error "no offload targets specified" "$LINENO" 5
2923 fi
2924
2925 else
2926 enable_offload_targets=
2927 fi
2928
2929
2930 # Handle --enable-gold, --enable-ld.
2931 # --disable-gold [--enable-ld]
2932 # Build only ld. Default option.
2933 # --enable-gold [--enable-ld]
2934 # Build both gold and ld. Install gold as "ld.gold", install ld
2935 # as "ld.bfd" and "ld".
2936 # --enable-gold=default [--enable-ld]
2937 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2938 # install ld as "ld.bfd".
2939 # --enable-gold[=default] --disable-ld
2940 # Build only gold, which is then installed as both "ld.gold" and "ld".
2941 # --enable-gold --enable-ld=default
2942 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2943 # and ld.bfd).
2944 # In other words, ld is default
2945 # --enable-gold=default --enable-ld=default
2946 # Error.
2947
2948 default_ld=
2949 # Check whether --enable-gold was given.
2950 if test "${enable_gold+set}" = set; then :
2951 enableval=$enable_gold; ENABLE_GOLD=$enableval
2952 else
2953 ENABLE_GOLD=no
2954 fi
2955
2956 case "${ENABLE_GOLD}" in
2957 yes|default)
2958 # Check for ELF target.
2959 is_elf=no
2960 case "${target}" in
2961 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2962 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2963 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2964 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2965 case "${target}" in
2966 *-*-linux*aout* | *-*-linux*oldld*)
2967 ;;
2968 *)
2969 is_elf=yes
2970 ;;
2971 esac
2972 esac
2973
2974 if test "$is_elf" = "yes"; then
2975 # Check for target supported by gold.
2976 case "${target}" in
2977 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2978 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2979 configdirs="$configdirs gold"
2980 if test x${ENABLE_GOLD} = xdefault; then
2981 default_ld=gold
2982 fi
2983 ENABLE_GOLD=yes
2984 ;;
2985 esac
2986 fi
2987 ;;
2988 no)
2989 ;;
2990 *)
2991 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2992 ;;
2993 esac
2994
2995 # Check whether --enable-ld was given.
2996 if test "${enable_ld+set}" = set; then :
2997 enableval=$enable_ld; ENABLE_LD=$enableval
2998 else
2999 ENABLE_LD=yes
3000 fi
3001
3002
3003 case "${ENABLE_LD}" in
3004 default)
3005 if test x${default_ld} != x; then
3006 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3007 fi
3008 ;;
3009 yes)
3010 ;;
3011 no)
3012 if test x${ENABLE_GOLD} != xyes; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3014 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3015 fi
3016 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3017 ;;
3018 *)
3019 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3020 ;;
3021 esac
3022
3023 # PR gas/19109
3024 # Decide the default method for compressing debug sections.
3025 # Provide a configure time option to override our default.
3026 # Check whether --enable-compressed_debug_sections was given.
3027 if test "${enable_compressed_debug_sections+set}" = set; then :
3028 enableval=$enable_compressed_debug_sections;
3029 if test x"$enable_compressed_debug_sections" = xyes; then
3030 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3031 fi
3032
3033 else
3034 enable_compressed_debug_sections=
3035 fi
3036
3037
3038 # Configure extra directories which are host specific
3039
3040 case "${host}" in
3041 *-cygwin*)
3042 configdirs="$configdirs libtermcap" ;;
3043 esac
3044
3045 # A target can indicate whether a language isn't supported for some reason.
3046 # Only spaces may be used in this macro; not newlines or tabs.
3047 unsupported_languages=
3048
3049 # Remove more programs from consideration, based on the host or
3050 # target this usually means that a port of the program doesn't
3051 # exist yet.
3052
3053 case "${host}" in
3054 i[3456789]86-*-msdosdjgpp*)
3055 noconfigdirs="$noconfigdirs tcl tk itcl"
3056 ;;
3057 esac
3058
3059
3060 # Check whether --enable-libquadmath was given.
3061 if test "${enable_libquadmath+set}" = set; then :
3062 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3063 else
3064 ENABLE_LIBQUADMATH=yes
3065 fi
3066
3067 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3068 noconfigdirs="$noconfigdirs target-libquadmath"
3069 fi
3070
3071
3072 # Check whether --enable-libquadmath-support was given.
3073 if test "${enable_libquadmath_support+set}" = set; then :
3074 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3075 else
3076 ENABLE_LIBQUADMATH_SUPPORT=yes
3077 fi
3078
3079 enable_libquadmath_support=
3080 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3081 enable_libquadmath_support=no
3082 fi
3083
3084
3085 # Check whether --enable-libada was given.
3086 if test "${enable_libada+set}" = set; then :
3087 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3088 else
3089 ENABLE_LIBADA=yes
3090 fi
3091
3092 if test "${ENABLE_LIBADA}" != "yes" ; then
3093 noconfigdirs="$noconfigdirs gnattools"
3094 fi
3095
3096 # Check whether --enable-libssp was given.
3097 if test "${enable_libssp+set}" = set; then :
3098 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3099 else
3100 ENABLE_LIBSSP=yes
3101 fi
3102
3103
3104 # Check whether --enable-libstdcxx was given.
3105 if test "${enable_libstdcxx+set}" = set; then :
3106 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3107 else
3108 ENABLE_LIBSTDCXX=default
3109 fi
3110
3111 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3112 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3113 fi
3114
3115 # If this is accelerator compiler and its target is intelmic we enable
3116 # target liboffloadmic by default. If this is compiler with offloading
3117 # for intelmic we enable host liboffloadmic by default. Otherwise
3118 # liboffloadmic is disabled by default.
3119 # Check whether --enable-liboffloadmic was given.
3120 if test "${enable_liboffloadmic+set}" = set; then :
3121 enableval=$enable_liboffloadmic; case "$enableval" in
3122 no | host | target)
3123 enable_liboffloadmic=$enableval ;;
3124 *)
3125 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3126 esac
3127 else
3128 if test x"$enable_as_accelerator_for" != x; then
3129 case "${target}" in
3130 *-intelmic-* | *-intelmicemul-*)
3131 enable_liboffloadmic=target
3132 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3133 ;;
3134 *)
3135 enable_liboffloadmic=no
3136 ;;
3137 esac
3138 else
3139 case "${enable_offload_targets}" in
3140 *-intelmic-* | *-intelmicemul-*)
3141 enable_liboffloadmic=host
3142 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3143 ;;
3144 *)
3145 enable_liboffloadmic=no
3146 ;;
3147 esac
3148 fi
3149 fi
3150
3151
3152
3153 # Enable libgomp by default on hosted POSIX systems, and a few others.
3154 if test x$enable_libgomp = x ; then
3155 case "${target}" in
3156 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3157 ;;
3158 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3159 ;;
3160 *-*-solaris2* | *-*-hpux11*)
3161 ;;
3162 *-*-darwin* | *-*-aix*)
3163 ;;
3164 nvptx*-*-*)
3165 ;;
3166 *)
3167 noconfigdirs="$noconfigdirs target-libgomp"
3168 ;;
3169 esac
3170 fi
3171
3172 # Disable libatomic on unsupported systems.
3173 if test -d ${srcdir}/libatomic; then
3174 if test x$enable_libatomic = x; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3176 $as_echo_n "checking for libatomic support... " >&6; }
3177 if (srcdir=${srcdir}/libatomic; \
3178 . ${srcdir}/configure.tgt; \
3179 test -n "$UNSUPPORTED")
3180 then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 noconfigdirs="$noconfigdirs target-libatomic"
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186 $as_echo "yes" >&6; }
3187 fi
3188 fi
3189 fi
3190
3191 # Disable libcilkrts on unsupported systems.
3192 if test -d ${srcdir}/libcilkrts; then
3193 if test x$enable_libcilkrts = x; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3195 $as_echo_n "checking for libcilkrts support... " >&6; }
3196 if (srcdir=${srcdir}/libcilkrts; \
3197 . ${srcdir}/configure.tgt; \
3198 test -n "$UNSUPPORTED")
3199 then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 noconfigdirs="$noconfigdirs target-libcilkrts"
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3206 fi
3207 fi
3208 fi
3209
3210 # Disable liboffloadmic on unsupported systems.
3211 if test -d ${srcdir}/liboffloadmic; then
3212 if test x$enable_liboffloadmic != xno; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3214 $as_echo_n "checking for liboffloadmic support... " >&6; }
3215 if (srcdir=${srcdir}/liboffloadmic; \
3216 . ${srcdir}/configure.tgt; \
3217 test -n "$UNSUPPORTED")
3218 then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 noconfigdirs="$noconfigdirs target-liboffloadmic"
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224 $as_echo "yes" >&6; }
3225 fi
3226 fi
3227 fi
3228
3229 # Disable libitm on unsupported systems.
3230 if test -d ${srcdir}/libitm; then
3231 if test x$enable_libitm = x; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3233 $as_echo_n "checking for libitm support... " >&6; }
3234 if (srcdir=${srcdir}/libitm; \
3235 . ${srcdir}/configure.tgt; \
3236 test -n "$UNSUPPORTED")
3237 then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 noconfigdirs="$noconfigdirs target-libitm"
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243 $as_echo "yes" >&6; }
3244 fi
3245 fi
3246 fi
3247
3248 # Disable libsanitizer on unsupported systems.
3249 if test -d ${srcdir}/libsanitizer; then
3250 if test x$enable_libsanitizer = x; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3252 $as_echo_n "checking for libsanitizer support... " >&6; }
3253 if (srcdir=${srcdir}/libsanitizer; \
3254 . ${srcdir}/configure.tgt; \
3255 test -n "$UNSUPPORTED")
3256 then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 noconfigdirs="$noconfigdirs target-libsanitizer"
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263 fi
3264 fi
3265 fi
3266
3267 # Disable libvtv on unsupported systems.
3268 if test -d ${srcdir}/libvtv; then
3269 if test x$enable_libvtv = x; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3271 $as_echo_n "checking for libvtv support... " >&6; }
3272 if (srcdir=${srcdir}/libvtv; \
3273 . ${srcdir}/configure.tgt; \
3274 test "$VTV_SUPPORTED" != "yes")
3275 then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 noconfigdirs="$noconfigdirs target-libvtv"
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282 fi
3283 fi
3284 fi
3285
3286
3287 # Enable libmpx on supported systems by request.
3288 if test -d ${srcdir}/libmpx; then
3289 if test x$enable_libmpx = x; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3291 $as_echo_n "checking for libmpx support... " >&6; }
3292 if (srcdir=${srcdir}/libmpx; \
3293 . ${srcdir}/configure.tgt; \
3294 test "$LIBMPX_SUPPORTED" != "yes")
3295 then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 noconfigdirs="$noconfigdirs target-libmpx"
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3302 fi
3303 fi
3304 fi
3305
3306 # Disable libhsail-rt on unsupported systems.
3307 if test -d ${srcdir}/libhsail-rt; then
3308 if test x$enable_libhsail_rt = x; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3310 $as_echo_n "checking for libhsail-rt support... " >&6; }
3311 if (srcdir=${srcdir}/libhsail-rt; \
3312 . ${srcdir}/configure.tgt; \
3313 test -n "$UNSUPPORTED")
3314 then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 unsupported_languages="$unsupported_languages brig"
3318 # This implicitly disables also target-libhsail-rt as it won't
3319 # get added to the build without BRIG FE.
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3323 fi
3324 fi
3325 fi
3326
3327
3328 # Disable libquadmath for some systems.
3329 case "${target}" in
3330 avr-*-*)
3331 noconfigdirs="$noconfigdirs target-libquadmath"
3332 ;;
3333 # libquadmath is unused on AIX and libquadmath build process use of
3334 # LD_LIBRARY_PATH can break AIX bootstrap.
3335 powerpc-*-aix* | rs6000-*-aix*)
3336 noconfigdirs="$noconfigdirs target-libquadmath"
3337 ;;
3338 esac
3339
3340 # Disable libssp for some systems.
3341 case "${target}" in
3342 avr-*-*)
3343 # No hosted I/O support.
3344 noconfigdirs="$noconfigdirs target-libssp"
3345 ;;
3346 powerpc-*-aix* | rs6000-*-aix*)
3347 noconfigdirs="$noconfigdirs target-libssp"
3348 ;;
3349 rl78-*-*)
3350 # libssp uses a misaligned load to trigger a fault, but the RL78
3351 # doesn't fault for those - instead, it gives a build-time error
3352 # for explicit misaligned loads.
3353 noconfigdirs="$noconfigdirs target-libssp"
3354 ;;
3355 visium-*-*)
3356 # No hosted I/O support.
3357 noconfigdirs="$noconfigdirs target-libssp"
3358 ;;
3359 esac
3360
3361 # Disable libstdc++-v3 for some systems.
3362 # Allow user to override this if they pass --enable-libstdc++-v3
3363 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3364 case "${target}" in
3365 *-*-vxworks*)
3366 # VxWorks uses the Dinkumware C++ library.
3367 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3368 ;;
3369 arm*-wince-pe*)
3370 # the C++ libraries don't build on top of CE's C libraries
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 ;;
3373 avr-*-*)
3374 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3375 ;;
3376 ft32-*-*)
3377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 ;;
3379 esac
3380 fi
3381
3382 # Disable Fortran for some systems.
3383 case "${target}" in
3384 mmix-*-*)
3385 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3386 unsupported_languages="$unsupported_languages fortran"
3387 ;;
3388 esac
3389
3390 # Disable libffi for some systems.
3391 case "${target}" in
3392 powerpc-*-darwin*)
3393 ;;
3394 i[3456789]86-*-darwin*)
3395 ;;
3396 x86_64-*-darwin[912]*)
3397 ;;
3398 *-*-darwin*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 *-*-netware*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3403 ;;
3404 *-*-phoenix*)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 *-*-rtems*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 *-*-tpf*)
3411 noconfigdirs="$noconfigdirs target-libffi"
3412 ;;
3413 *-*-uclinux*)
3414 noconfigdirs="$noconfigdirs target-libffi"
3415 ;;
3416 *-*-vxworks*)
3417 noconfigdirs="$noconfigdirs target-libffi"
3418 ;;
3419 aarch64*-*-freebsd*)
3420 noconfigdirs="$noconfigdirs target-libffi"
3421 ;;
3422 alpha*-*-*vms*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3424 ;;
3425 arm*-*-freebsd*)
3426 noconfigdirs="$noconfigdirs target-libffi"
3427 ;;
3428 arm-wince-pe)
3429 noconfigdirs="$noconfigdirs target-libffi"
3430 ;;
3431 arm*-*-symbianelf*)
3432 noconfigdirs="$noconfigdirs target-libffi"
3433 ;;
3434 cris-*-* | crisv32-*-*)
3435 case "${target}" in
3436 *-*-linux*)
3437 ;;
3438 *) # See PR46792 regarding target-libffi.
3439 noconfigdirs="$noconfigdirs target-libffi";;
3440 esac
3441 ;;
3442 hppa*64*-*-hpux*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 hppa*-hp-hpux11*)
3446 ;;
3447 hppa*-*-hpux*)
3448 noconfigdirs="$noconfigdirs target-libffi"
3449 ;;
3450 ia64*-*-*vms*)
3451 noconfigdirs="$noconfigdirs target-libffi"
3452 ;;
3453 i[3456789]86-w64-mingw*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3455 ;;
3456 i[3456789]86-*-mingw*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3458 ;;
3459 x86_64-*-mingw*)
3460 noconfigdirs="$noconfigdirs target-libffi"
3461 ;;
3462 mmix-*-*)
3463 noconfigdirs="$noconfigdirs target-libffi"
3464 ;;
3465 powerpc-*-aix*)
3466 # copied from rs6000-*-* entry
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 rs6000-*-aix*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 ft32-*-*)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 *-*-lynxos*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 esac
3479
3480 # Disable the go frontend on systems where it is known to not work. Please keep
3481 # this in sync with contrib/config-list.mk.
3482 case "${target}" in
3483 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3484 unsupported_languages="$unsupported_languages go"
3485 ;;
3486 esac
3487
3488 # Disable libgo for some systems where it is known to not work.
3489 # For testing, you can easily override this with --enable-libgo.
3490 if test x$enable_libgo = x; then
3491 case "${target}" in
3492 *-*-darwin*)
3493 # PR 46986
3494 noconfigdirs="$noconfigdirs target-libgo"
3495 ;;
3496 *-*-cygwin* | *-*-mingw*)
3497 noconfigdirs="$noconfigdirs target-libgo"
3498 ;;
3499 *-*-aix*)
3500 noconfigdirs="$noconfigdirs target-libgo"
3501 ;;
3502 esac
3503 fi
3504
3505 # Default libgloss CPU subdirectory.
3506 libgloss_dir="$target_cpu"
3507
3508 case "${target}" in
3509 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3510 libgloss_dir=wince
3511 ;;
3512 aarch64*-*-* )
3513 libgloss_dir=aarch64
3514 ;;
3515 arm*-*-*)
3516 libgloss_dir=arm
3517 ;;
3518 cris-*-* | crisv32-*-*)
3519 libgloss_dir=cris
3520 ;;
3521 hppa*-*-*)
3522 libgloss_dir=pa
3523 ;;
3524 i[3456789]86-*-*)
3525 libgloss_dir=i386
3526 ;;
3527 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3528 libgloss_dir=m68hc11
3529 ;;
3530 m68*-*-* | fido-*-*)
3531 libgloss_dir=m68k
3532 ;;
3533 mips*-*-*)
3534 libgloss_dir=mips
3535 ;;
3536 powerpc*-*-*)
3537 libgloss_dir=rs6000
3538 ;;
3539 sparc*-*-*)
3540 libgloss_dir=sparc
3541 ;;
3542 esac
3543
3544 # Disable newlib and libgloss for various target OSes.
3545 case "${target}" in
3546 alpha*-dec-osf*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 i[3456789]86-*-linux*)
3550 # This section makes it possible to build newlib natively on linux.
3551 # If we are using a cross compiler then don't configure newlib.
3552 if test x${is_cross_compiler} != xno ; then
3553 noconfigdirs="$noconfigdirs target-newlib"
3554 fi
3555 noconfigdirs="$noconfigdirs target-libgloss"
3556 # If we are not using a cross compiler, do configure newlib.
3557 # Note however, that newlib will only be configured in this situation
3558 # if the --with-newlib option has been given, because otherwise
3559 # 'target-newlib' will appear in skipdirs.
3560 ;;
3561 i[3456789]86-*-rdos*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 sparc-*-sunos4*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-aix*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-beos*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-chorusos)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-dragonfly*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-freebsd*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 *-*-lynxos*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 *-*-mingw*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-netbsd*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-netware*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-tpf*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-uclinux*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-vxworks*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 esac
3610
3611 case "${target}" in
3612 *-*-chorusos)
3613 ;;
3614 aarch64-*-darwin*)
3615 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3616 noconfigdirs="$noconfigdirs sim target-rda"
3617 ;;
3618 arm-*-darwin*)
3619 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3620 noconfigdirs="$noconfigdirs sim target-rda"
3621 ;;
3622 powerpc-*-darwin*)
3623 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3624 noconfigdirs="$noconfigdirs sim target-rda"
3625 ;;
3626 i[3456789]86-*-darwin*)
3627 noconfigdirs="$noconfigdirs ld gprof"
3628 noconfigdirs="$noconfigdirs sim target-rda"
3629 ;;
3630 x86_64-*-darwin[912]*)
3631 noconfigdirs="$noconfigdirs ld gas gprof"
3632 noconfigdirs="$noconfigdirs sim target-rda"
3633 ;;
3634 *-*-darwin*)
3635 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3636 noconfigdirs="$noconfigdirs sim target-rda"
3637 ;;
3638 *-*-dragonfly*)
3639 ;;
3640 *-*-freebsd*)
3641 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3642 && test -f /usr/local/include/gmp.h; then
3643 with_gmp=/usr/local
3644 fi
3645 ;;
3646 *-*-kaos*)
3647 # Remove unsupported stuff on all kaOS configurations.
3648 noconfigdirs="$noconfigdirs target-libgloss"
3649 ;;
3650 *-*-netbsd*)
3651 ;;
3652 *-*-netware*)
3653 ;;
3654 *-*-phoenix*)
3655 noconfigdirs="$noconfigdirs target-libgloss"
3656 ;;
3657 *-*-rtems*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3659 # this is not caught below because this stanza matches earlier
3660 case $target in
3661 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3662 esac
3663 ;;
3664 # The tpf target doesn't support gdb yet.
3665 *-*-tpf*)
3666 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3667 ;;
3668 *-*-uclinux*)
3669 noconfigdirs="$noconfigdirs target-rda"
3670 ;;
3671 *-*-vxworks*)
3672 ;;
3673 alpha*-dec-osf*)
3674 # ld works, but does not support shared libraries.
3675 # gas doesn't generate exception information.
3676 noconfigdirs="$noconfigdirs gas ld"
3677 ;;
3678 alpha*-*-*vms*)
3679 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3680 ;;
3681 alpha*-*-*)
3682 # newlib is not 64 bit ready
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3686 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3687 ;;
3688 arc*-*-*)
3689 noconfigdirs="$noconfigdirs sim"
3690 ;;
3691 arm-*-pe*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3693 ;;
3694 arm-*-riscix*)
3695 noconfigdirs="$noconfigdirs ld target-libgloss"
3696 ;;
3697 avr-*-*)
3698 if test x${with_avrlibc} != xno; then
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 fi
3701 ;;
3702 c4x-*-* | tic4x-*-*)
3703 noconfigdirs="$noconfigdirs target-libgloss"
3704 ;;
3705 tic54x-*-*)
3706 noconfigdirs="$noconfigdirs target-libgloss gdb"
3707 ;;
3708 d10v-*-*)
3709 noconfigdirs="$noconfigdirs target-libgloss"
3710 ;;
3711 d30v-*-*)
3712 noconfigdirs="$noconfigdirs gdb"
3713 ;;
3714 fr30-*-elf*)
3715 noconfigdirs="$noconfigdirs gdb"
3716 ;;
3717 ft32-*-*)
3718 noconfigdirs="$noconfigdirs target-rda gprof"
3719 ;;
3720 moxie-*-*)
3721 noconfigdirs="$noconfigdirs"
3722 ;;
3723 h8300*-*-*)
3724 noconfigdirs="$noconfigdirs target-libgloss"
3725 ;;
3726 h8500-*-*)
3727 noconfigdirs="$noconfigdirs target-libgloss"
3728 ;;
3729 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3730 ;;
3731 hppa*64*-*-hpux*)
3732 noconfigdirs="$noconfigdirs gdb"
3733 ;;
3734 hppa*-*-hpux11*)
3735 noconfigdirs="$noconfigdirs gdb ld"
3736 ;;
3737 hppa*64*-*-linux*)
3738 ;;
3739 hppa*-*-linux*)
3740 ;;
3741 hppa*-*-*elf* | \
3742 hppa*-*-lites* | \
3743 hppa*-*-openbsd* | \
3744 hppa*64*-*-*)
3745 ;;
3746 hppa*-*-pro*)
3747 ;;
3748 hppa*-*-*)
3749 noconfigdirs="$noconfigdirs ld"
3750 ;;
3751 i960-*-*)
3752 noconfigdirs="$noconfigdirs gdb"
3753 ;;
3754 ia64*-*-elf*)
3755 # No gdb support yet.
3756 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3757 ;;
3758 ia64*-**-hpux*)
3759 # No ld support yet.
3760 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3761 ;;
3762 ia64*-*-*vms*)
3763 # No ld support yet.
3764 noconfigdirs="$noconfigdirs libgui itcl ld"
3765 ;;
3766 i[3456789]86-w64-mingw*)
3767 ;;
3768 i[3456789]86-*-mingw*)
3769 target_configdirs="$target_configdirs target-winsup"
3770 ;;
3771 *-*-cygwin*)
3772 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3773 noconfigdirs="$noconfigdirs target-libgloss"
3774 # always build newlib if winsup directory is present.
3775 if test -d "$srcdir/winsup/cygwin"; then
3776 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3777 elif test -d "$srcdir/newlib"; then
3778 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3779 fi
3780 ;;
3781 i[3456789]86-*-pe)
3782 noconfigdirs="$noconfigdirs target-libgloss"
3783 ;;
3784 i[3456789]86-*-sco3.2v5*)
3785 # The linker does not yet know about weak symbols in COFF,
3786 # and is not configured to handle mixed ELF and COFF.
3787 noconfigdirs="$noconfigdirs ld target-libgloss"
3788 ;;
3789 i[3456789]86-*-sco*)
3790 noconfigdirs="$noconfigdirs gprof target-libgloss"
3791 ;;
3792 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3793 noconfigdirs="$noconfigdirs target-libgloss"
3794 ;;
3795 i[3456789]86-*-sysv4*)
3796 noconfigdirs="$noconfigdirs target-libgloss"
3797 ;;
3798 i[3456789]86-*-beos*)
3799 noconfigdirs="$noconfigdirs gdb"
3800 ;;
3801 i[3456789]86-*-rdos*)
3802 noconfigdirs="$noconfigdirs gdb"
3803 ;;
3804 mmix-*-*)
3805 noconfigdirs="$noconfigdirs gdb"
3806 ;;
3807 mt-*-*)
3808 noconfigdirs="$noconfigdirs sim"
3809 ;;
3810 powerpc-*-aix*)
3811 # copied from rs6000-*-* entry
3812 noconfigdirs="$noconfigdirs gprof"
3813 ;;
3814 powerpc*-*-winnt* | powerpc*-*-pe*)
3815 target_configdirs="$target_configdirs target-winsup"
3816 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3817 # always build newlib.
3818 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3819 ;;
3820 # This is temporary until we can link against shared libraries
3821 powerpcle-*-solaris*)
3822 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3823 ;;
3824 powerpc-*-beos*)
3825 noconfigdirs="$noconfigdirs gdb"
3826 ;;
3827 rs6000-*-lynxos*)
3828 noconfigdirs="$noconfigdirs gprof"
3829 ;;
3830 rs6000-*-aix*)
3831 noconfigdirs="$noconfigdirs gprof"
3832 ;;
3833 rs6000-*-*)
3834 noconfigdirs="$noconfigdirs gprof"
3835 ;;
3836 m68k-apollo-*)
3837 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3838 ;;
3839 microblaze*)
3840 noconfigdirs="$noconfigdirs gprof"
3841 ;;
3842 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3843 if test x$with_newlib = xyes; then
3844 noconfigdirs="$noconfigdirs gprof"
3845 fi
3846 ;;
3847 mips*-*-irix5*)
3848 noconfigdirs="$noconfigdirs gprof target-libgloss"
3849 ;;
3850 mips*-*-irix6*)
3851 noconfigdirs="$noconfigdirs gprof target-libgloss"
3852 ;;
3853 mips*-*-bsd*)
3854 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3855 ;;
3856 mips*-*-linux*)
3857 ;;
3858 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3859 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3860 noconfigdirs="$noconfigdirs ld gas gprof"
3861 ;;
3862 mips*-*-*)
3863 noconfigdirs="$noconfigdirs gprof"
3864 ;;
3865 nvptx*-*-*)
3866 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3867 ;;
3868 or1k*-*-*)
3869 noconfigdirs="$noconfigdirs gdb"
3870 ;;
3871 sh-*-*)
3872 case "${target}" in
3873 sh*-*-elf)
3874 ;;
3875 *)
3876 noconfigdirs="$noconfigdirs target-libgloss" ;;
3877 esac
3878 ;;
3879 sparc-*-sunos4*)
3880 if test x${is_cross_compiler} = xno ; then
3881 use_gnu_ld=no
3882 fi
3883 ;;
3884 tic6x-*-*)
3885 noconfigdirs="$noconfigdirs sim"
3886 ;;
3887 tilepro*-*-* | tilegx*-*-*)
3888 noconfigdirs="$noconfigdirs sim"
3889 ;;
3890 v810-*-*)
3891 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3892 ;;
3893 vax-*-*)
3894 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3895 ;;
3896 esac
3897
3898 # If we aren't building newlib, then don't build libgloss, since libgloss
3899 # depends upon some newlib header files.
3900 case "${noconfigdirs}" in
3901 *target-libgloss*) ;;
3902 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3903 esac
3904
3905 # Work in distributions that contain no compiler tools, like Autoconf.
3906 host_makefile_frag=/dev/null
3907 if test -d ${srcdir}/config ; then
3908 case "${host}" in
3909 i[3456789]86-*-msdosdjgpp*)
3910 host_makefile_frag="config/mh-djgpp"
3911 ;;
3912 *-cygwin*)
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3915 $as_echo_n "checking to see if cat works as expected... " >&6; }
3916 echo a >cygwin-cat-check
3917 if test `cat cygwin-cat-check` = a ; then
3918 rm cygwin-cat-check
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3921 else
3922 rm cygwin-cat-check
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 as_fn_error "The cat command does not ignore carriage return characters.
3926 Please either mount the build directory in binary mode or run the following
3927 commands before running any configure script:
3928 set -o igncr
3929 export SHELLOPTS
3930 " "$LINENO" 5
3931 fi
3932
3933 host_makefile_frag="config/mh-cygwin"
3934 ;;
3935 *-mingw*)
3936 host_makefile_frag="config/mh-mingw"
3937 ;;
3938 alpha*-linux*)
3939 host_makefile_frag="config/mh-alpha-linux"
3940 ;;
3941 hppa*-hp-hpux10*)
3942 host_makefile_frag="config/mh-pa-hpux10"
3943 ;;
3944 hppa*-hp-hpux*)
3945 host_makefile_frag="config/mh-pa"
3946 ;;
3947 hppa*-*)
3948 host_makefile_frag="config/mh-pa"
3949 ;;
3950 *-*-darwin*)
3951 host_makefile_frag="config/mh-darwin"
3952 ;;
3953 powerpc-*-aix*)
3954 host_makefile_frag="config/mh-ppc-aix"
3955 ;;
3956 rs6000-*-aix*)
3957 host_makefile_frag="config/mh-ppc-aix"
3958 ;;
3959 esac
3960 fi
3961
3962 if test "${build}" != "${host}" ; then
3963 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3964 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3965 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3966 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3967 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3968 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3969 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3970 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3971 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3972 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3973 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3974 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3975 else
3976 AR_FOR_BUILD="\$(AR)"
3977 AS_FOR_BUILD="\$(AS)"
3978 CC_FOR_BUILD="\$(CC)"
3979 CXX_FOR_BUILD="\$(CXX)"
3980 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3981 GOC_FOR_BUILD="\$(GOC)"
3982 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3983 LD_FOR_BUILD="\$(LD)"
3984 NM_FOR_BUILD="\$(NM)"
3985 RANLIB_FOR_BUILD="\$(RANLIB)"
3986 WINDRES_FOR_BUILD="\$(WINDRES)"
3987 WINDMC_FOR_BUILD="\$(WINDMC)"
3988 fi
3989
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if test "${ac_cv_prog_CC+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017 done
4018 done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 CC=$ac_cv_prog_CC
4024 if test -n "$CC"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026 $as_echo "$CC" >&6; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032
4033 fi
4034 if test -z "$ac_cv_prog_CC"; then
4035 ac_ct_CC=$CC
4036 # Extract the first word of "gcc", so it can be a program name with args.
4037 set dummy gcc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -n "$ac_ct_CC"; then
4044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_ac_ct_CC="gcc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064 if test -n "$ac_ct_CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066 $as_echo "$ac_ct_CC" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081 CC=$ac_ct_CC
4082 fi
4083 else
4084 CC="$ac_cv_prog_CC"
4085 fi
4086
4087 if test -z "$CC"; then
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}cc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_CC+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 fi
4128 if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130 set dummy cc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 ac_prog_rejected=no
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4149 continue
4150 fi
4151 ac_cv_prog_CC="cc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4154 fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4162 shift
4163 if test $# != 0; then
4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4167 shift
4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4169 fi
4170 fi
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180 fi
4181
4182
4183 fi
4184 if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
4186 for ac_prog in cl.exe
4187 do
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_CC+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 CC=$ac_cv_prog_CC
4216 if test -n "$CC"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225 test -n "$CC" && break
4226 done
4227 fi
4228 if test -z "$CC"; then
4229 ac_ct_CC=$CC
4230 for ac_prog in cl.exe
4231 do
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_ac_ct_CC="$ac_prog"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260 if test -n "$ac_ct_CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262 $as_echo "$ac_ct_CC" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269 test -n "$ac_ct_CC" && break
4270 done
4271
4272 if test "x$ac_ct_CC" = x; then
4273 CC=""
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4280 esac
4281 CC=$ac_ct_CC
4282 fi
4283 fi
4284
4285 fi
4286
4287
4288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 as_fn_error "no acceptable C compiler found in \$PATH
4291 See \`config.log' for more details." "$LINENO" 5; }
4292
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4306 ac_status=$?
4307 if test -s conftest.err; then
4308 sed '10a\
4309 ... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4312 rm -f conftest.er1 conftest.err
4313 fi
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316 done
4317
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320
4321 int
4322 main ()
4323 {
4324
4325 ;
4326 return 0;
4327 }
4328 _ACEOF
4329 ac_clean_files_save=$ac_clean_files
4330 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4331 # Try to create an executable without -o first, disregard a.out.
4332 # It will help us diagnose broken compilers, and finding out an intuition
4333 # of exeext.
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335 $as_echo_n "checking for C compiler default output file name... " >&6; }
4336 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4337
4338 # The possible output files:
4339 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4340
4341 ac_rmfiles=
4342 for ac_file in $ac_files
4343 do
4344 case $ac_file in
4345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4347 esac
4348 done
4349 rm -f $ac_rmfiles
4350
4351 if { { ac_try="$ac_link_default"
4352 case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_link_default") 2>&5
4359 ac_status=$?
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }; then :
4362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4364 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4365 # so that the user can short-circuit this test for compilers unknown to
4366 # Autoconf.
4367 for ac_file in $ac_files ''
4368 do
4369 test -f "$ac_file" || continue
4370 case $ac_file in
4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4372 ;;
4373 [ab].out )
4374 # We found the default executable, but exeext='' is most
4375 # certainly right.
4376 break;;
4377 *.* )
4378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4379 then :; else
4380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4381 fi
4382 # We set ac_cv_exeext here because the later test for it is not
4383 # safe: cross compilers may not add the suffix if given an `-o'
4384 # argument, so we may need to know it at that point already.
4385 # Even if this section looks crufty: it has the advantage of
4386 # actually working.
4387 break;;
4388 * )
4389 break;;
4390 esac
4391 done
4392 test "$ac_cv_exeext" = no && ac_cv_exeext=
4393
4394 else
4395 ac_file=''
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4398 $as_echo "$ac_file" >&6; }
4399 if test -z "$ac_file"; then :
4400 $as_echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 { as_fn_set_status 77
4406 as_fn_error "C compiler cannot create executables
4407 See \`config.log' for more details." "$LINENO" 5; }; }
4408 fi
4409 ac_exeext=$ac_cv_exeext
4410
4411 # Check that the compiler produces executables we can run. If not, either
4412 # the compiler is broken, or we cross compile.
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4414 $as_echo_n "checking whether the C compiler works... " >&6; }
4415 # If not cross compiling, check that we can run a simple program.
4416 if test "$cross_compiling" != yes; then
4417 if { ac_try='./$ac_file'
4418 { { case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_try") 2>&5
4425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; }; then
4428 cross_compiling=no
4429 else
4430 if test "$cross_compiling" = maybe; then
4431 cross_compiling=yes
4432 else
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error "cannot run C compiled programs.
4436 If you meant to cross compile, use \`--host'.
4437 See \`config.log' for more details." "$LINENO" 5; }
4438 fi
4439 fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4443
4444 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4445 ac_clean_files=$ac_clean_files_save
4446 # Check that the compiler produces executables we can run. If not, either
4447 # the compiler is broken, or we cross compile.
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4449 $as_echo_n "checking whether we are cross compiling... " >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4451 $as_echo "$cross_compiling" >&6; }
4452
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4454 $as_echo_n "checking for suffix of executables... " >&6; }
4455 if { { ac_try="$ac_link"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_link") 2>&5
4463 ac_status=$?
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
4466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4467 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4468 # work properly (i.e., refer to `conftest.exe'), while it won't with
4469 # `rm'.
4470 for ac_file in conftest.exe conftest conftest.*; do
4471 test -f "$ac_file" || continue
4472 case $ac_file in
4473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4475 break;;
4476 * ) break;;
4477 esac
4478 done
4479 else
4480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482 as_fn_error "cannot compute suffix of executables: cannot compile and link
4483 See \`config.log' for more details." "$LINENO" 5; }
4484 fi
4485 rm -f conftest$ac_cv_exeext
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4487 $as_echo "$ac_cv_exeext" >&6; }
4488
4489 rm -f conftest.$ac_ext
4490 EXEEXT=$ac_cv_exeext
4491 ac_exeext=$EXEEXT
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4493 $as_echo_n "checking for suffix of object files... " >&6; }
4494 if test "${ac_cv_objext+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499
4500 int
4501 main ()
4502 {
4503
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 rm -f conftest.o conftest.obj
4509 if { { ac_try="$ac_compile"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compile") 2>&5
4517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 for ac_file in conftest.o conftest.obj conftest.*; do
4521 test -f "$ac_file" || continue;
4522 case $ac_file in
4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4525 break;;
4526 esac
4527 done
4528 else
4529 $as_echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534 as_fn_error "cannot compute suffix of object files: cannot compile
4535 See \`config.log' for more details." "$LINENO" 5; }
4536 fi
4537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4540 $as_echo "$ac_cv_objext" >&6; }
4541 OBJEXT=$ac_cv_objext
4542 ac_objext=$OBJEXT
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4545 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550
4551 int
4552 main ()
4553 {
4554 #ifndef __GNUC__
4555 choke me
4556 #endif
4557
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563 ac_compiler_gnu=yes
4564 else
4565 ac_compiler_gnu=no
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4573 if test $ac_compiler_gnu = yes; then
4574 GCC=yes
4575 else
4576 GCC=
4577 fi
4578 ac_test_CFLAGS=${CFLAGS+set}
4579 ac_save_CFLAGS=$CFLAGS
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4582 if test "${ac_cv_prog_cc_g+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 ac_save_c_werror_flag=$ac_c_werror_flag
4586 ac_c_werror_flag=yes
4587 ac_cv_prog_cc_g=no
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_prog_cc_g=yes
4602 else
4603 CFLAGS=""
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606
4607 int
4608 main ()
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616
4617 else
4618 ac_c_werror_flag=$ac_save_c_werror_flag
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4642 $as_echo "$ac_cv_prog_cc_g" >&6; }
4643 if test "$ac_test_CFLAGS" = set; then
4644 CFLAGS=$ac_save_CFLAGS
4645 elif test $ac_cv_prog_cc_g = yes; then
4646 if test "$GCC" = yes; then
4647 CFLAGS="-g -O2"
4648 else
4649 CFLAGS="-g"
4650 fi
4651 else
4652 if test "$GCC" = yes; then
4653 CFLAGS="-O2"
4654 else
4655 CFLAGS=
4656 fi
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_cv_prog_cc_c89=no
4664 ac_save_CC=$CC
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <stdarg.h>
4668 #include <stdio.h>
4669 #include <sys/types.h>
4670 #include <sys/stat.h>
4671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4672 struct buf { int x; };
4673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4674 static char *e (p, i)
4675 char **p;
4676 int i;
4677 {
4678 return p[i];
4679 }
4680 static char *f (char * (*g) (char **, int), char **p, ...)
4681 {
4682 char *s;
4683 va_list v;
4684 va_start (v,p);
4685 s = g (p, va_arg (v,int));
4686 va_end (v);
4687 return s;
4688 }
4689
4690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4691 function prototypes and stuff, but not '\xHH' hex character constants.
4692 These don't provoke an error unfortunately, instead are silently treated
4693 as 'x'. The following induces an error, until -std is added to get
4694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4695 array size at least. It's necessary to write '\x00'==0 to get something
4696 that's true only with -std. */
4697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4698
4699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4700 inside strings and character constants. */
4701 #define FOO(x) 'x'
4702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4703
4704 int test (int i, double x);
4705 struct s1 {int (*f) (int a);};
4706 struct s2 {int (*f) (double a);};
4707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4708 int argc;
4709 char **argv;
4710 int
4711 main ()
4712 {
4713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4720 do
4721 CC="$ac_save_CC $ac_arg"
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_cv_prog_cc_c89=$ac_arg
4724 fi
4725 rm -f core conftest.err conftest.$ac_objext
4726 test "x$ac_cv_prog_cc_c89" != "xno" && break
4727 done
4728 rm -f conftest.$ac_ext
4729 CC=$ac_save_CC
4730
4731 fi
4732 # AC_CACHE_VAL
4733 case "x$ac_cv_prog_cc_c89" in
4734 x)
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736 $as_echo "none needed" >&6; } ;;
4737 xno)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4739 $as_echo "unsupported" >&6; } ;;
4740 *)
4741 CC="$CC $ac_cv_prog_cc_c89"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4744 esac
4745 if test "x$ac_cv_prog_cc_c89" != xno; then :
4746
4747 fi
4748
4749 ac_ext=c
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754
4755 ac_ext=cpp
4756 ac_cpp='$CXXCPP $CPPFLAGS'
4757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4760 if test -z "$CXX"; then
4761 if test -n "$CCC"; then
4762 CXX=$CCC
4763 else
4764 if test -n "$ac_tool_prefix"; then
4765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4766 do
4767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_CXX+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$CXX"; then
4775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788 done
4789 done
4790 IFS=$as_save_IFS
4791
4792 fi
4793 fi
4794 CXX=$ac_cv_prog_CXX
4795 if test -n "$CXX"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4797 $as_echo "$CXX" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802
4803
4804 test -n "$CXX" && break
4805 done
4806 fi
4807 if test -z "$CXX"; then
4808 ac_ct_CXX=$CXX
4809 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4810 do
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$ac_ct_CXX"; then
4819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_ac_ct_CXX="$ac_prog"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4839 if test -n "$ac_ct_CXX"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4841 $as_echo "$ac_ct_CXX" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 test -n "$ac_ct_CXX" && break
4849 done
4850
4851 if test "x$ac_ct_CXX" = x; then
4852 CXX="g++"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860 CXX=$ac_ct_CXX
4861 fi
4862 fi
4863
4864 fi
4865 fi
4866 # Provide some information about the compiler.
4867 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4868 set X $ac_compile
4869 ac_compiler=$2
4870 for ac_option in --version -v -V -qversion; do
4871 { { ac_try="$ac_compiler $ac_option >&5"
4872 case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877 $as_echo "$ac_try_echo"; } >&5
4878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4879 ac_status=$?
4880 if test -s conftest.err; then
4881 sed '10a\
4882 ... rest of stderr output deleted ...
4883 10q' conftest.err >conftest.er1
4884 cat conftest.er1 >&5
4885 rm -f conftest.er1 conftest.err
4886 fi
4887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888 test $ac_status = 0; }
4889 done
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4892 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4893 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898
4899 int
4900 main ()
4901 {
4902 #ifndef __GNUC__
4903 choke me
4904 #endif
4905
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_cxx_try_compile "$LINENO"; then :
4911 ac_compiler_gnu=yes
4912 else
4913 ac_compiler_gnu=no
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4917
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4920 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4921 if test $ac_compiler_gnu = yes; then
4922 GXX=yes
4923 else
4924 GXX=
4925 fi
4926 ac_test_CXXFLAGS=${CXXFLAGS+set}
4927 ac_save_CXXFLAGS=$CXXFLAGS
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4929 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4930 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4934 ac_cxx_werror_flag=yes
4935 ac_cv_prog_cxx_g=no
4936 CXXFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main ()
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949 ac_cv_prog_cxx_g=yes
4950 else
4951 CXXFLAGS=""
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954
4955 int
4956 main ()
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_cxx_try_compile "$LINENO"; then :
4964
4965 else
4966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4967 CXXFLAGS="-g"
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970
4971 int
4972 main ()
4973 {
4974
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 if ac_fn_cxx_try_compile "$LINENO"; then :
4980 ac_cv_prog_cxx_g=yes
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4990 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4991 if test "$ac_test_CXXFLAGS" = set; then
4992 CXXFLAGS=$ac_save_CXXFLAGS
4993 elif test $ac_cv_prog_cxx_g = yes; then
4994 if test "$GXX" = yes; then
4995 CXXFLAGS="-g -O2"
4996 else
4997 CXXFLAGS="-g"
4998 fi
4999 else
5000 if test "$GXX" = yes; then
5001 CXXFLAGS="-O2"
5002 else
5003 CXXFLAGS=
5004 fi
5005 fi
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011
5012
5013 # We must set the default linker to the linker used by gcc for the correct
5014 # operation of libtool. If LD is not defined and we are using gcc, try to
5015 # set the LD default to the ld used by gcc.
5016 if test -z "$LD"; then
5017 if test "$GCC" = yes; then
5018 case $build in
5019 *-*-mingw*)
5020 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5021 *)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5023 esac
5024 case $gcc_prog_ld in
5025 # Accept absolute paths.
5026 [\\/]* | [A-Za-z]:[\\/]*)
5027 LD="$gcc_prog_ld" ;;
5028 esac
5029 fi
5030 fi
5031
5032 # Check whether -static-libstdc++ -static-libgcc is supported.
5033 have_static_libs=no
5034 if test "$GCC" = yes; then
5035 saved_LDFLAGS="$LDFLAGS"
5036
5037 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5039 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5040 ac_ext=cpp
5041 ac_cpp='$CXXCPP $CPPFLAGS'
5042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5045
5046
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049
5050 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5051 #error -static-libstdc++ not implemented
5052 #endif
5053 int main() {}
5054 _ACEOF
5055 if ac_fn_cxx_try_link "$LINENO"; then :
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057 $as_echo "yes" >&6; }; have_static_libs=yes
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5064 ac_ext=c
5065 ac_cpp='$CPP $CPPFLAGS'
5066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069
5070
5071 LDFLAGS="$saved_LDFLAGS"
5072 fi
5073
5074
5075
5076
5077 if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5079 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$GNATBIND"; then
5086 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5098 fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 GNATBIND=$ac_cv_prog_GNATBIND
5106 if test -n "$GNATBIND"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5108 $as_echo "$GNATBIND" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113
5114
5115 fi
5116 if test -z "$ac_cv_prog_GNATBIND"; then
5117 ac_ct_GNATBIND=$GNATBIND
5118 # Extract the first word of "gnatbind", so it can be a program name with args.
5119 set dummy gnatbind; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$ac_ct_GNATBIND"; then
5126 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139 done
5140 done
5141 IFS=$as_save_IFS
5142
5143 fi
5144 fi
5145 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5146 if test -n "$ac_ct_GNATBIND"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5148 $as_echo "$ac_ct_GNATBIND" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5152 fi
5153
5154 if test "x$ac_ct_GNATBIND" = x; then
5155 GNATBIND="no"
5156 else
5157 case $cross_compiling:$ac_tool_warned in
5158 yes:)
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161 ac_tool_warned=yes ;;
5162 esac
5163 GNATBIND=$ac_ct_GNATBIND
5164 fi
5165 else
5166 GNATBIND="$ac_cv_prog_GNATBIND"
5167 fi
5168
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$GNATMAKE"; then
5178 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 GNATMAKE=$ac_cv_prog_GNATMAKE
5198 if test -n "$GNATMAKE"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5200 $as_echo "$GNATMAKE" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_GNATMAKE"; then
5209 ac_ct_GNATMAKE=$GNATMAKE
5210 # Extract the first word of "gnatmake", so it can be a program name with args.
5211 set dummy gnatmake; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_GNATMAKE"; then
5218 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5238 if test -n "$ac_ct_GNATMAKE"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5240 $as_echo "$ac_ct_GNATMAKE" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246 if test "x$ac_ct_GNATMAKE" = x; then
5247 GNATMAKE="no"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255 GNATMAKE=$ac_ct_GNATMAKE
5256 fi
5257 else
5258 GNATMAKE="$ac_cv_prog_GNATMAKE"
5259 fi
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5262 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5263 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat >conftest.adb <<EOF
5267 procedure conftest is begin null; end conftest;
5268 EOF
5269 acx_cv_cc_gcc_supports_ada=no
5270 # There is a bug in old released versions of GCC which causes the
5271 # driver to exit successfully when the appropriate language module
5272 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5273 # Therefore we must check for the error message as well as an
5274 # unsuccessful exit.
5275 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5276 # given a .adb file, but produce no object file. So we must check
5277 # if an object file was really produced to guard against this.
5278 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5279 if test x"$errors" = x && test -f conftest.$ac_objext; then
5280 acx_cv_cc_gcc_supports_ada=yes
5281 fi
5282 rm -f conftest.*
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5285 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5286
5287 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5288 have_gnat=yes
5289 else
5290 have_gnat=no
5291 fi
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5294 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5295 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 echo abfoo >t1
5299 echo cdfoo >t2
5300 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5301 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5302 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5303 :
5304 else
5305 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5306 fi
5307 fi
5308 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5309 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5310 :
5311 else
5312 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5313 fi
5314 fi
5315 rm t1 t2
5316
5317 fi
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5319 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5320 do_compare="$gcc_cv_prog_cmp_skip"
5321
5322
5323
5324 # Check whether --enable-bootstrap was given.
5325 if test "${enable_bootstrap+set}" = set; then :
5326 enableval=$enable_bootstrap;
5327 else
5328 enable_bootstrap=default
5329 fi
5330
5331
5332 # Issue errors and warnings for invalid/strange bootstrap combinations.
5333 if test -r $srcdir/gcc/configure; then
5334 have_compiler=yes
5335 else
5336 have_compiler=no
5337 fi
5338
5339 case "$have_compiler:$host:$target:$enable_bootstrap" in
5340 *:*:*:no) ;;
5341
5342 # Default behavior. Enable bootstrap if we have a compiler
5343 # and we are in a native configuration.
5344 yes:$build:$build:default)
5345 enable_bootstrap=yes ;;
5346
5347 *:*:*:default)
5348 enable_bootstrap=no ;;
5349
5350 # We have a compiler and we are in a native configuration, bootstrap is ok
5351 yes:$build:$build:yes)
5352 ;;
5353
5354 # Other configurations, but we have a compiler. Assume the user knows
5355 # what he's doing.
5356 yes:*:*:yes)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5358 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5359 ;;
5360
5361 # No compiler: if they passed --enable-bootstrap explicitly, fail
5362 no:*:*:yes)
5363 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5364
5365 # Fail if wrong command line
5366 *)
5367 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5368 ;;
5369 esac
5370
5371 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5372 # C++98 compiler can still start the bootstrap.
5373 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5374 CXX="$CXX -std=gnu++98"
5375 fi
5376
5377 # Used for setting $lt_cv_objdir
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5379 $as_echo_n "checking for objdir... " >&6; }
5380 if test "${lt_cv_objdir+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 rm -f .libs 2>/dev/null
5384 mkdir .libs 2>/dev/null
5385 if test -d .libs; then
5386 lt_cv_objdir=.libs
5387 else
5388 # MS-DOS does not allow filenames that begin with a dot.
5389 lt_cv_objdir=_libs
5390 fi
5391 rmdir .libs 2>/dev/null
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5394 $as_echo "$lt_cv_objdir" >&6; }
5395 objdir=$lt_cv_objdir
5396
5397
5398
5399
5400
5401 cat >>confdefs.h <<_ACEOF
5402 #define LT_OBJDIR "$lt_cv_objdir/"
5403 _ACEOF
5404
5405
5406
5407 # Check for GMP, MPFR and MPC
5408 gmplibs="-lmpc -lmpfr -lgmp"
5409 gmpinc=
5410 have_gmp=no
5411
5412 # Specify a location for mpc
5413 # check for this first so it ends up on the link line before mpfr.
5414
5415 # Check whether --with-mpc was given.
5416 if test "${with_mpc+set}" = set; then :
5417 withval=$with_mpc;
5418 fi
5419
5420
5421 # Check whether --with-mpc-include was given.
5422 if test "${with_mpc_include+set}" = set; then :
5423 withval=$with_mpc_include;
5424 fi
5425
5426
5427 # Check whether --with-mpc-lib was given.
5428 if test "${with_mpc_lib+set}" = set; then :
5429 withval=$with_mpc_lib;
5430 fi
5431
5432
5433 if test "x$with_mpc" != x; then
5434 gmplibs="-L$with_mpc/lib $gmplibs"
5435 gmpinc="-I$with_mpc/include $gmpinc"
5436 fi
5437 if test "x$with_mpc_include" != x; then
5438 gmpinc="-I$with_mpc_include $gmpinc"
5439 fi
5440 if test "x$with_mpc_lib" != x; then
5441 gmplibs="-L$with_mpc_lib $gmplibs"
5442 fi
5443 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5444 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5445 gmpinc='-I$$s/mpc/src '"$gmpinc"
5446 # Do not test the mpc version. Assume that it is sufficient, since
5447 # it is in the source tree, and the library has not been built yet
5448 # but it would be included on the link line in the version check below
5449 # hence making the test fail.
5450 have_gmp=yes
5451 fi
5452
5453 # Specify a location for mpfr
5454 # check for this first so it ends up on the link line before gmp.
5455
5456 # Check whether --with-mpfr-dir was given.
5457 if test "${with_mpfr_dir+set}" = set; then :
5458 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5459 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5460 fi
5461
5462
5463
5464 # Check whether --with-mpfr was given.
5465 if test "${with_mpfr+set}" = set; then :
5466 withval=$with_mpfr;
5467 fi
5468
5469
5470 # Check whether --with-mpfr-include was given.
5471 if test "${with_mpfr_include+set}" = set; then :
5472 withval=$with_mpfr_include;
5473 fi
5474
5475
5476 # Check whether --with-mpfr-lib was given.
5477 if test "${with_mpfr_lib+set}" = set; then :
5478 withval=$with_mpfr_lib;
5479 fi
5480
5481
5482 if test "x$with_mpfr" != x; then
5483 gmplibs="-L$with_mpfr/lib $gmplibs"
5484 gmpinc="-I$with_mpfr/include $gmpinc"
5485 fi
5486 if test "x$with_mpfr_include" != x; then
5487 gmpinc="-I$with_mpfr_include $gmpinc"
5488 fi
5489 if test "x$with_mpfr_lib" != x; then
5490 gmplibs="-L$with_mpfr_lib $gmplibs"
5491 fi
5492 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5493 # MPFR v3.1.0 moved the sources into a src sub-directory.
5494 if ! test -d ${srcdir}/mpfr/src; then
5495 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5496 fi
5497 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5498 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5499 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5500 # Do not test the mpfr version. Assume that it is sufficient, since
5501 # it is in the source tree, and the library has not been built yet
5502 # but it would be included on the link line in the version check below
5503 # hence making the test fail.
5504 have_gmp=yes
5505 fi
5506
5507 # Specify a location for gmp
5508
5509 # Check whether --with-gmp-dir was given.
5510 if test "${with_gmp_dir+set}" = set; then :
5511 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5512 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5513 fi
5514
5515
5516
5517 # Check whether --with-gmp was given.
5518 if test "${with_gmp+set}" = set; then :
5519 withval=$with_gmp;
5520 fi
5521
5522
5523 # Check whether --with-gmp-include was given.
5524 if test "${with_gmp_include+set}" = set; then :
5525 withval=$with_gmp_include;
5526 fi
5527
5528
5529 # Check whether --with-gmp-lib was given.
5530 if test "${with_gmp_lib+set}" = set; then :
5531 withval=$with_gmp_lib;
5532 fi
5533
5534
5535
5536 if test "x$with_gmp" != x; then
5537 gmplibs="-L$with_gmp/lib $gmplibs"
5538 gmpinc="-I$with_gmp/include $gmpinc"
5539 fi
5540 if test "x$with_gmp_include" != x; then
5541 gmpinc="-I$with_gmp_include $gmpinc"
5542 fi
5543 if test "x$with_gmp_lib" != x; then
5544 gmplibs="-L$with_gmp_lib $gmplibs"
5545 fi
5546 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5547 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5548 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5549 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5550 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5551 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5552 # Do not test the gmp version. Assume that it is sufficient, since
5553 # it is in the source tree, and the library has not been built yet
5554 # but it would be included on the link line in the version check below
5555 # hence making the test fail.
5556 have_gmp=yes
5557 fi
5558
5559 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5560 have_gmp=yes
5561 saved_CFLAGS="$CFLAGS"
5562 CFLAGS="$CFLAGS $gmpinc"
5563 # Check for the recommended and required versions of GMP.
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5565 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5566
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include "gmp.h"
5570 int
5571 main ()
5572 {
5573
5574 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5575 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5576 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5577 choke me
5578 #endif
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <gmp.h>
5588 int
5589 main ()
5590 {
5591
5592 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5593 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5594 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5595 choke me
5596 #endif
5597
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5604 $as_echo "yes" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5607 $as_echo "buggy but acceptable" >&6; }
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }; have_gmp=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615
5616 # If we have GMP, check the MPFR version.
5617 if test x"$have_gmp" = xyes; then
5618 # Check for the recommended and required versions of MPFR.
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5620 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <gmp.h>
5624 #include <mpfr.h>
5625 int
5626 main ()
5627 {
5628
5629 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5630 choke me
5631 #endif
5632
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 #include <gmp.h>
5641 #include <mpfr.h>
5642 int
5643 main ()
5644 {
5645
5646 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5647 choke me
5648 #endif
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656 $as_echo "yes" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5659 $as_echo "buggy but acceptable" >&6; }
5660 fi
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }; have_gmp=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668
5669 # Check for the MPC header version.
5670 if test x"$have_gmp" = xyes ; then
5671 # Check for the recommended and required versions of MPC.
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5673 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <mpc.h>
5677 int
5678 main ()
5679 {
5680
5681 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5682 choke me
5683 #endif
5684
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <mpc.h>
5693 int
5694 main ()
5695 {
5696
5697 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5698 choke me
5699 #endif
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_compile "$LINENO"; then :
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707 $as_echo "yes" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5710 $as_echo "buggy but acceptable" >&6; }
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }; have_gmp=no
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 fi
5719
5720 # Now check the MPFR library.
5721 if test x"$have_gmp" = xyes; then
5722 saved_LIBS="$LIBS"
5723 LIBS="$LIBS $gmplibs"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5725 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <mpc.h>
5729 int
5730 main ()
5731 {
5732
5733 mpfr_t n;
5734 mpfr_t x;
5735 mpc_t c;
5736 int t;
5737 mpfr_init (n);
5738 mpfr_init (x);
5739 mpfr_atan2 (n, n, x, GMP_RNDN);
5740 mpfr_erfc (n, x, GMP_RNDN);
5741 mpfr_subnormalize (x, t, GMP_RNDN);
5742 mpfr_clear(n);
5743 mpfr_clear(x);
5744 mpc_init2 (c, 53);
5745 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5746 mpc_cosh (c, c, MPC_RNDNN);
5747 mpc_pow (c, c, c, MPC_RNDNN);
5748 mpc_acosh (c, c, MPC_RNDNN);
5749 mpc_clear (c);
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"; then :
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5757 $as_echo "yes" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }; have_gmp=no
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext \
5763 conftest$ac_exeext conftest.$ac_ext
5764 LIBS="$saved_LIBS"
5765 fi
5766
5767 CFLAGS="$saved_CFLAGS"
5768
5769 # The library versions listed in the error message below should match
5770 # the HARD-minimums enforced above.
5771 if test x$have_gmp != xyes; then
5772 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5773 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5774 their locations. Source code for these libraries can be found at
5775 their respective hosting sites as well as at
5776 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5777 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5778 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5779 make sure that you have installed both the libraries and the header
5780 files. They may be located in separate packages." "$LINENO" 5
5781 fi
5782 fi
5783
5784 # Flags needed for both GMP, MPFR and/or MPC.
5785
5786
5787
5788
5789
5790
5791
5792 # Libraries to use for stage1 or when not bootstrapping.
5793
5794 # Check whether --with-stage1-libs was given.
5795 if test "${with_stage1_libs+set}" = set; then :
5796 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5797 stage1_libs=
5798 else
5799 stage1_libs=$withval
5800 fi
5801 else
5802 stage1_libs=
5803 fi
5804
5805
5806
5807 # Linker flags to use for stage1 or when not bootstrapping.
5808
5809 # Check whether --with-stage1-ldflags was given.
5810 if test "${with_stage1_ldflags+set}" = set; then :
5811 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5812 stage1_ldflags=
5813 else
5814 stage1_ldflags=$withval
5815 fi
5816 else
5817 stage1_ldflags=
5818 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5819 # if supported. But if the user explicitly specified the libraries to use,
5820 # trust that they are doing what they want.
5821 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5822 stage1_ldflags="-static-libstdc++ -static-libgcc"
5823 fi
5824 fi
5825
5826
5827
5828 # Libraries to use for stage2 and later builds.
5829
5830 # Check whether --with-boot-libs was given.
5831 if test "${with_boot_libs+set}" = set; then :
5832 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5833 poststage1_libs=
5834 else
5835 poststage1_libs=$withval
5836 fi
5837 else
5838 poststage1_libs=
5839 fi
5840
5841
5842
5843 # Linker flags to use for stage2 and later builds.
5844
5845 # Check whether --with-boot-ldflags was given.
5846 if test "${with_boot_ldflags+set}" = set; then :
5847 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5848 poststage1_ldflags=
5849 else
5850 poststage1_ldflags=$withval
5851 fi
5852 else
5853 poststage1_ldflags=
5854 # In stages 2 and 3, default to linking libstdc++ and libgcc
5855 # statically. But if the user explicitly specified the libraries to
5856 # use, trust that they are doing what they want.
5857 if test "$poststage1_libs" = ""; then
5858 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5859 fi
5860 fi
5861
5862
5863
5864 # GCC GRAPHITE dependency isl.
5865 # Basic setup is inlined here, actual checks are in config/isl.m4
5866
5867
5868 # Check whether --with-isl was given.
5869 if test "${with_isl+set}" = set; then :
5870 withval=$with_isl;
5871 fi
5872
5873
5874 # Treat --without-isl as a request to disable
5875 # GRAPHITE support and skip all following checks.
5876 if test "x$with_isl" != "xno"; then
5877 # Check for isl
5878
5879
5880 # Check whether --with-isl-include was given.
5881 if test "${with_isl_include+set}" = set; then :
5882 withval=$with_isl_include;
5883 fi
5884
5885
5886 # Check whether --with-isl-lib was given.
5887 if test "${with_isl_lib+set}" = set; then :
5888 withval=$with_isl_lib;
5889 fi
5890
5891
5892 # Check whether --enable-isl-version-check was given.
5893 if test "${enable_isl_version_check+set}" = set; then :
5894 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5895 else
5896 ENABLE_ISL_CHECK=yes
5897 fi
5898
5899
5900 # Initialize isllibs and islinc.
5901 case $with_isl in
5902 no)
5903 isllibs=
5904 islinc=
5905 ;;
5906 "" | yes)
5907 ;;
5908 *)
5909 isllibs="-L$with_isl/lib"
5910 islinc="-I$with_isl/include"
5911 ;;
5912 esac
5913 if test "x${with_isl_include}" != x ; then
5914 islinc="-I$with_isl_include"
5915 fi
5916 if test "x${with_isl_lib}" != x; then
5917 isllibs="-L$with_isl_lib"
5918 fi
5919 if test "x${islinc}" = x && test "x${isllibs}" = x \
5920 && test -d ${srcdir}/isl; then
5921 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5922 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5923 ENABLE_ISL_CHECK=no
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5925 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5926 fi
5927
5928 isllibs="${isllibs} -lisl"
5929
5930
5931
5932 if test "${ENABLE_ISL_CHECK}" = yes ; then
5933 _isl_saved_CFLAGS=$CFLAGS
5934 _isl_saved_LDFLAGS=$LDFLAGS
5935 _isl_saved_LIBS=$LIBS
5936
5937 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5938 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5939 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5942 $as_echo_n "checking for isl 0.15 or later... " >&6; }
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include <isl/schedule.h>
5946 int
5947 main ()
5948 {
5949 isl_options_set_schedule_serialize_sccs (NULL, 0);
5950 ;
5951 return 0;
5952 }
5953 _ACEOF
5954 if ac_fn_c_try_link "$LINENO"; then :
5955 gcc_cv_isl=yes
5956 else
5957 gcc_cv_isl=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext \
5960 conftest$ac_exeext conftest.$ac_ext
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5962 $as_echo "$gcc_cv_isl" >&6; }
5963
5964 if test "${gcc_cv_isl}" = no ; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
5966 $as_echo "required isl version is 0.15 or later" >&6; }
5967 fi
5968
5969 CFLAGS=$_isl_saved_CFLAGS
5970 LDFLAGS=$_isl_saved_LDFLAGS
5971 LIBS=$_isl_saved_LIBS
5972 fi
5973
5974
5975
5976
5977
5978
5979 if test "x${with_isl}" = xno; then
5980 graphite_requested=no
5981 elif test "x${with_isl}" != x \
5982 || test "x${with_isl_include}" != x \
5983 || test "x${with_isl_lib}" != x ; then
5984 graphite_requested=yes
5985 else
5986 graphite_requested=no
5987 fi
5988
5989
5990
5991 if test "${gcc_cv_isl}" = no ; then
5992 isllibs=
5993 islinc=
5994 fi
5995
5996 if test "${graphite_requested}" = yes \
5997 && test "x${isllibs}" = x \
5998 && test "x${islinc}" = x ; then
5999
6000 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6001 fi
6002
6003
6004 fi
6005
6006 # If the isl check failed, disable builds of in-tree variant of isl
6007 if test "x$with_isl" = xno ||
6008 test "x$gcc_cv_isl" = xno; then
6009 noconfigdirs="$noconfigdirs isl"
6010 islinc=
6011 fi
6012
6013
6014
6015
6016 # Check for LTO support.
6017 # Check whether --enable-lto was given.
6018 if test "${enable_lto+set}" = set; then :
6019 enableval=$enable_lto; enable_lto=$enableval
6020 else
6021 enable_lto=yes; default_enable_lto=yes
6022 fi
6023
6024
6025
6026
6027
6028 target_elf=no
6029 case $target in
6030 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6031 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6032 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6033 nvptx-*-none)
6034 target_elf=no
6035 ;;
6036 *)
6037 target_elf=yes
6038 ;;
6039 esac
6040
6041 if test $target_elf = yes; then :
6042 # ELF platforms build the lto-plugin always.
6043 case $target in
6044 m68010-*)
6045 build_lto_plugin=no;;
6046 *)
6047 build_lto_plugin=yes;;
6048 esac
6049
6050 else
6051 if test x"$default_enable_lto" = x"yes" ; then
6052 case $target in
6053 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6054 # On other non-ELF platforms, LTO has yet to be validated.
6055 *) enable_lto=no ;;
6056 esac
6057 else
6058 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6059 # It would also be nice to check the binutils support, but we don't
6060 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6061 # warn during gcc/ subconfigure; unless you're bootstrapping with
6062 # -flto it won't be needed until after installation anyway.
6063 case $target in
6064 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6065 *) if test x"$enable_lto" = x"yes"; then
6066 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6067 fi
6068 ;;
6069 esac
6070 fi
6071 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6072 # Build it unless LTO was explicitly disabled.
6073 case $target in
6074 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6075 *) ;;
6076 esac
6077
6078 fi
6079
6080
6081 # Check whether --enable-linker-plugin-configure-flags was given.
6082 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6083 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6084 else
6085 extra_linker_plugin_configure_flags=
6086 fi
6087
6088
6089 # Check whether --enable-linker-plugin-flags was given.
6090 if test "${enable_linker_plugin_flags+set}" = set; then :
6091 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6092 else
6093 extra_linker_plugin_flags=
6094 fi
6095
6096
6097
6098
6099 # By default, C and C++ are the only stage 1 languages.
6100 stage1_languages=,c,
6101
6102 # Target libraries that we bootstrap.
6103 bootstrap_target_libs=,target-libgcc,
6104
6105 # Figure out what language subdirectories are present.
6106 # Look if the user specified --enable-languages="..."; if not, use
6107 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6108 # go away some day.
6109 # NB: embedded tabs in this IF block -- do not untabify
6110 if test -d ${srcdir}/gcc; then
6111 if test x"${enable_languages+set}" != xset; then
6112 if test x"${LANGUAGES+set}" = xset; then
6113 enable_languages="${LANGUAGES}"
6114 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6115 else
6116 enable_languages=all
6117 fi
6118 else
6119 if test x"${enable_languages}" = x ||
6120 test x"${enable_languages}" = xyes;
6121 then
6122 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6123 exit 1
6124 fi
6125 fi
6126 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6127
6128 # 'f95' is the old name for the 'fortran' language. We issue a warning
6129 # and make the substitution.
6130 case ,${enable_languages}, in
6131 *,f95,*)
6132 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6133 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6134 ;;
6135 esac
6136
6137 # If bootstrapping, C++ must be enabled.
6138 case ",$enable_languages,:$enable_bootstrap" in
6139 *,c++,*:*) ;;
6140 *:yes)
6141 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6142 enable_languages="${enable_languages},c++"
6143 else
6144 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6145 fi
6146 ;;
6147 esac
6148
6149 # First scan to see if an enabled language requires some other language.
6150 # We assume that a given config-lang.in will list all the language
6151 # front ends it requires, even if some are required indirectly.
6152 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6153 case ${lang_frag} in
6154 ..) ;;
6155 # The odd quoting in the next line works around
6156 # an apparent bug in bash 1.12 on linux.
6157 ${srcdir}/gcc/[*]/config-lang.in) ;;
6158 *)
6159 # From the config-lang.in, get $language, $lang_requires, and
6160 # $lang_requires_boot_languages.
6161 language=
6162 lang_requires=
6163 lang_requires_boot_languages=
6164 . ${lang_frag}
6165 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6166 case ,${enable_languages}, in
6167 *,$other,*) ;;
6168 *,all,*) ;;
6169 *,$language,*)
6170 echo " \`$other' language required by \`$language'; enabling" 1>&2
6171 enable_languages="${enable_languages},${other}"
6172 ;;
6173 esac
6174 done
6175 for other in ${lang_requires_boot_languages} ; do
6176 if test "$other" != "c"; then
6177 case ,${enable_stage1_languages}, in
6178 *,$other,*) ;;
6179 *,all,*) ;;
6180 *)
6181 case ,${enable_languages}, in
6182 *,$language,*)
6183 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6184 enable_stage1_languages="$enable_stage1_languages,${other}"
6185 ;;
6186 esac
6187 ;;
6188 esac
6189 fi
6190 done
6191 ;;
6192 esac
6193 done
6194
6195 new_enable_languages=,c,
6196
6197 # If LTO is enabled, add the LTO front end.
6198 if test "$enable_lto" = "yes" ; then
6199 case ,${enable_languages}, in
6200 *,lto,*) ;;
6201 *) enable_languages="${enable_languages},lto" ;;
6202 esac
6203 if test "${build_lto_plugin}" = "yes" ; then
6204 configdirs="$configdirs lto-plugin"
6205 fi
6206 fi
6207
6208 # If we're building an offloading compiler, add the LTO front end.
6209 if test x"$enable_as_accelerator_for" != x ; then
6210 case ,${enable_languages}, in
6211 *,lto,*) ;;
6212 *) enable_languages="${enable_languages},lto" ;;
6213 esac
6214 fi
6215
6216 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6217 potential_languages=,c,
6218
6219 enabled_target_libs=
6220 disabled_target_libs=
6221
6222 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6223 case ${lang_frag} in
6224 ..) ;;
6225 # The odd quoting in the next line works around
6226 # an apparent bug in bash 1.12 on linux.
6227 ${srcdir}/gcc/[*]/config-lang.in) ;;
6228 *)
6229 # From the config-lang.in, get $language, $target_libs,
6230 # $lang_dirs, $boot_language, and $build_by_default
6231 language=
6232 target_libs=
6233 lang_dirs=
6234 subdir_requires=
6235 boot_language=no
6236 build_by_default=yes
6237 . ${lang_frag}
6238 if test x${language} = x; then
6239 echo "${lang_frag} doesn't set \$language." 1>&2
6240 exit 1
6241 fi
6242
6243 if test "$language" = "c++"; then
6244 boot_language=yes
6245 fi
6246
6247 add_this_lang=no
6248 case ,${enable_languages}, in
6249 *,${language},*)
6250 # Language was explicitly selected; include it
6251 # unless it is C, which is enabled by default.
6252 if test "$language" != "c"; then
6253 add_this_lang=yes
6254 fi
6255 ;;
6256 *,all,*)
6257 # 'all' was selected, select it if it is a default language
6258 if test "$language" != "c"; then
6259 add_this_lang=${build_by_default}
6260 fi
6261 ;;
6262 esac
6263
6264 # Disable languages that need other directories if these aren't available.
6265 for i in $subdir_requires; do
6266 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6267 case ,${enable_languages}, in
6268 *,${language},*)
6269 # Specifically requested language; tell them.
6270 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6271 ;;
6272 *)
6273 # Silently disable.
6274 add_this_lang=unsupported
6275 ;;
6276 esac
6277 done
6278
6279 # Disable Ada if no preexisting GNAT is available.
6280 case ,${enable_languages},:${language}:${have_gnat} in
6281 *,${language},*:ada:no)
6282 # Specifically requested language; tell them.
6283 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6284 ;;
6285 *:ada:no)
6286 # Silently disable.
6287 add_this_lang=unsupported
6288 ;;
6289 esac
6290
6291 # Disable a language that is unsupported by the target.
6292 case " $unsupported_languages " in
6293 *" $language "*)
6294 add_this_lang=unsupported
6295 ;;
6296 esac
6297
6298 case $add_this_lang in
6299 unsupported)
6300 # Remove language-dependent dirs.
6301 disabled_target_libs="$disabled_target_libs $target_libs"
6302 noconfigdirs="$noconfigdirs $lang_dirs"
6303 ;;
6304 no)
6305 # Remove language-dependent dirs; still show language as supported.
6306 disabled_target_libs="$disabled_target_libs $target_libs"
6307 noconfigdirs="$noconfigdirs $lang_dirs"
6308 potential_languages="${potential_languages}${language},"
6309 ;;
6310 yes)
6311 new_enable_languages="${new_enable_languages}${language},"
6312 potential_languages="${potential_languages}${language},"
6313 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6314 enabled_target_libs="$enabled_target_libs $target_libs"
6315 case "${boot_language}:,$enable_stage1_languages," in
6316 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6317 # Add to (comma-separated) list of stage 1 languages.
6318 case ",$stage1_languages," in
6319 *,$language,* | ,yes, | ,all,) ;;
6320 *) stage1_languages="${stage1_languages}${language}," ;;
6321 esac
6322 # We need to bootstrap any supporting libraries.
6323 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6324 ;;
6325 esac
6326 ;;
6327 esac
6328 ;;
6329 esac
6330 done
6331
6332 # Add target libraries which are only needed for disabled languages
6333 # to noconfigdirs.
6334 if test -n "$disabled_target_libs"; then
6335 for dir in $disabled_target_libs; do
6336 case " $enabled_target_libs " in
6337 *" ${dir} "*) ;;
6338 *) noconfigdirs="$noconfigdirs $dir" ;;
6339 esac
6340 done
6341 fi
6342
6343 # Check whether --enable-stage1-languages was given.
6344 if test "${enable_stage1_languages+set}" = set; then :
6345 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6346 ,no,|,,)
6347 # Set it to something that will have no effect in the loop below
6348 enable_stage1_languages=c ;;
6349 ,yes,)
6350 enable_stage1_languages=`echo $new_enable_languages | \
6351 sed -e "s/^,//" -e "s/,$//" ` ;;
6352 *,all,*)
6353 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6354 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6355 esac
6356
6357 # Add "good" languages from enable_stage1_languages to stage1_languages,
6358 # while "bad" languages go in missing_languages. Leave no duplicates.
6359 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6360 case $potential_languages in
6361 *,$i,*)
6362 case $stage1_languages in
6363 *,$i,*) ;;
6364 *) stage1_languages="$stage1_languages$i," ;;
6365 esac ;;
6366 *)
6367 case $missing_languages in
6368 *,$i,*) ;;
6369 *) missing_languages="$missing_languages$i," ;;
6370 esac ;;
6371 esac
6372 done
6373 fi
6374
6375
6376 # Remove leading/trailing commas that were added for simplicity
6377 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6379 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6380 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6381
6382 if test "x$missing_languages" != x; then
6383 as_fn_error "
6384 The following requested languages could not be built: ${missing_languages}
6385 Supported languages are: ${potential_languages}" "$LINENO" 5
6386 fi
6387 if test "x$new_enable_languages" != "x$enable_languages"; then
6388 echo The following languages will be built: ${new_enable_languages}
6389 enable_languages="$new_enable_languages"
6390 fi
6391
6392
6393 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6394 fi
6395
6396 # Handle --disable-<component> generically.
6397 for dir in $configdirs $build_configdirs $target_configdirs ; do
6398 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6399 varname=`echo $dirname | sed -e s/+/_/g`
6400 if eval test x\${enable_${varname}} "=" xno ; then
6401 noconfigdirs="$noconfigdirs $dir"
6402 fi
6403 done
6404
6405 # Check for Boehm's garbage collector
6406 # Check whether --enable-objc-gc was given.
6407 if test "${enable_objc_gc+set}" = set; then :
6408 enableval=$enable_objc_gc;
6409 fi
6410
6411
6412 # Check whether --with-target-bdw-gc was given.
6413 if test "${with_target_bdw_gc+set}" = set; then :
6414 withval=$with_target_bdw_gc;
6415 fi
6416
6417
6418 # Check whether --with-target-bdw-gc-include was given.
6419 if test "${with_target_bdw_gc_include+set}" = set; then :
6420 withval=$with_target_bdw_gc_include;
6421 fi
6422
6423
6424 # Check whether --with-target-bdw-gc-lib was given.
6425 if test "${with_target_bdw_gc_lib+set}" = set; then :
6426 withval=$with_target_bdw_gc_lib;
6427 fi
6428
6429
6430 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6432 $as_echo_n "checking for bdw garbage collector... " >&6; }
6433 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6435 $as_echo "using bdw-gc in default locations" >&6; }
6436 else
6437 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6438 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6439 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6440 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6441 else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6443 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6444 fi
6445 fi
6446 esac
6447
6448 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6449 case ,${enable_languages}, in
6450 *,c++,*)
6451 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6452 case "${noconfigdirs}" in
6453 *target-libstdc++-v3*)
6454 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6455 ;;
6456 *) ;;
6457 esac
6458 ;;
6459 *)
6460 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6461 ;;
6462 esac
6463
6464 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6465 # $build_configdirs and $target_configdirs.
6466 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6467
6468 notsupp=""
6469 for dir in . $skipdirs $noconfigdirs ; do
6470 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6471 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6472 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6473 if test -r $srcdir/$dirname/configure ; then
6474 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6475 true
6476 else
6477 notsupp="$notsupp $dir"
6478 fi
6479 fi
6480 fi
6481 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6482 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6483 if test -r $srcdir/$dirname/configure ; then
6484 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6485 true
6486 else
6487 notsupp="$notsupp $dir"
6488 fi
6489 fi
6490 fi
6491 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6493 if test -r $srcdir/$dirname/configure ; then
6494 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6495 true
6496 else
6497 notsupp="$notsupp $dir"
6498 fi
6499 fi
6500 fi
6501 done
6502
6503 # Quietly strip out all directories which aren't configurable in this tree.
6504 # This relies on all configurable subdirectories being autoconfiscated, which
6505 # is now the case.
6506 build_configdirs_all="$build_configdirs"
6507 build_configdirs=
6508 for i in ${build_configdirs_all} ; do
6509 j=`echo $i | sed -e s/build-//g`
6510 if test -f ${srcdir}/$j/configure ; then
6511 build_configdirs="${build_configdirs} $i"
6512 fi
6513 done
6514
6515 configdirs_all="$configdirs"
6516 configdirs=
6517 for i in ${configdirs_all} ; do
6518 if test -f ${srcdir}/$i/configure ; then
6519 configdirs="${configdirs} $i"
6520 fi
6521 done
6522
6523 target_configdirs_all="$target_configdirs"
6524 target_configdirs=
6525 for i in ${target_configdirs_all} ; do
6526 j=`echo $i | sed -e s/target-//g`
6527 if test -f ${srcdir}/$j/configure ; then
6528 target_configdirs="${target_configdirs} $i"
6529 fi
6530 done
6531
6532 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6533 # so we have to add it after the preceding checks.
6534 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6535 then
6536 case " $configdirs " in
6537 *" libiberty "*)
6538 # If we can build libiberty, we can also build libiberty-linker-plugin.
6539 configdirs="$configdirs libiberty-linker-plugin"
6540 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6541 --with-libiberty=../libiberty-linker-plugin";;
6542 *)
6543 as_fn_error "libiberty missing" "$LINENO" 5;;
6544 esac
6545 fi
6546
6547 # Sometimes we have special requirements for the host libiberty.
6548 extra_host_libiberty_configure_flags=
6549 extra_host_zlib_configure_flags=
6550 case " $configdirs " in
6551 *" lto-plugin "* | *" libcc1 "*)
6552 # When these are to be built as shared libraries, the same applies to
6553 # libiberty.
6554 extra_host_libiberty_configure_flags=--enable-shared
6555 ;;
6556 *" bfd "*)
6557 # When bfd is to be built as a shared library, the same applies to
6558 # zlib.
6559 if test "$enable_shared" = "yes"; then
6560 extra_host_zlib_configure_flags=--enable-host-shared
6561 fi
6562 ;;
6563 esac
6564
6565
6566
6567 # Produce a warning message for the subdirs we can't configure.
6568 # This isn't especially interesting in the Cygnus tree, but in the individual
6569 # FSF releases, it's important to let people know when their machine isn't
6570 # supported by the one or two programs in a package.
6571
6572 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6573 # If $appdirs is non-empty, at least one of those directories must still
6574 # be configured, or we error out. (E.g., if the gas release supports a
6575 # specified target in some subdirs but not the gas subdir, we shouldn't
6576 # pretend that all is well.)
6577 if test -n "$appdirs" ; then
6578 for dir in $appdirs ; do
6579 if test -r $dir/Makefile.in ; then
6580 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6581 appdirs=""
6582 break
6583 fi
6584 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6585 appdirs=""
6586 break
6587 fi
6588 fi
6589 done
6590 if test -n "$appdirs" ; then
6591 echo "*** This configuration is not supported by this package." 1>&2
6592 exit 1
6593 fi
6594 fi
6595 # Okay, some application will build, or we don't care to check. Still
6596 # notify of subdirs not getting built.
6597 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6598 echo " ${notsupp}" 1>&2
6599 echo " (Any other directories should still work fine.)" 1>&2
6600 fi
6601
6602 case "$host" in
6603 *msdosdjgpp*)
6604 enable_gdbtk=no ;;
6605 esac
6606
6607 # To find our prefix, in gcc_cv_tool_prefix.
6608
6609 # The user is always right.
6610 if test "${PATH_SEPARATOR+set}" != set; then
6611 echo "#! /bin/sh" >conf$$.sh
6612 echo "exit 0" >>conf$$.sh
6613 chmod +x conf$$.sh
6614 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6615 PATH_SEPARATOR=';'
6616 else
6617 PATH_SEPARATOR=:
6618 fi
6619 rm -f conf$$.sh
6620 fi
6621
6622
6623 get_gcc_base_ver="cat"
6624
6625 # Check whether --with-gcc-major-version-only was given.
6626 if test "${with_gcc_major_version_only+set}" = set; then :
6627 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6628 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6629 fi
6630
6631 fi
6632
6633
6634
6635
6636
6637
6638 if test "x$exec_prefix" = xNONE; then
6639 if test "x$prefix" = xNONE; then
6640 gcc_cv_tool_prefix=$ac_default_prefix
6641 else
6642 gcc_cv_tool_prefix=$prefix
6643 fi
6644 else
6645 gcc_cv_tool_prefix=$exec_prefix
6646 fi
6647
6648 # If there is no compiler in the tree, use the PATH only. In any
6649 # case, if there is no compiler in the tree nobody should use
6650 # AS_FOR_TARGET and LD_FOR_TARGET.
6651 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6652 if test x$with_gcc_major_version_only = xyes ; then
6653 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6654 else
6655 gcc_version=`cat $srcdir/gcc/BASE-VER`
6656 fi
6657 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6658 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6659 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6660 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6661 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6662 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6663 else
6664 gcc_cv_tool_dirs=
6665 fi
6666
6667 if test x$build = x$target && test -n "$md_exec_prefix"; then
6668 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6669 fi
6670
6671
6672
6673 copy_dirs=
6674
6675
6676 # Check whether --with-build-sysroot was given.
6677 if test "${with_build_sysroot+set}" = set; then :
6678 withval=$with_build_sysroot; if test x"$withval" != x ; then
6679 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6680 fi
6681 else
6682 SYSROOT_CFLAGS_FOR_TARGET=
6683 fi
6684
6685
6686
6687
6688 # Check whether --with-debug-prefix-map was given.
6689 if test "${with_debug_prefix_map+set}" = set; then :
6690 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6691 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6692 for debug_map in $withval; do
6693 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6694 done
6695 fi
6696 else
6697 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6698 fi
6699
6700
6701
6702 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6703 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6704 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6705 # We want to ensure that TARGET libraries (which we know are built with
6706 # gcc) are built with "-O2 -g", so include those options when setting
6707 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6708 if test "x$CFLAGS_FOR_TARGET" = x; then
6709 if test "x${is_cross_compiler}" = xyes; then
6710 CFLAGS_FOR_TARGET="-g -O2"
6711 else
6712 CFLAGS_FOR_TARGET=$CFLAGS
6713 case " $CFLAGS " in
6714 *" -O2 "*) ;;
6715 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6716 esac
6717 case " $CFLAGS " in
6718 *" -g "* | *" -g3 "*) ;;
6719 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6720 esac
6721 fi
6722 fi
6723
6724
6725 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6726 if test "x${is_cross_compiler}" = xyes; then
6727 CXXFLAGS_FOR_TARGET="-g -O2"
6728 else
6729 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6730 case " $CXXFLAGS " in
6731 *" -O2 "*) ;;
6732 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6733 esac
6734 case " $CXXFLAGS " in
6735 *" -g "* | *" -g3 "*) ;;
6736 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6737 esac
6738 fi
6739 fi
6740
6741
6742
6743
6744 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6745 # the named directory are copied to $(tooldir)/sys-include.
6746 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6747 if test x${is_cross_compiler} = xno ; then
6748 echo 1>&2 '***' --with-headers is only supported when cross compiling
6749 exit 1
6750 fi
6751 if test x"${with_headers}" != xyes ; then
6752 x=${gcc_cv_tool_prefix}
6753 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6754 fi
6755 fi
6756
6757 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6758 # the name directories are copied to $(tooldir)/lib. Multiple directories
6759 # are permitted.
6760 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6761 if test x${is_cross_compiler} = xno ; then
6762 echo 1>&2 '***' --with-libs is only supported when cross compiling
6763 exit 1
6764 fi
6765 if test x"${with_libs}" != xyes ; then
6766 # Copy the libraries in reverse order, so that files in the first named
6767 # library override files in subsequent libraries.
6768 x=${gcc_cv_tool_prefix}
6769 for l in ${with_libs}; do
6770 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6771 done
6772 fi
6773 fi
6774
6775 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6776 #
6777 # This is done by determining whether or not the appropriate directory
6778 # is available, and by checking whether or not specific configurations
6779 # have requested that this magic not happen.
6780 #
6781 # The command line options always override the explicit settings in
6782 # configure.ac, and the settings in configure.ac override this magic.
6783 #
6784 # If the default for a toolchain is to use GNU as and ld, and you don't
6785 # want to do that, then you should use the --without-gnu-as and
6786 # --without-gnu-ld options for the configure script. Similarly, if
6787 # the default is to use the included zlib and you don't want to do that,
6788 # you should use the --with-system-zlib option for the configure script.
6789
6790 if test x${use_gnu_as} = x &&
6791 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6792 with_gnu_as=yes
6793 extra_host_args="$extra_host_args --with-gnu-as"
6794 fi
6795
6796 if test x${use_gnu_ld} = x &&
6797 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6798 with_gnu_ld=yes
6799 extra_host_args="$extra_host_args --with-gnu-ld"
6800 fi
6801
6802 if test x${use_included_zlib} = x &&
6803 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6804 :
6805 else
6806 with_system_zlib=yes
6807 extra_host_args="$extra_host_args --with-system-zlib"
6808 fi
6809
6810 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6811 # can detect this case.
6812
6813 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6814 with_newlib=yes
6815 extra_host_args="$extra_host_args --with-newlib"
6816 fi
6817
6818 # Handle ${copy_dirs}
6819 set fnord ${copy_dirs}
6820 shift
6821 while test $# != 0 ; do
6822 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6823 :
6824 else
6825 echo Copying $1 to $2
6826
6827 # Use the install script to create the directory and all required
6828 # parent directories.
6829 if test -d $2 ; then
6830 :
6831 else
6832 echo >config.temp
6833 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6834 fi
6835
6836 # Copy the directory, assuming we have tar.
6837 # FIXME: Should we use B in the second tar? Not all systems support it.
6838 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6839
6840 # It is the responsibility of the user to correctly adjust all
6841 # symlinks. If somebody can figure out how to handle them correctly
6842 # here, feel free to add the code.
6843
6844 echo $1 > $2/COPIED
6845 fi
6846 shift; shift
6847 done
6848
6849 # Determine a target-dependent exec_prefix that the installed
6850 # gcc will search in. Keep this list sorted by triplet, with
6851 # the *-*-osname triplets last.
6852 md_exec_prefix=
6853 case "${target}" in
6854 i[34567]86-pc-msdosdjgpp*)
6855 md_exec_prefix=/dev/env/DJDIR/bin
6856 ;;
6857 *-*-hpux* | \
6858 *-*-nto-qnx* | \
6859 *-*-solaris2*)
6860 md_exec_prefix=/usr/ccs/bin
6861 ;;
6862 esac
6863
6864 extra_arflags_for_target=
6865 extra_nmflags_for_target=
6866 extra_ranlibflags_for_target=
6867 target_makefile_frag=/dev/null
6868 case "${target}" in
6869 spu-*-*)
6870 target_makefile_frag="config/mt-spu"
6871 ;;
6872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6873 target_makefile_frag="config/mt-sde"
6874 ;;
6875 mipsisa*-*-elfoabi*)
6876 target_makefile_frag="config/mt-mips-elfoabi"
6877 ;;
6878 mips*-*-*linux* | mips*-*-gnu*)
6879 target_makefile_frag="config/mt-mips-gnu"
6880 ;;
6881 nios2-*-elf*)
6882 target_makefile_frag="config/mt-nios2-elf"
6883 ;;
6884 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6885 target_makefile_frag="config/mt-gnu"
6886 ;;
6887 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6888 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6889 # commands to handle both 32-bit and 64-bit objects. These flags are
6890 # harmless if we're using GNU nm or ar.
6891 extra_arflags_for_target=" -X32_64"
6892 extra_nmflags_for_target=" -B -X32_64"
6893 ;;
6894 esac
6895
6896 alphaieee_frag=/dev/null
6897 case $target in
6898 alpha*-*-*)
6899 # This just makes sure to use the -mieee option to build target libs.
6900 # This should probably be set individually by each library.
6901 alphaieee_frag="config/mt-alphaieee"
6902 ;;
6903 esac
6904
6905 # If --enable-target-optspace always use -Os instead of -O2 to build
6906 # the target libraries, similarly if it is not specified, use -Os
6907 # on selected platforms.
6908 ospace_frag=/dev/null
6909 case "${enable_target_optspace}:${target}" in
6910 yes:*)
6911 ospace_frag="config/mt-ospace"
6912 ;;
6913 :d30v-*)
6914 ospace_frag="config/mt-d30v"
6915 ;;
6916 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6917 ospace_frag="config/mt-ospace"
6918 ;;
6919 no:* | :*)
6920 ;;
6921 *)
6922 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6923 ;;
6924 esac
6925
6926 # Some systems (e.g., one of the i386-aix systems the gas testers are
6927 # using) don't handle "\$" correctly, so don't use it here.
6928 tooldir='${exec_prefix}'/${target_noncanonical}
6929 build_tooldir=${tooldir}
6930
6931 # Create a .gdbinit file which runs the one in srcdir
6932 # and tells GDB to look there for source files.
6933
6934 if test -r ${srcdir}/.gdbinit ; then
6935 case ${srcdir} in
6936 .) ;;
6937 *) cat > ./.gdbinit <<EOF
6938 # ${NO_EDIT}
6939 dir ${srcdir}
6940 dir .
6941 source ${srcdir}/.gdbinit
6942 EOF
6943 ;;
6944 esac
6945 fi
6946
6947 # Make sure that the compiler is able to generate an executable. If it
6948 # can't, we are probably in trouble. We don't care whether we can run the
6949 # executable--we might be using a cross compiler--we only care whether it
6950 # can be created. At this point the main configure script has set CC.
6951 we_are_ok=no
6952 echo "int main () { return 0; }" > conftest.c
6953 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6954 if test $? = 0 ; then
6955 if test -s conftest || test -s conftest.exe ; then
6956 we_are_ok=yes
6957 fi
6958 fi
6959 case $we_are_ok in
6960 no)
6961 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6962 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6963 rm -f conftest*
6964 exit 1
6965 ;;
6966 esac
6967 rm -f conftest*
6968
6969 # Decide which environment variable is used to find dynamic libraries.
6970 case "${host}" in
6971 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6972 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6973 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6974 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6975 esac
6976
6977 # On systems where the dynamic library environment variable is PATH,
6978 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6979 # built executables to PATH.
6980 if test "$RPATH_ENVVAR" = PATH; then
6981 GCC_SHLIB_SUBDIR=/shlib
6982 else
6983 GCC_SHLIB_SUBDIR=
6984 fi
6985
6986 # Adjust the toplevel makefile according to whether bootstrap was selected.
6987 case $enable_bootstrap in
6988 yes)
6989 bootstrap_suffix=bootstrap
6990 BUILD_CONFIG=bootstrap-debug
6991 ;;
6992 no)
6993 bootstrap_suffix=no-bootstrap
6994 BUILD_CONFIG=
6995 ;;
6996 esac
6997
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6999 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7000
7001
7002 # Check whether --with-build-config was given.
7003 if test "${with_build_config+set}" = set; then :
7004 withval=$with_build_config; case $with_build_config in
7005 yes) with_build_config= ;;
7006 no) with_build_config= BUILD_CONFIG= ;;
7007 esac
7008 fi
7009
7010
7011 if test "x${with_build_config}" != x; then
7012 BUILD_CONFIG=$with_build_config
7013 else
7014 case $BUILD_CONFIG in
7015 bootstrap-debug)
7016 if echo "int f (void) { return 0; }" > conftest.c &&
7017 ${CC} -c conftest.c &&
7018 mv conftest.o conftest.o.g0 &&
7019 ${CC} -c -g conftest.c &&
7020 mv conftest.o conftest.o.g &&
7021 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7022 :
7023 else
7024 BUILD_CONFIG=
7025 fi
7026 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7027 ;;
7028 esac
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7031 $as_echo "$BUILD_CONFIG" >&6; }
7032
7033
7034 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7036 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7037 # Check whether --enable-vtable-verify was given.
7038 if test "${enable_vtable_verify+set}" = set; then :
7039 enableval=$enable_vtable_verify; case "$enableval" in
7040 yes) enable_vtable_verify=yes ;;
7041 no) enable_vtable_verify=no ;;
7042 *) enable_vtable_verify=no;;
7043 esac
7044 else
7045 enable_vtable_verify=no
7046 fi
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7049 $as_echo "$enable_vtable_verify" >&6; }
7050
7051 # Record target_configdirs and the configure arguments for target and
7052 # build configuration in Makefile.
7053 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7054 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7055 bootstrap_fixincludes=no
7056
7057 # If we are building libgomp, bootstrap it.
7058 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7059 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7060 fi
7061
7062 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7063 # or bootstrap-ubsan, bootstrap it.
7064 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7065 case "$BUILD_CONFIG" in
7066 *bootstrap-asan* | *bootstrap-ubsan* )
7067 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7068 bootstrap_fixincludes=yes
7069 ;;
7070 esac
7071 fi
7072
7073 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7074 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7075 test "$enable_vtable_verify" != no; then
7076 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7077 fi
7078
7079 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7080 # bootstrap it.
7081 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7082 case "$BUILD_CONFIG" in
7083 *bootstrap-mpx* )
7084 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7085 ;;
7086 esac
7087 fi
7088
7089 # Determine whether gdb needs tk/tcl or not.
7090 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7091 # and in that case we want gdb to be built without tk. Ugh!
7092 # In fact I believe gdb is the *only* package directly dependent on tk,
7093 # so we should be able to put the 'maybe's in unconditionally and
7094 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7095 # 100% sure that that's safe though.
7096
7097 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7098 case "$enable_gdbtk" in
7099 no)
7100 GDB_TK="" ;;
7101 yes)
7102 GDB_TK="${gdb_tk}" ;;
7103 *)
7104 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7105 # distro. Eventually someone will fix this and move Insight, nee
7106 # gdbtk to a separate directory.
7107 if test -d ${srcdir}/gdb/gdbtk ; then
7108 GDB_TK="${gdb_tk}"
7109 else
7110 GDB_TK=""
7111 fi
7112 ;;
7113 esac
7114 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7115 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7116
7117 # Strip out unwanted targets.
7118
7119 # While at that, we remove Makefiles if we were started for recursive
7120 # configuration, so that the top-level Makefile reconfigures them,
7121 # like we used to do when configure itself was recursive.
7122
7123 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7124 # but now we're fixing up the Makefile ourselves with the additional
7125 # commands passed to AC_CONFIG_FILES. Use separate variables
7126 # extrasub-{build,host,target} not because there is any reason to split
7127 # the substitutions up that way, but only to remain below the limit of
7128 # 99 commands in a script, for HP-UX sed.
7129 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7130
7131 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7132 yes:yes:*\ gold\ *:*,c++,*) ;;
7133 yes:yes:*\ gold\ *:*)
7134 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7135 ;;
7136 esac
7137
7138 extrasub_build=
7139 for module in ${build_configdirs} ; do
7140 if test -z "${no_recursion}" \
7141 && test -f ${build_subdir}/${module}/Makefile; then
7142 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7143 rm -f ${build_subdir}/${module}/Makefile
7144 fi
7145 extrasub_build="$extrasub_build
7146 /^@if build-$module\$/d
7147 /^@endif build-$module\$/d
7148 /^@if build-$module-$bootstrap_suffix\$/d
7149 /^@endif build-$module-$bootstrap_suffix\$/d"
7150 done
7151 extrasub_host=
7152 for module in ${configdirs} ; do
7153 if test -z "${no_recursion}"; then
7154 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7155 if test -f ${file}; then
7156 echo 1>&2 "*** removing ${file} to force reconfigure"
7157 rm -f ${file}
7158 fi
7159 done
7160 fi
7161 case ${module},${bootstrap_fixincludes} in
7162 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7163 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7164 esac
7165 extrasub_host="$extrasub_host
7166 /^@if $module\$/d
7167 /^@endif $module\$/d
7168 /^@if $module-$host_bootstrap_suffix\$/d
7169 /^@endif $module-$host_bootstrap_suffix\$/d"
7170 done
7171 extrasub_target=
7172 for module in ${target_configdirs} ; do
7173 if test -z "${no_recursion}" \
7174 && test -f ${target_subdir}/${module}/Makefile; then
7175 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7176 rm -f ${target_subdir}/${module}/Makefile
7177 fi
7178
7179 # We only bootstrap target libraries listed in bootstrap_target_libs.
7180 case $bootstrap_target_libs in
7181 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7182 *) target_bootstrap_suffix=no-bootstrap ;;
7183 esac
7184
7185 extrasub_target="$extrasub_target
7186 /^@if target-$module\$/d
7187 /^@endif target-$module\$/d
7188 /^@if target-$module-$target_bootstrap_suffix\$/d
7189 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7190 done
7191
7192 # Do the final fixup along with target modules.
7193 extrasub_target="$extrasub_target
7194 /^@if /,/^@endif /d"
7195
7196 # Create the serialization dependencies. This uses a temporary file.
7197
7198 # Check whether --enable-serial-configure was given.
7199 if test "${enable_serial_configure+set}" = set; then :
7200 enableval=$enable_serial_configure;
7201 fi
7202
7203
7204 case ${enable_serial_configure} in
7205 yes)
7206 enable_serial_build_configure=yes
7207 enable_serial_host_configure=yes
7208 enable_serial_target_configure=yes
7209 ;;
7210 esac
7211
7212 # These force 'configure's to be done one at a time, to avoid problems
7213 # with contention over a shared config.cache.
7214 rm -f serdep.tmp
7215 echo '# serdep.tmp' > serdep.tmp
7216 olditem=
7217 test "x${enable_serial_build_configure}" = xyes &&
7218 for item in ${build_configdirs} ; do
7219 case ${olditem} in
7220 "") ;;
7221 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7222 esac
7223 olditem=${item}
7224 done
7225 olditem=
7226 test "x${enable_serial_host_configure}" = xyes &&
7227 for item in ${configdirs} ; do
7228 case ${olditem} in
7229 "") ;;
7230 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7231 esac
7232 olditem=${item}
7233 done
7234 olditem=
7235 test "x${enable_serial_target_configure}" = xyes &&
7236 for item in ${target_configdirs} ; do
7237 case ${olditem} in
7238 "") ;;
7239 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7240 esac
7241 olditem=${item}
7242 done
7243 serialization_dependencies=serdep.tmp
7244
7245
7246 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7247 # target, nonopt, and variable assignments. These are the ones we
7248 # might not want to pass down to subconfigures. The exception being
7249 # --cache-file=/dev/null, which is used to turn off the use of cache
7250 # files altogether, and which should be passed on to subconfigures.
7251 # Also strip program-prefix, program-suffix, and program-transform-name,
7252 # so that we can pass down a consistent program-transform-name.
7253 baseargs=
7254 tbaseargs=
7255 keep_next=no
7256 skip_next=no
7257 eval "set -- $ac_configure_args"
7258 for ac_arg
7259 do
7260 if test X"$skip_next" = X"yes"; then
7261 skip_next=no
7262 continue
7263 fi
7264 if test X"$keep_next" = X"yes"; then
7265 case $ac_arg in
7266 *\'*)
7267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7268 esac
7269 baseargs="$baseargs '$ac_arg'"
7270 tbaseargs="$tbaseargs '$ac_arg'"
7271 keep_next=no
7272 continue
7273 fi
7274
7275 # Handle separated arguments. Based on the logic generated by
7276 # autoconf 2.59.
7277 case $ac_arg in
7278 *=* | --config-cache | -C | -disable-* | --disable-* \
7279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7281 | -with-* | --with-* | -without-* | --without-* | --x)
7282 separate_arg=no
7283 ;;
7284 -*)
7285 separate_arg=yes
7286 ;;
7287 *)
7288 separate_arg=no
7289 ;;
7290 esac
7291
7292 skip_targ=no
7293 case $ac_arg in
7294
7295 --with-* | --without-*)
7296 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7297
7298 case $libopt in
7299 *[-_]include)
7300 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7301 ;;
7302 *[-_]lib)
7303 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7304 ;;
7305 *)
7306 lib=$libopt
7307 ;;
7308 esac
7309
7310
7311 case $lib in
7312 mpc | mpfr | gmp | isl)
7313 # If we're processing --with-$lib, --with-$lib-include or
7314 # --with-$lib-lib, for one of the libs above, and target is
7315 # different from host, don't pass the current argument to any
7316 # target library's configure.
7317 if test x$is_cross_compiler = xyes; then
7318 skip_targ=yes
7319 fi
7320 ;;
7321 esac
7322 ;;
7323 esac
7324
7325 case "$ac_arg" in
7326 --cache-file=/dev/null | \
7327 -cache-file=/dev/null )
7328 # Handled here to avoid the test to skip args below.
7329 baseargs="$baseargs '$ac_arg'"
7330 tbaseargs="$tbaseargs '$ac_arg'"
7331 # Assert: $separate_arg should always be no.
7332 keep_next=$separate_arg
7333 ;;
7334 --no*)
7335 continue
7336 ;;
7337 --c* | \
7338 --sr* | \
7339 --ho* | \
7340 --bu* | \
7341 --t* | \
7342 --program-* | \
7343 -cache_file* | \
7344 -srcdir* | \
7345 -host* | \
7346 -build* | \
7347 -target* | \
7348 -program-prefix* | \
7349 -program-suffix* | \
7350 -program-transform-name* )
7351 skip_next=$separate_arg
7352 continue
7353 ;;
7354 -*)
7355 # An option. Add it.
7356 case $ac_arg in
7357 *\'*)
7358 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7359 esac
7360 baseargs="$baseargs '$ac_arg'"
7361 if test X"$skip_targ" = Xno; then
7362 tbaseargs="$tbaseargs '$ac_arg'"
7363 fi
7364 keep_next=$separate_arg
7365 ;;
7366 *)
7367 # Either a variable assignment, or a nonopt (triplet). Don't
7368 # pass it down; let the Makefile handle this.
7369 continue
7370 ;;
7371 esac
7372 done
7373 # Remove the initial space we just introduced and, as these will be
7374 # expanded by make, quote '$'.
7375 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7376
7377 # Add in --program-transform-name, after --program-prefix and
7378 # --program-suffix have been applied to it. Autoconf has already
7379 # doubled dollar signs and backslashes in program_transform_name; we want
7380 # the backslashes un-doubled, and then the entire thing wrapped in single
7381 # quotes, because this will be expanded first by make and then by the shell.
7382 # Also, because we want to override the logic in subdir configure scripts to
7383 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7384 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7385 ${program_transform_name}
7386 EOF_SED
7387 gcc_transform_name=`cat conftestsed.out`
7388 rm -f conftestsed.out
7389 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7390 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7391 if test "$silent" = yes; then
7392 baseargs="$baseargs --silent"
7393 tbaseargs="$tbaseargs --silent"
7394 fi
7395 baseargs="$baseargs --disable-option-checking"
7396 tbaseargs="$tbaseargs --disable-option-checking"
7397
7398 # Record and document user additions to sub configure arguments.
7399
7400
7401
7402
7403 # For the build-side libraries, we just need to pretend we're native,
7404 # and not use the same cache file. Multilibs are neither needed nor
7405 # desired. We can't even use the same cache file for all build-side
7406 # libraries, as they're compiled differently; some with C, some with
7407 # C++ or with different feature-enabling options.
7408 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7409
7410 # For host modules, accept cache file option, or specification as blank.
7411 case "${cache_file}" in
7412 "") # empty
7413 cache_file_option="" ;;
7414 /* | [A-Za-z]:[\\/]* ) # absolute path
7415 cache_file_option="--cache-file=${cache_file}" ;;
7416 *) # relative path
7417 cache_file_option="--cache-file=../${cache_file}" ;;
7418 esac
7419
7420 # Host dirs don't like to share a cache file either, horribly enough.
7421 # This seems to be due to autoconf 2.5x stupidity.
7422 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7423
7424 target_configargs="$target_configargs ${tbaseargs}"
7425
7426 # Passing a --with-cross-host argument lets the target libraries know
7427 # whether they are being built with a cross-compiler or being built
7428 # native. However, it would be better to use other mechanisms to make the
7429 # sorts of decisions they want to make on this basis. Please consider
7430 # this option to be deprecated. FIXME.
7431 if test x${is_cross_compiler} = xyes ; then
7432 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7433 fi
7434
7435 # Special user-friendly check for native x86_64-linux build, if
7436 # multilib is not explicitly enabled.
7437 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7438 x86_64-*linux*:yes:$build:$build:)
7439 # Make sure we have a development environment that handles 32-bit
7440 dev64=no
7441 echo "int main () { return 0; }" > conftest.c
7442 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7443 if test $? = 0 ; then
7444 if test -s conftest || test -s conftest.exe ; then
7445 dev64=yes
7446 fi
7447 fi
7448 rm -f conftest*
7449 if test x${dev64} != xyes ; then
7450 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
7451 fi
7452 ;;
7453 esac
7454
7455 # Default to --enable-multilib.
7456 if test x${enable_multilib} = x ; then
7457 target_configargs="--enable-multilib ${target_configargs}"
7458 fi
7459
7460 # Pass --with-newlib if appropriate. Note that target_configdirs has
7461 # changed from the earlier setting of with_newlib.
7462 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7463 target_configargs="--with-newlib ${target_configargs}"
7464 fi
7465
7466 # Different target subdirs use different values of certain variables
7467 # (notably CXX). Worse, multilibs use *lots* of different values.
7468 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7469 # it doesn't automatically accept command-line overrides of them.
7470 # This means it's not safe for target subdirs to share a cache file,
7471 # which is disgusting, but there you have it. Hopefully this can be
7472 # fixed in future. It's still worthwhile to use a cache file for each
7473 # directory. I think.
7474
7475 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7476 # We need to pass --target, as newer autoconf's requires consistency
7477 # for target_alias and gcc doesn't manage it consistently.
7478 target_configargs="--cache-file=./config.cache ${target_configargs}"
7479
7480 FLAGS_FOR_TARGET=
7481 case " $target_configdirs " in
7482 *" newlib "*)
7483 case " $target_configargs " in
7484 *" --with-newlib "*)
7485 case "$target" in
7486 *-cygwin*)
7487 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7488 ;;
7489 esac
7490
7491 # If we're not building GCC, don't discard standard headers.
7492 if test -d ${srcdir}/gcc; then
7493 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7494
7495 if test "${build}" != "${host}"; then
7496 # On Canadian crosses, CC_FOR_TARGET will have already been set
7497 # by `configure', so we won't have an opportunity to add -Bgcc/
7498 # to it. This is right: we don't want to search that directory
7499 # for binaries, but we want the header files in there, so add
7500 # them explicitly.
7501 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7502
7503 # Someone might think of using the pre-installed headers on
7504 # Canadian crosses, in case the installed compiler is not fully
7505 # compatible with the compiler being built. In this case, it
7506 # would be better to flag an error than risking having
7507 # incompatible object files being constructed. We can't
7508 # guarantee that an error will be flagged, but let's hope the
7509 # compiler will do it, when presented with incompatible header
7510 # files.
7511 fi
7512 fi
7513
7514 case "${target}-${is_cross_compiler}" in
7515 i[3456789]86-*-linux*-no)
7516 # Here host == target, so we don't need to build gcc,
7517 # so we don't want to discard standard headers.
7518 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7519 ;;
7520 *)
7521 # If we're building newlib, use its generic headers last, but search
7522 # for any libc-related directories first (so make it the last -B
7523 # switch).
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7525
7526 # If we're building libgloss, find the startup file, simulator library
7527 # and linker script.
7528 case " $target_configdirs " in
7529 *" libgloss "*)
7530 # Look for startup file, simulator library and maybe linker script.
7531 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7532 # Look for libnosys.a in case the target needs it.
7533 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7534 # Most targets have the linker script in the source directory.
7535 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7536 ;;
7537 esac
7538 ;;
7539 esac
7540 ;;
7541 esac
7542 ;;
7543 esac
7544
7545 case "$target" in
7546 x86_64-*mingw* | *-w64-mingw*)
7547 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7548 # however, use a symlink named 'mingw' in ${prefix} .
7549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7550 ;;
7551 *-mingw*)
7552 # MinGW can't be handled as Cygwin above since it does not use newlib.
7553 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'
7554 ;;
7555 esac
7556
7557 # Allow the user to override the flags for
7558 # our build compiler if desired.
7559 if test x"${build}" = x"${host}" ; then
7560 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7561 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7562 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7563 fi
7564
7565 # On Canadian crosses, we'll be searching the right directories for
7566 # the previously-installed cross compiler, so don't bother to add
7567 # flags for directories within the install tree of the compiler
7568 # being built; programs in there won't even run.
7569 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7570 # Search for pre-installed headers if nothing else fits.
7571 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7572 fi
7573
7574 if test "x${use_gnu_ld}" = x &&
7575 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7576 # Arrange for us to find uninstalled linker scripts.
7577 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7578 fi
7579
7580 # Search for other target-specific linker scripts and such.
7581 case "${target}" in
7582 mep*)
7583 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7584 ;;
7585 esac
7586
7587 # Makefile fragments.
7588 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7589 do
7590 eval fragval=\$$frag
7591 if test $fragval != /dev/null; then
7592 eval $frag=${srcdir}/$fragval
7593 fi
7594 done
7595
7596
7597
7598
7599
7600 # Miscellanea: directories, flags, etc.
7601
7602
7603
7604
7605
7606
7607
7608
7609 # Build module lists & subconfigure args.
7610
7611
7612
7613 # Host module lists & subconfigure args.
7614
7615
7616
7617
7618 # Target module lists & subconfigure args.
7619
7620
7621
7622 # Build tools.
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639 # Generate default definitions for YACC, M4, LEX and other programs that run
7640 # on the build machine. These are used if the Makefile can't locate these
7641 # programs in objdir.
7642 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7643
7644 for ac_prog in 'bison -y' byacc yacc
7645 do
7646 # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if test "${ac_cv_prog_YACC+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$YACC"; then
7654 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_prog_YACC="$ac_prog"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 YACC=$ac_cv_prog_YACC
7674 if test -n "$YACC"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7676 $as_echo "$YACC" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682
7683 test -n "$YACC" && break
7684 done
7685 test -n "$YACC" || YACC="$MISSING bison -y"
7686
7687 case " $build_configdirs " in
7688 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7689 esac
7690
7691 for ac_prog in bison
7692 do
7693 # Extract the first word of "$ac_prog", so it can be a program name with args.
7694 set dummy $ac_prog; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if test "${ac_cv_prog_BISON+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$BISON"; then
7701 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710 ac_cv_prog_BISON="$ac_prog"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 BISON=$ac_cv_prog_BISON
7721 if test -n "$BISON"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7723 $as_echo "$BISON" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729
7730 test -n "$BISON" && break
7731 done
7732 test -n "$BISON" || BISON="$MISSING bison"
7733
7734 case " $build_configdirs " in
7735 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7736 esac
7737
7738 for ac_prog in gm4 gnum4 m4
7739 do
7740 # Extract the first word of "$ac_prog", so it can be a program name with args.
7741 set dummy $ac_prog; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if test "${ac_cv_prog_M4+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -n "$M4"; then
7748 ac_cv_prog_M4="$M4" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_M4="$ac_prog"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 M4=$ac_cv_prog_M4
7768 if test -n "$M4"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7770 $as_echo "$M4" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775
7776
7777 test -n "$M4" && break
7778 done
7779 test -n "$M4" || M4="$MISSING m4"
7780
7781 case " $build_configdirs " in
7782 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7783 esac
7784
7785 for ac_prog in flex lex
7786 do
7787 # Extract the first word of "$ac_prog", so it can be a program name with args.
7788 set dummy $ac_prog; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if test "${ac_cv_prog_LEX+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 if test -n "$LEX"; then
7795 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_prog_LEX="$ac_prog"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808 done
7809 done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 LEX=$ac_cv_prog_LEX
7815 if test -n "$LEX"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7817 $as_echo "$LEX" >&6; }
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823
7824 test -n "$LEX" && break
7825 done
7826 test -n "$LEX" || LEX="$MISSING flex"
7827
7828 case " $build_configdirs " in
7829 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7830 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7831 esac
7832
7833 for ac_prog in flex
7834 do
7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if test "${ac_cv_prog_FLEX+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$FLEX"; then
7843 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_FLEX="$ac_prog"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856 done
7857 done
7858 IFS=$as_save_IFS
7859
7860 fi
7861 fi
7862 FLEX=$ac_cv_prog_FLEX
7863 if test -n "$FLEX"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7865 $as_echo "$FLEX" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 fi
7870
7871
7872 test -n "$FLEX" && break
7873 done
7874 test -n "$FLEX" || FLEX="$MISSING flex"
7875
7876 case " $build_configdirs " in
7877 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7878 esac
7879
7880 for ac_prog in makeinfo
7881 do
7882 # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$MAKEINFO"; then
7890 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_MAKEINFO="$ac_prog"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 MAKEINFO=$ac_cv_prog_MAKEINFO
7910 if test -n "$MAKEINFO"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7912 $as_echo "$MAKEINFO" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918
7919 test -n "$MAKEINFO" && break
7920 done
7921 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7922
7923 case " $build_configdirs " in
7924 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7925 *)
7926
7927 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7928 # higher, else we use the "missing" dummy.
7929 if ${MAKEINFO} --version \
7930 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7931 :
7932 else
7933 MAKEINFO="$MISSING makeinfo"
7934 fi
7935 ;;
7936
7937 esac
7938
7939 # FIXME: expect and dejagnu may become build tools?
7940
7941 for ac_prog in expect
7942 do
7943 # Extract the first word of "$ac_prog", so it can be a program name with args.
7944 set dummy $ac_prog; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test -n "$EXPECT"; then
7951 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_prog_EXPECT="$ac_prog"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964 done
7965 done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 EXPECT=$ac_cv_prog_EXPECT
7971 if test -n "$EXPECT"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7973 $as_echo "$EXPECT" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980 test -n "$EXPECT" && break
7981 done
7982 test -n "$EXPECT" || EXPECT="expect"
7983
7984 case " $configdirs " in
7985 *" expect "*)
7986 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7987 ;;
7988 esac
7989
7990 for ac_prog in runtest
7991 do
7992 # Extract the first word of "$ac_prog", so it can be a program name with args.
7993 set dummy $ac_prog; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$RUNTEST"; then
8000 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_prog_RUNTEST="$ac_prog"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 RUNTEST=$ac_cv_prog_RUNTEST
8020 if test -n "$RUNTEST"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8022 $as_echo "$RUNTEST" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 test -n "$RUNTEST" && break
8030 done
8031 test -n "$RUNTEST" || RUNTEST="runtest"
8032
8033 case " $configdirs " in
8034 *" dejagnu "*)
8035 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8036 ;;
8037 esac
8038
8039
8040 # Host tools.
8041 ncn_tool_prefix=
8042 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8043 ncn_target_tool_prefix=
8044 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8045
8046
8047
8048 if test -n "$AR"; then
8049 ac_cv_prog_AR=$AR
8050 elif test -n "$ac_cv_prog_AR"; then
8051 AR=$ac_cv_prog_AR
8052 fi
8053
8054 if test -n "$ac_cv_prog_AR"; then
8055 for ncn_progname in ar; do
8056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8057 set dummy ${ncn_progname}; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if test "${ac_cv_prog_AR+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$AR"; then
8064 ac_cv_prog_AR="$AR" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_AR="${ncn_progname}"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077 done
8078 done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 AR=$ac_cv_prog_AR
8084 if test -n "$AR"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8086 $as_echo "$AR" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092
8093 done
8094 fi
8095
8096 for ncn_progname in ar; do
8097 if test -n "$ncn_tool_prefix"; then
8098 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8099 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if test "${ac_cv_prog_AR+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 if test -n "$AR"; then
8106 ac_cv_prog_AR="$AR" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8115 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119 done
8120 done
8121 IFS=$as_save_IFS
8122
8123 fi
8124 fi
8125 AR=$ac_cv_prog_AR
8126 if test -n "$AR"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8128 $as_echo "$AR" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134
8135 fi
8136 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8138 set dummy ${ncn_progname}; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if test "${ac_cv_prog_AR+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 if test -n "$AR"; then
8145 ac_cv_prog_AR="$AR" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_prog_AR="${ncn_progname}"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158 done
8159 done
8160 IFS=$as_save_IFS
8161
8162 fi
8163 fi
8164 AR=$ac_cv_prog_AR
8165 if test -n "$AR"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8167 $as_echo "$AR" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8171 fi
8172
8173
8174 fi
8175 test -n "$ac_cv_prog_AR" && break
8176 done
8177
8178 if test -z "$ac_cv_prog_AR" ; then
8179 set dummy ar
8180 if test $build = $host ; then
8181 AR="$2"
8182 else
8183 AR="${ncn_tool_prefix}$2"
8184 fi
8185 fi
8186
8187
8188
8189 if test -n "$AS"; then
8190 ac_cv_prog_AS=$AS
8191 elif test -n "$ac_cv_prog_AS"; then
8192 AS=$ac_cv_prog_AS
8193 fi
8194
8195 if test -n "$ac_cv_prog_AS"; then
8196 for ncn_progname in as; do
8197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8198 set dummy ${ncn_progname}; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if test "${ac_cv_prog_AS+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$AS"; then
8205 ac_cv_prog_AS="$AS" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_AS="${ncn_progname}"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8217 fi
8218 done
8219 done
8220 IFS=$as_save_IFS
8221
8222 fi
8223 fi
8224 AS=$ac_cv_prog_AS
8225 if test -n "$AS"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8227 $as_echo "$AS" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233
8234 done
8235 fi
8236
8237 for ncn_progname in as; do
8238 if test -n "$ncn_tool_prefix"; then
8239 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8240 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if test "${ac_cv_prog_AS+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 if test -n "$AS"; then
8247 ac_cv_prog_AS="$AS" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8256 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8259 fi
8260 done
8261 done
8262 IFS=$as_save_IFS
8263
8264 fi
8265 fi
8266 AS=$ac_cv_prog_AS
8267 if test -n "$AS"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8269 $as_echo "$AS" >&6; }
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274
8275
8276 fi
8277 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8279 set dummy ${ncn_progname}; ac_word=$2
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 $as_echo_n "checking for $ac_word... " >&6; }
8282 if test "${ac_cv_prog_AS+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 if test -n "$AS"; then
8286 ac_cv_prog_AS="$AS" # Let the user override the test.
8287 else
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 for as_dir in $PATH
8290 do
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8295 ac_cv_prog_AS="${ncn_progname}"
8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 break 2
8298 fi
8299 done
8300 done
8301 IFS=$as_save_IFS
8302
8303 fi
8304 fi
8305 AS=$ac_cv_prog_AS
8306 if test -n "$AS"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8308 $as_echo "$AS" >&6; }
8309 else
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }
8312 fi
8313
8314
8315 fi
8316 test -n "$ac_cv_prog_AS" && break
8317 done
8318
8319 if test -z "$ac_cv_prog_AS" ; then
8320 set dummy as
8321 if test $build = $host ; then
8322 AS="$2"
8323 else
8324 AS="${ncn_tool_prefix}$2"
8325 fi
8326 fi
8327
8328
8329
8330 if test -n "$DLLTOOL"; then
8331 ac_cv_prog_DLLTOOL=$DLLTOOL
8332 elif test -n "$ac_cv_prog_DLLTOOL"; then
8333 DLLTOOL=$ac_cv_prog_DLLTOOL
8334 fi
8335
8336 if test -n "$ac_cv_prog_DLLTOOL"; then
8337 for ncn_progname in dlltool; do
8338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8339 set dummy ${ncn_progname}; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 if test -n "$DLLTOOL"; then
8346 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_prog_DLLTOOL="${ncn_progname}"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359 done
8360 done
8361 IFS=$as_save_IFS
8362
8363 fi
8364 fi
8365 DLLTOOL=$ac_cv_prog_DLLTOOL
8366 if test -n "$DLLTOOL"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8368 $as_echo "$DLLTOOL" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374
8375 done
8376 fi
8377
8378 for ncn_progname in dlltool; do
8379 if test -n "$ncn_tool_prefix"; then
8380 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8381 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 if test -n "$DLLTOOL"; then
8388 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401 done
8402 done
8403 IFS=$as_save_IFS
8404
8405 fi
8406 fi
8407 DLLTOOL=$ac_cv_prog_DLLTOOL
8408 if test -n "$DLLTOOL"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8410 $as_echo "$DLLTOOL" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415
8416
8417 fi
8418 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8420 set dummy ${ncn_progname}; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 if test -n "$DLLTOOL"; then
8427 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8436 ac_cv_prog_DLLTOOL="${ncn_progname}"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 break 2
8439 fi
8440 done
8441 done
8442 IFS=$as_save_IFS
8443
8444 fi
8445 fi
8446 DLLTOOL=$ac_cv_prog_DLLTOOL
8447 if test -n "$DLLTOOL"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8449 $as_echo "$DLLTOOL" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 fi
8454
8455
8456 fi
8457 test -n "$ac_cv_prog_DLLTOOL" && break
8458 done
8459
8460 if test -z "$ac_cv_prog_DLLTOOL" ; then
8461 set dummy dlltool
8462 if test $build = $host ; then
8463 DLLTOOL="$2"
8464 else
8465 DLLTOOL="${ncn_tool_prefix}$2"
8466 fi
8467 fi
8468
8469
8470
8471 if test -n "$LD"; then
8472 ac_cv_prog_LD=$LD
8473 elif test -n "$ac_cv_prog_LD"; then
8474 LD=$ac_cv_prog_LD
8475 fi
8476
8477 if test -n "$ac_cv_prog_LD"; then
8478 for ncn_progname in ld; do
8479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8480 set dummy ${ncn_progname}; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if test "${ac_cv_prog_LD+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 if test -n "$LD"; then
8487 ac_cv_prog_LD="$LD" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_prog_LD="${ncn_progname}"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 LD=$ac_cv_prog_LD
8507 if test -n "$LD"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8509 $as_echo "$LD" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514
8515
8516 done
8517 fi
8518
8519 for ncn_progname in ld; do
8520 if test -n "$ncn_tool_prefix"; then
8521 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8522 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if test "${ac_cv_prog_LD+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$LD"; then
8529 ac_cv_prog_LD="$LD" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545
8546 fi
8547 fi
8548 LD=$ac_cv_prog_LD
8549 if test -n "$LD"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8551 $as_echo "$LD" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8556
8557
8558 fi
8559 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8561 set dummy ${ncn_progname}; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if test "${ac_cv_prog_LD+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 if test -n "$LD"; then
8568 ac_cv_prog_LD="$LD" # Let the user override the test.
8569 else
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8572 do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8577 ac_cv_prog_LD="${ncn_progname}"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581 done
8582 done
8583 IFS=$as_save_IFS
8584
8585 fi
8586 fi
8587 LD=$ac_cv_prog_LD
8588 if test -n "$LD"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8590 $as_echo "$LD" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596
8597 fi
8598 test -n "$ac_cv_prog_LD" && break
8599 done
8600
8601 if test -z "$ac_cv_prog_LD" ; then
8602 set dummy ld
8603 if test $build = $host ; then
8604 LD="$2"
8605 else
8606 LD="${ncn_tool_prefix}$2"
8607 fi
8608 fi
8609
8610
8611
8612 if test -n "$LIPO"; then
8613 ac_cv_prog_LIPO=$LIPO
8614 elif test -n "$ac_cv_prog_LIPO"; then
8615 LIPO=$ac_cv_prog_LIPO
8616 fi
8617
8618 if test -n "$ac_cv_prog_LIPO"; then
8619 for ncn_progname in lipo; do
8620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8621 set dummy ${ncn_progname}; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if test "${ac_cv_prog_LIPO+set}" = set; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 if test -n "$LIPO"; then
8628 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_prog_LIPO="${ncn_progname}"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641 done
8642 done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 LIPO=$ac_cv_prog_LIPO
8648 if test -n "$LIPO"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8650 $as_echo "$LIPO" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656
8657 done
8658 fi
8659
8660 for ncn_progname in lipo; do
8661 if test -n "$ncn_tool_prefix"; then
8662 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8663 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_prog_LIPO+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 if test -n "$LIPO"; then
8670 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8671 else
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8674 do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683 done
8684 done
8685 IFS=$as_save_IFS
8686
8687 fi
8688 fi
8689 LIPO=$ac_cv_prog_LIPO
8690 if test -n "$LIPO"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8692 $as_echo "$LIPO" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699 fi
8700 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8702 set dummy ${ncn_progname}; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if test "${ac_cv_prog_LIPO+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 if test -n "$LIPO"; then
8709 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8710 else
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in $PATH
8713 do
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8718 ac_cv_prog_LIPO="${ncn_progname}"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722 done
8723 done
8724 IFS=$as_save_IFS
8725
8726 fi
8727 fi
8728 LIPO=$ac_cv_prog_LIPO
8729 if test -n "$LIPO"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8731 $as_echo "$LIPO" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737
8738 fi
8739 test -n "$ac_cv_prog_LIPO" && break
8740 done
8741
8742 if test -z "$ac_cv_prog_LIPO" ; then
8743 set dummy lipo
8744 if test $build = $host ; then
8745 LIPO="$2"
8746 else
8747 LIPO="${ncn_tool_prefix}$2"
8748 fi
8749 fi
8750
8751
8752
8753 if test -n "$NM"; then
8754 ac_cv_prog_NM=$NM
8755 elif test -n "$ac_cv_prog_NM"; then
8756 NM=$ac_cv_prog_NM
8757 fi
8758
8759 if test -n "$ac_cv_prog_NM"; then
8760 for ncn_progname in nm; do
8761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8762 set dummy ${ncn_progname}; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if test "${ac_cv_prog_NM+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 if test -n "$NM"; then
8769 ac_cv_prog_NM="$NM" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_prog_NM="${ncn_progname}"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8781 fi
8782 done
8783 done
8784 IFS=$as_save_IFS
8785
8786 fi
8787 fi
8788 NM=$ac_cv_prog_NM
8789 if test -n "$NM"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8791 $as_echo "$NM" >&6; }
8792 else
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796
8797
8798 done
8799 fi
8800
8801 for ncn_progname in nm; do
8802 if test -n "$ncn_tool_prefix"; then
8803 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8804 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 $as_echo_n "checking for $ac_word... " >&6; }
8807 if test "${ac_cv_prog_NM+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 if test -n "$NM"; then
8811 ac_cv_prog_NM="$NM" # Let the user override the test.
8812 else
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8815 do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8820 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824 done
8825 done
8826 IFS=$as_save_IFS
8827
8828 fi
8829 fi
8830 NM=$ac_cv_prog_NM
8831 if test -n "$NM"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8833 $as_echo "$NM" >&6; }
8834 else
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8837 fi
8838
8839
8840 fi
8841 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8843 set dummy ${ncn_progname}; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if test "${ac_cv_prog_NM+set}" = set; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 if test -n "$NM"; then
8850 ac_cv_prog_NM="$NM" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859 ac_cv_prog_NM="${ncn_progname}"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863 done
8864 done
8865 IFS=$as_save_IFS
8866
8867 fi
8868 fi
8869 NM=$ac_cv_prog_NM
8870 if test -n "$NM"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8872 $as_echo "$NM" >&6; }
8873 else
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8876 fi
8877
8878
8879 fi
8880 test -n "$ac_cv_prog_NM" && break
8881 done
8882
8883 if test -z "$ac_cv_prog_NM" ; then
8884 set dummy nm
8885 if test $build = $host ; then
8886 NM="$2"
8887 else
8888 NM="${ncn_tool_prefix}$2"
8889 fi
8890 fi
8891
8892
8893
8894 if test -n "$RANLIB"; then
8895 ac_cv_prog_RANLIB=$RANLIB
8896 elif test -n "$ac_cv_prog_RANLIB"; then
8897 RANLIB=$ac_cv_prog_RANLIB
8898 fi
8899
8900 if test -n "$ac_cv_prog_RANLIB"; then
8901 for ncn_progname in ranlib; do
8902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8903 set dummy ${ncn_progname}; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 if test -n "$RANLIB"; then
8910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8911 else
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8914 do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_RANLIB="${ncn_progname}"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8922 fi
8923 done
8924 done
8925 IFS=$as_save_IFS
8926
8927 fi
8928 fi
8929 RANLIB=$ac_cv_prog_RANLIB
8930 if test -n "$RANLIB"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8932 $as_echo "$RANLIB" >&6; }
8933 else
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938
8939 done
8940 fi
8941
8942 for ncn_progname in ranlib; do
8943 if test -n "$ncn_tool_prefix"; then
8944 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8945 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 if test -n "$RANLIB"; then
8952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8953 else
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 for as_dir in $PATH
8956 do
8957 IFS=$as_save_IFS
8958 test -z "$as_dir" && as_dir=.
8959 for ac_exec_ext in '' $ac_executable_extensions; do
8960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8961 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 break 2
8964 fi
8965 done
8966 done
8967 IFS=$as_save_IFS
8968
8969 fi
8970 fi
8971 RANLIB=$ac_cv_prog_RANLIB
8972 if test -n "$RANLIB"; then
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8974 $as_echo "$RANLIB" >&6; }
8975 else
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 $as_echo "no" >&6; }
8978 fi
8979
8980
8981 fi
8982 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8984 set dummy ${ncn_progname}; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 if test -n "$RANLIB"; then
8991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_prog_RANLIB="${ncn_progname}"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9003 fi
9004 done
9005 done
9006 IFS=$as_save_IFS
9007
9008 fi
9009 fi
9010 RANLIB=$ac_cv_prog_RANLIB
9011 if test -n "$RANLIB"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9013 $as_echo "$RANLIB" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9017 fi
9018
9019
9020 fi
9021 test -n "$ac_cv_prog_RANLIB" && break
9022 done
9023
9024 if test -z "$ac_cv_prog_RANLIB" ; then
9025 RANLIB="true"
9026 fi
9027
9028
9029
9030 if test -n "$STRIP"; then
9031 ac_cv_prog_STRIP=$STRIP
9032 elif test -n "$ac_cv_prog_STRIP"; then
9033 STRIP=$ac_cv_prog_STRIP
9034 fi
9035
9036 if test -n "$ac_cv_prog_STRIP"; then
9037 for ncn_progname in strip; do
9038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9039 set dummy ${ncn_progname}; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if test "${ac_cv_prog_STRIP+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 if test -n "$STRIP"; then
9046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055 ac_cv_prog_STRIP="${ncn_progname}"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059 done
9060 done
9061 IFS=$as_save_IFS
9062
9063 fi
9064 fi
9065 STRIP=$ac_cv_prog_STRIP
9066 if test -n "$STRIP"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9068 $as_echo "$STRIP" >&6; }
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9072 fi
9073
9074
9075 done
9076 fi
9077
9078 for ncn_progname in strip; do
9079 if test -n "$ncn_tool_prefix"; then
9080 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9081 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if test "${ac_cv_prog_STRIP+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 if test -n "$STRIP"; then
9088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9089 else
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in $PATH
9092 do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9097 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101 done
9102 done
9103 IFS=$as_save_IFS
9104
9105 fi
9106 fi
9107 STRIP=$ac_cv_prog_STRIP
9108 if test -n "$STRIP"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9110 $as_echo "$STRIP" >&6; }
9111 else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9114 fi
9115
9116
9117 fi
9118 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9120 set dummy ${ncn_progname}; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if test "${ac_cv_prog_STRIP+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 if test -n "$STRIP"; then
9127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9128 else
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_prog_STRIP="${ncn_progname}"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140 done
9141 done
9142 IFS=$as_save_IFS
9143
9144 fi
9145 fi
9146 STRIP=$ac_cv_prog_STRIP
9147 if test -n "$STRIP"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9149 $as_echo "$STRIP" >&6; }
9150 else
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9153 fi
9154
9155
9156 fi
9157 test -n "$ac_cv_prog_STRIP" && break
9158 done
9159
9160 if test -z "$ac_cv_prog_STRIP" ; then
9161 STRIP="true"
9162 fi
9163
9164
9165
9166 if test -n "$WINDRES"; then
9167 ac_cv_prog_WINDRES=$WINDRES
9168 elif test -n "$ac_cv_prog_WINDRES"; then
9169 WINDRES=$ac_cv_prog_WINDRES
9170 fi
9171
9172 if test -n "$ac_cv_prog_WINDRES"; then
9173 for ncn_progname in windres; do
9174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9175 set dummy ${ncn_progname}; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9180 else
9181 if test -n "$WINDRES"; then
9182 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187 IFS=$as_save_IFS
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_WINDRES="${ncn_progname}"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195 done
9196 done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 WINDRES=$ac_cv_prog_WINDRES
9202 if test -n "$WINDRES"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9204 $as_echo "$WINDRES" >&6; }
9205 else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9208 fi
9209
9210
9211 done
9212 fi
9213
9214 for ncn_progname in windres; do
9215 if test -n "$ncn_tool_prefix"; then
9216 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9217 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 if test -n "$WINDRES"; then
9224 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9225 else
9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 for as_dir in $PATH
9228 do
9229 IFS=$as_save_IFS
9230 test -z "$as_dir" && as_dir=.
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9233 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 break 2
9236 fi
9237 done
9238 done
9239 IFS=$as_save_IFS
9240
9241 fi
9242 fi
9243 WINDRES=$ac_cv_prog_WINDRES
9244 if test -n "$WINDRES"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9246 $as_echo "$WINDRES" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9250 fi
9251
9252
9253 fi
9254 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9256 set dummy ${ncn_progname}; ac_word=$2
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 if test -n "$WINDRES"; then
9263 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9264 else
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 for as_dir in $PATH
9267 do
9268 IFS=$as_save_IFS
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9272 ac_cv_prog_WINDRES="${ncn_progname}"
9273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276 done
9277 done
9278 IFS=$as_save_IFS
9279
9280 fi
9281 fi
9282 WINDRES=$ac_cv_prog_WINDRES
9283 if test -n "$WINDRES"; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9285 $as_echo "$WINDRES" >&6; }
9286 else
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 $as_echo "no" >&6; }
9289 fi
9290
9291
9292 fi
9293 test -n "$ac_cv_prog_WINDRES" && break
9294 done
9295
9296 if test -z "$ac_cv_prog_WINDRES" ; then
9297 set dummy windres
9298 if test $build = $host ; then
9299 WINDRES="$2"
9300 else
9301 WINDRES="${ncn_tool_prefix}$2"
9302 fi
9303 fi
9304
9305
9306
9307 if test -n "$WINDMC"; then
9308 ac_cv_prog_WINDMC=$WINDMC
9309 elif test -n "$ac_cv_prog_WINDMC"; then
9310 WINDMC=$ac_cv_prog_WINDMC
9311 fi
9312
9313 if test -n "$ac_cv_prog_WINDMC"; then
9314 for ncn_progname in windmc; do
9315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9316 set dummy ${ncn_progname}; ac_word=$2
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318 $as_echo_n "checking for $ac_word... " >&6; }
9319 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 if test -n "$WINDMC"; then
9323 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9327 do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_prog_WINDMC="${ncn_progname}"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336 done
9337 done
9338 IFS=$as_save_IFS
9339
9340 fi
9341 fi
9342 WINDMC=$ac_cv_prog_WINDMC
9343 if test -n "$WINDMC"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9345 $as_echo "$WINDMC" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350
9351
9352 done
9353 fi
9354
9355 for ncn_progname in windmc; do
9356 if test -n "$ncn_tool_prefix"; then
9357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9358 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 if test -n "$WINDMC"; then
9365 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9366 else
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9369 do
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9374 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376 break 2
9377 fi
9378 done
9379 done
9380 IFS=$as_save_IFS
9381
9382 fi
9383 fi
9384 WINDMC=$ac_cv_prog_WINDMC
9385 if test -n "$WINDMC"; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9387 $as_echo "$WINDMC" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9391 fi
9392
9393
9394 fi
9395 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9397 set dummy ${ncn_progname}; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 if test -n "$WINDMC"; then
9404 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9405 else
9406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9407 for as_dir in $PATH
9408 do
9409 IFS=$as_save_IFS
9410 test -z "$as_dir" && as_dir=.
9411 for ac_exec_ext in '' $ac_executable_extensions; do
9412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9413 ac_cv_prog_WINDMC="${ncn_progname}"
9414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415 break 2
9416 fi
9417 done
9418 done
9419 IFS=$as_save_IFS
9420
9421 fi
9422 fi
9423 WINDMC=$ac_cv_prog_WINDMC
9424 if test -n "$WINDMC"; then
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9426 $as_echo "$WINDMC" >&6; }
9427 else
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9430 fi
9431
9432
9433 fi
9434 test -n "$ac_cv_prog_WINDMC" && break
9435 done
9436
9437 if test -z "$ac_cv_prog_WINDMC" ; then
9438 set dummy windmc
9439 if test $build = $host ; then
9440 WINDMC="$2"
9441 else
9442 WINDMC="${ncn_tool_prefix}$2"
9443 fi
9444 fi
9445
9446
9447
9448 if test -n "$OBJCOPY"; then
9449 ac_cv_prog_OBJCOPY=$OBJCOPY
9450 elif test -n "$ac_cv_prog_OBJCOPY"; then
9451 OBJCOPY=$ac_cv_prog_OBJCOPY
9452 fi
9453
9454 if test -n "$ac_cv_prog_OBJCOPY"; then
9455 for ncn_progname in objcopy; do
9456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9457 set dummy ${ncn_progname}; ac_word=$2
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9459 $as_echo_n "checking for $ac_word... " >&6; }
9460 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 if test -n "$OBJCOPY"; then
9464 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9465 else
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in $PATH
9468 do
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_prog_OBJCOPY="${ncn_progname}"
9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9476 fi
9477 done
9478 done
9479 IFS=$as_save_IFS
9480
9481 fi
9482 fi
9483 OBJCOPY=$ac_cv_prog_OBJCOPY
9484 if test -n "$OBJCOPY"; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9486 $as_echo "$OBJCOPY" >&6; }
9487 else
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9489 $as_echo "no" >&6; }
9490 fi
9491
9492
9493 done
9494 fi
9495
9496 for ncn_progname in objcopy; do
9497 if test -n "$ncn_tool_prefix"; then
9498 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9499 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501 $as_echo_n "checking for $ac_word... " >&6; }
9502 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 if test -n "$OBJCOPY"; then
9506 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9507 else
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 for as_dir in $PATH
9510 do
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9515 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 break 2
9518 fi
9519 done
9520 done
9521 IFS=$as_save_IFS
9522
9523 fi
9524 fi
9525 OBJCOPY=$ac_cv_prog_OBJCOPY
9526 if test -n "$OBJCOPY"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9528 $as_echo "$OBJCOPY" >&6; }
9529 else
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9532 fi
9533
9534
9535 fi
9536 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9538 set dummy ${ncn_progname}; ac_word=$2
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 $as_echo_n "checking for $ac_word... " >&6; }
9541 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 if test -n "$OBJCOPY"; then
9545 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9546 else
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $PATH
9549 do
9550 IFS=$as_save_IFS
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9554 ac_cv_prog_OBJCOPY="${ncn_progname}"
9555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556 break 2
9557 fi
9558 done
9559 done
9560 IFS=$as_save_IFS
9561
9562 fi
9563 fi
9564 OBJCOPY=$ac_cv_prog_OBJCOPY
9565 if test -n "$OBJCOPY"; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9567 $as_echo "$OBJCOPY" >&6; }
9568 else
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570 $as_echo "no" >&6; }
9571 fi
9572
9573
9574 fi
9575 test -n "$ac_cv_prog_OBJCOPY" && break
9576 done
9577
9578 if test -z "$ac_cv_prog_OBJCOPY" ; then
9579 set dummy objcopy
9580 if test $build = $host ; then
9581 OBJCOPY="$2"
9582 else
9583 OBJCOPY="${ncn_tool_prefix}$2"
9584 fi
9585 fi
9586
9587
9588
9589 if test -n "$OBJDUMP"; then
9590 ac_cv_prog_OBJDUMP=$OBJDUMP
9591 elif test -n "$ac_cv_prog_OBJDUMP"; then
9592 OBJDUMP=$ac_cv_prog_OBJDUMP
9593 fi
9594
9595 if test -n "$ac_cv_prog_OBJDUMP"; then
9596 for ncn_progname in objdump; do
9597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9598 set dummy ${ncn_progname}; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 if test -n "$OBJDUMP"; then
9605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9606 else
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9609 do
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9614 ac_cv_prog_OBJDUMP="${ncn_progname}"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9617 fi
9618 done
9619 done
9620 IFS=$as_save_IFS
9621
9622 fi
9623 fi
9624 OBJDUMP=$ac_cv_prog_OBJDUMP
9625 if test -n "$OBJDUMP"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9627 $as_echo "$OBJDUMP" >&6; }
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9631 fi
9632
9633
9634 done
9635 fi
9636
9637 for ncn_progname in objdump; do
9638 if test -n "$ncn_tool_prefix"; then
9639 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9640 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 if test -n "$OBJDUMP"; then
9647 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9648 else
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9651 do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9659 fi
9660 done
9661 done
9662 IFS=$as_save_IFS
9663
9664 fi
9665 fi
9666 OBJDUMP=$ac_cv_prog_OBJDUMP
9667 if test -n "$OBJDUMP"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9669 $as_echo "$OBJDUMP" >&6; }
9670 else
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673 fi
9674
9675
9676 fi
9677 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9679 set dummy ${ncn_progname}; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 if test -n "$OBJDUMP"; then
9686 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695 ac_cv_prog_OBJDUMP="${ncn_progname}"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9698 fi
9699 done
9700 done
9701 IFS=$as_save_IFS
9702
9703 fi
9704 fi
9705 OBJDUMP=$ac_cv_prog_OBJDUMP
9706 if test -n "$OBJDUMP"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9708 $as_echo "$OBJDUMP" >&6; }
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9712 fi
9713
9714
9715 fi
9716 test -n "$ac_cv_prog_OBJDUMP" && break
9717 done
9718
9719 if test -z "$ac_cv_prog_OBJDUMP" ; then
9720 set dummy objdump
9721 if test $build = $host ; then
9722 OBJDUMP="$2"
9723 else
9724 OBJDUMP="${ncn_tool_prefix}$2"
9725 fi
9726 fi
9727
9728
9729
9730 if test -n "$READELF"; then
9731 ac_cv_prog_READELF=$READELF
9732 elif test -n "$ac_cv_prog_READELF"; then
9733 READELF=$ac_cv_prog_READELF
9734 fi
9735
9736 if test -n "$ac_cv_prog_READELF"; then
9737 for ncn_progname in readelf; do
9738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9739 set dummy ${ncn_progname}; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if test "${ac_cv_prog_READELF+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 if test -n "$READELF"; then
9746 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9747 else
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755 ac_cv_prog_READELF="${ncn_progname}"
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 break 2
9758 fi
9759 done
9760 done
9761 IFS=$as_save_IFS
9762
9763 fi
9764 fi
9765 READELF=$ac_cv_prog_READELF
9766 if test -n "$READELF"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9768 $as_echo "$READELF" >&6; }
9769 else
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9772 fi
9773
9774
9775 done
9776 fi
9777
9778 for ncn_progname in readelf; do
9779 if test -n "$ncn_tool_prefix"; then
9780 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9781 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783 $as_echo_n "checking for $ac_word... " >&6; }
9784 if test "${ac_cv_prog_READELF+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 if test -n "$READELF"; then
9788 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9789 else
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH
9792 do
9793 IFS=$as_save_IFS
9794 test -z "$as_dir" && as_dir=.
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9797 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9799 break 2
9800 fi
9801 done
9802 done
9803 IFS=$as_save_IFS
9804
9805 fi
9806 fi
9807 READELF=$ac_cv_prog_READELF
9808 if test -n "$READELF"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9810 $as_echo "$READELF" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9814 fi
9815
9816
9817 fi
9818 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9820 set dummy ${ncn_progname}; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if test "${ac_cv_prog_READELF+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 if test -n "$READELF"; then
9827 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9828 else
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9831 do
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9836 ac_cv_prog_READELF="${ncn_progname}"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9839 fi
9840 done
9841 done
9842 IFS=$as_save_IFS
9843
9844 fi
9845 fi
9846 READELF=$ac_cv_prog_READELF
9847 if test -n "$READELF"; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9849 $as_echo "$READELF" >&6; }
9850 else
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9853 fi
9854
9855
9856 fi
9857 test -n "$ac_cv_prog_READELF" && break
9858 done
9859
9860 if test -z "$ac_cv_prog_READELF" ; then
9861 set dummy readelf
9862 if test $build = $host ; then
9863 READELF="$2"
9864 else
9865 READELF="${ncn_tool_prefix}$2"
9866 fi
9867 fi
9868
9869
9870
9871
9872
9873
9874 # Target tools.
9875
9876 # Check whether --with-build-time-tools was given.
9877 if test "${with_build_time_tools+set}" = set; then :
9878 withval=$with_build_time_tools; case x"$withval" in
9879 x/*) ;;
9880 *)
9881 with_build_time_tools=
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9883 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9884 ;;
9885 esac
9886 else
9887 with_build_time_tools=
9888 fi
9889
9890
9891
9892
9893 if test -n "$CC_FOR_TARGET"; then
9894 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9895 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9896 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9897 fi
9898
9899 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9900 for ncn_progname in cc gcc; do
9901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9902 set dummy ${ncn_progname}; ac_word=$2
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904 $as_echo_n "checking for $ac_word... " >&6; }
9905 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 if test -n "$CC_FOR_TARGET"; then
9909 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9910 else
9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in $PATH
9913 do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9918 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9921 fi
9922 done
9923 done
9924 IFS=$as_save_IFS
9925
9926 fi
9927 fi
9928 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9929 if test -n "$CC_FOR_TARGET"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9931 $as_echo "$CC_FOR_TARGET" >&6; }
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9935 fi
9936
9937
9938 done
9939 fi
9940
9941 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9942 for ncn_progname in cc gcc; do
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9944 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9945 if test -x $with_build_time_tools/${ncn_progname}; then
9946 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9948 $as_echo "yes" >&6; }
9949 break
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9953 fi
9954 done
9955 fi
9956
9957 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9958 for ncn_progname in cc gcc; do
9959 if test -n "$ncn_target_tool_prefix"; then
9960 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9961 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 if test -n "$CC_FOR_TARGET"; then
9968 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9969 else
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH
9972 do
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9980 fi
9981 done
9982 done
9983 IFS=$as_save_IFS
9984
9985 fi
9986 fi
9987 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9988 if test -n "$CC_FOR_TARGET"; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9990 $as_echo "$CC_FOR_TARGET" >&6; }
9991 else
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9994 fi
9995
9996
9997 fi
9998 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10000 set dummy ${ncn_progname}; ac_word=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 if test -n "$CC_FOR_TARGET"; then
10007 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10008 else
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10011 do
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10019 fi
10020 done
10021 done
10022 IFS=$as_save_IFS
10023
10024 fi
10025 fi
10026 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10027 if test -n "$CC_FOR_TARGET"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10029 $as_echo "$CC_FOR_TARGET" >&6; }
10030 else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10033 fi
10034
10035
10036 fi
10037 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10038 done
10039 fi
10040
10041 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10042 set dummy cc gcc
10043 if test $build = $target ; then
10044 CC_FOR_TARGET="$2"
10045 else
10046 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10047 fi
10048 else
10049 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10050 fi
10051
10052
10053
10054 if test -n "$CXX_FOR_TARGET"; then
10055 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10056 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10057 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10058 fi
10059
10060 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10061 for ncn_progname in c++ g++ cxx gxx; do
10062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10063 set dummy ${ncn_progname}; ac_word=$2
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 $as_echo_n "checking for $ac_word... " >&6; }
10066 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 if test -n "$CXX_FOR_TARGET"; then
10070 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10071 else
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10074 do
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 break 2
10082 fi
10083 done
10084 done
10085 IFS=$as_save_IFS
10086
10087 fi
10088 fi
10089 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10090 if test -n "$CXX_FOR_TARGET"; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10092 $as_echo "$CXX_FOR_TARGET" >&6; }
10093 else
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10096 fi
10097
10098
10099 done
10100 fi
10101
10102 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10103 for ncn_progname in c++ g++ cxx gxx; do
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10105 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10106 if test -x $with_build_time_tools/${ncn_progname}; then
10107 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10109 $as_echo "yes" >&6; }
10110 break
10111 else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 fi
10115 done
10116 fi
10117
10118 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10119 for ncn_progname in c++ g++ cxx gxx; do
10120 if test -n "$ncn_target_tool_prefix"; then
10121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10122 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124 $as_echo_n "checking for $ac_word... " >&6; }
10125 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 if test -n "$CXX_FOR_TARGET"; then
10129 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10130 else
10131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132 for as_dir in $PATH
10133 do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10138 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10141 fi
10142 done
10143 done
10144 IFS=$as_save_IFS
10145
10146 fi
10147 fi
10148 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10149 if test -n "$CXX_FOR_TARGET"; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10151 $as_echo "$CXX_FOR_TARGET" >&6; }
10152 else
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10155 fi
10156
10157
10158 fi
10159 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10161 set dummy ${ncn_progname}; ac_word=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 if test -n "$CXX_FOR_TARGET"; then
10168 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10169 else
10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171 for as_dir in $PATH
10172 do
10173 IFS=$as_save_IFS
10174 test -z "$as_dir" && as_dir=.
10175 for ac_exec_ext in '' $ac_executable_extensions; do
10176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10177 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 break 2
10180 fi
10181 done
10182 done
10183 IFS=$as_save_IFS
10184
10185 fi
10186 fi
10187 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10188 if test -n "$CXX_FOR_TARGET"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10190 $as_echo "$CXX_FOR_TARGET" >&6; }
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10194 fi
10195
10196
10197 fi
10198 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10199 done
10200 fi
10201
10202 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10203 set dummy c++ g++ cxx gxx
10204 if test $build = $target ; then
10205 CXX_FOR_TARGET="$2"
10206 else
10207 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10208 fi
10209 else
10210 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10211 fi
10212
10213
10214
10215 if test -n "$GCC_FOR_TARGET"; then
10216 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10217 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10218 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10219 fi
10220
10221 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10222 for ncn_progname in gcc; do
10223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10224 set dummy ${ncn_progname}; ac_word=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 if test -n "$GCC_FOR_TARGET"; then
10231 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10232 else
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10235 do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10240 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244 done
10245 done
10246 IFS=$as_save_IFS
10247
10248 fi
10249 fi
10250 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10251 if test -n "$GCC_FOR_TARGET"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10253 $as_echo "$GCC_FOR_TARGET" >&6; }
10254 else
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258
10259
10260 done
10261 fi
10262
10263 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10264 for ncn_progname in gcc; do
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10266 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10267 if test -x $with_build_time_tools/${ncn_progname}; then
10268 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10270 $as_echo "yes" >&6; }
10271 break
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10275 fi
10276 done
10277 fi
10278
10279 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10280 for ncn_progname in gcc; do
10281 if test -n "$ncn_target_tool_prefix"; then
10282 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10283 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 if test -n "$GCC_FOR_TARGET"; then
10290 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10291 else
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10294 do
10295 IFS=$as_save_IFS
10296 test -z "$as_dir" && as_dir=.
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301 break 2
10302 fi
10303 done
10304 done
10305 IFS=$as_save_IFS
10306
10307 fi
10308 fi
10309 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10310 if test -n "$GCC_FOR_TARGET"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10312 $as_echo "$GCC_FOR_TARGET" >&6; }
10313 else
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10316 fi
10317
10318
10319 fi
10320 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10322 set dummy ${ncn_progname}; ac_word=$2
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10324 $as_echo_n "checking for $ac_word... " >&6; }
10325 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 if test -n "$GCC_FOR_TARGET"; then
10329 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10330 else
10331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332 for as_dir in $PATH
10333 do
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 for ac_exec_ext in '' $ac_executable_extensions; do
10337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10338 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 break 2
10341 fi
10342 done
10343 done
10344 IFS=$as_save_IFS
10345
10346 fi
10347 fi
10348 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10349 if test -n "$GCC_FOR_TARGET"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10351 $as_echo "$GCC_FOR_TARGET" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10355 fi
10356
10357
10358 fi
10359 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10360 done
10361 fi
10362
10363 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10364 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10365 else
10366 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10367 fi
10368
10369
10370
10371 if test -n "$GFORTRAN_FOR_TARGET"; then
10372 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10373 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10374 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10375 fi
10376
10377 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10378 for ncn_progname in gfortran; do
10379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10380 set dummy ${ncn_progname}; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 if test -n "$GFORTRAN_FOR_TARGET"; then
10387 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10388 else
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10391 do
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10399 fi
10400 done
10401 done
10402 IFS=$as_save_IFS
10403
10404 fi
10405 fi
10406 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10407 if test -n "$GFORTRAN_FOR_TARGET"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10409 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10410 else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10413 fi
10414
10415
10416 done
10417 fi
10418
10419 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10420 for ncn_progname in gfortran; do
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10422 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10423 if test -x $with_build_time_tools/${ncn_progname}; then
10424 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10426 $as_echo "yes" >&6; }
10427 break
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10431 fi
10432 done
10433 fi
10434
10435 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10436 for ncn_progname in gfortran; do
10437 if test -n "$ncn_target_tool_prefix"; then
10438 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10439 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 if test -n "$GFORTRAN_FOR_TARGET"; then
10446 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10447 else
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10450 do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10455 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459 done
10460 done
10461 IFS=$as_save_IFS
10462
10463 fi
10464 fi
10465 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10466 if test -n "$GFORTRAN_FOR_TARGET"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10468 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10472 fi
10473
10474
10475 fi
10476 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10478 set dummy ${ncn_progname}; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 if test -n "$GFORTRAN_FOR_TARGET"; then
10485 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10486 else
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10489 do
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10494 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10497 fi
10498 done
10499 done
10500 IFS=$as_save_IFS
10501
10502 fi
10503 fi
10504 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10505 if test -n "$GFORTRAN_FOR_TARGET"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10507 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10508 else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10511 fi
10512
10513
10514 fi
10515 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10516 done
10517 fi
10518
10519 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10520 set dummy gfortran
10521 if test $build = $target ; then
10522 GFORTRAN_FOR_TARGET="$2"
10523 else
10524 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10525 fi
10526 else
10527 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10528 fi
10529
10530
10531
10532 if test -n "$GOC_FOR_TARGET"; then
10533 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10534 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10535 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10536 fi
10537
10538 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10539 for ncn_progname in gccgo; do
10540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10541 set dummy ${ncn_progname}; ac_word=$2
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543 $as_echo_n "checking for $ac_word... " >&6; }
10544 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 if test -n "$GOC_FOR_TARGET"; then
10548 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10549 else
10550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10552 do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 for ac_exec_ext in '' $ac_executable_extensions; do
10556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10557 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 break 2
10560 fi
10561 done
10562 done
10563 IFS=$as_save_IFS
10564
10565 fi
10566 fi
10567 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10568 if test -n "$GOC_FOR_TARGET"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10570 $as_echo "$GOC_FOR_TARGET" >&6; }
10571 else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10574 fi
10575
10576
10577 done
10578 fi
10579
10580 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10581 for ncn_progname in gccgo; do
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10583 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10584 if test -x $with_build_time_tools/${ncn_progname}; then
10585 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10587 $as_echo "yes" >&6; }
10588 break
10589 else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 fi
10593 done
10594 fi
10595
10596 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10597 for ncn_progname in gccgo; do
10598 if test -n "$ncn_target_tool_prefix"; then
10599 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10600 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 if test -n "$GOC_FOR_TARGET"; then
10607 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10608 else
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10611 do
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10616 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 break 2
10619 fi
10620 done
10621 done
10622 IFS=$as_save_IFS
10623
10624 fi
10625 fi
10626 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10627 if test -n "$GOC_FOR_TARGET"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10629 $as_echo "$GOC_FOR_TARGET" >&6; }
10630 else
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10634
10635
10636 fi
10637 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10639 set dummy ${ncn_progname}; ac_word=$2
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 $as_echo_n "checking for $ac_word... " >&6; }
10642 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 if test -n "$GOC_FOR_TARGET"; then
10646 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10647 else
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10650 do
10651 IFS=$as_save_IFS
10652 test -z "$as_dir" && as_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10655 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10657 break 2
10658 fi
10659 done
10660 done
10661 IFS=$as_save_IFS
10662
10663 fi
10664 fi
10665 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10666 if test -n "$GOC_FOR_TARGET"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10668 $as_echo "$GOC_FOR_TARGET" >&6; }
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10672 fi
10673
10674
10675 fi
10676 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10677 done
10678 fi
10679
10680 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10681 set dummy gccgo
10682 if test $build = $target ; then
10683 GOC_FOR_TARGET="$2"
10684 else
10685 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10686 fi
10687 else
10688 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10689 fi
10690
10691
10692
10693 cat > conftest.c << \EOF
10694 #ifdef __GNUC__
10695 gcc_yay;
10696 #endif
10697 EOF
10698 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10699 have_gcc_for_target=yes
10700 else
10701 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10702 have_gcc_for_target=no
10703 fi
10704 rm conftest.c
10705
10706
10707
10708
10709 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10710 if test -n "$with_build_time_tools"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10712 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10713 if test -x $with_build_time_tools/ar; then
10714 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10715 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10717 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10721 fi
10722 elif test $build != $host && test $have_gcc_for_target = yes; then
10723 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10724 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10725 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10726 fi
10727 fi
10728 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10729 # Extract the first word of "ar", so it can be a program name with args.
10730 set dummy ar; ac_word=$2
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 $as_echo_n "checking for $ac_word... " >&6; }
10733 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 case $AR_FOR_TARGET in
10737 [\\/]* | ?:[\\/]*)
10738 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10739 ;;
10740 *)
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $gcc_cv_tool_dirs
10743 do
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10751 fi
10752 done
10753 done
10754 IFS=$as_save_IFS
10755
10756 ;;
10757 esac
10758 fi
10759 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10760 if test -n "$AR_FOR_TARGET"; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10762 $as_echo "$AR_FOR_TARGET" >&6; }
10763 else
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10766 fi
10767
10768
10769 fi
10770 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10771
10772
10773 if test -n "$AR_FOR_TARGET"; then
10774 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10775 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10776 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10777 fi
10778
10779 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10780 for ncn_progname in ar; do
10781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10782 set dummy ${ncn_progname}; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788 if test -n "$AR_FOR_TARGET"; then
10789 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10790 else
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802 done
10803 done
10804 IFS=$as_save_IFS
10805
10806 fi
10807 fi
10808 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10809 if test -n "$AR_FOR_TARGET"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10811 $as_echo "$AR_FOR_TARGET" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816
10817
10818 done
10819 fi
10820
10821 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10822 for ncn_progname in ar; do
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10824 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10825 if test -x $with_build_time_tools/${ncn_progname}; then
10826 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828 $as_echo "yes" >&6; }
10829 break
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10834 done
10835 fi
10836
10837 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10838 for ncn_progname in ar; do
10839 if test -n "$ncn_target_tool_prefix"; then
10840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10841 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 if test -n "$AR_FOR_TARGET"; then
10848 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10849 else
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10852 do
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10860 fi
10861 done
10862 done
10863 IFS=$as_save_IFS
10864
10865 fi
10866 fi
10867 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10868 if test -n "$AR_FOR_TARGET"; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10870 $as_echo "$AR_FOR_TARGET" >&6; }
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 fi
10875
10876
10877 fi
10878 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10880 set dummy ${ncn_progname}; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 if test -n "$AR_FOR_TARGET"; then
10887 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10888 else
10889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10891 do
10892 IFS=$as_save_IFS
10893 test -z "$as_dir" && as_dir=.
10894 for ac_exec_ext in '' $ac_executable_extensions; do
10895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10896 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 break 2
10899 fi
10900 done
10901 done
10902 IFS=$as_save_IFS
10903
10904 fi
10905 fi
10906 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10907 if test -n "$AR_FOR_TARGET"; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10909 $as_echo "$AR_FOR_TARGET" >&6; }
10910 else
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10913 fi
10914
10915
10916 fi
10917 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10918 done
10919 fi
10920
10921 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10922 set dummy ar
10923 if test $build = $target ; then
10924 AR_FOR_TARGET="$2"
10925 else
10926 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10927 fi
10928 else
10929 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10930 fi
10931
10932 else
10933 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10934 fi
10935
10936
10937
10938
10939 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10940 if test -n "$with_build_time_tools"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10942 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10943 if test -x $with_build_time_tools/as; then
10944 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10945 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10947 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10951 fi
10952 elif test $build != $host && test $have_gcc_for_target = yes; then
10953 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10954 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10955 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10956 fi
10957 fi
10958 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10959 # Extract the first word of "as", so it can be a program name with args.
10960 set dummy as; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 case $AS_FOR_TARGET in
10967 [\\/]* | ?:[\\/]*)
10968 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10969 ;;
10970 *)
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $gcc_cv_tool_dirs
10973 do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10981 fi
10982 done
10983 done
10984 IFS=$as_save_IFS
10985
10986 ;;
10987 esac
10988 fi
10989 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10990 if test -n "$AS_FOR_TARGET"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10992 $as_echo "$AS_FOR_TARGET" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997
10998
10999 fi
11000 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11001
11002
11003 if test -n "$AS_FOR_TARGET"; then
11004 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11005 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11006 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11007 fi
11008
11009 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11010 for ncn_progname in as; do
11011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11012 set dummy ${ncn_progname}; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 if test -n "$AS_FOR_TARGET"; then
11019 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11020 else
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11023 do
11024 IFS=$as_save_IFS
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
11027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11028 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030 break 2
11031 fi
11032 done
11033 done
11034 IFS=$as_save_IFS
11035
11036 fi
11037 fi
11038 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11039 if test -n "$AS_FOR_TARGET"; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11041 $as_echo "$AS_FOR_TARGET" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 fi
11046
11047
11048 done
11049 fi
11050
11051 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11052 for ncn_progname in as; do
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11054 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11055 if test -x $with_build_time_tools/${ncn_progname}; then
11056 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11058 $as_echo "yes" >&6; }
11059 break
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063 fi
11064 done
11065 fi
11066
11067 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11068 for ncn_progname in as; do
11069 if test -n "$ncn_target_tool_prefix"; then
11070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 if test -n "$AS_FOR_TARGET"; then
11078 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11079 else
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11082 do
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11087 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 break 2
11090 fi
11091 done
11092 done
11093 IFS=$as_save_IFS
11094
11095 fi
11096 fi
11097 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11098 if test -n "$AS_FOR_TARGET"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11100 $as_echo "$AS_FOR_TARGET" >&6; }
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105
11106
11107 fi
11108 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11110 set dummy ${ncn_progname}; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 if test -n "$AS_FOR_TARGET"; then
11117 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11118 else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11121 do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
11124 for ac_exec_ext in '' $ac_executable_extensions; do
11125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 break 2
11129 fi
11130 done
11131 done
11132 IFS=$as_save_IFS
11133
11134 fi
11135 fi
11136 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11137 if test -n "$AS_FOR_TARGET"; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11139 $as_echo "$AS_FOR_TARGET" >&6; }
11140 else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11143 fi
11144
11145
11146 fi
11147 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11148 done
11149 fi
11150
11151 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11152 set dummy as
11153 if test $build = $target ; then
11154 AS_FOR_TARGET="$2"
11155 else
11156 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11157 fi
11158 else
11159 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11160 fi
11161
11162 else
11163 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11164 fi
11165
11166
11167
11168
11169 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11170 if test -n "$with_build_time_tools"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11172 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11173 if test -x $with_build_time_tools/dlltool; then
11174 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11175 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11177 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11181 fi
11182 elif test $build != $host && test $have_gcc_for_target = yes; then
11183 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11184 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11185 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11186 fi
11187 fi
11188 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11189 # Extract the first word of "dlltool", so it can be a program name with args.
11190 set dummy dlltool; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 case $DLLTOOL_FOR_TARGET in
11197 [\\/]* | ?:[\\/]*)
11198 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11199 ;;
11200 *)
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $gcc_cv_tool_dirs
11203 do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212 done
11213 done
11214 IFS=$as_save_IFS
11215
11216 ;;
11217 esac
11218 fi
11219 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11220 if test -n "$DLLTOOL_FOR_TARGET"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11222 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228
11229 fi
11230 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11231
11232
11233 if test -n "$DLLTOOL_FOR_TARGET"; then
11234 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11235 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11236 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11237 fi
11238
11239 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11240 for ncn_progname in dlltool; do
11241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11242 set dummy ${ncn_progname}; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 if test -n "$DLLTOOL_FOR_TARGET"; then
11249 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11250 else
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11261 fi
11262 done
11263 done
11264 IFS=$as_save_IFS
11265
11266 fi
11267 fi
11268 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11269 if test -n "$DLLTOOL_FOR_TARGET"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11271 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276
11277
11278 done
11279 fi
11280
11281 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11282 for ncn_progname in dlltool; do
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11284 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11285 if test -x $with_build_time_tools/${ncn_progname}; then
11286 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11288 $as_echo "yes" >&6; }
11289 break
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11293 fi
11294 done
11295 fi
11296
11297 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11298 for ncn_progname in dlltool; do
11299 if test -n "$ncn_target_tool_prefix"; then
11300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 if test -n "$DLLTOOL_FOR_TARGET"; then
11308 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11309 else
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321 done
11322 done
11323 IFS=$as_save_IFS
11324
11325 fi
11326 fi
11327 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11328 if test -n "$DLLTOOL_FOR_TARGET"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11330 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335
11336
11337 fi
11338 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11340 set dummy ${ncn_progname}; ac_word=$2
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 if test -n "$DLLTOOL_FOR_TARGET"; then
11347 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11359 fi
11360 done
11361 done
11362 IFS=$as_save_IFS
11363
11364 fi
11365 fi
11366 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11367 if test -n "$DLLTOOL_FOR_TARGET"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11369 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 fi
11374
11375
11376 fi
11377 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11378 done
11379 fi
11380
11381 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11382 set dummy dlltool
11383 if test $build = $target ; then
11384 DLLTOOL_FOR_TARGET="$2"
11385 else
11386 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11387 fi
11388 else
11389 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11390 fi
11391
11392 else
11393 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11394 fi
11395
11396
11397
11398
11399 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11400 if test -n "$with_build_time_tools"; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11402 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11403 if test -x $with_build_time_tools/ld; then
11404 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11405 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11407 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11411 fi
11412 elif test $build != $host && test $have_gcc_for_target = yes; then
11413 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11414 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11415 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11416 fi
11417 fi
11418 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11419 # Extract the first word of "ld", so it can be a program name with args.
11420 set dummy ld; ac_word=$2
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422 $as_echo_n "checking for $ac_word... " >&6; }
11423 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 case $LD_FOR_TARGET in
11427 [\\/]* | ?:[\\/]*)
11428 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11429 ;;
11430 *)
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $gcc_cv_tool_dirs
11433 do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442 done
11443 done
11444 IFS=$as_save_IFS
11445
11446 ;;
11447 esac
11448 fi
11449 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11450 if test -n "$LD_FOR_TARGET"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11452 $as_echo "$LD_FOR_TARGET" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 fi
11457
11458
11459 fi
11460 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11461
11462
11463 if test -n "$LD_FOR_TARGET"; then
11464 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11465 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11466 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11467 fi
11468
11469 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11470 for ncn_progname in ld; do
11471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11472 set dummy ${ncn_progname}; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 if test -n "$LD_FOR_TARGET"; then
11479 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11480 else
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11491 fi
11492 done
11493 done
11494 IFS=$as_save_IFS
11495
11496 fi
11497 fi
11498 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11499 if test -n "$LD_FOR_TARGET"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11501 $as_echo "$LD_FOR_TARGET" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 fi
11506
11507
11508 done
11509 fi
11510
11511 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11512 for ncn_progname in ld; do
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11514 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11515 if test -x $with_build_time_tools/${ncn_progname}; then
11516 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11519 break
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11523 fi
11524 done
11525 fi
11526
11527 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11528 for ncn_progname in ld; do
11529 if test -n "$ncn_target_tool_prefix"; then
11530 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11531 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 if test -n "$LD_FOR_TARGET"; then
11538 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11539 else
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11542 do
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11547 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 break 2
11550 fi
11551 done
11552 done
11553 IFS=$as_save_IFS
11554
11555 fi
11556 fi
11557 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11558 if test -n "$LD_FOR_TARGET"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11560 $as_echo "$LD_FOR_TARGET" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565
11566
11567 fi
11568 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11570 set dummy ${ncn_progname}; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 if test -n "$LD_FOR_TARGET"; then
11577 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590 done
11591 done
11592 IFS=$as_save_IFS
11593
11594 fi
11595 fi
11596 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11597 if test -n "$LD_FOR_TARGET"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11599 $as_echo "$LD_FOR_TARGET" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604
11605
11606 fi
11607 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11608 done
11609 fi
11610
11611 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11612 set dummy ld
11613 if test $build = $target ; then
11614 LD_FOR_TARGET="$2"
11615 else
11616 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11617 fi
11618 else
11619 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11620 fi
11621
11622 else
11623 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11624 fi
11625
11626
11627
11628
11629 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11630 if test -n "$with_build_time_tools"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11632 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11633 if test -x $with_build_time_tools/lipo; then
11634 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11635 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11637 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 fi
11642 elif test $build != $host && test $have_gcc_for_target = yes; then
11643 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11644 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11645 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11646 fi
11647 fi
11648 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11649 # Extract the first word of "lipo", so it can be a program name with args.
11650 set dummy lipo; ac_word=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 case $LIPO_FOR_TARGET in
11657 [\\/]* | ?:[\\/]*)
11658 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11659 ;;
11660 *)
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $gcc_cv_tool_dirs
11663 do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11668 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672 done
11673 done
11674 IFS=$as_save_IFS
11675
11676 ;;
11677 esac
11678 fi
11679 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11680 if test -n "$LIPO_FOR_TARGET"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11682 $as_echo "$LIPO_FOR_TARGET" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687
11688
11689 fi
11690 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11691
11692
11693 if test -n "$LIPO_FOR_TARGET"; then
11694 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11695 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11696 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11697 fi
11698
11699 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11700 for ncn_progname in lipo; do
11701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11702 set dummy ${ncn_progname}; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 if test -n "$LIPO_FOR_TARGET"; then
11709 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11710 else
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11713 do
11714 IFS=$as_save_IFS
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11718 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11720 break 2
11721 fi
11722 done
11723 done
11724 IFS=$as_save_IFS
11725
11726 fi
11727 fi
11728 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11729 if test -n "$LIPO_FOR_TARGET"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11731 $as_echo "$LIPO_FOR_TARGET" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 fi
11736
11737
11738 done
11739 fi
11740
11741 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11742 for ncn_progname in lipo; do
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11744 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11745 if test -x $with_build_time_tools/${ncn_progname}; then
11746 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; }
11749 break
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754 done
11755 fi
11756
11757 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11758 for ncn_progname in lipo; do
11759 if test -n "$ncn_target_tool_prefix"; then
11760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11761 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 $as_echo_n "checking for $ac_word... " >&6; }
11764 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 if test -n "$LIPO_FOR_TARGET"; then
11768 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11769 else
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11772 do
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11777 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11780 fi
11781 done
11782 done
11783 IFS=$as_save_IFS
11784
11785 fi
11786 fi
11787 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11788 if test -n "$LIPO_FOR_TARGET"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11790 $as_echo "$LIPO_FOR_TARGET" >&6; }
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11794 fi
11795
11796
11797 fi
11798 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11800 set dummy ${ncn_progname}; ac_word=$2
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 if test -n "$LIPO_FOR_TARGET"; then
11807 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11808 else
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11811 do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11816 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11819 fi
11820 done
11821 done
11822 IFS=$as_save_IFS
11823
11824 fi
11825 fi
11826 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11827 if test -n "$LIPO_FOR_TARGET"; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11829 $as_echo "$LIPO_FOR_TARGET" >&6; }
11830 else
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11833 fi
11834
11835
11836 fi
11837 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11838 done
11839 fi
11840
11841 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11842 set dummy lipo
11843 if test $build = $target ; then
11844 LIPO_FOR_TARGET="$2"
11845 else
11846 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11847 fi
11848 else
11849 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11850 fi
11851
11852 else
11853 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11854 fi
11855
11856
11857
11858
11859 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11860 if test -n "$with_build_time_tools"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11862 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11863 if test -x $with_build_time_tools/nm; then
11864 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11865 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11867 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11871 fi
11872 elif test $build != $host && test $have_gcc_for_target = yes; then
11873 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11874 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11875 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11876 fi
11877 fi
11878 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11879 # Extract the first word of "nm", so it can be a program name with args.
11880 set dummy nm; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 case $NM_FOR_TARGET in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11889 ;;
11890 *)
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $gcc_cv_tool_dirs
11893 do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902 done
11903 done
11904 IFS=$as_save_IFS
11905
11906 ;;
11907 esac
11908 fi
11909 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11910 if test -n "$NM_FOR_TARGET"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11912 $as_echo "$NM_FOR_TARGET" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 fi
11920 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11921
11922
11923 if test -n "$NM_FOR_TARGET"; then
11924 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11925 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11926 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11927 fi
11928
11929 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11930 for ncn_progname in nm; do
11931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11932 set dummy ${ncn_progname}; ac_word=$2
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11934 $as_echo_n "checking for $ac_word... " >&6; }
11935 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 if test -n "$NM_FOR_TARGET"; then
11939 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11940 else
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11943 do
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
11947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11948 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950 break 2
11951 fi
11952 done
11953 done
11954 IFS=$as_save_IFS
11955
11956 fi
11957 fi
11958 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11959 if test -n "$NM_FOR_TARGET"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11961 $as_echo "$NM_FOR_TARGET" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966
11967
11968 done
11969 fi
11970
11971 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11972 for ncn_progname in nm; do
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11974 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11975 if test -x $with_build_time_tools/${ncn_progname}; then
11976 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 $as_echo "yes" >&6; }
11979 break
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 fi
11984 done
11985 fi
11986
11987 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11988 for ncn_progname in nm; do
11989 if test -n "$ncn_target_tool_prefix"; then
11990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11991 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 if test -n "$NM_FOR_TARGET"; then
11998 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11999 else
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12002 do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12007 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12010 fi
12011 done
12012 done
12013 IFS=$as_save_IFS
12014
12015 fi
12016 fi
12017 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12018 if test -n "$NM_FOR_TARGET"; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12020 $as_echo "$NM_FOR_TARGET" >&6; }
12021 else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12024 fi
12025
12026
12027 fi
12028 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12030 set dummy ${ncn_progname}; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 if test -n "$NM_FOR_TARGET"; then
12037 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12038 else
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12041 do
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12046 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12049 fi
12050 done
12051 done
12052 IFS=$as_save_IFS
12053
12054 fi
12055 fi
12056 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12057 if test -n "$NM_FOR_TARGET"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12059 $as_echo "$NM_FOR_TARGET" >&6; }
12060 else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12063 fi
12064
12065
12066 fi
12067 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12068 done
12069 fi
12070
12071 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12072 set dummy nm
12073 if test $build = $target ; then
12074 NM_FOR_TARGET="$2"
12075 else
12076 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12077 fi
12078 else
12079 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12080 fi
12081
12082 else
12083 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12084 fi
12085
12086
12087
12088
12089 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12090 if test -n "$with_build_time_tools"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12092 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12093 if test -x $with_build_time_tools/objcopy; then
12094 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12095 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12097 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 fi
12102 elif test $build != $host && test $have_gcc_for_target = yes; then
12103 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12104 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12105 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12106 fi
12107 fi
12108 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12109 # Extract the first word of "objcopy", so it can be a program name with args.
12110 set dummy objcopy; ac_word=$2
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112 $as_echo_n "checking for $ac_word... " >&6; }
12113 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 case $OBJCOPY_FOR_TARGET in
12117 [\\/]* | ?:[\\/]*)
12118 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12119 ;;
12120 *)
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $gcc_cv_tool_dirs
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132 done
12133 done
12134 IFS=$as_save_IFS
12135
12136 ;;
12137 esac
12138 fi
12139 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12140 if test -n "$OBJCOPY_FOR_TARGET"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12142 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147
12148
12149 fi
12150 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12151
12152
12153 if test -n "$OBJCOPY_FOR_TARGET"; then
12154 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12155 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12156 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12157 fi
12158
12159 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12160 for ncn_progname in objcopy; do
12161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12162 set dummy ${ncn_progname}; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 if test -n "$OBJCOPY_FOR_TARGET"; then
12169 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12170 else
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12173 do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12178 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12181 fi
12182 done
12183 done
12184 IFS=$as_save_IFS
12185
12186 fi
12187 fi
12188 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12189 if test -n "$OBJCOPY_FOR_TARGET"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12191 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12195 fi
12196
12197
12198 done
12199 fi
12200
12201 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12202 for ncn_progname in objcopy; do
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12204 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12205 if test -x $with_build_time_tools/${ncn_progname}; then
12206 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208 $as_echo "yes" >&6; }
12209 break
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213 fi
12214 done
12215 fi
12216
12217 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12218 for ncn_progname in objcopy; do
12219 if test -n "$ncn_target_tool_prefix"; then
12220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 if test -n "$OBJCOPY_FOR_TARGET"; then
12228 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12229 else
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12232 do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241 done
12242 done
12243 IFS=$as_save_IFS
12244
12245 fi
12246 fi
12247 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12248 if test -n "$OBJCOPY_FOR_TARGET"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12250 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 fi
12255
12256
12257 fi
12258 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12260 set dummy ${ncn_progname}; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test -n "$OBJCOPY_FOR_TARGET"; then
12267 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280 done
12281 done
12282 IFS=$as_save_IFS
12283
12284 fi
12285 fi
12286 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12287 if test -n "$OBJCOPY_FOR_TARGET"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12289 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 fi
12294
12295
12296 fi
12297 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12298 done
12299 fi
12300
12301 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12302 set dummy objcopy
12303 if test $build = $target ; then
12304 OBJCOPY_FOR_TARGET="$2"
12305 else
12306 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12307 fi
12308 else
12309 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12310 fi
12311
12312 else
12313 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12314 fi
12315
12316
12317
12318
12319 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12320 if test -n "$with_build_time_tools"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12322 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12323 if test -x $with_build_time_tools/objdump; then
12324 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12325 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12327 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 fi
12332 elif test $build != $host && test $have_gcc_for_target = yes; then
12333 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12334 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12335 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12336 fi
12337 fi
12338 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12339 # Extract the first word of "objdump", so it can be a program name with args.
12340 set dummy objdump; ac_word=$2
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342 $as_echo_n "checking for $ac_word... " >&6; }
12343 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 case $OBJDUMP_FOR_TARGET in
12347 [\\/]* | ?:[\\/]*)
12348 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12349 ;;
12350 *)
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $gcc_cv_tool_dirs
12353 do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12358 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 break 2
12361 fi
12362 done
12363 done
12364 IFS=$as_save_IFS
12365
12366 ;;
12367 esac
12368 fi
12369 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12370 if test -n "$OBJDUMP_FOR_TARGET"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12372 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12373 else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12376 fi
12377
12378
12379 fi
12380 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12381
12382
12383 if test -n "$OBJDUMP_FOR_TARGET"; then
12384 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12385 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12386 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12387 fi
12388
12389 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12390 for ncn_progname in objdump; do
12391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12392 set dummy ${ncn_progname}; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 if test -n "$OBJDUMP_FOR_TARGET"; then
12399 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12400 else
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12403 do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12411 fi
12412 done
12413 done
12414 IFS=$as_save_IFS
12415
12416 fi
12417 fi
12418 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12419 if test -n "$OBJDUMP_FOR_TARGET"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12421 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12425 fi
12426
12427
12428 done
12429 fi
12430
12431 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12432 for ncn_progname in objdump; do
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12434 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12435 if test -x $with_build_time_tools/${ncn_progname}; then
12436 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12438 $as_echo "yes" >&6; }
12439 break
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444 done
12445 fi
12446
12447 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12448 for ncn_progname in objdump; do
12449 if test -n "$ncn_target_tool_prefix"; then
12450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12451 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$OBJDUMP_FOR_TARGET"; then
12458 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471 done
12472 done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12478 if test -n "$OBJDUMP_FOR_TARGET"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12480 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486
12487 fi
12488 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12490 set dummy ${ncn_progname}; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 if test -n "$OBJDUMP_FOR_TARGET"; then
12497 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12498 else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12501 do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12506 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12509 fi
12510 done
12511 done
12512 IFS=$as_save_IFS
12513
12514 fi
12515 fi
12516 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12517 if test -n "$OBJDUMP_FOR_TARGET"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12519 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12523 fi
12524
12525
12526 fi
12527 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12528 done
12529 fi
12530
12531 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12532 set dummy objdump
12533 if test $build = $target ; then
12534 OBJDUMP_FOR_TARGET="$2"
12535 else
12536 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12537 fi
12538 else
12539 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12540 fi
12541
12542 else
12543 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12544 fi
12545
12546
12547
12548
12549 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12550 if test -n "$with_build_time_tools"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12552 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12553 if test -x $with_build_time_tools/ranlib; then
12554 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12555 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12557 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 fi
12562 elif test $build != $host && test $have_gcc_for_target = yes; then
12563 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12564 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12565 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12566 fi
12567 fi
12568 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12569 # Extract the first word of "ranlib", so it can be a program name with args.
12570 set dummy ranlib; ac_word=$2
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572 $as_echo_n "checking for $ac_word... " >&6; }
12573 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 case $RANLIB_FOR_TARGET in
12577 [\\/]* | ?:[\\/]*)
12578 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12579 ;;
12580 *)
12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582 for as_dir in $gcc_cv_tool_dirs
12583 do
12584 IFS=$as_save_IFS
12585 test -z "$as_dir" && as_dir=.
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12588 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590 break 2
12591 fi
12592 done
12593 done
12594 IFS=$as_save_IFS
12595
12596 ;;
12597 esac
12598 fi
12599 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12600 if test -n "$RANLIB_FOR_TARGET"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12602 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609 fi
12610 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12611
12612
12613 if test -n "$RANLIB_FOR_TARGET"; then
12614 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12615 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12616 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12617 fi
12618
12619 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12620 for ncn_progname in ranlib; do
12621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12622 set dummy ${ncn_progname}; ac_word=$2
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12624 $as_echo_n "checking for $ac_word... " >&6; }
12625 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628 if test -n "$RANLIB_FOR_TARGET"; then
12629 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12630 else
12631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 for as_dir in $PATH
12633 do
12634 IFS=$as_save_IFS
12635 test -z "$as_dir" && as_dir=.
12636 for ac_exec_ext in '' $ac_executable_extensions; do
12637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12638 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12640 break 2
12641 fi
12642 done
12643 done
12644 IFS=$as_save_IFS
12645
12646 fi
12647 fi
12648 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12649 if test -n "$RANLIB_FOR_TARGET"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12651 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12655 fi
12656
12657
12658 done
12659 fi
12660
12661 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12662 for ncn_progname in ranlib; do
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12664 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12665 if test -x $with_build_time_tools/${ncn_progname}; then
12666 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12668 $as_echo "yes" >&6; }
12669 break
12670 else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12673 fi
12674 done
12675 fi
12676
12677 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12678 for ncn_progname in ranlib; do
12679 if test -n "$ncn_target_tool_prefix"; then
12680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12681 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683 $as_echo_n "checking for $ac_word... " >&6; }
12684 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12685 $as_echo_n "(cached) " >&6
12686 else
12687 if test -n "$RANLIB_FOR_TARGET"; then
12688 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12689 else
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691 for as_dir in $PATH
12692 do
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12697 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12699 break 2
12700 fi
12701 done
12702 done
12703 IFS=$as_save_IFS
12704
12705 fi
12706 fi
12707 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12708 if test -n "$RANLIB_FOR_TARGET"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12710 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714 fi
12715
12716
12717 fi
12718 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12720 set dummy ${ncn_progname}; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 if test -n "$RANLIB_FOR_TARGET"; then
12727 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12728 else
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12731 do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12739 fi
12740 done
12741 done
12742 IFS=$as_save_IFS
12743
12744 fi
12745 fi
12746 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12747 if test -n "$RANLIB_FOR_TARGET"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12749 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 fi
12754
12755
12756 fi
12757 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12758 done
12759 fi
12760
12761 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12762 set dummy ranlib
12763 if test $build = $target ; then
12764 RANLIB_FOR_TARGET="$2"
12765 else
12766 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12767 fi
12768 else
12769 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12770 fi
12771
12772 else
12773 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12774 fi
12775
12776
12777
12778
12779 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12780 if test -n "$with_build_time_tools"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12782 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12783 if test -x $with_build_time_tools/readelf; then
12784 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12785 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12787 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 fi
12792 elif test $build != $host && test $have_gcc_for_target = yes; then
12793 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12794 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12795 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12796 fi
12797 fi
12798 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12799 # Extract the first word of "readelf", so it can be a program name with args.
12800 set dummy readelf; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 case $READELF_FOR_TARGET in
12807 [\\/]* | ?:[\\/]*)
12808 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12809 ;;
12810 *)
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $gcc_cv_tool_dirs
12813 do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822 done
12823 done
12824 IFS=$as_save_IFS
12825
12826 ;;
12827 esac
12828 fi
12829 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12830 if test -n "$READELF_FOR_TARGET"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12832 $as_echo "$READELF_FOR_TARGET" >&6; }
12833 else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838
12839 fi
12840 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12841
12842
12843 if test -n "$READELF_FOR_TARGET"; then
12844 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12845 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12846 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12847 fi
12848
12849 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12850 for ncn_progname in readelf; do
12851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12852 set dummy ${ncn_progname}; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 if test -n "$READELF_FOR_TARGET"; then
12859 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12860 else
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12863 do
12864 IFS=$as_save_IFS
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12868 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12870 break 2
12871 fi
12872 done
12873 done
12874 IFS=$as_save_IFS
12875
12876 fi
12877 fi
12878 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12879 if test -n "$READELF_FOR_TARGET"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12881 $as_echo "$READELF_FOR_TARGET" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12885 fi
12886
12887
12888 done
12889 fi
12890
12891 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12892 for ncn_progname in readelf; do
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12894 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12895 if test -x $with_build_time_tools/${ncn_progname}; then
12896 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12898 $as_echo "yes" >&6; }
12899 break
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904 done
12905 fi
12906
12907 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12908 for ncn_progname in readelf; do
12909 if test -n "$ncn_target_tool_prefix"; then
12910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12911 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12915 $as_echo_n "(cached) " >&6
12916 else
12917 if test -n "$READELF_FOR_TARGET"; then
12918 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12919 else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12922 do
12923 IFS=$as_save_IFS
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12927 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 break 2
12930 fi
12931 done
12932 done
12933 IFS=$as_save_IFS
12934
12935 fi
12936 fi
12937 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12938 if test -n "$READELF_FOR_TARGET"; then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12940 $as_echo "$READELF_FOR_TARGET" >&6; }
12941 else
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12944 fi
12945
12946
12947 fi
12948 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12950 set dummy ${ncn_progname}; ac_word=$2
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952 $as_echo_n "checking for $ac_word... " >&6; }
12953 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 if test -n "$READELF_FOR_TARGET"; then
12957 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12958 else
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12966 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12969 fi
12970 done
12971 done
12972 IFS=$as_save_IFS
12973
12974 fi
12975 fi
12976 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12977 if test -n "$READELF_FOR_TARGET"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12979 $as_echo "$READELF_FOR_TARGET" >&6; }
12980 else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12983 fi
12984
12985
12986 fi
12987 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12988 done
12989 fi
12990
12991 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12992 set dummy readelf
12993 if test $build = $target ; then
12994 READELF_FOR_TARGET="$2"
12995 else
12996 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12997 fi
12998 else
12999 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13000 fi
13001
13002 else
13003 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13004 fi
13005
13006
13007
13008
13009 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13010 if test -n "$with_build_time_tools"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13012 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13013 if test -x $with_build_time_tools/strip; then
13014 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13015 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13017 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13021 fi
13022 elif test $build != $host && test $have_gcc_for_target = yes; then
13023 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13024 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13025 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13026 fi
13027 fi
13028 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13029 # Extract the first word of "strip", so it can be a program name with args.
13030 set dummy strip; ac_word=$2
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032 $as_echo_n "checking for $ac_word... " >&6; }
13033 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13034 $as_echo_n "(cached) " >&6
13035 else
13036 case $STRIP_FOR_TARGET in
13037 [\\/]* | ?:[\\/]*)
13038 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13039 ;;
13040 *)
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $gcc_cv_tool_dirs
13043 do
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13048 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 break 2
13051 fi
13052 done
13053 done
13054 IFS=$as_save_IFS
13055
13056 ;;
13057 esac
13058 fi
13059 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13060 if test -n "$STRIP_FOR_TARGET"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13062 $as_echo "$STRIP_FOR_TARGET" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13066 fi
13067
13068
13069 fi
13070 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13071
13072
13073 if test -n "$STRIP_FOR_TARGET"; then
13074 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13075 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13076 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13077 fi
13078
13079 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13080 for ncn_progname in strip; do
13081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13082 set dummy ${ncn_progname}; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 if test -n "$STRIP_FOR_TARGET"; then
13089 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13090 else
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13093 do
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13101 fi
13102 done
13103 done
13104 IFS=$as_save_IFS
13105
13106 fi
13107 fi
13108 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13109 if test -n "$STRIP_FOR_TARGET"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13111 $as_echo "$STRIP_FOR_TARGET" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116
13117
13118 done
13119 fi
13120
13121 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13122 for ncn_progname in strip; do
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13124 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13125 if test -x $with_build_time_tools/${ncn_progname}; then
13126 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13128 $as_echo "yes" >&6; }
13129 break
13130 else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13133 fi
13134 done
13135 fi
13136
13137 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13138 for ncn_progname in strip; do
13139 if test -n "$ncn_target_tool_prefix"; then
13140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13141 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143 $as_echo_n "checking for $ac_word... " >&6; }
13144 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 if test -n "$STRIP_FOR_TARGET"; then
13148 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13149 else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13152 do
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13157 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 break 2
13160 fi
13161 done
13162 done
13163 IFS=$as_save_IFS
13164
13165 fi
13166 fi
13167 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13168 if test -n "$STRIP_FOR_TARGET"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13170 $as_echo "$STRIP_FOR_TARGET" >&6; }
13171 else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174 fi
13175
13176
13177 fi
13178 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13180 set dummy ${ncn_progname}; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$STRIP_FOR_TARGET"; then
13187 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13199 fi
13200 done
13201 done
13202 IFS=$as_save_IFS
13203
13204 fi
13205 fi
13206 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13207 if test -n "$STRIP_FOR_TARGET"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13209 $as_echo "$STRIP_FOR_TARGET" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13213 fi
13214
13215
13216 fi
13217 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13218 done
13219 fi
13220
13221 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13222 set dummy strip
13223 if test $build = $target ; then
13224 STRIP_FOR_TARGET="$2"
13225 else
13226 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13227 fi
13228 else
13229 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13230 fi
13231
13232 else
13233 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13234 fi
13235
13236
13237
13238
13239 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13240 if test -n "$with_build_time_tools"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13242 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13243 if test -x $with_build_time_tools/windres; then
13244 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13245 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13247 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13251 fi
13252 elif test $build != $host && test $have_gcc_for_target = yes; then
13253 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13254 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13255 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13256 fi
13257 fi
13258 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13259 # Extract the first word of "windres", so it can be a program name with args.
13260 set dummy windres; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262 $as_echo_n "checking for $ac_word... " >&6; }
13263 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 case $WINDRES_FOR_TARGET in
13267 [\\/]* | ?:[\\/]*)
13268 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13269 ;;
13270 *)
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $gcc_cv_tool_dirs
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282 done
13283 done
13284 IFS=$as_save_IFS
13285
13286 ;;
13287 esac
13288 fi
13289 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13290 if test -n "$WINDRES_FOR_TARGET"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13292 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297
13298
13299 fi
13300 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13301
13302
13303 if test -n "$WINDRES_FOR_TARGET"; then
13304 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13305 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13306 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13307 fi
13308
13309 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13310 for ncn_progname in windres; do
13311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13312 set dummy ${ncn_progname}; ac_word=$2
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13314 $as_echo_n "checking for $ac_word... " >&6; }
13315 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 if test -n "$WINDRES_FOR_TARGET"; then
13319 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13320 else
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322 for as_dir in $PATH
13323 do
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13328 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 break 2
13331 fi
13332 done
13333 done
13334 IFS=$as_save_IFS
13335
13336 fi
13337 fi
13338 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13339 if test -n "$WINDRES_FOR_TARGET"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13341 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13345 fi
13346
13347
13348 done
13349 fi
13350
13351 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13352 for ncn_progname in windres; do
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13354 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13355 if test -x $with_build_time_tools/${ncn_progname}; then
13356 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13358 $as_echo "yes" >&6; }
13359 break
13360 else
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13363 fi
13364 done
13365 fi
13366
13367 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13368 for ncn_progname in windres; do
13369 if test -n "$ncn_target_tool_prefix"; then
13370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13371 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$WINDRES_FOR_TARGET"; then
13378 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13382 do
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13390 fi
13391 done
13392 done
13393 IFS=$as_save_IFS
13394
13395 fi
13396 fi
13397 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13398 if test -n "$WINDRES_FOR_TARGET"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13400 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13404 fi
13405
13406
13407 fi
13408 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13410 set dummy ${ncn_progname}; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13414 $as_echo_n "(cached) " >&6
13415 else
13416 if test -n "$WINDRES_FOR_TARGET"; then
13417 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13418 else
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH
13421 do
13422 IFS=$as_save_IFS
13423 test -z "$as_dir" && as_dir=.
13424 for ac_exec_ext in '' $ac_executable_extensions; do
13425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13426 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13428 break 2
13429 fi
13430 done
13431 done
13432 IFS=$as_save_IFS
13433
13434 fi
13435 fi
13436 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13437 if test -n "$WINDRES_FOR_TARGET"; then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13439 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13440 else
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13443 fi
13444
13445
13446 fi
13447 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13448 done
13449 fi
13450
13451 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13452 set dummy windres
13453 if test $build = $target ; then
13454 WINDRES_FOR_TARGET="$2"
13455 else
13456 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13457 fi
13458 else
13459 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13460 fi
13461
13462 else
13463 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13464 fi
13465
13466
13467
13468
13469 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13470 if test -n "$with_build_time_tools"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13472 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13473 if test -x $with_build_time_tools/windmc; then
13474 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13475 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13477 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13481 fi
13482 elif test $build != $host && test $have_gcc_for_target = yes; then
13483 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13484 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13485 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13486 fi
13487 fi
13488 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13489 # Extract the first word of "windmc", so it can be a program name with args.
13490 set dummy windmc; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 case $WINDMC_FOR_TARGET in
13497 [\\/]* | ?:[\\/]*)
13498 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13499 ;;
13500 *)
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $gcc_cv_tool_dirs
13503 do
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13508 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13511 fi
13512 done
13513 done
13514 IFS=$as_save_IFS
13515
13516 ;;
13517 esac
13518 fi
13519 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13520 if test -n "$WINDMC_FOR_TARGET"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13522 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13526 fi
13527
13528
13529 fi
13530 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13531
13532
13533 if test -n "$WINDMC_FOR_TARGET"; then
13534 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13535 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13536 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13537 fi
13538
13539 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13540 for ncn_progname in windmc; do
13541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13542 set dummy ${ncn_progname}; ac_word=$2
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 $as_echo_n "checking for $ac_word... " >&6; }
13545 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 if test -n "$WINDMC_FOR_TARGET"; then
13549 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13550 else
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13553 do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13558 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13561 fi
13562 done
13563 done
13564 IFS=$as_save_IFS
13565
13566 fi
13567 fi
13568 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13569 if test -n "$WINDMC_FOR_TARGET"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13571 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13575 fi
13576
13577
13578 done
13579 fi
13580
13581 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13582 for ncn_progname in windmc; do
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13584 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13585 if test -x $with_build_time_tools/${ncn_progname}; then
13586 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13588 $as_echo "yes" >&6; }
13589 break
13590 else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13593 fi
13594 done
13595 fi
13596
13597 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13598 for ncn_progname in windmc; do
13599 if test -n "$ncn_target_tool_prefix"; then
13600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13601 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603 $as_echo_n "checking for $ac_word... " >&6; }
13604 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 if test -n "$WINDMC_FOR_TARGET"; then
13608 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13609 else
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611 for as_dir in $PATH
13612 do
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13617 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 break 2
13620 fi
13621 done
13622 done
13623 IFS=$as_save_IFS
13624
13625 fi
13626 fi
13627 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13628 if test -n "$WINDMC_FOR_TARGET"; then
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13630 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13634 fi
13635
13636
13637 fi
13638 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13640 set dummy ${ncn_progname}; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 if test -n "$WINDMC_FOR_TARGET"; then
13647 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13648 else
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13651 do
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13656 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 break 2
13659 fi
13660 done
13661 done
13662 IFS=$as_save_IFS
13663
13664 fi
13665 fi
13666 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13667 if test -n "$WINDMC_FOR_TARGET"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13669 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13670 else
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672 $as_echo "no" >&6; }
13673 fi
13674
13675
13676 fi
13677 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13678 done
13679 fi
13680
13681 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13682 set dummy windmc
13683 if test $build = $target ; then
13684 WINDMC_FOR_TARGET="$2"
13685 else
13686 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13687 fi
13688 else
13689 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13690 fi
13691
13692 else
13693 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13694 fi
13695
13696
13697 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13700 $as_echo_n "checking where to find the target ar... " >&6; }
13701 if test "x${build}" != "x${host}" ; then
13702 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13703 # We already found the complete path
13704 ac_dir=`dirname $AR_FOR_TARGET`
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706 $as_echo "pre-installed in $ac_dir" >&6; }
13707 else
13708 # Canadian cross, just use what we found
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710 $as_echo "pre-installed" >&6; }
13711 fi
13712 else
13713 ok=yes
13714 case " ${configdirs} " in
13715 *" binutils "*) ;;
13716 *) ok=no ;;
13717 esac
13718
13719 if test $ok = yes; then
13720 # An in-tree tool is available and we can use it
13721 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13723 $as_echo "just compiled" >&6; }
13724 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13725 # We already found the complete path
13726 ac_dir=`dirname $AR_FOR_TARGET`
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13728 $as_echo "pre-installed in $ac_dir" >&6; }
13729 elif test "x$target" = "x$host"; then
13730 # We can use an host tool
13731 AR_FOR_TARGET='$(AR)'
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13733 $as_echo "host tool" >&6; }
13734 else
13735 # We need a cross tool
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737 $as_echo "pre-installed" >&6; }
13738 fi
13739 fi
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13742 $as_echo_n "checking where to find the target as... " >&6; }
13743 if test "x${build}" != "x${host}" ; then
13744 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
13746 ac_dir=`dirname $AS_FOR_TARGET`
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748 $as_echo "pre-installed in $ac_dir" >&6; }
13749 else
13750 # Canadian cross, just use what we found
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13752 $as_echo "pre-installed" >&6; }
13753 fi
13754 else
13755 ok=yes
13756 case " ${configdirs} " in
13757 *" gas "*) ;;
13758 *) ok=no ;;
13759 esac
13760
13761 if test $ok = yes; then
13762 # An in-tree tool is available and we can use it
13763 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13765 $as_echo "just compiled" >&6; }
13766 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13767 # We already found the complete path
13768 ac_dir=`dirname $AS_FOR_TARGET`
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13770 $as_echo "pre-installed in $ac_dir" >&6; }
13771 elif test "x$target" = "x$host"; then
13772 # We can use an host tool
13773 AS_FOR_TARGET='$(AS)'
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13775 $as_echo "host tool" >&6; }
13776 else
13777 # We need a cross tool
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779 $as_echo "pre-installed" >&6; }
13780 fi
13781 fi
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13784 $as_echo_n "checking where to find the target cc... " >&6; }
13785 if test "x${build}" != "x${host}" ; then
13786 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13787 # We already found the complete path
13788 ac_dir=`dirname $CC_FOR_TARGET`
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13790 $as_echo "pre-installed in $ac_dir" >&6; }
13791 else
13792 # Canadian cross, just use what we found
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13794 $as_echo "pre-installed" >&6; }
13795 fi
13796 else
13797 ok=yes
13798 case " ${configdirs} " in
13799 *" gcc "*) ;;
13800 *) ok=no ;;
13801 esac
13802
13803 if test $ok = yes; then
13804 # An in-tree tool is available and we can use it
13805 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13807 $as_echo "just compiled" >&6; }
13808 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13809 # We already found the complete path
13810 ac_dir=`dirname $CC_FOR_TARGET`
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13812 $as_echo "pre-installed in $ac_dir" >&6; }
13813 elif test "x$target" = "x$host"; then
13814 # We can use an host tool
13815 CC_FOR_TARGET='$(CC)'
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13817 $as_echo "host tool" >&6; }
13818 else
13819 # We need a cross tool
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821 $as_echo "pre-installed" >&6; }
13822 fi
13823 fi
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13826 $as_echo_n "checking where to find the target c++... " >&6; }
13827 if test "x${build}" != "x${host}" ; then
13828 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13829 # We already found the complete path
13830 ac_dir=`dirname $CXX_FOR_TARGET`
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13832 $as_echo "pre-installed in $ac_dir" >&6; }
13833 else
13834 # Canadian cross, just use what we found
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13836 $as_echo "pre-installed" >&6; }
13837 fi
13838 else
13839 ok=yes
13840 case " ${configdirs} " in
13841 *" gcc "*) ;;
13842 *) ok=no ;;
13843 esac
13844 case ,${enable_languages}, in
13845 *,c++,*) ;;
13846 *) ok=no ;;
13847 esac
13848 if test $ok = yes; then
13849 # An in-tree tool is available and we can use it
13850 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'
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13852 $as_echo "just compiled" >&6; }
13853 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13854 # We already found the complete path
13855 ac_dir=`dirname $CXX_FOR_TARGET`
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13857 $as_echo "pre-installed in $ac_dir" >&6; }
13858 elif test "x$target" = "x$host"; then
13859 # We can use an host tool
13860 CXX_FOR_TARGET='$(CXX)'
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13862 $as_echo "host tool" >&6; }
13863 else
13864 # We need a cross tool
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13866 $as_echo "pre-installed" >&6; }
13867 fi
13868 fi
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13871 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13872 if test "x${build}" != "x${host}" ; then
13873 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13874 # We already found the complete path
13875 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13877 $as_echo "pre-installed in $ac_dir" >&6; }
13878 else
13879 # Canadian cross, just use what we found
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13881 $as_echo "pre-installed" >&6; }
13882 fi
13883 else
13884 ok=yes
13885 case " ${configdirs} " in
13886 *" gcc "*) ;;
13887 *) ok=no ;;
13888 esac
13889 case ,${enable_languages}, in
13890 *,c++,*) ;;
13891 *) ok=no ;;
13892 esac
13893 if test $ok = yes; then
13894 # An in-tree tool is available and we can use it
13895 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'
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13897 $as_echo "just compiled" >&6; }
13898 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13899 # We already found the complete path
13900 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902 $as_echo "pre-installed in $ac_dir" >&6; }
13903 elif test "x$target" = "x$host"; then
13904 # We can use an host tool
13905 RAW_CXX_FOR_TARGET='$(CXX)'
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13907 $as_echo "host tool" >&6; }
13908 else
13909 # We need a cross tool
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13911 $as_echo "pre-installed" >&6; }
13912 fi
13913 fi
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13916 $as_echo_n "checking where to find the target dlltool... " >&6; }
13917 if test "x${build}" != "x${host}" ; then
13918 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
13920 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922 $as_echo "pre-installed in $ac_dir" >&6; }
13923 else
13924 # Canadian cross, just use what we found
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13926 $as_echo "pre-installed" >&6; }
13927 fi
13928 else
13929 ok=yes
13930 case " ${configdirs} " in
13931 *" binutils "*) ;;
13932 *) ok=no ;;
13933 esac
13934
13935 if test $ok = yes; then
13936 # An in-tree tool is available and we can use it
13937 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13939 $as_echo "just compiled" >&6; }
13940 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13941 # We already found the complete path
13942 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13944 $as_echo "pre-installed in $ac_dir" >&6; }
13945 elif test "x$target" = "x$host"; then
13946 # We can use an host tool
13947 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13949 $as_echo "host tool" >&6; }
13950 else
13951 # We need a cross tool
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13953 $as_echo "pre-installed" >&6; }
13954 fi
13955 fi
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13958 $as_echo_n "checking where to find the target gcc... " >&6; }
13959 if test "x${build}" != "x${host}" ; then
13960 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13961 # We already found the complete path
13962 ac_dir=`dirname $GCC_FOR_TARGET`
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13964 $as_echo "pre-installed in $ac_dir" >&6; }
13965 else
13966 # Canadian cross, just use what we found
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13968 $as_echo "pre-installed" >&6; }
13969 fi
13970 else
13971 ok=yes
13972 case " ${configdirs} " in
13973 *" gcc "*) ;;
13974 *) ok=no ;;
13975 esac
13976
13977 if test $ok = yes; then
13978 # An in-tree tool is available and we can use it
13979 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13981 $as_echo "just compiled" >&6; }
13982 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $GCC_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13987 elif test "x$target" = "x$host"; then
13988 # We can use an host tool
13989 GCC_FOR_TARGET='$()'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13991 $as_echo "host tool" >&6; }
13992 else
13993 # We need a cross tool
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13995 $as_echo "pre-installed" >&6; }
13996 fi
13997 fi
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14000 $as_echo_n "checking where to find the target gfortran... " >&6; }
14001 if test "x${build}" != "x${host}" ; then
14002 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14003 # We already found the complete path
14004 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14006 $as_echo "pre-installed in $ac_dir" >&6; }
14007 else
14008 # Canadian cross, just use what we found
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14010 $as_echo "pre-installed" >&6; }
14011 fi
14012 else
14013 ok=yes
14014 case " ${configdirs} " in
14015 *" gcc "*) ;;
14016 *) ok=no ;;
14017 esac
14018 case ,${enable_languages}, in
14019 *,fortran,*) ;;
14020 *) ok=no ;;
14021 esac
14022 if test $ok = yes; then
14023 # An in-tree tool is available and we can use it
14024 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14026 $as_echo "just compiled" >&6; }
14027 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14028 # We already found the complete path
14029 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14031 $as_echo "pre-installed in $ac_dir" >&6; }
14032 elif test "x$target" = "x$host"; then
14033 # We can use an host tool
14034 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14036 $as_echo "host tool" >&6; }
14037 else
14038 # We need a cross tool
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14040 $as_echo "pre-installed" >&6; }
14041 fi
14042 fi
14043
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14045 $as_echo_n "checking where to find the target gccgo... " >&6; }
14046 if test "x${build}" != "x${host}" ; then
14047 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14048 # We already found the complete path
14049 ac_dir=`dirname $GOC_FOR_TARGET`
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14051 $as_echo "pre-installed in $ac_dir" >&6; }
14052 else
14053 # Canadian cross, just use what we found
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14055 $as_echo "pre-installed" >&6; }
14056 fi
14057 else
14058 ok=yes
14059 case " ${configdirs} " in
14060 *" gcc "*) ;;
14061 *) ok=no ;;
14062 esac
14063 case ,${enable_languages}, in
14064 *,go,*) ;;
14065 *) ok=no ;;
14066 esac
14067 if test $ok = yes; then
14068 # An in-tree tool is available and we can use it
14069 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14071 $as_echo "just compiled" >&6; }
14072 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14073 # We already found the complete path
14074 ac_dir=`dirname $GOC_FOR_TARGET`
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076 $as_echo "pre-installed in $ac_dir" >&6; }
14077 elif test "x$target" = "x$host"; then
14078 # We can use an host tool
14079 GOC_FOR_TARGET='$(GOC)'
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14081 $as_echo "host tool" >&6; }
14082 else
14083 # We need a cross tool
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14085 $as_echo "pre-installed" >&6; }
14086 fi
14087 fi
14088
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14090 $as_echo_n "checking where to find the target ld... " >&6; }
14091 if test "x${build}" != "x${host}" ; then
14092 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14093 # We already found the complete path
14094 ac_dir=`dirname $LD_FOR_TARGET`
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14096 $as_echo "pre-installed in $ac_dir" >&6; }
14097 else
14098 # Canadian cross, just use what we found
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14100 $as_echo "pre-installed" >&6; }
14101 fi
14102 else
14103 ok=yes
14104 case " ${configdirs} " in
14105 *" ld "*) ;;
14106 *) ok=no ;;
14107 esac
14108
14109 if test $ok = yes; then
14110 # An in-tree tool is available and we can use it
14111 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14113 $as_echo "just compiled" >&6; }
14114 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14115 # We already found the complete path
14116 ac_dir=`dirname $LD_FOR_TARGET`
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14118 $as_echo "pre-installed in $ac_dir" >&6; }
14119 elif test "x$target" = "x$host"; then
14120 # We can use an host tool
14121 LD_FOR_TARGET='$(LD)'
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14123 $as_echo "host tool" >&6; }
14124 else
14125 # We need a cross tool
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14127 $as_echo "pre-installed" >&6; }
14128 fi
14129 fi
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14132 $as_echo_n "checking where to find the target lipo... " >&6; }
14133 if test "x${build}" != "x${host}" ; then
14134 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14135 # We already found the complete path
14136 ac_dir=`dirname $LIPO_FOR_TARGET`
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14138 $as_echo "pre-installed in $ac_dir" >&6; }
14139 else
14140 # Canadian cross, just use what we found
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142 $as_echo "pre-installed" >&6; }
14143 fi
14144 else
14145 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14146 # We already found the complete path
14147 ac_dir=`dirname $LIPO_FOR_TARGET`
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14149 $as_echo "pre-installed in $ac_dir" >&6; }
14150 elif test "x$target" = "x$host"; then
14151 # We can use an host tool
14152 LIPO_FOR_TARGET='$(LIPO)'
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14154 $as_echo "host tool" >&6; }
14155 else
14156 # We need a cross tool
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14158 $as_echo "pre-installed" >&6; }
14159 fi
14160 fi
14161
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14163 $as_echo_n "checking where to find the target nm... " >&6; }
14164 if test "x${build}" != "x${host}" ; then
14165 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14166 # We already found the complete path
14167 ac_dir=`dirname $NM_FOR_TARGET`
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14169 $as_echo "pre-installed in $ac_dir" >&6; }
14170 else
14171 # Canadian cross, just use what we found
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14173 $as_echo "pre-installed" >&6; }
14174 fi
14175 else
14176 ok=yes
14177 case " ${configdirs} " in
14178 *" binutils "*) ;;
14179 *) ok=no ;;
14180 esac
14181
14182 if test $ok = yes; then
14183 # An in-tree tool is available and we can use it
14184 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14186 $as_echo "just compiled" >&6; }
14187 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14188 # We already found the complete path
14189 ac_dir=`dirname $NM_FOR_TARGET`
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14191 $as_echo "pre-installed in $ac_dir" >&6; }
14192 elif test "x$target" = "x$host"; then
14193 # We can use an host tool
14194 NM_FOR_TARGET='$(NM)'
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14196 $as_echo "host tool" >&6; }
14197 else
14198 # We need a cross tool
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14200 $as_echo "pre-installed" >&6; }
14201 fi
14202 fi
14203
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14205 $as_echo_n "checking where to find the target objcopy... " >&6; }
14206 if test "x${build}" != "x${host}" ; then
14207 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14208 # We already found the complete path
14209 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14211 $as_echo "pre-installed in $ac_dir" >&6; }
14212 else
14213 # Canadian cross, just use what we found
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14215 $as_echo "pre-installed" >&6; }
14216 fi
14217 else
14218 ok=yes
14219 case " ${configdirs} " in
14220 *" binutils "*) ;;
14221 *) ok=no ;;
14222 esac
14223
14224 if test $ok = yes; then
14225 # An in-tree tool is available and we can use it
14226 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14228 $as_echo "just compiled" >&6; }
14229 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14230 # We already found the complete path
14231 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233 $as_echo "pre-installed in $ac_dir" >&6; }
14234 elif test "x$target" = "x$host"; then
14235 # We can use an host tool
14236 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14238 $as_echo "host tool" >&6; }
14239 else
14240 # We need a cross tool
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14242 $as_echo "pre-installed" >&6; }
14243 fi
14244 fi
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14247 $as_echo_n "checking where to find the target objdump... " >&6; }
14248 if test "x${build}" != "x${host}" ; then
14249 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14250 # We already found the complete path
14251 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14253 $as_echo "pre-installed in $ac_dir" >&6; }
14254 else
14255 # Canadian cross, just use what we found
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14257 $as_echo "pre-installed" >&6; }
14258 fi
14259 else
14260 ok=yes
14261 case " ${configdirs} " in
14262 *" binutils "*) ;;
14263 *) ok=no ;;
14264 esac
14265
14266 if test $ok = yes; then
14267 # An in-tree tool is available and we can use it
14268 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14270 $as_echo "just compiled" >&6; }
14271 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14272 # We already found the complete path
14273 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275 $as_echo "pre-installed in $ac_dir" >&6; }
14276 elif test "x$target" = "x$host"; then
14277 # We can use an host tool
14278 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14280 $as_echo "host tool" >&6; }
14281 else
14282 # We need a cross tool
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14284 $as_echo "pre-installed" >&6; }
14285 fi
14286 fi
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14289 $as_echo_n "checking where to find the target ranlib... " >&6; }
14290 if test "x${build}" != "x${host}" ; then
14291 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
14293 ac_dir=`dirname $RANLIB_FOR_TARGET`
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295 $as_echo "pre-installed in $ac_dir" >&6; }
14296 else
14297 # Canadian cross, just use what we found
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14299 $as_echo "pre-installed" >&6; }
14300 fi
14301 else
14302 ok=yes
14303 case " ${configdirs} " in
14304 *" binutils "*) ;;
14305 *) ok=no ;;
14306 esac
14307
14308 if test $ok = yes; then
14309 # An in-tree tool is available and we can use it
14310 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14312 $as_echo "just compiled" >&6; }
14313 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14314 # We already found the complete path
14315 ac_dir=`dirname $RANLIB_FOR_TARGET`
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14317 $as_echo "pre-installed in $ac_dir" >&6; }
14318 elif test "x$target" = "x$host"; then
14319 # We can use an host tool
14320 RANLIB_FOR_TARGET='$(RANLIB)'
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14322 $as_echo "host tool" >&6; }
14323 else
14324 # We need a cross tool
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14326 $as_echo "pre-installed" >&6; }
14327 fi
14328 fi
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14331 $as_echo_n "checking where to find the target readelf... " >&6; }
14332 if test "x${build}" != "x${host}" ; then
14333 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14334 # We already found the complete path
14335 ac_dir=`dirname $READELF_FOR_TARGET`
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14337 $as_echo "pre-installed in $ac_dir" >&6; }
14338 else
14339 # Canadian cross, just use what we found
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14341 $as_echo "pre-installed" >&6; }
14342 fi
14343 else
14344 ok=yes
14345 case " ${configdirs} " in
14346 *" binutils "*) ;;
14347 *) ok=no ;;
14348 esac
14349
14350 if test $ok = yes; then
14351 # An in-tree tool is available and we can use it
14352 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14354 $as_echo "just compiled" >&6; }
14355 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14356 # We already found the complete path
14357 ac_dir=`dirname $READELF_FOR_TARGET`
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14359 $as_echo "pre-installed in $ac_dir" >&6; }
14360 elif test "x$target" = "x$host"; then
14361 # We can use an host tool
14362 READELF_FOR_TARGET='$(READELF)'
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14364 $as_echo "host tool" >&6; }
14365 else
14366 # We need a cross tool
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14368 $as_echo "pre-installed" >&6; }
14369 fi
14370 fi
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14373 $as_echo_n "checking where to find the target strip... " >&6; }
14374 if test "x${build}" != "x${host}" ; then
14375 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14376 # We already found the complete path
14377 ac_dir=`dirname $STRIP_FOR_TARGET`
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379 $as_echo "pre-installed in $ac_dir" >&6; }
14380 else
14381 # Canadian cross, just use what we found
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14383 $as_echo "pre-installed" >&6; }
14384 fi
14385 else
14386 ok=yes
14387 case " ${configdirs} " in
14388 *" binutils "*) ;;
14389 *) ok=no ;;
14390 esac
14391
14392 if test $ok = yes; then
14393 # An in-tree tool is available and we can use it
14394 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14396 $as_echo "just compiled" >&6; }
14397 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14398 # We already found the complete path
14399 ac_dir=`dirname $STRIP_FOR_TARGET`
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14401 $as_echo "pre-installed in $ac_dir" >&6; }
14402 elif test "x$target" = "x$host"; then
14403 # We can use an host tool
14404 STRIP_FOR_TARGET='$(STRIP)'
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14406 $as_echo "host tool" >&6; }
14407 else
14408 # We need a cross tool
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14410 $as_echo "pre-installed" >&6; }
14411 fi
14412 fi
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14415 $as_echo_n "checking where to find the target windres... " >&6; }
14416 if test "x${build}" != "x${host}" ; then
14417 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14418 # We already found the complete path
14419 ac_dir=`dirname $WINDRES_FOR_TARGET`
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14421 $as_echo "pre-installed in $ac_dir" >&6; }
14422 else
14423 # Canadian cross, just use what we found
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14425 $as_echo "pre-installed" >&6; }
14426 fi
14427 else
14428 ok=yes
14429 case " ${configdirs} " in
14430 *" binutils "*) ;;
14431 *) ok=no ;;
14432 esac
14433
14434 if test $ok = yes; then
14435 # An in-tree tool is available and we can use it
14436 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14438 $as_echo "just compiled" >&6; }
14439 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14440 # We already found the complete path
14441 ac_dir=`dirname $WINDRES_FOR_TARGET`
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14443 $as_echo "pre-installed in $ac_dir" >&6; }
14444 elif test "x$target" = "x$host"; then
14445 # We can use an host tool
14446 WINDRES_FOR_TARGET='$(WINDRES)'
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14448 $as_echo "host tool" >&6; }
14449 else
14450 # We need a cross tool
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14452 $as_echo "pre-installed" >&6; }
14453 fi
14454 fi
14455
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14457 $as_echo_n "checking where to find the target windmc... " >&6; }
14458 if test "x${build}" != "x${host}" ; then
14459 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14460 # We already found the complete path
14461 ac_dir=`dirname $WINDMC_FOR_TARGET`
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14463 $as_echo "pre-installed in $ac_dir" >&6; }
14464 else
14465 # Canadian cross, just use what we found
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14467 $as_echo "pre-installed" >&6; }
14468 fi
14469 else
14470 ok=yes
14471 case " ${configdirs} " in
14472 *" binutils "*) ;;
14473 *) ok=no ;;
14474 esac
14475
14476 if test $ok = yes; then
14477 # An in-tree tool is available and we can use it
14478 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14480 $as_echo "just compiled" >&6; }
14481 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14482 # We already found the complete path
14483 ac_dir=`dirname $WINDMC_FOR_TARGET`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14485 $as_echo "pre-installed in $ac_dir" >&6; }
14486 elif test "x$target" = "x$host"; then
14487 # We can use an host tool
14488 WINDMC_FOR_TARGET='$(WINDMC)'
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14490 $as_echo "host tool" >&6; }
14491 else
14492 # We need a cross tool
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14494 $as_echo "pre-installed" >&6; }
14495 fi
14496 fi
14497
14498
14499
14500
14501
14502 # Certain tools may need extra flags.
14503 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14504 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14505 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14506
14507 # When building target libraries, except in a Canadian cross, we use
14508 # the same toolchain as the compiler we just built.
14509 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14510 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14511 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14512 if test $host = $build; then
14513 case " $configdirs " in
14514 *" gcc "*)
14515 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14516 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14517 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14518 ;;
14519 esac
14520 fi
14521
14522
14523
14524
14525
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14527 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14528 # Check whether --enable-maintainer-mode was given.
14529 if test "${enable_maintainer_mode+set}" = set; then :
14530 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14531 else
14532 USE_MAINTAINER_MODE=no
14533 fi
14534
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14536 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14537
14538
14539 if test "$USE_MAINTAINER_MODE" = yes; then
14540 MAINTAINER_MODE_TRUE=
14541 MAINTAINER_MODE_FALSE='#'
14542 else
14543 MAINTAINER_MODE_TRUE='#'
14544 MAINTAINER_MODE_FALSE=
14545 fi
14546 MAINT=$MAINTAINER_MODE_TRUE
14547
14548 # ---------------------
14549 # GCC bootstrap support
14550 # ---------------------
14551
14552 # Stage specific cflags for build.
14553 stage1_cflags="-g"
14554 case $build in
14555 vax-*-*)
14556 case ${GCC} in
14557 yes) stage1_cflags="-g -Wa,-J" ;;
14558 *) stage1_cflags="-g -J" ;;
14559 esac ;;
14560 esac
14561
14562
14563
14564 # Enable --enable-checking in stage1 of the compiler.
14565 # Check whether --enable-stage1-checking was given.
14566 if test "${enable_stage1_checking+set}" = set; then :
14567 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14568 else
14569 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14570 # For --disable-checking or implicit --enable-checking=release, avoid
14571 # setting --enable-checking=gc in the default stage1 checking for LTO
14572 # bootstraps. See PR62077.
14573 case $BUILD_CONFIG in
14574 *lto*)
14575 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14576 *)
14577 stage1_checking=--enable-checking=yes,types;;
14578 esac
14579 if test "x$enable_checking" = x && \
14580 test -d ${srcdir}/gcc && \
14581 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14582 stage1_checking=--enable-checking=yes,types,extra
14583 fi
14584 else
14585 stage1_checking=--enable-checking=$enable_checking,types
14586 fi
14587 fi
14588
14589
14590
14591 # Enable -Werror in bootstrap stage2 and later.
14592 # Check whether --enable-werror was given.
14593 if test "${enable_werror+set}" = set; then :
14594 enableval=$enable_werror;
14595 else
14596 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14597 enable_werror=yes
14598 else
14599 enable_werror=no
14600 fi
14601 fi
14602
14603 case ${enable_werror} in
14604 yes) stage2_werror_flag="--enable-werror-always" ;;
14605 *) stage2_werror_flag="" ;;
14606 esac
14607
14608
14609 # Enable --enable-host-shared.
14610 # Check whether --enable-host-shared was given.
14611 if test "${enable_host_shared+set}" = set; then :
14612 enableval=$enable_host_shared; host_shared=$enableval
14613 else
14614 host_shared=no
14615 fi
14616
14617
14618
14619 # PR jit/64780: Require the user to explicitly specify
14620 # --enable-host-shared if the jit is enabled, hinting
14621 # that they might want to do a separate configure/build of
14622 # the jit, to avoid users from slowing down the rest of the
14623 # compiler by enabling the jit.
14624 if test ${host_shared} = "no" ; then
14625 case "${enable_languages}" in
14626 *jit*)
14627 as_fn_error "
14628 Enabling language \"jit\" requires --enable-host-shared.
14629
14630 --enable-host-shared typically slows the rest of the compiler down by
14631 a few %, so you must explicitly enable it.
14632
14633 If you want to build both the jit and the regular compiler, it is often
14634 best to do this via two separate configure/builds, in separate
14635 directories, to avoid imposing the performance cost of
14636 --enable-host-shared on the regular compiler." "$LINENO" 5
14637 ;;
14638 *)
14639 ;;
14640 esac
14641 fi
14642
14643 # Specify what files to not compare during bootstrap.
14644
14645 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14646 case "$target" in
14647 hppa*64*-*-hpux*) ;;
14648 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14649 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14650 esac
14651
14652
14653 ac_config_files="$ac_config_files Makefile"
14654
14655 cat >confcache <<\_ACEOF
14656 # This file is a shell script that caches the results of configure
14657 # tests run on this system so they can be shared between configure
14658 # scripts and configure runs, see configure's option --config-cache.
14659 # It is not useful on other systems. If it contains results you don't
14660 # want to keep, you may remove or edit it.
14661 #
14662 # config.status only pays attention to the cache file if you give it
14663 # the --recheck option to rerun configure.
14664 #
14665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14667 # following values.
14668
14669 _ACEOF
14670
14671 # The following way of writing the cache mishandles newlines in values,
14672 # but we know of no workaround that is simple, portable, and efficient.
14673 # So, we kill variables containing newlines.
14674 # Ultrix sh set writes to stderr and can't be redirected directly,
14675 # and sets the high bit in the cache file unless we assign to the vars.
14676 (
14677 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14678 eval ac_val=\$$ac_var
14679 case $ac_val in #(
14680 *${as_nl}*)
14681 case $ac_var in #(
14682 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14684 esac
14685 case $ac_var in #(
14686 _ | IFS | as_nl) ;; #(
14687 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14688 *) { eval $ac_var=; unset $ac_var;} ;;
14689 esac ;;
14690 esac
14691 done
14692
14693 (set) 2>&1 |
14694 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14695 *${as_nl}ac_space=\ *)
14696 # `set' does not quote correctly, so add quotes: double-quote
14697 # substitution turns \\\\ into \\, and sed turns \\ into \.
14698 sed -n \
14699 "s/'/'\\\\''/g;
14700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14701 ;; #(
14702 *)
14703 # `set' quotes correctly as required by POSIX, so do not add quotes.
14704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14705 ;;
14706 esac |
14707 sort
14708 ) |
14709 sed '
14710 /^ac_cv_env_/b end
14711 t clear
14712 :clear
14713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14714 t end
14715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14716 :end' >>confcache
14717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14718 if test -w "$cache_file"; then
14719 test "x$cache_file" != "x/dev/null" &&
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14721 $as_echo "$as_me: updating cache $cache_file" >&6;}
14722 cat confcache >$cache_file
14723 else
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14725 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14726 fi
14727 fi
14728 rm -f confcache
14729
14730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14731 # Let make expand exec_prefix.
14732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14733
14734 # Transform confdefs.h into DEFS.
14735 # Protect against shell expansion while executing Makefile rules.
14736 # Protect against Makefile macro expansion.
14737 #
14738 # If the first sed substitution is executed (which looks for macros that
14739 # take arguments), then branch to the quote section. Otherwise,
14740 # look for a macro that doesn't take arguments.
14741 ac_script='
14742 :mline
14743 /\\$/{
14744 N
14745 s,\\\n,,
14746 b mline
14747 }
14748 t clear
14749 :clear
14750 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14751 t quote
14752 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14753 t quote
14754 b any
14755 :quote
14756 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14757 s/\[/\\&/g
14758 s/\]/\\&/g
14759 s/\$/$$/g
14760 H
14761 :any
14762 ${
14763 g
14764 s/^\n//
14765 s/\n/ /g
14766 p
14767 }
14768 '
14769 DEFS=`sed -n "$ac_script" confdefs.h`
14770
14771
14772 ac_libobjs=
14773 ac_ltlibobjs=
14774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14775 # 1. Remove the extension, and $U if already installed.
14776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14779 # will be set to the directory where LIBOBJS objects are built.
14780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14782 done
14783 LIBOBJS=$ac_libobjs
14784
14785 LTLIBOBJS=$ac_ltlibobjs
14786
14787
14788
14789 : ${CONFIG_STATUS=./config.status}
14790 ac_write_fail=0
14791 ac_clean_files_save=$ac_clean_files
14792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14795 as_write_fail=0
14796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14797 #! $SHELL
14798 # Generated by $as_me.
14799 # Run this file to recreate the current configuration.
14800 # Compiler output produced by configure, useful for debugging
14801 # configure, is in config.log if it exists.
14802
14803 debug=false
14804 ac_cs_recheck=false
14805 ac_cs_silent=false
14806
14807 SHELL=\${CONFIG_SHELL-$SHELL}
14808 export SHELL
14809 _ASEOF
14810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14811 ## -------------------- ##
14812 ## M4sh Initialization. ##
14813 ## -------------------- ##
14814
14815 # Be more Bourne compatible
14816 DUALCASE=1; export DUALCASE # for MKS sh
14817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14818 emulate sh
14819 NULLCMD=:
14820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14821 # is contrary to our usage. Disable this feature.
14822 alias -g '${1+"$@"}'='"$@"'
14823 setopt NO_GLOB_SUBST
14824 else
14825 case `(set -o) 2>/dev/null` in #(
14826 *posix*) :
14827 set -o posix ;; #(
14828 *) :
14829 ;;
14830 esac
14831 fi
14832
14833
14834 as_nl='
14835 '
14836 export as_nl
14837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14841 # Prefer a ksh shell builtin over an external printf program on Solaris,
14842 # but without wasting forks for bash or zsh.
14843 if test -z "$BASH_VERSION$ZSH_VERSION" \
14844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14845 as_echo='print -r --'
14846 as_echo_n='print -rn --'
14847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14848 as_echo='printf %s\n'
14849 as_echo_n='printf %s'
14850 else
14851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14853 as_echo_n='/usr/ucb/echo -n'
14854 else
14855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14856 as_echo_n_body='eval
14857 arg=$1;
14858 case $arg in #(
14859 *"$as_nl"*)
14860 expr "X$arg" : "X\\(.*\\)$as_nl";
14861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14862 esac;
14863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14864 '
14865 export as_echo_n_body
14866 as_echo_n='sh -c $as_echo_n_body as_echo'
14867 fi
14868 export as_echo_body
14869 as_echo='sh -c $as_echo_body as_echo'
14870 fi
14871
14872 # The user is always right.
14873 if test "${PATH_SEPARATOR+set}" != set; then
14874 PATH_SEPARATOR=:
14875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14877 PATH_SEPARATOR=';'
14878 }
14879 fi
14880
14881
14882 # IFS
14883 # We need space, tab and new line, in precisely that order. Quoting is
14884 # there to prevent editors from complaining about space-tab.
14885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14886 # splitting by setting IFS to empty value.)
14887 IFS=" "" $as_nl"
14888
14889 # Find who we are. Look in the path if we contain no directory separator.
14890 case $0 in #((
14891 *[\\/]* ) as_myself=$0 ;;
14892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14893 for as_dir in $PATH
14894 do
14895 IFS=$as_save_IFS
14896 test -z "$as_dir" && as_dir=.
14897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14898 done
14899 IFS=$as_save_IFS
14900
14901 ;;
14902 esac
14903 # We did not find ourselves, most probably we were run as `sh COMMAND'
14904 # in which case we are not to be found in the path.
14905 if test "x$as_myself" = x; then
14906 as_myself=$0
14907 fi
14908 if test ! -f "$as_myself"; then
14909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14910 exit 1
14911 fi
14912
14913 # Unset variables that we do not need and which cause bugs (e.g. in
14914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14915 # suppresses any "Segmentation fault" message there. '((' could
14916 # trigger a bug in pdksh 5.2.14.
14917 for as_var in BASH_ENV ENV MAIL MAILPATH
14918 do eval test x\${$as_var+set} = xset \
14919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14920 done
14921 PS1='$ '
14922 PS2='> '
14923 PS4='+ '
14924
14925 # NLS nuisances.
14926 LC_ALL=C
14927 export LC_ALL
14928 LANGUAGE=C
14929 export LANGUAGE
14930
14931 # CDPATH.
14932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14933
14934
14935 # as_fn_error ERROR [LINENO LOG_FD]
14936 # ---------------------------------
14937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14939 # script with status $?, using 1 if that was 0.
14940 as_fn_error ()
14941 {
14942 as_status=$?; test $as_status -eq 0 && as_status=1
14943 if test "$3"; then
14944 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14946 fi
14947 $as_echo "$as_me: error: $1" >&2
14948 as_fn_exit $as_status
14949 } # as_fn_error
14950
14951
14952 # as_fn_set_status STATUS
14953 # -----------------------
14954 # Set $? to STATUS, without forking.
14955 as_fn_set_status ()
14956 {
14957 return $1
14958 } # as_fn_set_status
14959
14960 # as_fn_exit STATUS
14961 # -----------------
14962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14963 as_fn_exit ()
14964 {
14965 set +e
14966 as_fn_set_status $1
14967 exit $1
14968 } # as_fn_exit
14969
14970 # as_fn_unset VAR
14971 # ---------------
14972 # Portably unset VAR.
14973 as_fn_unset ()
14974 {
14975 { eval $1=; unset $1;}
14976 }
14977 as_unset=as_fn_unset
14978 # as_fn_append VAR VALUE
14979 # ----------------------
14980 # Append the text in VALUE to the end of the definition contained in VAR. Take
14981 # advantage of any shell optimizations that allow amortized linear growth over
14982 # repeated appends, instead of the typical quadratic growth present in naive
14983 # implementations.
14984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14985 eval 'as_fn_append ()
14986 {
14987 eval $1+=\$2
14988 }'
14989 else
14990 as_fn_append ()
14991 {
14992 eval $1=\$$1\$2
14993 }
14994 fi # as_fn_append
14995
14996 # as_fn_arith ARG...
14997 # ------------------
14998 # Perform arithmetic evaluation on the ARGs, and store the result in the
14999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15000 # must be portable across $(()) and expr.
15001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15002 eval 'as_fn_arith ()
15003 {
15004 as_val=$(( $* ))
15005 }'
15006 else
15007 as_fn_arith ()
15008 {
15009 as_val=`expr "$@" || test $? -eq 1`
15010 }
15011 fi # as_fn_arith
15012
15013
15014 if expr a : '\(a\)' >/dev/null 2>&1 &&
15015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15016 as_expr=expr
15017 else
15018 as_expr=false
15019 fi
15020
15021 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15022 as_basename=basename
15023 else
15024 as_basename=false
15025 fi
15026
15027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15028 as_dirname=dirname
15029 else
15030 as_dirname=false
15031 fi
15032
15033 as_me=`$as_basename -- "$0" ||
15034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15035 X"$0" : 'X\(//\)$' \| \
15036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15037 $as_echo X/"$0" |
15038 sed '/^.*\/\([^/][^/]*\)\/*$/{
15039 s//\1/
15040 q
15041 }
15042 /^X\/\(\/\/\)$/{
15043 s//\1/
15044 q
15045 }
15046 /^X\/\(\/\).*/{
15047 s//\1/
15048 q
15049 }
15050 s/.*/./; q'`
15051
15052 # Avoid depending upon Character Ranges.
15053 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15056 as_cr_digits='0123456789'
15057 as_cr_alnum=$as_cr_Letters$as_cr_digits
15058
15059 ECHO_C= ECHO_N= ECHO_T=
15060 case `echo -n x` in #(((((
15061 -n*)
15062 case `echo 'xy\c'` in
15063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15064 xy) ECHO_C='\c';;
15065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15066 ECHO_T=' ';;
15067 esac;;
15068 *)
15069 ECHO_N='-n';;
15070 esac
15071
15072 rm -f conf$$ conf$$.exe conf$$.file
15073 if test -d conf$$.dir; then
15074 rm -f conf$$.dir/conf$$.file
15075 else
15076 rm -f conf$$.dir
15077 mkdir conf$$.dir 2>/dev/null
15078 fi
15079 if (echo >conf$$.file) 2>/dev/null; then
15080 if ln -s conf$$.file conf$$ 2>/dev/null; then
15081 as_ln_s='ln -s'
15082 # ... but there are two gotchas:
15083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15085 # In both cases, we have to default to `cp -p'.
15086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15087 as_ln_s='cp -p'
15088 elif ln conf$$.file conf$$ 2>/dev/null; then
15089 as_ln_s=ln
15090 else
15091 as_ln_s='cp -p'
15092 fi
15093 else
15094 as_ln_s='cp -p'
15095 fi
15096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15097 rmdir conf$$.dir 2>/dev/null
15098
15099
15100 # as_fn_mkdir_p
15101 # -------------
15102 # Create "$as_dir" as a directory, including parents if necessary.
15103 as_fn_mkdir_p ()
15104 {
15105
15106 case $as_dir in #(
15107 -*) as_dir=./$as_dir;;
15108 esac
15109 test -d "$as_dir" || eval $as_mkdir_p || {
15110 as_dirs=
15111 while :; do
15112 case $as_dir in #(
15113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15114 *) as_qdir=$as_dir;;
15115 esac
15116 as_dirs="'$as_qdir' $as_dirs"
15117 as_dir=`$as_dirname -- "$as_dir" ||
15118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15119 X"$as_dir" : 'X\(//\)[^/]' \| \
15120 X"$as_dir" : 'X\(//\)$' \| \
15121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15122 $as_echo X"$as_dir" |
15123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15124 s//\1/
15125 q
15126 }
15127 /^X\(\/\/\)[^/].*/{
15128 s//\1/
15129 q
15130 }
15131 /^X\(\/\/\)$/{
15132 s//\1/
15133 q
15134 }
15135 /^X\(\/\).*/{
15136 s//\1/
15137 q
15138 }
15139 s/.*/./; q'`
15140 test -d "$as_dir" && break
15141 done
15142 test -z "$as_dirs" || eval "mkdir $as_dirs"
15143 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15144
15145
15146 } # as_fn_mkdir_p
15147 if mkdir -p . 2>/dev/null; then
15148 as_mkdir_p='mkdir -p "$as_dir"'
15149 else
15150 test -d ./-p && rmdir ./-p
15151 as_mkdir_p=false
15152 fi
15153
15154 if test -x / >/dev/null 2>&1; then
15155 as_test_x='test -x'
15156 else
15157 if ls -dL / >/dev/null 2>&1; then
15158 as_ls_L_option=L
15159 else
15160 as_ls_L_option=
15161 fi
15162 as_test_x='
15163 eval sh -c '\''
15164 if test -d "$1"; then
15165 test -d "$1/.";
15166 else
15167 case $1 in #(
15168 -*)set "./$1";;
15169 esac;
15170 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15171 ???[sx]*):;;*)false;;esac;fi
15172 '\'' sh
15173 '
15174 fi
15175 as_executable_p=$as_test_x
15176
15177 # Sed expression to map a string onto a valid CPP name.
15178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15179
15180 # Sed expression to map a string onto a valid variable name.
15181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15182
15183
15184 exec 6>&1
15185 ## ----------------------------------- ##
15186 ## Main body of $CONFIG_STATUS script. ##
15187 ## ----------------------------------- ##
15188 _ASEOF
15189 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15190
15191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15192 # Save the log message, to keep $0 and so on meaningful, and to
15193 # report actual input values of CONFIG_FILES etc. instead of their
15194 # values after options handling.
15195 ac_log="
15196 This file was extended by $as_me, which was
15197 generated by GNU Autoconf 2.64. Invocation command line was
15198
15199 CONFIG_FILES = $CONFIG_FILES
15200 CONFIG_HEADERS = $CONFIG_HEADERS
15201 CONFIG_LINKS = $CONFIG_LINKS
15202 CONFIG_COMMANDS = $CONFIG_COMMANDS
15203 $ $0 $@
15204
15205 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15206 "
15207
15208 _ACEOF
15209
15210 case $ac_config_files in *"
15211 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15212 esac
15213
15214
15215
15216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15217 # Files that config.status was made for.
15218 config_files="$ac_config_files"
15219
15220 _ACEOF
15221
15222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15223 ac_cs_usage="\
15224 \`$as_me' instantiates files and other configuration actions
15225 from templates according to the current configuration. Unless the files
15226 and actions are specified as TAGs, all are instantiated by default.
15227
15228 Usage: $0 [OPTION]... [TAG]...
15229
15230 -h, --help print this help, then exit
15231 -V, --version print version number and configuration settings, then exit
15232 -q, --quiet, --silent
15233 do not print progress messages
15234 -d, --debug don't remove temporary files
15235 --recheck update $as_me by reconfiguring in the same conditions
15236 --file=FILE[:TEMPLATE]
15237 instantiate the configuration file FILE
15238
15239 Configuration files:
15240 $config_files
15241
15242 Report bugs to the package provider."
15243
15244 _ACEOF
15245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15246 ac_cs_version="\\
15247 config.status
15248 configured by $0, generated by GNU Autoconf 2.64,
15249 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15250
15251 Copyright (C) 2009 Free Software Foundation, Inc.
15252 This config.status script is free software; the Free Software Foundation
15253 gives unlimited permission to copy, distribute and modify it."
15254
15255 ac_pwd='$ac_pwd'
15256 srcdir='$srcdir'
15257 INSTALL='$INSTALL'
15258 AWK='$AWK'
15259 test -n "\$AWK" || AWK=awk
15260 _ACEOF
15261
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263 # The default lists apply if the user does not specify any file.
15264 ac_need_defaults=:
15265 while test $# != 0
15266 do
15267 case $1 in
15268 --*=*)
15269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15270 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15271 ac_shift=:
15272 ;;
15273 *)
15274 ac_option=$1
15275 ac_optarg=$2
15276 ac_shift=shift
15277 ;;
15278 esac
15279
15280 case $ac_option in
15281 # Handling of the options.
15282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15283 ac_cs_recheck=: ;;
15284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15285 $as_echo "$ac_cs_version"; exit ;;
15286 --debug | --debu | --deb | --de | --d | -d )
15287 debug=: ;;
15288 --file | --fil | --fi | --f )
15289 $ac_shift
15290 case $ac_optarg in
15291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15292 esac
15293 as_fn_append CONFIG_FILES " '$ac_optarg'"
15294 ac_need_defaults=false;;
15295 --he | --h | --help | --hel | -h )
15296 $as_echo "$ac_cs_usage"; exit ;;
15297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15299 ac_cs_silent=: ;;
15300
15301 # This is an error.
15302 -*) as_fn_error "unrecognized option: \`$1'
15303 Try \`$0 --help' for more information." ;;
15304
15305 *) as_fn_append ac_config_targets " $1"
15306 ac_need_defaults=false ;;
15307
15308 esac
15309 shift
15310 done
15311
15312 ac_configure_extra_args=
15313
15314 if $ac_cs_silent; then
15315 exec 6>/dev/null
15316 ac_configure_extra_args="$ac_configure_extra_args --silent"
15317 fi
15318
15319 _ACEOF
15320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321 if \$ac_cs_recheck; then
15322 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15323 shift
15324 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15325 CONFIG_SHELL='$SHELL'
15326 export CONFIG_SHELL
15327 exec "\$@"
15328 fi
15329
15330 _ACEOF
15331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15332 exec 5>>config.log
15333 {
15334 echo
15335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15336 ## Running $as_me. ##
15337 _ASBOX
15338 $as_echo "$ac_log"
15339 } >&5
15340
15341 _ACEOF
15342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15343 #
15344 # INIT-COMMANDS
15345 #
15346 extrasub_build="$extrasub_build"
15347 extrasub_host="$extrasub_host"
15348 extrasub_target="$extrasub_target"
15349
15350 _ACEOF
15351
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353
15354 # Handling of arguments.
15355 for ac_config_target in $ac_config_targets
15356 do
15357 case $ac_config_target in
15358 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15359
15360 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15361 esac
15362 done
15363
15364
15365 # If the user did not use the arguments to specify the items to instantiate,
15366 # then the envvar interface is used. Set only those that are not.
15367 # We use the long form for the default assignment because of an extremely
15368 # bizarre bug on SunOS 4.1.3.
15369 if $ac_need_defaults; then
15370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15371 fi
15372
15373 # Have a temporary directory for convenience. Make it in the build tree
15374 # simply because there is no reason against having it here, and in addition,
15375 # creating and moving files from /tmp can sometimes cause problems.
15376 # Hook for its removal unless debugging.
15377 # Note that there is a small window in which the directory will not be cleaned:
15378 # after its creation but before its name has been assigned to `$tmp'.
15379 $debug ||
15380 {
15381 tmp=
15382 trap 'exit_status=$?
15383 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15384 ' 0
15385 trap 'as_fn_exit 1' 1 2 13 15
15386 }
15387 # Create a (secure) tmp directory for tmp files.
15388
15389 {
15390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15391 test -n "$tmp" && test -d "$tmp"
15392 } ||
15393 {
15394 tmp=./conf$$-$RANDOM
15395 (umask 077 && mkdir "$tmp")
15396 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15397
15398 # Set up the scripts for CONFIG_FILES section.
15399 # No need to generate them if there are no CONFIG_FILES.
15400 # This happens for instance with `./config.status config.h'.
15401 if test -n "$CONFIG_FILES"; then
15402
15403 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15404 ac_cs_awk_getline=:
15405 ac_cs_awk_pipe_init=
15406 ac_cs_awk_read_file='
15407 while ((getline aline < (F[key])) > 0)
15408 print(aline)
15409 close(F[key])'
15410 ac_cs_awk_pipe_fini=
15411 else
15412 ac_cs_awk_getline=false
15413 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15414 ac_cs_awk_read_file='
15415 print "|#_!!_#|"
15416 print "cat " F[key] " &&"
15417 '$ac_cs_awk_pipe_init
15418 # The final `:' finishes the AND list.
15419 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15420 fi
15421 ac_cr=`echo X | tr X '\015'`
15422 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15423 # But we know of no other shell where ac_cr would be empty at this
15424 # point, so we can use a bashism as a fallback.
15425 if test "x$ac_cr" = x; then
15426 eval ac_cr=\$\'\\r\'
15427 fi
15428 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15430 ac_cs_awk_cr='\r'
15431 else
15432 ac_cs_awk_cr=$ac_cr
15433 fi
15434
15435 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15436 _ACEOF
15437
15438 # Create commands to substitute file output variables.
15439 {
15440 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15441 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15442 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15443 echo "_ACAWK" &&
15444 echo "_ACEOF"
15445 } >conf$$files.sh &&
15446 . ./conf$$files.sh ||
15447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15448 rm -f conf$$files.sh
15449
15450 {
15451 echo "cat >conf$$subs.awk <<_ACEOF" &&
15452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15453 echo "_ACEOF"
15454 } >conf$$subs.sh ||
15455 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15456 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15457 ac_delim='%!_!# '
15458 for ac_last_try in false false false false false :; do
15459 . ./conf$$subs.sh ||
15460 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15461
15462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15463 if test $ac_delim_n = $ac_delim_num; then
15464 break
15465 elif $ac_last_try; then
15466 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15467 else
15468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15469 fi
15470 done
15471 rm -f conf$$subs.sh
15472
15473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15474 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15475 _ACEOF
15476 sed -n '
15477 h
15478 s/^/S["/; s/!.*/"]=/
15479 p
15480 g
15481 s/^[^!]*!//
15482 :repl
15483 t repl
15484 s/'"$ac_delim"'$//
15485 t delim
15486 :nl
15487 h
15488 s/\(.\{148\}\).*/\1/
15489 t more1
15490 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15491 p
15492 n
15493 b repl
15494 :more1
15495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15496 p
15497 g
15498 s/.\{148\}//
15499 t nl
15500 :delim
15501 h
15502 s/\(.\{148\}\).*/\1/
15503 t more2
15504 s/["\\]/\\&/g; s/^/"/; s/$/"/
15505 p
15506 b
15507 :more2
15508 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15509 p
15510 g
15511 s/.\{148\}//
15512 t delim
15513 ' <conf$$subs.awk | sed '
15514 /^[^""]/{
15515 N
15516 s/\n//
15517 }
15518 ' >>$CONFIG_STATUS || ac_write_fail=1
15519 rm -f conf$$subs.awk
15520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521 _ACAWK
15522 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15523 for (key in S) S_is_set[key] = 1
15524 FS = ""
15525 \$ac_cs_awk_pipe_init
15526 }
15527 {
15528 line = $ 0
15529 nfields = split(line, field, "@")
15530 substed = 0
15531 len = length(field[1])
15532 for (i = 2; i < nfields; i++) {
15533 key = field[i]
15534 keylen = length(key)
15535 if (S_is_set[key]) {
15536 value = S[key]
15537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15538 len += length(value) + length(field[++i])
15539 substed = 1
15540 } else
15541 len += 1 + keylen
15542 }
15543 if (nfields == 3 && !substed) {
15544 key = field[2]
15545 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15546 \$ac_cs_awk_read_file
15547 next
15548 }
15549 }
15550 print line
15551 }
15552 \$ac_cs_awk_pipe_fini
15553 _ACAWK
15554 _ACEOF
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15557 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15558 else
15559 cat
15560 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15561 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15562 _ACEOF
15563
15564 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15565 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15566 # trailing colons and then remove the whole line if VPATH becomes empty
15567 # (actually we leave an empty line to preserve line numbers).
15568 if test "x$srcdir" = x.; then
15569 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15570 s/:*\$(srcdir):*/:/
15571 s/:*\${srcdir}:*/:/
15572 s/:*@srcdir@:*/:/
15573 s/^\([^=]*=[ ]*\):*/\1/
15574 s/:*$//
15575 s/^[^=]*=[ ]*$//
15576 }'
15577 fi
15578
15579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15580 fi # test -n "$CONFIG_FILES"
15581
15582
15583 eval set X " :F $CONFIG_FILES "
15584 shift
15585 for ac_tag
15586 do
15587 case $ac_tag in
15588 :[FHLC]) ac_mode=$ac_tag; continue;;
15589 esac
15590 case $ac_mode$ac_tag in
15591 :[FHL]*:*);;
15592 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15593 :[FH]-) ac_tag=-:-;;
15594 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15595 esac
15596 ac_save_IFS=$IFS
15597 IFS=:
15598 set x $ac_tag
15599 IFS=$ac_save_IFS
15600 shift
15601 ac_file=$1
15602 shift
15603
15604 case $ac_mode in
15605 :L) ac_source=$1;;
15606 :[FH])
15607 ac_file_inputs=
15608 for ac_f
15609 do
15610 case $ac_f in
15611 -) ac_f="$tmp/stdin";;
15612 *) # Look for the file first in the build tree, then in the source tree
15613 # (if the path is not absolute). The absolute path cannot be DOS-style,
15614 # because $ac_f cannot contain `:'.
15615 test -f "$ac_f" ||
15616 case $ac_f in
15617 [\\/$]*) false;;
15618 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15619 esac ||
15620 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15621 esac
15622 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15623 as_fn_append ac_file_inputs " '$ac_f'"
15624 done
15625
15626 # Let's still pretend it is `configure' which instantiates (i.e., don't
15627 # use $as_me), people would be surprised to read:
15628 # /* config.h. Generated by config.status. */
15629 configure_input='Generated from '`
15630 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15631 `' by configure.'
15632 if test x"$ac_file" != x-; then
15633 configure_input="$ac_file. $configure_input"
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15635 $as_echo "$as_me: creating $ac_file" >&6;}
15636 fi
15637 # Neutralize special characters interpreted by sed in replacement strings.
15638 case $configure_input in #(
15639 *\&* | *\|* | *\\* )
15640 ac_sed_conf_input=`$as_echo "$configure_input" |
15641 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15642 *) ac_sed_conf_input=$configure_input;;
15643 esac
15644
15645 case $ac_tag in
15646 *:-:* | *:-) cat >"$tmp/stdin" \
15647 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15648 esac
15649 ;;
15650 esac
15651
15652 ac_dir=`$as_dirname -- "$ac_file" ||
15653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15654 X"$ac_file" : 'X\(//\)[^/]' \| \
15655 X"$ac_file" : 'X\(//\)$' \| \
15656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15657 $as_echo X"$ac_file" |
15658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15659 s//\1/
15660 q
15661 }
15662 /^X\(\/\/\)[^/].*/{
15663 s//\1/
15664 q
15665 }
15666 /^X\(\/\/\)$/{
15667 s//\1/
15668 q
15669 }
15670 /^X\(\/\).*/{
15671 s//\1/
15672 q
15673 }
15674 s/.*/./; q'`
15675 as_dir="$ac_dir"; as_fn_mkdir_p
15676 ac_builddir=.
15677
15678 case "$ac_dir" in
15679 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15680 *)
15681 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15682 # A ".." for each directory in $ac_dir_suffix.
15683 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15684 case $ac_top_builddir_sub in
15685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15687 esac ;;
15688 esac
15689 ac_abs_top_builddir=$ac_pwd
15690 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15691 # for backward compatibility:
15692 ac_top_builddir=$ac_top_build_prefix
15693
15694 case $srcdir in
15695 .) # We are building in place.
15696 ac_srcdir=.
15697 ac_top_srcdir=$ac_top_builddir_sub
15698 ac_abs_top_srcdir=$ac_pwd ;;
15699 [\\/]* | ?:[\\/]* ) # Absolute name.
15700 ac_srcdir=$srcdir$ac_dir_suffix;
15701 ac_top_srcdir=$srcdir
15702 ac_abs_top_srcdir=$srcdir ;;
15703 *) # Relative name.
15704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15705 ac_top_srcdir=$ac_top_build_prefix$srcdir
15706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15707 esac
15708 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15709
15710
15711 case $ac_mode in
15712 :F)
15713 #
15714 # CONFIG_FILE
15715 #
15716
15717 case $INSTALL in
15718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15719 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15720 esac
15721 _ACEOF
15722
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15724 # If the template does not know about datarootdir, expand it.
15725 # FIXME: This hack should be removed a few years after 2.60.
15726 ac_datarootdir_hack=; ac_datarootdir_seen=
15727 ac_sed_dataroot='
15728 /datarootdir/ {
15729 p
15730 q
15731 }
15732 /@datadir@/p
15733 /@docdir@/p
15734 /@infodir@/p
15735 /@localedir@/p
15736 /@mandir@/p'
15737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15738 *datarootdir*) ac_datarootdir_seen=yes;;
15739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15741 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15742 _ACEOF
15743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15744 ac_datarootdir_hack='
15745 s&@datadir@&$datadir&g
15746 s&@docdir@&$docdir&g
15747 s&@infodir@&$infodir&g
15748 s&@localedir@&$localedir&g
15749 s&@mandir@&$mandir&g
15750 s&\\\${datarootdir}&$datarootdir&g' ;;
15751 esac
15752 _ACEOF
15753
15754 # Neutralize VPATH when `$srcdir' = `.'.
15755 # Shell code in configure.ac might set extrasub.
15756 # FIXME: do we really want to maintain this feature?
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 ac_sed_extra="$ac_vpsub
15759 $extrasub
15760 _ACEOF
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 :t
15763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15764 s|@configure_input@|$ac_sed_conf_input|;t t
15765 s&@top_builddir@&$ac_top_builddir_sub&;t t
15766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15767 s&@srcdir@&$ac_srcdir&;t t
15768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15769 s&@top_srcdir@&$ac_top_srcdir&;t t
15770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15771 s&@builddir@&$ac_builddir&;t t
15772 s&@abs_builddir@&$ac_abs_builddir&;t t
15773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15774 s&@INSTALL@&$ac_INSTALL&;t t
15775 $ac_datarootdir_hack
15776 "
15777 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15778 if $ac_cs_awk_getline; then
15779 $AWK -f "$tmp/subs.awk"
15780 else
15781 $AWK -f "$tmp/subs.awk" | $SHELL
15782 fi >$tmp/out \
15783 || as_fn_error "could not create $ac_file" "$LINENO" 5
15784
15785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15786 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15789 which seems to be undefined. Please make sure it is defined." >&5
15790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15791 which seems to be undefined. Please make sure it is defined." >&2;}
15792
15793 rm -f "$tmp/stdin"
15794 case $ac_file in
15795 -) cat "$tmp/out" && rm -f "$tmp/out";;
15796 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15797 esac \
15798 || as_fn_error "could not create $ac_file" "$LINENO" 5
15799 ;;
15800
15801
15802
15803 esac
15804
15805
15806 case $ac_file$ac_mode in
15807 "Makefile":F) sed "$extrasub_build" Makefile |
15808 sed "$extrasub_host" |
15809 sed "$extrasub_target" > mf$$
15810 mv -f mf$$ Makefile ;;
15811
15812 esac
15813 done # for ac_tag
15814
15815
15816 as_fn_exit 0
15817 _ACEOF
15818 ac_clean_files=$ac_clean_files_save
15819
15820 test $ac_write_fail = 0 ||
15821 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15822
15823
15824 # configure is writing to config.log, and then calls config.status.
15825 # config.status does its own redirection, appending to config.log.
15826 # Unfortunately, on DOS this fails, as config.log is still kept open
15827 # by configure, so config.status won't be able to write to it; its
15828 # output is simply discarded. So we exec the FD to /dev/null,
15829 # effectively closing config.log, so it can be properly (re)opened and
15830 # appended to by config.status. When coming back to configure, we
15831 # need to make the FD available again.
15832 if test "$no_create" != yes; then
15833 ac_cs_success=:
15834 ac_config_status_args=
15835 test "$silent" = yes &&
15836 ac_config_status_args="$ac_config_status_args --quiet"
15837 exec 5>/dev/null
15838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15839 exec 5>>config.log
15840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15841 # would make configure fail if this is the last instruction.
15842 $ac_cs_success || as_fn_exit $?
15843 fi
15844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15847 fi
15848
15849