gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="move-if-change"
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
604READELF_FOR_TARGET
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
607OBJCOPY_FOR_TARGET
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
614GOC_FOR_TARGET
615GFORTRAN_FOR_TARGET
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
619RANLIB_PLUGIN_OPTION
620AR_PLUGIN_OPTION
621READELF
622OBJDUMP
623OBJCOPY
624WINDMC
625WINDRES
626STRIP
627RANLIB
628NM
629LIPO
630LD
631DLLTOOL
632AS
633AR
634RUNTEST
635EXPECT
636MAKEINFO
637FLEX
638LEX
639M4
640BISON
641YACC
642WINDRES_FOR_BUILD
643WINDMC_FOR_BUILD
644RANLIB_FOR_BUILD
645NM_FOR_BUILD
646LD_FOR_BUILD
647LDFLAGS_FOR_BUILD
648GOC_FOR_BUILD
649GFORTRAN_FOR_BUILD
650DLLTOOL_FOR_BUILD
651CXX_FOR_BUILD
652CXXFLAGS_FOR_BUILD
653CFLAGS_FOR_BUILD
654CC_FOR_BUILD
655AS_FOR_BUILD
656AR_FOR_BUILD
657target_configdirs
658configdirs
659build_configdirs
660INSTALL_GDB_TK
661GDB_TK
662CONFIGURE_GDB_TK
663build_tooldir
664tooldir
665GCC_SHLIB_SUBDIR
666RPATH_ENVVAR
667target_configargs
668host_configargs
669build_configargs
670BUILD_CONFIG
671LDFLAGS_FOR_TARGET
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
676get_gcc_base_ver
677extra_host_zlib_configure_flags
678extra_host_libiberty_configure_flags
679stage1_languages
680host_shared
681extra_linker_plugin_flags
682extra_linker_plugin_configure_flags
683islinc
684isllibs
685poststage1_ldflags
686poststage1_libs
687stage1_ldflags
688stage1_libs
689extra_isl_gmp_configure_flags
690extra_mpc_mpfr_configure_flags
691extra_mpc_gmp_configure_flags
692extra_mpfr_configure_flags
693gmpinc
694gmplibs
695PGO_BUILD_LTO_CFLAGS
696PGO_BUILD_USE_CFLAGS
697PGO_BUILD_GEN_CFLAGS
698do_compare
699GNATMAKE
700GNATBIND
701ac_ct_CXX
702CXXFLAGS
703CXX
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711extra_liboffloadmic_configure_flags
712target_subdir
713host_subdir
714build_subdir
715build_libsubdir
716AWK
717SED
718LN_S
719LN
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
731target_noncanonical
732host_noncanonical
733build_noncanonical
734build_os
735build_vendor
736build_cpu
737build
738TOPLEVEL_CONFIGURE_ARGUMENTS
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL'
777ac_subst_files='serialization_dependencies
778host_makefile_frag
779target_makefile_frag
780alphaieee_frag
781ospace_frag'
782ac_user_opts='
783enable_option_checking
784with_build_libsubdir
785with_system_zlib
786enable_as_accelerator_for
787enable_offload_targets
788enable_gold
789enable_ld
790enable_compressed_debug_sections
791enable_libquadmath
792enable_libquadmath_support
793enable_libada
794enable_libssp
795enable_libstdcxx
796enable_liboffloadmic
797enable_bootstrap
798enable_pgo_build
799with_mpc
800with_mpc_include
801with_mpc_lib
802with_mpfr_dir
803with_mpfr
804with_mpfr_include
805with_mpfr_lib
806with_gmp_dir
807with_gmp
808with_gmp_include
809with_gmp_lib
810with_stage1_libs
811with_static_standard_libraries
812with_stage1_ldflags
813with_boot_libs
814with_boot_ldflags
815with_isl
816with_isl_include
817with_isl_lib
818enable_isl_version_check
819enable_lto
820enable_linker_plugin_configure_flags
821enable_linker_plugin_flags
822enable_host_shared
823enable_stage1_languages
824enable_objc_gc
825with_target_bdw_gc
826with_target_bdw_gc_include
827with_target_bdw_gc_lib
828with_gcc_major_version_only
829with_build_sysroot
830with_debug_prefix_map
831with_build_config
832enable_vtable_verify
833enable_serial_configure
834with_build_time_tools
835enable_maintainer_mode
836enable_stage1_checking
837enable_werror
838'
839 ac_precious_vars='build_alias
840host_alias
841target_alias
842CC
843CFLAGS
844LDFLAGS
845LIBS
846CPPFLAGS
847CXX
848CXXFLAGS
849CCC
850build_configargs
851host_configargs
852target_configargs
853AR
854AS
855DLLTOOL
856LD
857LIPO
858NM
859RANLIB
860STRIP
861WINDRES
862WINDMC
863OBJCOPY
864OBJDUMP
865READELF
866CC_FOR_TARGET
867CXX_FOR_TARGET
868GCC_FOR_TARGET
869GFORTRAN_FOR_TARGET
870GOC_FOR_TARGET
871AR_FOR_TARGET
872AS_FOR_TARGET
873DLLTOOL_FOR_TARGET
874LD_FOR_TARGET
875LIPO_FOR_TARGET
876NM_FOR_TARGET
877OBJCOPY_FOR_TARGET
878OBJDUMP_FOR_TARGET
879RANLIB_FOR_TARGET
880READELF_FOR_TARGET
881STRIP_FOR_TARGET
882WINDRES_FOR_TARGET
883WINDMC_FOR_TARGET'
884
885
886# Initialize some variables set by options.
887ac_init_help=
888ac_init_version=false
889ac_unrecognized_opts=
890ac_unrecognized_sep=
891# The variables have the same names as the options, with
892# dashes changed to underlines.
893cache_file=/dev/null
894exec_prefix=NONE
895no_create=
896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
904verbose=
905x_includes=NONE
906x_libraries=NONE
907
908# Installation directory options.
909# These are left unexpanded so users can "make install exec_prefix=/foo"
910# and all the variables that are supposed to be based on exec_prefix
911# by default will actually change.
912# Use braces instead of parens because sh, perl, etc. also accept them.
913# (The list follows the same order as the GNU Coding Standards.)
914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
922includedir='${prefix}/include'
923oldincludedir='/usr/include'
924docdir='${datarootdir}/doc/${PACKAGE}'
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
933
934ac_prev=
935ac_dashdash=
936for ac_option
937do
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
943 fi
944
945 case $ac_option in
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270Try \`$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292done
1293
1294if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297fi
1298
1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305fi
1306
1307# Check all directory arguments for consistency.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326done
1327
1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
1334
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
1343
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
1348
1349
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367$as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395fi
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410case $srcdir in
1411 *" "*)
1412 as_fn_error $? "path to source, $srcdir, contains spaces"
1413 ;;
1414esac
1415ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1416
1417for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422done
1423
1424#
1425# Report the --help message.
1426#
1427if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431\`configure' configures this package to adapt to many kinds of systems.
1432
1433Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438Defaults for the options are specified in brackets.
1439
1440Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1451Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1456
1457By default, \`make install' will install all the files in
1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460for instance \`--prefix=\$HOME'.
1461
1462For better control, use the options below.
1463
1464Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484_ACEOF
1485
1486 cat <<\_ACEOF
1487
1488Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497_ACEOF
1498fi
1499
1500if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-as-accelerator-for=ARG
1509 build as offload target compiler. Specify offload
1510 host triple by ARG
1511 --enable-offload-targets=LIST
1512 enable offloading to devices from comma-separated
1513 LIST of TARGET[=DIR]. Use optional path to find
1514 offload target compiler during the build
1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1517 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1518 Enable compressed debug sections for gas, gold or ld
1519 by default
1520 --disable-libquadmath do not build libquadmath directory
1521 --disable-libquadmath-support
1522 disable libquadmath support for Fortran
1523 --enable-libada build libada directory
1524 --enable-libssp build libssp directory
1525 --disable-libstdcxx do not build libstdc++-v3 directory
1526 --enable-liboffloadmic=ARG
1527 build liboffloadmic [ARG={no,host,target}]
1528 --enable-bootstrap enable bootstrapping [yes if native build]
1529 --enable-pgo-build[=lto]
1530 enable the PGO build
1531 --disable-isl-version-check
1532 disable check for isl version
1533 --enable-lto enable link time optimization support
1534 --enable-linker-plugin-configure-flags=FLAGS
1535 additional flags for configuring linker plugins
1536 [none]
1537 --enable-linker-plugin-flags=FLAGS
1538 additional flags for configuring and building linker
1539 plugins [none]
1540 --enable-host-shared build host code as shared libraries
1541 --enable-stage1-languages[=all]
1542 choose additional languages to build during stage1.
1543 Mostly useful for compiler development
1544 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1545 Objective-C runtime
1546 --enable-vtable-verify Enable vtable verification feature
1547 --enable-serial-[{host,target,build}-]configure
1548 force sequential configuration of sub-packages for
1549 the host, target or build machine, or all
1550 sub-packages
1551 --enable-maintainer-mode
1552 enable make rules and dependencies not useful (and
1553 sometimes confusing) to the casual installer
1554 --enable-stage1-checking[=all]
1555 choose additional checking for stage1 of the
1556 compiler
1557 --enable-werror enable -Werror in bootstrap stage2 and later
1558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-build-libsubdir=DIR Directory where to find libraries for build system
1563 --with-system-zlib use installed libz
1564 --with-mpc=PATH specify prefix directory for installed MPC package.
1565 Equivalent to --with-mpc-include=PATH/include plus
1566 --with-mpc-lib=PATH/lib
1567 --with-mpc-include=PATH specify directory for installed MPC include files
1568 --with-mpc-lib=PATH specify directory for the installed MPC library
1569 --with-mpfr-dir=PATH this option has been REMOVED
1570 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1571 Equivalent to --with-mpfr-include=PATH/include plus
1572 --with-mpfr-lib=PATH/lib
1573 --with-mpfr-include=PATH
1574 specify directory for installed MPFR include files
1575 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1576 --with-gmp-dir=PATH this option has been REMOVED
1577 --with-gmp=PATH specify prefix directory for the installed GMP
1578 package. Equivalent to
1579 --with-gmp-include=PATH/include plus
1580 --with-gmp-lib=PATH/lib
1581 --with-gmp-include=PATH specify directory for installed GMP include files
1582 --with-gmp-lib=PATH specify directory for the installed GMP library
1583 --with-stage1-libs=LIBS libraries for stage1
1584 --with-static-standard-libraries
1585 use -static-libstdc++ and -static-libgcc
1586 (default=auto)
1587 --with-stage1-ldflags=FLAGS
1588 linker flags for stage1
1589 --with-boot-libs=LIBS libraries for stage2 and later
1590 --with-boot-ldflags=FLAGS
1591 linker flags for stage2 and later
1592 --with-isl=PATH Specify prefix directory for the installed isl
1593 package. Equivalent to
1594 --with-isl-include=PATH/include plus
1595 --with-isl-lib=PATH/lib
1596 --with-isl-include=PATH Specify directory for installed isl include files
1597 --with-isl-lib=PATH Specify the directory for the installed isl library
1598 --with-target-bdw-gc=PATHLIST
1599 specify prefix directory for installed bdw-gc
1600 package. Equivalent to
1601 --with-target-bdw-gc-include=PATH/include plus
1602 --with-target-bdw-gc-lib=PATH/lib
1603 --with-target-bdw-gc-include=PATHLIST
1604 specify directories for installed bdw-gc include
1605 files
1606 --with-target-bdw-gc-lib=PATHLIST
1607 specify directories for installed bdw-gc library
1608 --with-gcc-major-version-only
1609 use only GCC major number in filesystem paths
1610 --with-build-sysroot=SYSROOT
1611 use sysroot as the system root during the build
1612 --with-debug-prefix-map='A=B C=D ...'
1613 map A to B, C to D ... in debug information
1614 --with-build-config='NAME NAME2...'
1615 use config/NAME.mk build configuration
1616 --with-build-time-tools=PATH
1617 use given path to find target tools during the build
1618
1619Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 LIBS libraries to pass to the linker, e.g. -l<library>
1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1626 you have headers in a nonstandard directory <include dir>
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
1629 build_configargs
1630 additional configure arguments for build directories
1631 host_configargs
1632 additional configure arguments for host directories
1633 target_configargs
1634 additional configure arguments for target directories
1635 AR AR for the host
1636 AS AS for the host
1637 DLLTOOL DLLTOOL for the host
1638 LD LD for the host
1639 LIPO LIPO for the host
1640 NM NM for the host
1641 RANLIB RANLIB for the host
1642 STRIP STRIP for the host
1643 WINDRES WINDRES for the host
1644 WINDMC WINDMC for the host
1645 OBJCOPY OBJCOPY for the host
1646 OBJDUMP OBJDUMP for the host
1647 READELF READELF for the host
1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
1656 GOC_FOR_TARGET
1657 GOC for the target
1658 AR_FOR_TARGET
1659 AR for the target
1660 AS_FOR_TARGET
1661 AS for the target
1662 DLLTOOL_FOR_TARGET
1663 DLLTOOL for the target
1664 LD_FOR_TARGET
1665 LD for the target
1666 LIPO_FOR_TARGET
1667 LIPO for the target
1668 NM_FOR_TARGET
1669 NM for the target
1670 OBJCOPY_FOR_TARGET
1671 OBJCOPY for the target
1672 OBJDUMP_FOR_TARGET
1673 OBJDUMP for the target
1674 RANLIB_FOR_TARGET
1675 RANLIB for the target
1676 READELF_FOR_TARGET
1677 READELF for the target
1678 STRIP_FOR_TARGET
1679 STRIP for the target
1680 WINDRES_FOR_TARGET
1681 WINDRES for the target
1682 WINDMC_FOR_TARGET
1683 WINDMC for the target
1684
1685Use these variables to override the choices made by `configure' or to help
1686it to find libraries and programs with nonstandard names/locations.
1687
1688Report bugs to the package provider.
1689_ACEOF
1690ac_status=$?
1691fi
1692
1693if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 continue
1699 ac_builddir=.
1700
1701case "$ac_dir" in
1702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703*)
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 esac ;;
1711esac
1712ac_abs_top_builddir=$ac_pwd
1713ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714# for backward compatibility:
1715ac_top_builddir=$ac_top_build_prefix
1716
1717case $srcdir in
1718 .) # We are building in place.
1719 ac_srcdir=.
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1723 ac_srcdir=$srcdir$ac_dir_suffix;
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1726 *) # Relative name.
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1730esac
1731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1741 else
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 fi || ac_status=$?
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1745 done
1746fi
1747
1748test -n "$ac_init_help" && exit $ac_status
1749if $ac_init_version; then
1750 cat <<\_ACEOF
1751configure
1752generated by GNU Autoconf 2.69
1753
1754Copyright (C) 2012 Free Software Foundation, Inc.
1755This configure script is free software; the Free Software Foundation
1756gives unlimited permission to copy, distribute and modify it.
1757_ACEOF
1758 exit
1759fi
1760
1761## ------------------------ ##
1762## Autoconf initialization. ##
1763## ------------------------ ##
1764
1765# ac_fn_c_try_compile LINENO
1766# --------------------------
1767# Try to compile conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_compile ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_compile
1802
1803# ac_fn_cxx_try_compile LINENO
1804# ----------------------------
1805# Try to compile conftest.$ac_ext, and return whether this succeeded.
1806ac_fn_cxx_try_compile ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835fi
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839} # ac_fn_cxx_try_compile
1840
1841# ac_fn_cxx_try_link LINENO
1842# -------------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_cxx_try_link ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 test -x conftest$ac_exeext
1869 }; then :
1870 ac_retval=0
1871else
1872 $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885} # ac_fn_cxx_try_link
1886
1887# ac_fn_c_try_link LINENO
1888# -----------------------
1889# Try to link conftest.$ac_ext, and return whether this succeeded.
1890ac_fn_c_try_link ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 test -x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931} # ac_fn_c_try_link
1932cat >config.log <<_ACEOF
1933This file contains any messages produced by compilers while
1934running configure, to aid debugging if configure makes a mistake.
1935
1936It was created by $as_me, which was
1937generated by GNU Autoconf 2.69. Invocation command line was
1938
1939 $ $0 $@
1940
1941_ACEOF
1942exec 5>>config.log
1943{
1944cat <<_ASUNAME
1945## --------- ##
1946## Platform. ##
1947## --------- ##
1948
1949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1961/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966_ASUNAME
1967
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 $as_echo "PATH: $as_dir"
1974 done
1975IFS=$as_save_IFS
1976
1977} >&5
1978
1979cat >&5 <<_ACEOF
1980
1981
1982## ----------- ##
1983## Core tests. ##
1984## ----------- ##
1985
1986_ACEOF
1987
1988
1989# Keep a trace of the command line.
1990# Strip out --no-create and --no-recursion so they do not pile up.
1991# Strip out --silent because we don't want to record it for future runs.
1992# Also quote any args containing shell meta-characters.
1993# Make two passes to allow for proper duplicate-argument suppression.
1994ac_configure_args=
1995ac_configure_args0=
1996ac_configure_args1=
1997ac_must_keep_next=false
1998for ac_pass in 1 2
1999do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 esac
2010 case $ac_pass in
2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012 2)
2013 as_fn_append ac_configure_args1 " '$ac_arg'"
2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
2029 as_fn_append ac_configure_args " '$ac_arg'"
2030 ;;
2031 esac
2032 done
2033done
2034{ ac_configure_args0=; unset ac_configure_args0;}
2035{ ac_configure_args1=; unset ac_configure_args1;}
2036
2037# When interrupted or exit'd, cleanup temporary files, and complete
2038# config.log. We remove comments because anyway the quotes in there
2039# would cause problems or look ugly.
2040# WARNING: Use '\'' to represent an apostrophe within the trap.
2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2042trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
2047 $as_echo "## ---------------- ##
2048## Cache variables. ##
2049## ---------------- ##"
2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
2052(
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
2068 (set) 2>&1 |
2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
2071 sed -n \
2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
2075 *)
2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2077 ;;
2078 esac |
2079 sort
2080)
2081 echo
2082
2083 $as_echo "## ----------------- ##
2084## Output variables. ##
2085## ----------------- ##"
2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
2098 $as_echo "## ------------------- ##
2099## File substitutions. ##
2100## ------------------- ##"
2101 echo
2102 for ac_var in $ac_subst_files
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
2114 $as_echo "## ----------- ##
2115## confdefs.h. ##
2116## ----------- ##"
2117 echo
2118 cat confdefs.h
2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
2124 } >&5
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2127 exit $exit_status
2128' 0
2129for ac_signal in 1 2 13 15; do
2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2131done
2132ac_signal=0
2133
2134# confdefs.h avoids OS command line length limits that DEFS can exceed.
2135rm -f -r conftest* confdefs.h
2136
2137$as_echo "/* confdefs.h */" > confdefs.h
2138
2139# Predefined preprocessor variables.
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_NAME "$PACKAGE_NAME"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_VERSION "$PACKAGE_VERSION"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_STRING "$PACKAGE_STRING"
2155_ACEOF
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_URL "$PACKAGE_URL"
2163_ACEOF
2164
2165
2166# Let the site file select an alternate cache file if it wants to.
2167# Prefer an explicitly selected file to automatically selected ones.
2168ac_site_file1=NONE
2169ac_site_file2=NONE
2170if test -n "$CONFIG_SITE"; then
2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
2177elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
2183fi
2184for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185do
2186 test "x$ac_site_file" = xNONE && continue
2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2190 sed 's/^/| /' "$ac_site_file" >&5
2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194as_fn_error $? "failed to load site script $ac_site_file
2195See \`config.log' for more details" "$LINENO" 5; }
2196 fi
2197done
2198
2199if test -r "$cache_file"; then
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204$as_echo "$as_me: loading cache $cache_file" >&6;}
2205 case $cache_file in
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
2208 esac
2209 fi
2210else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212$as_echo "$as_me: creating cache $cache_file" >&6;}
2213 >$cache_file
2214fi
2215
2216# Check that the precious variables saved in the cache have kept the same
2217# value.
2218ac_cache_corrupted=false
2219for ac_var in $ac_precious_vars; do
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
2224 case $ac_old_set,$ac_new_set in
2225 set,)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,set)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263 esac
2264 fi
2265done
2266if $ac_cache_corrupted; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272fi
2273## -------------------- ##
2274## Main body of script. ##
2275## -------------------- ##
2276
2277ac_ext=c
2278ac_cpp='$CPP $CPPFLAGS'
2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285
2286
2287
2288
2289
2290progname=$0
2291# if PWD already has a value, it is probably wrong.
2292if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2293
2294# Export original configure arguments for use by sub-configures.
2295# Quote arguments with shell meta charatcers.
2296TOPLEVEL_CONFIGURE_ARGUMENTS=
2297set -- "$progname" "$@"
2298for ac_arg
2299do
2300 case "$ac_arg" in
2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2303 # if the argument is of the form -foo=baz, quote the baz part only
2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2305 *) ;;
2306 esac
2307 # Add the quoted argument to the list.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2309done
2310if test "$silent" = yes; then
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2312fi
2313# Remove the initial space we just introduced and, as these will be
2314# expanded by make, quote '$'.
2315TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2316
2317
2318# Find the build, host, and target systems.
2319ac_aux_dir=
2320for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif test -f "$ac_dir/install.sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2328 break
2329 elif test -f "$ac_dir/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
2334done
2335if test -z "$ac_aux_dir"; then
2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2337fi
2338
2339# These three variables are undocumented and unsupported,
2340# and are intended to be withdrawn in a future Autoconf release.
2341# They can cause serious problems if a builder's source tree is in a directory
2342# whose full name contains unusual characters.
2343ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
2347
2348# Make sure we can run config.sub.
2349$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353$as_echo_n "checking build system type... " >&6; }
2354if ${ac_cv_build+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356else
2357 ac_build_alias=$build_alias
2358test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360test "x$ac_build_alias" = x &&
2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2364
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367$as_echo "$ac_cv_build" >&6; }
2368case $ac_cv_build in
2369*-*-*) ;;
2370*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2371esac
2372build=$ac_cv_build
2373ac_save_IFS=$IFS; IFS='-'
2374set x $ac_cv_build
2375shift
2376build_cpu=$1
2377build_vendor=$2
2378shift; shift
2379# Remember, the first character of IFS is used to create $*,
2380# except with old shells:
2381build_os=$*
2382IFS=$ac_save_IFS
2383case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2384
2385
2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
2389esac
2390
2391
2392
2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
2396esac
2397
2398
2399
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
2403esac
2404
2405
2406
2407
2408test "$host_noncanonical" = "$target_noncanonical" &&
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
2411 program_transform_name=s,y,y,
2412
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414$as_echo_n "checking host system type... " >&6; }
2415if ${ac_cv_host+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417else
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2423fi
2424
2425fi
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427$as_echo "$ac_cv_host" >&6; }
2428case $ac_cv_host in
2429*-*-*) ;;
2430*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2431esac
2432host=$ac_cv_host
2433ac_save_IFS=$IFS; IFS='-'
2434set x $ac_cv_host
2435shift
2436host_cpu=$1
2437host_vendor=$2
2438shift; shift
2439# Remember, the first character of IFS is used to create $*,
2440# except with old shells:
2441host_os=$*
2442IFS=$ac_save_IFS
2443case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2444
2445
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447$as_echo_n "checking target system type... " >&6; }
2448if ${ac_cv_target+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450else
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2456fi
2457
2458fi
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460$as_echo "$ac_cv_target" >&6; }
2461case $ac_cv_target in
2462*-*-*) ;;
2463*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2464esac
2465target=$ac_cv_target
2466ac_save_IFS=$IFS; IFS='-'
2467set x $ac_cv_target
2468shift
2469target_cpu=$1
2470target_vendor=$2
2471shift; shift
2472# Remember, the first character of IFS is used to create $*,
2473# except with old shells:
2474target_os=$*
2475IFS=$ac_save_IFS
2476case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2477
2478
2479# The aliases save the names the user supplied, while $host etc.
2480# will get canonicalized.
2481test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
2485
2486test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491# Double any \ or $.
2492# By default was `s,x,x', remove it if useless.
2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496
2497
2498# Get 'install' or 'install-sh' and its variants.
2499# Find a good install program. We prefer a C program (faster),
2500# so one script is as good as another. But avoid the broken or
2501# incompatible versions:
2502# SysV /etc/install, /usr/sbin/install
2503# SunOS /usr/etc/install
2504# IRIX /sbin/install
2505# AIX /bin/install
2506# AmigaOS /C/install, which installs bootblocks on floppy discs
2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510# OS/2's system install, which has a completely different semantic
2511# ./install, which can be erroneously created by make from ./install.sh.
2512# Reject install programs that cannot install multiple files.
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514$as_echo_n "checking for a BSD-compatible install... " >&6; }
2515if test -z "$INSTALL"; then
2516if ${ac_cv_path_install+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2525case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2537 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2540 :
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
2545 else
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
2558 fi
2559 fi
2560 done
2561 done
2562 ;;
2563esac
2564
2565 done
2566IFS=$as_save_IFS
2567
2568rm -rf conftest.one conftest.two conftest.dir
2569
2570fi
2571 if test "${ac_cv_path_install+set}" = set; then
2572 INSTALL=$ac_cv_path_install
2573 else
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
2576 # break other packages using the cache if that directory is
2577 # removed, or if the value is a relative name.
2578 INSTALL=$ac_install_sh
2579 fi
2580fi
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582$as_echo "$INSTALL" >&6; }
2583
2584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585# It thinks the first close brace ends the variable substitution.
2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589
2590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593$as_echo_n "checking whether ln works... " >&6; }
2594if ${acx_cv_prog_LN+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 rm -f conftestdata_t
2598echo >conftestdata_f
2599if ln conftestdata_f conftestdata_t 2>/dev/null
2600then
2601 acx_cv_prog_LN=ln
2602else
2603 acx_cv_prog_LN=no
2604fi
2605rm -f conftestdata_f conftestdata_t
2606
2607fi
2608if test $acx_cv_prog_LN = no; then
2609 LN="cp"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611$as_echo "no, using $LN" >&6; }
2612else
2613 LN="$acx_cv_prog_LN"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
2616fi
2617
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619$as_echo_n "checking whether ln -s works... " >&6; }
2620LN_S=$as_ln_s
2621if test "$LN_S" = "ln -s"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623$as_echo "yes" >&6; }
2624else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626$as_echo "no, using $LN_S" >&6; }
2627fi
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2631if ${ac_cv_path_SED+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2651 as_fn_executable_p "$ac_path_SED" || continue
2652# Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654case `"$ac_path_SED" --version 2>&1` in
2655*GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2657*)
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2661 do
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2673 fi
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678esac
2679
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2687 fi
2688else
2689 ac_cv_path_SED=$SED
2690fi
2691
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694$as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2697
2698for ac_prog in gawk mawk nawk awk
2699do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
2704if ${ac_cv_prog_AWK+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722 done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727AWK=$ac_cv_prog_AWK
2728if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730$as_echo "$AWK" >&6; }
2731else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736
2737 test -n "$AWK" && break
2738done
2739
2740
2741srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2742
2743# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744# a relative path.
2745if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2747fi
2748
2749# Set srcdir to "." if that's what it is.
2750# This is important for multilib support.
2751pwd=`${PWDCMD-pwd}`
2752if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
2754fi
2755
2756topsrcdir=$srcpwd
2757
2758extra_host_args=
2759
2760### To add a new directory to the tree, first choose whether it is a target
2761### or a host dependent tool. Then put it into the appropriate list
2762### (library or tools, host or target), doing a dependency sort.
2763
2764# Subdirs will be configured in the order listed in build_configdirs,
2765# configdirs, or target_configdirs; see the serialization section below.
2766
2767# Dependency sorting is only needed when *configuration* must be done in
2768# a particular order. In all cases a dependency should be specified in
2769# the Makefile, whether or not it's implicitly specified here.
2770
2771# Double entries in build_configdirs, configdirs, or target_configdirs may
2772# cause circular dependencies and break everything horribly.
2773
2774# these library is used by various programs built for the build
2775# environment
2776#
2777build_libs="build-libiberty build-libcpp"
2778
2779# these tools are built for the build environment
2780build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2781
2782# these libraries are used by various programs built for the host environment
2783#f
2784host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2785
2786# these tools are built for the host environment
2787# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788# know that we are building the simulator.
2789# binutils, gas and ld appear in that order because it makes sense to run
2790# "make check" in that particular order.
2791# If --enable-gold is used, "gold" may replace "ld".
2792host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2793
2794# these libraries are built for the target environment, and are built after
2795# the host libraries and the host tools (which may be a cross compiler)
2796# Note that libiberty is not a target library.
2797target_libraries="target-libgcc \
2798 target-libbacktrace \
2799 target-libgloss \
2800 target-newlib \
2801 target-libgomp \
2802 target-liboffloadmic \
2803 target-libhsail-rt \
2804 target-libatomic \
2805 target-libitm \
2806 target-libstdc++-v3 \
2807 target-libsanitizer \
2808 target-libvtv \
2809 target-libssp \
2810 target-libquadmath \
2811 target-libgfortran \
2812 target-libffi \
2813 target-libobjc \
2814 target-libada \
2815 target-libgo"
2816
2817# these tools are built using the target libraries, and are intended to
2818# run only in the target environment
2819#
2820# note: any program that *uses* libraries that are in the "target_libraries"
2821# list belongs in this list.
2822#
2823target_tools="target-rda"
2824
2825################################################################################
2826
2827## All tools belong in one of the four categories, and are assigned above
2828## We assign ${configdirs} this way to remove all embedded newlines. This
2829## is important because configure will choke if they ever get through.
2830## ${configdirs} is directories we build using the host tools.
2831## ${target_configdirs} is directories we build using the target tools.
2832configdirs=`echo ${host_libs} ${host_tools}`
2833target_configdirs=`echo ${target_libraries} ${target_tools}`
2834build_configdirs=`echo ${build_libs} ${build_tools}`
2835
2836
2837
2838################################################################################
2839
2840srcname="gnu development package"
2841
2842# This gets set non-empty for some net releases of packages.
2843appdirs=""
2844
2845# Define is_cross_compiler to save on calls to 'test'.
2846is_cross_compiler=
2847if test x"${host}" = x"${target}" ; then
2848 is_cross_compiler=no
2849else
2850 is_cross_compiler=yes
2851fi
2852
2853# Find the build and target subdir names.
2854
2855# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2856# have matching libraries, they should use host libraries: Makefile.tpl
2857# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2858# However, they still use the build modules, because the corresponding
2859# host modules (e.g. bison) are only built for the host when bootstrap
2860# finishes. So:
2861# - build_subdir is where we find build modules, and never changes.
2862# - build_libsubdir is where we find build libraries, and can be overridden.
2863
2864# Prefix 'build-' so this never conflicts with target_subdir.
2865build_subdir="build-${build_noncanonical}"
2866
2867# Check whether --with-build-libsubdir was given.
2868if test "${with_build_libsubdir+set}" = set; then :
2869 withval=$with_build_libsubdir; build_libsubdir="$withval"
2870else
2871 build_libsubdir="$build_subdir"
2872fi
2873
2874# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2875if ( test $srcdir = . && test -d gcc ) \
2876 || test -d $srcdir/../host-${host_noncanonical}; then
2877 host_subdir="host-${host_noncanonical}"
2878else
2879 host_subdir=.
2880fi
2881# No prefix.
2882target_subdir=${target_noncanonical}
2883
2884# Be sure to cover against remnants of an in-tree build.
2885if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2886 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2887Use a pristine source tree when building in a separate tree" "$LINENO" 5
2888fi
2889
2890# Skipdirs are removed silently.
2891skipdirs=
2892# Noconfigdirs are removed loudly.
2893noconfigdirs=""
2894
2895use_gnu_ld=
2896# Make sure we don't let GNU ld be added if we didn't want it.
2897if test x$with_gnu_ld = xno ; then
2898 use_gnu_ld=no
2899 noconfigdirs="$noconfigdirs ld gold"
2900fi
2901
2902use_gnu_as=
2903# Make sure we don't let GNU as be added if we didn't want it.
2904if test x$with_gnu_as = xno ; then
2905 use_gnu_as=no
2906 noconfigdirs="$noconfigdirs gas"
2907fi
2908
2909use_included_zlib=
2910
2911# Check whether --with-system-zlib was given.
2912if test "${with_system_zlib+set}" = set; then :
2913 withval=$with_system_zlib;
2914fi
2915
2916# Make sure we don't let ZLIB be added if we didn't want it.
2917if test x$with_system_zlib = xyes ; then
2918 use_included_zlib=no
2919 noconfigdirs="$noconfigdirs zlib"
2920fi
2921
2922# Don't compile the bundled readline/libreadline.a if --with-system-readline
2923# is provided.
2924if test x$with_system_readline = xyes ; then
2925 noconfigdirs="$noconfigdirs readline"
2926fi
2927
2928# some tools are so dependent upon X11 that if we're not building with X,
2929# it's not even worth trying to configure, much less build, that tool.
2930
2931case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
2934 skipdirs="${skipdirs} tk itcl libgui"
2935 # We won't be able to build gdbtk without X.
2936 enable_gdbtk=no
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939esac
2940
2941# Some are only suitable for cross toolchains.
2942# Remove these if host=target.
2943cross_only="target-libgloss target-newlib target-opcodes"
2944
2945case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
2947esac
2948
2949# If both --with-headers and --with-libs are specified, default to
2950# --without-newlib.
2951if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
2956fi
2957
2958# Recognize --with-newlib/--without-newlib.
2959case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962esac
2963
2964# Check whether --enable-as-accelerator-for was given.
2965if test "${enable_as_accelerator_for+set}" = set; then :
2966 enableval=$enable_as_accelerator_for;
2967fi
2968
2969
2970# Check whether --enable-offload-targets was given.
2971if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
2975 fi
2976
2977else
2978 enable_offload_targets=
2979fi
2980
2981
2982# Handle --enable-gold, --enable-ld.
2983# --disable-gold [--enable-ld]
2984# Build only ld. Default option.
2985# --enable-gold [--enable-ld]
2986# Build both gold and ld. Install gold as "ld.gold", install ld
2987# as "ld.bfd" and "ld".
2988# --enable-gold=default [--enable-ld]
2989# Build both gold and ld. Install gold as "ld.gold" and "ld",
2990# install ld as "ld.bfd".
2991# --enable-gold[=default] --disable-ld
2992# Build only gold, which is then installed as both "ld.gold" and "ld".
2993# --enable-gold --enable-ld=default
2994# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995# and ld.bfd).
2996# In other words, ld is default
2997# --enable-gold=default --enable-ld=default
2998# Error.
2999
3000default_ld=
3001# Check whether --enable-gold was given.
3002if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
3004else
3005 ENABLE_GOLD=no
3006fi
3007
3008case "${ENABLE_GOLD}" in
3009 yes|default)
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
3028 case "${target}" in
3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
3035 ENABLE_GOLD=yes
3036 ;;
3037 esac
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3044 ;;
3045esac
3046
3047# Check whether --enable-ld was given.
3048if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050else
3051 ENABLE_LD=yes
3052fi
3053
3054
3055case "${ENABLE_LD}" in
3056 default)
3057 if test x${default_ld} != x; then
3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3072 ;;
3073esac
3074
3075# PR gas/19109
3076# Decide the default method for compressing debug sections.
3077# Provide a configure time option to override our default.
3078# Check whether --enable-compressed_debug_sections was given.
3079if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3083 fi
3084
3085else
3086 enable_compressed_debug_sections=
3087fi
3088
3089
3090# Configure extra directories which are host specific
3091
3092case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095esac
3096
3097# A target can indicate whether a language isn't supported for some reason.
3098# Only spaces may be used in this macro; not newlines or tabs.
3099unsupported_languages=
3100
3101# Remove more programs from consideration, based on the host or
3102# target this usually means that a port of the program doesn't
3103# exist yet.
3104
3105case "${host}" in
3106 i[3456789]86-*-msdosdjgpp*)
3107 noconfigdirs="$noconfigdirs tcl tk itcl"
3108 ;;
3109esac
3110
3111
3112# Check whether --enable-libquadmath was given.
3113if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115else
3116 ENABLE_LIBQUADMATH=yes
3117fi
3118
3119if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121fi
3122
3123
3124# Check whether --enable-libquadmath-support was given.
3125if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129fi
3130
3131enable_libquadmath_support=
3132if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134fi
3135
3136
3137# Check whether --enable-libada was given.
3138if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3140else
3141 ENABLE_LIBADA=yes
3142fi
3143
3144if test "${ENABLE_LIBADA}" != "yes" ; then
3145 noconfigdirs="$noconfigdirs gnattools"
3146fi
3147
3148# Check whether --enable-libssp was given.
3149if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3151else
3152 ENABLE_LIBSSP=yes
3153fi
3154
3155
3156# Check whether --enable-libstdcxx was given.
3157if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159else
3160 ENABLE_LIBSTDCXX=default
3161fi
3162
3163if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165fi
3166
3167# If this is accelerator compiler and its target is intelmic we enable
3168# target liboffloadmic by default. If this is compiler with offloading
3169# for intelmic we enable host liboffloadmic by default. Otherwise
3170# liboffloadmic is disabled by default.
3171# Check whether --enable-liboffloadmic was given.
3172if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3178esac
3179else
3180 if test x"$enable_as_accelerator_for" != x; then
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200fi
3201fi
3202
3203
3204
3205# Enable libgomp by default on hosted POSIX systems, and a few others.
3206if test x$enable_libgomp = x ; then
3207 case "${target}" in
3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3209 ;;
3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3211 ;;
3212 *-*-solaris2* | *-*-hpux11*)
3213 ;;
3214 *-*-darwin* | *-*-aix*)
3215 ;;
3216 nvptx*-*-*)
3217 ;;
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
3222fi
3223
3224# Disable libatomic on unsupported systems.
3225if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228$as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238$as_echo "yes" >&6; }
3239 fi
3240 fi
3241fi
3242
3243# Disable liboffloadmic on unsupported systems.
3244if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247$as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258 fi
3259 fi
3260fi
3261
3262# Disable libitm on unsupported systems.
3263if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3266$as_echo_n "checking for libitm support... " >&6; }
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276$as_echo "yes" >&6; }
3277 fi
3278 fi
3279fi
3280
3281# Disable libsanitizer on unsupported systems.
3282if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285$as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296 fi
3297 fi
3298fi
3299
3300# Disable libvtv on unsupported systems.
3301if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304$as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
3307 test "$VTV_SUPPORTED" != "yes")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
3319
3320# Disable libhsail-rt on unsupported systems.
3321if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324$as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
3338 fi
3339fi
3340
3341
3342# Disable libquadmath for some systems.
3343case "${target}" in
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352esac
3353
3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 powerpc-*-aix* | rs6000-*-aix*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
3363 rl78-*-*)
3364 # libssp uses a misaligned load to trigger a fault, but the RL78
3365 # doesn't fault for those - instead, it gives a build-time error
3366 # for explicit misaligned loads.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 visium-*-*)
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
3373esac
3374
3375# Disable libstdc++-v3 for some systems.
3376# Allow user to override this if they pass --enable-libstdc++-v3
3377if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3378 case "${target}" in
3379 *-*-vxworks*)
3380 # VxWorks uses the Dinkumware C++ library.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 arm*-wince-pe*)
3384 # the C++ libraries don't build on top of CE's C libraries
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
3390 ft32-*-*)
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 ;;
3393 esac
3394fi
3395
3396# Disable Fortran for some systems.
3397case "${target}" in
3398 mmix-*-*)
3399 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3400 unsupported_languages="$unsupported_languages fortran"
3401 ;;
3402esac
3403
3404# Disable libffi for some systems.
3405case "${target}" in
3406 powerpc-*-darwin*)
3407 ;;
3408 i[3456789]86-*-darwin*)
3409 ;;
3410 x86_64-*-darwin[912]*)
3411 ;;
3412 *-*-darwin*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3414 ;;
3415 *-*-netware*)
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 *-*-phoenix*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 *-*-rtems*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 *-*-tpf*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 *-*-uclinux*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 *-*-vxworks*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 aarch64*-*-freebsd*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 alpha*-*-*vms*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 arm*-*-freebsd*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 arm-wince-pe)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 cris-*-* | crisv32-*-*)
3446 case "${target}" in
3447 *-*-linux*)
3448 ;;
3449 *) # See PR46792 regarding target-libffi.
3450 noconfigdirs="$noconfigdirs target-libffi";;
3451 esac
3452 ;;
3453 hppa*64*-*-hpux*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3455 ;;
3456 hppa*-hp-hpux11*)
3457 ;;
3458 hppa*-*-hpux*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 ia64*-*-*vms*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 i[3456789]86-w64-mingw*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 i[3456789]86-*-mingw*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 x86_64-*-mingw*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 mmix-*-*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 powerpc-*-aix*)
3477 ;;
3478 rs6000-*-aix*)
3479 ;;
3480 ft32-*-*)
3481 noconfigdirs="$noconfigdirs target-libffi"
3482 ;;
3483 *-*-lynxos*)
3484 noconfigdirs="$noconfigdirs target-libffi"
3485 ;;
3486esac
3487
3488# Disable the go frontend on systems where it is known to not work. Please keep
3489# this in sync with contrib/config-list.mk.
3490case "${target}" in
3491*-*-darwin* | *-*-cygwin* | *-*-mingw*)
3492 unsupported_languages="$unsupported_languages go"
3493 ;;
3494esac
3495
3496# Only allow gdbserver on some systems.
3497if test -d ${srcdir}/gdbserver; then
3498 if test x$enable_gdbserver = x; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3500$as_echo_n "checking for gdbserver support... " >&6; }
3501 if (srcdir=${srcdir}/gdbserver; \
3502 . ${srcdir}/configure.srv; \
3503 test -n "$UNSUPPORTED")
3504 then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507 noconfigdirs="$noconfigdirs gdbserver"
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510$as_echo "yes" >&6; }
3511 fi
3512 fi
3513fi
3514
3515# Disable libgo for some systems where it is known to not work.
3516# For testing, you can easily override this with --enable-libgo.
3517if test x$enable_libgo = x; then
3518 case "${target}" in
3519 *-*-darwin*)
3520 # PR 46986
3521 noconfigdirs="$noconfigdirs target-libgo"
3522 ;;
3523 *-*-cygwin* | *-*-mingw*)
3524 noconfigdirs="$noconfigdirs target-libgo"
3525 ;;
3526 esac
3527fi
3528
3529# Default libgloss CPU subdirectory.
3530libgloss_dir="$target_cpu"
3531
3532case "${target}" in
3533 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3534 libgloss_dir=wince
3535 ;;
3536 aarch64*-*-* )
3537 libgloss_dir=aarch64
3538 ;;
3539 arm*-*-*)
3540 libgloss_dir=arm
3541 ;;
3542 cris-*-* | crisv32-*-*)
3543 libgloss_dir=cris
3544 ;;
3545 hppa*-*-*)
3546 libgloss_dir=pa
3547 ;;
3548 i[3456789]86-*-*)
3549 libgloss_dir=i386
3550 ;;
3551 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3552 libgloss_dir=m68hc11
3553 ;;
3554 m68*-*-* | fido-*-*)
3555 libgloss_dir=m68k
3556 ;;
3557 mips*-*-*)
3558 libgloss_dir=mips
3559 ;;
3560 powerpc*-*-*)
3561 libgloss_dir=rs6000
3562 ;;
3563 sparc*-*-*)
3564 libgloss_dir=sparc
3565 ;;
3566esac
3567
3568# Disable newlib and libgloss for various target OSes.
3569case "${target}" in
3570 alpha*-dec-osf*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 i[3456789]86-*-linux*)
3574 # This section makes it possible to build newlib natively on linux.
3575 # If we are using a cross compiler then don't configure newlib.
3576 if test x${is_cross_compiler} != xno ; then
3577 noconfigdirs="$noconfigdirs target-newlib"
3578 fi
3579 noconfigdirs="$noconfigdirs target-libgloss"
3580 # If we are not using a cross compiler, do configure newlib.
3581 # Note however, that newlib will only be configured in this situation
3582 # if the --with-newlib option has been given, because otherwise
3583 # 'target-newlib' will appear in skipdirs.
3584 ;;
3585 i[3456789]86-*-rdos*)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 sparc-*-sunos4*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-aix*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-beos*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-chorusos)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-dragonfly*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-freebsd*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-lynxos*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-mingw*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-netbsd*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-netware*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-tpf*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-uclinux*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-vxworks*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633esac
3634
3635case "${target}" in
3636 *-*-chorusos)
3637 ;;
3638 aarch64-*-darwin*)
3639 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3640 noconfigdirs="$noconfigdirs sim target-rda"
3641 ;;
3642 arm-*-darwin*)
3643 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3644 noconfigdirs="$noconfigdirs sim target-rda"
3645 ;;
3646 powerpc-*-darwin*)
3647 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3648 noconfigdirs="$noconfigdirs sim target-rda"
3649 ;;
3650 i[3456789]86-*-darwin*)
3651 noconfigdirs="$noconfigdirs ld gprof"
3652 noconfigdirs="$noconfigdirs sim target-rda"
3653 ;;
3654 x86_64-*-darwin[912]*)
3655 noconfigdirs="$noconfigdirs ld gas gprof"
3656 noconfigdirs="$noconfigdirs sim target-rda"
3657 ;;
3658 *-*-darwin*)
3659 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3660 noconfigdirs="$noconfigdirs sim target-rda"
3661 ;;
3662 *-*-dragonfly*)
3663 ;;
3664 *-*-freebsd*)
3665 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3666 && test -f /usr/local/include/gmp.h; then
3667 with_gmp=/usr/local
3668 fi
3669 ;;
3670 *-*-kaos*)
3671 # Remove unsupported stuff on all kaOS configurations.
3672 noconfigdirs="$noconfigdirs target-libgloss"
3673 ;;
3674 *-*-netbsd*)
3675 ;;
3676 *-*-netware*)
3677 ;;
3678 *-*-phoenix*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 ;;
3681 *-*-rtems*)
3682 noconfigdirs="$noconfigdirs target-libgloss"
3683 ;;
3684 # The tpf target doesn't support gdb yet.
3685 *-*-tpf*)
3686 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3687 ;;
3688 *-*-uclinux*)
3689 noconfigdirs="$noconfigdirs target-rda"
3690 ;;
3691 *-*-vxworks*)
3692 ;;
3693 alpha*-dec-osf*)
3694 # ld works, but does not support shared libraries.
3695 # gas doesn't generate exception information.
3696 noconfigdirs="$noconfigdirs gas ld"
3697 ;;
3698 alpha*-*-*vms*)
3699 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3700 ;;
3701 alpha*-*-*)
3702 # newlib is not 64 bit ready
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3706 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3707 ;;
3708 arc*-*-*)
3709 noconfigdirs="$noconfigdirs sim"
3710 ;;
3711 arm-*-pe*)
3712 noconfigdirs="$noconfigdirs target-libgloss"
3713 ;;
3714 arm-*-riscix*)
3715 noconfigdirs="$noconfigdirs ld target-libgloss"
3716 ;;
3717 avr-*-*)
3718 if test x${with_avrlibc} != xno; then
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 fi
3721 ;;
3722 c4x-*-* | tic4x-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3724 ;;
3725 tic54x-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss gdb"
3727 ;;
3728 d10v-*-*)
3729 noconfigdirs="$noconfigdirs target-libgloss"
3730 ;;
3731 d30v-*-*)
3732 noconfigdirs="$noconfigdirs gdb"
3733 ;;
3734 fr30-*-elf*)
3735 noconfigdirs="$noconfigdirs gdb"
3736 ;;
3737 ft32-*-*)
3738 noconfigdirs="$noconfigdirs target-rda gprof"
3739 ;;
3740 moxie-*-*)
3741 noconfigdirs="$noconfigdirs"
3742 ;;
3743 h8300*-*-*)
3744 noconfigdirs="$noconfigdirs target-libgloss"
3745 ;;
3746 h8500-*-*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3748 ;;
3749 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3750 ;;
3751 hppa*64*-*-hpux*)
3752 noconfigdirs="$noconfigdirs gdb"
3753 ;;
3754 hppa*-*-hpux11*)
3755 noconfigdirs="$noconfigdirs gdb ld"
3756 ;;
3757 hppa*64*-*-linux*)
3758 ;;
3759 hppa*-*-linux*)
3760 ;;
3761 hppa*-*-*elf* | \
3762 hppa*-*-lites* | \
3763 hppa*-*-openbsd* | \
3764 hppa*64*-*-*)
3765 ;;
3766 hppa*-*-pro*)
3767 ;;
3768 hppa*-*-*)
3769 noconfigdirs="$noconfigdirs ld"
3770 ;;
3771 i960-*-*)
3772 noconfigdirs="$noconfigdirs gdb"
3773 ;;
3774 ia64*-*-elf*)
3775 # No gdb support yet.
3776 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3777 ;;
3778 ia64*-**-hpux*)
3779 # No ld support yet.
3780 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3781 ;;
3782 ia64*-*-*vms*)
3783 # No ld support yet.
3784 noconfigdirs="$noconfigdirs libgui itcl ld"
3785 ;;
3786 i[3456789]86-w64-mingw*)
3787 ;;
3788 i[3456789]86-*-mingw*)
3789 target_configdirs="$target_configdirs target-winsup"
3790 ;;
3791 *-*-cygwin*)
3792 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3793 noconfigdirs="$noconfigdirs target-libgloss"
3794 # always build newlib if winsup directory is present.
3795 if test -d "$srcdir/winsup/cygwin"; then
3796 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3797 elif test -d "$srcdir/newlib"; then
3798 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3799 fi
3800 ;;
3801 i[3456789]86-*-pe)
3802 noconfigdirs="$noconfigdirs target-libgloss"
3803 ;;
3804 i[3456789]86-*-sco3.2v5*)
3805 # The linker does not yet know about weak symbols in COFF,
3806 # and is not configured to handle mixed ELF and COFF.
3807 noconfigdirs="$noconfigdirs ld target-libgloss"
3808 ;;
3809 i[3456789]86-*-sco*)
3810 noconfigdirs="$noconfigdirs gprof target-libgloss"
3811 ;;
3812 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3813 noconfigdirs="$noconfigdirs target-libgloss"
3814 ;;
3815 i[3456789]86-*-sysv4*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
3818 i[3456789]86-*-beos*)
3819 noconfigdirs="$noconfigdirs gdb"
3820 ;;
3821 i[3456789]86-*-rdos*)
3822 noconfigdirs="$noconfigdirs gdb"
3823 ;;
3824 mmix-*-*)
3825 noconfigdirs="$noconfigdirs gdb"
3826 ;;
3827 mt-*-*)
3828 noconfigdirs="$noconfigdirs sim"
3829 ;;
3830 nfp-*-*)
3831 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3832 noconfigdirs="$noconfigdirs $target_libraries"
3833 ;;
3834 pdp11-*-*)
3835 noconfigdirs="$noconfigdirs gdb gprof"
3836 ;;
3837 powerpc-*-aix*)
3838 # copied from rs6000-*-* entry
3839 noconfigdirs="$noconfigdirs gprof"
3840 ;;
3841 powerpc*-*-winnt* | powerpc*-*-pe*)
3842 target_configdirs="$target_configdirs target-winsup"
3843 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3844 # always build newlib.
3845 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3846 ;;
3847 # This is temporary until we can link against shared libraries
3848 powerpcle-*-solaris*)
3849 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3850 ;;
3851 powerpc-*-beos*)
3852 noconfigdirs="$noconfigdirs gdb"
3853 ;;
3854 rs6000-*-lynxos*)
3855 noconfigdirs="$noconfigdirs gprof"
3856 ;;
3857 rs6000-*-aix*)
3858 noconfigdirs="$noconfigdirs gprof"
3859 ;;
3860 rs6000-*-*)
3861 noconfigdirs="$noconfigdirs gprof"
3862 ;;
3863 m68k-apollo-*)
3864 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3865 ;;
3866 microblaze*)
3867 noconfigdirs="$noconfigdirs gprof"
3868 ;;
3869 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3870 if test x$with_newlib = xyes; then
3871 noconfigdirs="$noconfigdirs gprof"
3872 fi
3873 ;;
3874 mips*-*-irix5*)
3875 noconfigdirs="$noconfigdirs gprof target-libgloss"
3876 ;;
3877 mips*-*-irix6*)
3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
3879 ;;
3880 mips*-*-bsd*)
3881 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3882 ;;
3883 mips*-*-linux*)
3884 ;;
3885 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3886 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3887 noconfigdirs="$noconfigdirs ld gas gprof"
3888 ;;
3889 mips*-*-*)
3890 noconfigdirs="$noconfigdirs gprof"
3891 ;;
3892 nvptx*-*-*)
3893 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3894 ;;
3895 sh-*-*)
3896 case "${target}" in
3897 sh*-*-elf)
3898 ;;
3899 *)
3900 noconfigdirs="$noconfigdirs target-libgloss" ;;
3901 esac
3902 ;;
3903 sparc-*-sunos4*)
3904 if test x${is_cross_compiler} = xno ; then
3905 use_gnu_ld=no
3906 fi
3907 ;;
3908 tic6x-*-*)
3909 noconfigdirs="$noconfigdirs sim"
3910 ;;
3911 tilepro*-*-* | tilegx*-*-*)
3912 noconfigdirs="$noconfigdirs sim"
3913 ;;
3914 v810-*-*)
3915 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3916 ;;
3917 vax-*-*)
3918 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3919 ;;
3920 wasm32-*-*)
3921 noconfigdirs="$noconfigdirs ld"
3922 ;;
3923esac
3924
3925# If we aren't building newlib, then don't build libgloss, since libgloss
3926# depends upon some newlib header files.
3927case "${noconfigdirs}" in
3928 *target-libgloss*) ;;
3929 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3930esac
3931
3932# Work in distributions that contain no compiler tools, like Autoconf.
3933host_makefile_frag=/dev/null
3934if test -d ${srcdir}/config ; then
3935case "${host}" in
3936 i[3456789]86-*-msdosdjgpp*)
3937 host_makefile_frag="config/mh-djgpp"
3938 ;;
3939 *-cygwin*)
3940
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3942$as_echo_n "checking to see if cat works as expected... " >&6; }
3943echo a >cygwin-cat-check
3944if test `cat cygwin-cat-check` = a ; then
3945 rm cygwin-cat-check
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947$as_echo "yes" >&6; }
3948else
3949 rm cygwin-cat-check
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
3952 as_fn_error $? "The cat command does not ignore carriage return characters.
3953 Please either mount the build directory in binary mode or run the following
3954 commands before running any configure script:
3955set -o igncr
3956export SHELLOPTS
3957 " "$LINENO" 5
3958fi
3959
3960 host_makefile_frag="config/mh-cygwin"
3961 ;;
3962 *-mingw*)
3963 host_makefile_frag="config/mh-mingw"
3964 ;;
3965 alpha*-linux*)
3966 host_makefile_frag="config/mh-alpha-linux"
3967 ;;
3968 hppa*-hp-hpux10*)
3969 host_makefile_frag="config/mh-pa-hpux10"
3970 ;;
3971 hppa*-hp-hpux*)
3972 host_makefile_frag="config/mh-pa"
3973 ;;
3974 hppa*-*)
3975 host_makefile_frag="config/mh-pa"
3976 ;;
3977 *-*-darwin*)
3978 host_makefile_frag="config/mh-darwin"
3979 ;;
3980 powerpc-*-aix*)
3981 host_makefile_frag="config/mh-ppc-aix"
3982 ;;
3983 rs6000-*-aix*)
3984 host_makefile_frag="config/mh-ppc-aix"
3985 ;;
3986esac
3987fi
3988
3989if test "${build}" != "${host}" ; then
3990 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3991 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3992 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3993 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3994 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3995 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3996 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3997 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3998 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3999 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4000 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4001 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4002else
4003 AR_FOR_BUILD="\$(AR)"
4004 AS_FOR_BUILD="\$(AS)"
4005 CC_FOR_BUILD="\$(CC)"
4006 CXX_FOR_BUILD="\$(CXX)"
4007 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4008 GOC_FOR_BUILD="\$(GOC)"
4009 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4010 LD_FOR_BUILD="\$(LD)"
4011 NM_FOR_BUILD="\$(NM)"
4012 RANLIB_FOR_BUILD="\$(RANLIB)"
4013 WINDRES_FOR_BUILD="\$(WINDRES)"
4014 WINDMC_FOR_BUILD="\$(WINDMC)"
4015fi
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4024set dummy ${ac_tool_prefix}gcc; ac_word=$2
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026$as_echo_n "checking for $ac_word... " >&6; }
4027if ${ac_cv_prog_CC+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029else
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4032else
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044done
4045 done
4046IFS=$as_save_IFS
4047
4048fi
4049fi
4050CC=$ac_cv_prog_CC
4051if test -n "$CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053$as_echo "$CC" >&6; }
4054else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056$as_echo "no" >&6; }
4057fi
4058
4059
4060fi
4061if test -z "$ac_cv_prog_CC"; then
4062 ac_ct_CC=$CC
4063 # Extract the first word of "gcc", so it can be a program name with args.
4064set dummy gcc; ac_word=$2
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066$as_echo_n "checking for $ac_word... " >&6; }
4067if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069else
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_ac_ct_CC="gcc"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084done
4085 done
4086IFS=$as_save_IFS
4087
4088fi
4089fi
4090ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091if test -n "$ac_ct_CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093$as_echo "$ac_ct_CC" >&6; }
4094else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
4097fi
4098
4099 if test "x$ac_ct_CC" = x; then
4100 CC=""
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103yes:)
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106ac_tool_warned=yes ;;
4107esac
4108 CC=$ac_ct_CC
4109 fi
4110else
4111 CC="$ac_cv_prog_CC"
4112fi
4113
4114if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4117set dummy ${ac_tool_prefix}cc; ac_word=$2
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if ${ac_cv_prog_CC+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_CC="${ac_tool_prefix}cc"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137done
4138 done
4139IFS=$as_save_IFS
4140
4141fi
4142fi
4143CC=$ac_cv_prog_CC
4144if test -n "$CC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146$as_echo "$CC" >&6; }
4147else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
4150fi
4151
4152
4153 fi
4154fi
4155if test -z "$CC"; then
4156 # Extract the first word of "cc", so it can be a program name with args.
4157set dummy cc; ac_word=$2
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159$as_echo_n "checking for $ac_word... " >&6; }
4160if ${ac_cv_prog_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165else
4166 ac_prog_rejected=no
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4175 ac_prog_rejected=yes
4176 continue
4177 fi
4178 ac_cv_prog_CC="cc"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183 done
4184IFS=$as_save_IFS
4185
4186if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4189 shift
4190 if test $# != 0; then
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4194 shift
4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4196 fi
4197fi
4198fi
4199fi
4200CC=$ac_cv_prog_CC
4201if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203$as_echo "$CC" >&6; }
4204else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208
4209
4210fi
4211if test -z "$CC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 for ac_prog in cl.exe
4214 do
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218$as_echo_n "checking for $ac_word... " >&6; }
4219if ${ac_cv_prog_CC+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224else
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236done
4237 done
4238IFS=$as_save_IFS
4239
4240fi
4241fi
4242CC=$ac_cv_prog_CC
4243if test -n "$CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245$as_echo "$CC" >&6; }
4246else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248$as_echo "no" >&6; }
4249fi
4250
4251
4252 test -n "$CC" && break
4253 done
4254fi
4255if test -z "$CC"; then
4256 ac_ct_CC=$CC
4257 for ac_prog in cl.exe
4258do
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260set dummy $ac_prog; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
4263if ${ac_cv_prog_ac_ct_CC+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$ac_ct_CC"; then
4267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_ac_ct_CC="$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280done
4281 done
4282IFS=$as_save_IFS
4283
4284fi
4285fi
4286ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287if test -n "$ac_ct_CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4289$as_echo "$ac_ct_CC" >&6; }
4290else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293fi
4294
4295
4296 test -n "$ac_ct_CC" && break
4297done
4298
4299 if test "x$ac_ct_CC" = x; then
4300 CC=""
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303yes:)
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306ac_tool_warned=yes ;;
4307esac
4308 CC=$ac_ct_CC
4309 fi
4310fi
4311
4312fi
4313
4314
4315test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317as_fn_error $? "no acceptable C compiler found in \$PATH
4318See \`config.log' for more details" "$LINENO" 5; }
4319
4320# Provide some information about the compiler.
4321$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4322set X $ac_compile
4323ac_compiler=$2
4324for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331$as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4333 ac_status=$?
4334 if test -s conftest.err; then
4335 sed '10a\
4336... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
4339 fi
4340 rm -f conftest.er1 conftest.err
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343done
4344
4345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h. */
4347
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356ac_clean_files_save=$ac_clean_files
4357ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4358# Try to create an executable without -o first, disregard a.out.
4359# It will help us diagnose broken compilers, and finding out an intuition
4360# of exeext.
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4362$as_echo_n "checking whether the C compiler works... " >&6; }
4363ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4364
4365# The possible output files:
4366ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4367
4368ac_rmfiles=
4369for ac_file in $ac_files
4370do
4371 case $ac_file in
4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4374 esac
4375done
4376rm -f $ac_rmfiles
4377
4378if { { ac_try="$ac_link_default"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384$as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_link_default") 2>&5
4386 ac_status=$?
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }; then :
4389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4390# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4391# in a Makefile. We should not override ac_cv_exeext if it was cached,
4392# so that the user can short-circuit this test for compilers unknown to
4393# Autoconf.
4394for ac_file in $ac_files ''
4395do
4396 test -f "$ac_file" || continue
4397 case $ac_file in
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4399 ;;
4400 [ab].out )
4401 # We found the default executable, but exeext='' is most
4402 # certainly right.
4403 break;;
4404 *.* )
4405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4406 then :; else
4407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 fi
4409 # We set ac_cv_exeext here because the later test for it is not
4410 # safe: cross compilers may not add the suffix if given an `-o'
4411 # argument, so we may need to know it at that point already.
4412 # Even if this section looks crufty: it has the advantage of
4413 # actually working.
4414 break;;
4415 * )
4416 break;;
4417 esac
4418done
4419test "$ac_cv_exeext" = no && ac_cv_exeext=
4420
4421else
4422 ac_file=''
4423fi
4424if test -z "$ac_file"; then :
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427$as_echo "$as_me: failed program was:" >&5
4428sed 's/^/| /' conftest.$ac_ext >&5
4429
4430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432as_fn_error 77 "C compiler cannot create executables
4433See \`config.log' for more details" "$LINENO" 5; }
4434else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436$as_echo "yes" >&6; }
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4439$as_echo_n "checking for C compiler default output file name... " >&6; }
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4441$as_echo "$ac_file" >&6; }
4442ac_exeext=$ac_cv_exeext
4443
4444rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4445ac_clean_files=$ac_clean_files_save
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4447$as_echo_n "checking for suffix of executables... " >&6; }
4448if { { ac_try="$ac_link"
4449case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
4453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454$as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_link") 2>&5
4456 ac_status=$?
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
4459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4460# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4461# work properly (i.e., refer to `conftest.exe'), while it won't with
4462# `rm'.
4463for ac_file in conftest.exe conftest conftest.*; do
4464 test -f "$ac_file" || continue
4465 case $ac_file in
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4468 break;;
4469 * ) break;;
4470 esac
4471done
4472else
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4476See \`config.log' for more details" "$LINENO" 5; }
4477fi
4478rm -f conftest conftest$ac_cv_exeext
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4480$as_echo "$ac_cv_exeext" >&6; }
4481
4482rm -f conftest.$ac_ext
4483EXEEXT=$ac_cv_exeext
4484ac_exeext=$EXEEXT
4485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h. */
4487#include <stdio.h>
4488int
4489main ()
4490{
4491FILE *f = fopen ("conftest.out", "w");
4492 return ferror (f) || fclose (f) != 0;
4493
4494 ;
4495 return 0;
4496}
4497_ACEOF
4498ac_clean_files="$ac_clean_files conftest.out"
4499# Check that the compiler produces executables we can run. If not, either
4500# the compiler is broken, or we cross compile.
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4502$as_echo_n "checking whether we are cross compiling... " >&6; }
4503if test "$cross_compiling" != yes; then
4504 { { ac_try="$ac_link"
4505case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508esac
4509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510$as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_link") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 if { ac_try='./conftest$ac_cv_exeext'
4516 { { case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
4520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521$as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_try") 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }; }; then
4526 cross_compiling=no
4527 else
4528 if test "$cross_compiling" = maybe; then
4529 cross_compiling=yes
4530 else
4531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533as_fn_error $? "cannot run C compiled programs.
4534If you meant to cross compile, use \`--host'.
4535See \`config.log' for more details" "$LINENO" 5; }
4536 fi
4537 fi
4538fi
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4540$as_echo "$cross_compiling" >&6; }
4541
4542rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4543ac_clean_files=$ac_clean_files_save
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4545$as_echo_n "checking for suffix of object files... " >&6; }
4546if ${ac_cv_objext+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560rm -f conftest.o conftest.obj
4561if { { ac_try="$ac_compile"
4562case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
4566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567$as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compile") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }; then :
4572 for ac_file in conftest.o conftest.obj conftest.*; do
4573 test -f "$ac_file" || continue;
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4577 break;;
4578 esac
4579done
4580else
4581 $as_echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586as_fn_error $? "cannot compute suffix of object files: cannot compile
4587See \`config.log' for more details" "$LINENO" 5; }
4588fi
4589rm -f conftest.$ac_cv_objext conftest.$ac_ext
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4592$as_echo "$ac_cv_objext" >&6; }
4593OBJEXT=$ac_cv_objext
4594ac_objext=$OBJEXT
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4597if ${ac_cv_c_compiler_gnu+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h. */
4602
4603int
4604main ()
4605{
4606#ifndef __GNUC__
4607 choke me
4608#endif
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_compiler_gnu=yes
4616else
4617 ac_compiler_gnu=no
4618fi
4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4624$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625if test $ac_compiler_gnu = yes; then
4626 GCC=yes
4627else
4628 GCC=
4629fi
4630ac_test_CFLAGS=${CFLAGS+set}
4631ac_save_CFLAGS=$CFLAGS
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633$as_echo_n "checking whether $CC accepts -g... " >&6; }
4634if ${ac_cv_prog_cc_g+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636else
4637 ac_save_c_werror_flag=$ac_c_werror_flag
4638 ac_c_werror_flag=yes
4639 ac_cv_prog_cc_g=no
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h. */
4643
4644int
4645main ()
4646{
4647
4648 ;
4649 return 0;
4650}
4651_ACEOF
4652if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654else
4655 CFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h. */
4658
4659int
4660main ()
4661{
4662
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"; then :
4668
4669else
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h. */
4674
4675int
4676main ()
4677{
4678
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_prog_cc_g=yes
4685fi
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687fi
4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689fi
4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4694$as_echo "$ac_cv_prog_cc_g" >&6; }
4695if test "$ac_test_CFLAGS" = set; then
4696 CFLAGS=$ac_save_CFLAGS
4697elif test $ac_cv_prog_cc_g = yes; then
4698 if test "$GCC" = yes; then
4699 CFLAGS="-g -O2"
4700 else
4701 CFLAGS="-g"
4702 fi
4703else
4704 if test "$GCC" = yes; then
4705 CFLAGS="-O2"
4706 else
4707 CFLAGS=
4708 fi
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4712if ${ac_cv_prog_cc_c89+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714else
4715 ac_cv_prog_cc_c89=no
4716ac_save_CC=$CC
4717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h. */
4719#include <stdarg.h>
4720#include <stdio.h>
4721struct stat;
4722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4723struct buf { int x; };
4724FILE * (*rcsopen) (struct buf *, struct stat *, int);
4725static char *e (p, i)
4726 char **p;
4727 int i;
4728{
4729 return p[i];
4730}
4731static char *f (char * (*g) (char **, int), char **p, ...)
4732{
4733 char *s;
4734 va_list v;
4735 va_start (v,p);
4736 s = g (p, va_arg (v,int));
4737 va_end (v);
4738 return s;
4739}
4740
4741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4742 function prototypes and stuff, but not '\xHH' hex character constants.
4743 These don't provoke an error unfortunately, instead are silently treated
4744 as 'x'. The following induces an error, until -std is added to get
4745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4746 array size at least. It's necessary to write '\x00'==0 to get something
4747 that's true only with -std. */
4748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4749
4750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4751 inside strings and character constants. */
4752#define FOO(x) 'x'
4753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4754
4755int test (int i, double x);
4756struct s1 {int (*f) (int a);};
4757struct s2 {int (*f) (double a);};
4758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4759int argc;
4760char **argv;
4761int
4762main ()
4763{
4764return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771do
4772 CC="$ac_save_CC $ac_arg"
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_prog_cc_c89=$ac_arg
4775fi
4776rm -f core conftest.err conftest.$ac_objext
4777 test "x$ac_cv_prog_cc_c89" != "xno" && break
4778done
4779rm -f conftest.$ac_ext
4780CC=$ac_save_CC
4781
4782fi
4783# AC_CACHE_VAL
4784case "x$ac_cv_prog_cc_c89" in
4785 x)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787$as_echo "none needed" >&6; } ;;
4788 xno)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790$as_echo "unsupported" >&6; } ;;
4791 *)
4792 CC="$CC $ac_cv_prog_cc_c89"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4795esac
4796if test "x$ac_cv_prog_cc_c89" != xno; then :
4797
4798fi
4799
4800ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4807$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4808if ${ac_cv_prog_cc_c99+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 ac_cv_prog_cc_c99=no
4812ac_save_CC=$CC
4813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h. */
4815#include <stdarg.h>
4816#include <stdbool.h>
4817#include <stdlib.h>
4818#include <wchar.h>
4819#include <stdio.h>
4820
4821// Check varargs macros. These examples are taken from C99 6.10.3.5.
4822#define debug(...) fprintf (stderr, __VA_ARGS__)
4823#define showlist(...) puts (#__VA_ARGS__)
4824#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4825static void
4826test_varargs_macros (void)
4827{
4828 int x = 1234;
4829 int y = 5678;
4830 debug ("Flag");
4831 debug ("X = %d\n", x);
4832 showlist (The first, second, and third items.);
4833 report (x>y, "x is %d but y is %d", x, y);
4834}
4835
4836// Check long long types.
4837#define BIG64 18446744073709551615ull
4838#define BIG32 4294967295ul
4839#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4840#if !BIG_OK
4841 your preprocessor is broken;
4842#endif
4843#if BIG_OK
4844#else
4845 your preprocessor is broken;
4846#endif
4847static long long int bignum = -9223372036854775807LL;
4848static unsigned long long int ubignum = BIG64;
4849
4850struct incomplete_array
4851{
4852 int datasize;
4853 double data[];
4854};
4855
4856struct named_init {
4857 int number;
4858 const wchar_t *name;
4859 double average;
4860};
4861
4862typedef const char *ccp;
4863
4864static inline int
4865test_restrict (ccp restrict text)
4866{
4867 // See if C++-style comments work.
4868 // Iterate through items via the restricted pointer.
4869 // Also check for declarations in for loops.
4870 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4871 continue;
4872 return 0;
4873}
4874
4875// Check varargs and va_copy.
4876static void
4877test_varargs (const char *format, ...)
4878{
4879 va_list args;
4880 va_start (args, format);
4881 va_list args_copy;
4882 va_copy (args_copy, args);
4883
4884 const char *str;
4885 int number;
4886 float fnumber;
4887
4888 while (*format)
4889 {
4890 switch (*format++)
4891 {
4892 case 's': // string
4893 str = va_arg (args_copy, const char *);
4894 break;
4895 case 'd': // int
4896 number = va_arg (args_copy, int);
4897 break;
4898 case 'f': // float
4899 fnumber = va_arg (args_copy, double);
4900 break;
4901 default:
4902 break;
4903 }
4904 }
4905 va_end (args_copy);
4906 va_end (args);
4907}
4908
4909int
4910main ()
4911{
4912
4913 // Check bool.
4914 _Bool success = false;
4915
4916 // Check restrict.
4917 if (test_restrict ("String literal") == 0)
4918 success = true;
4919 char *restrict newvar = "Another string";
4920
4921 // Check varargs.
4922 test_varargs ("s, d' f .", "string", 65, 34.234);
4923 test_varargs_macros ();
4924
4925 // Check flexible array members.
4926 struct incomplete_array *ia =
4927 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4928 ia->datasize = 10;
4929 for (int i = 0; i < ia->datasize; ++i)
4930 ia->data[i] = i * 1.234;
4931
4932 // Check named initializers.
4933 struct named_init ni = {
4934 .number = 34,
4935 .name = L"Test wide string",
4936 .average = 543.34343,
4937 };
4938
4939 ni.number = 58;
4940
4941 int dynamic_array[ni.number];
4942 dynamic_array[ni.number - 1] = 543;
4943
4944 // work around unused variable warnings
4945 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4946 || dynamic_array[ni.number - 1] != 543);
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4953do
4954 CC="$ac_save_CC $ac_arg"
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956 ac_cv_prog_cc_c99=$ac_arg
4957fi
4958rm -f core conftest.err conftest.$ac_objext
4959 test "x$ac_cv_prog_cc_c99" != "xno" && break
4960done
4961rm -f conftest.$ac_ext
4962CC=$ac_save_CC
4963
4964fi
4965# AC_CACHE_VAL
4966case "x$ac_cv_prog_cc_c99" in
4967 x)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4969$as_echo "none needed" >&6; } ;;
4970 xno)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4972$as_echo "unsupported" >&6; } ;;
4973 *)
4974 CC="$CC $ac_cv_prog_cc_c99"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4976$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4977esac
4978if test "x$ac_cv_prog_cc_c99" != xno; then :
4979
4980fi
4981
4982
4983ac_ext=cpp
4984ac_cpp='$CXXCPP $CPPFLAGS'
4985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988if test -z "$CXX"; then
4989 if test -n "$CCC"; then
4990 CXX=$CCC
4991 else
4992 if test -n "$ac_tool_prefix"; then
4993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4994 do
4995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
4999if ${ac_cv_prog_CXX+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001else
5002 if test -n "$CXX"; then
5003 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5015 fi
5016done
5017 done
5018IFS=$as_save_IFS
5019
5020fi
5021fi
5022CXX=$ac_cv_prog_CXX
5023if test -n "$CXX"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5025$as_echo "$CXX" >&6; }
5026else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029fi
5030
5031
5032 test -n "$CXX" && break
5033 done
5034fi
5035if test -z "$CXX"; then
5036 ac_ct_CXX=$CXX
5037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5038do
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040set dummy $ac_prog; ac_word=$2
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042$as_echo_n "checking for $ac_word... " >&6; }
5043if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045else
5046 if test -n "$ac_ct_CXX"; then
5047 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_ac_ct_CXX="$ac_prog"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060done
5061 done
5062IFS=$as_save_IFS
5063
5064fi
5065fi
5066ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5067if test -n "$ac_ct_CXX"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5069$as_echo "$ac_ct_CXX" >&6; }
5070else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
5073fi
5074
5075
5076 test -n "$ac_ct_CXX" && break
5077done
5078
5079 if test "x$ac_ct_CXX" = x; then
5080 CXX="g++"
5081 else
5082 case $cross_compiling:$ac_tool_warned in
5083yes:)
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5086ac_tool_warned=yes ;;
5087esac
5088 CXX=$ac_ct_CXX
5089 fi
5090fi
5091
5092 fi
5093fi
5094# Provide some information about the compiler.
5095$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5096set X $ac_compile
5097ac_compiler=$2
5098for ac_option in --version -v -V -qversion; do
5099 { { ac_try="$ac_compiler $ac_option >&5"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5105$as_echo "$ac_try_echo"; } >&5
5106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5107 ac_status=$?
5108 if test -s conftest.err; then
5109 sed '10a\
5110... rest of stderr output deleted ...
5111 10q' conftest.err >conftest.er1
5112 cat conftest.er1 >&5
5113 fi
5114 rm -f conftest.er1 conftest.err
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }
5117done
5118
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5120$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5121if ${ac_cv_cxx_compiler_gnu+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h. */
5126
5127int
5128main ()
5129{
5130#ifndef __GNUC__
5131 choke me
5132#endif
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138if ac_fn_cxx_try_compile "$LINENO"; then :
5139 ac_compiler_gnu=yes
5140else
5141 ac_compiler_gnu=no
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5145
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5148$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5149if test $ac_compiler_gnu = yes; then
5150 GXX=yes
5151else
5152 GXX=
5153fi
5154ac_test_CXXFLAGS=${CXXFLAGS+set}
5155ac_save_CXXFLAGS=$CXXFLAGS
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5157$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5158if ${ac_cv_prog_cxx_g+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160else
5161 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5162 ac_cxx_werror_flag=yes
5163 ac_cv_prog_cxx_g=no
5164 CXXFLAGS="-g"
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166/* end confdefs.h. */
5167
5168int
5169main ()
5170{
5171
5172 ;
5173 return 0;
5174}
5175_ACEOF
5176if ac_fn_cxx_try_compile "$LINENO"; then :
5177 ac_cv_prog_cxx_g=yes
5178else
5179 CXXFLAGS=""
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h. */
5182
5183int
5184main ()
5185{
5186
5187 ;
5188 return 0;
5189}
5190_ACEOF
5191if ac_fn_cxx_try_compile "$LINENO"; then :
5192
5193else
5194 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5195 CXXFLAGS="-g"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h. */
5198
5199int
5200main ()
5201{
5202
5203 ;
5204 return 0;
5205}
5206_ACEOF
5207if ac_fn_cxx_try_compile "$LINENO"; then :
5208 ac_cv_prog_cxx_g=yes
5209fi
5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213fi
5214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5216fi
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5218$as_echo "$ac_cv_prog_cxx_g" >&6; }
5219if test "$ac_test_CXXFLAGS" = set; then
5220 CXXFLAGS=$ac_save_CXXFLAGS
5221elif test $ac_cv_prog_cxx_g = yes; then
5222 if test "$GXX" = yes; then
5223 CXXFLAGS="-g -O2"
5224 else
5225 CXXFLAGS="-g"
5226 fi
5227else
5228 if test "$GXX" = yes; then
5229 CXXFLAGS="-O2"
5230 else
5231 CXXFLAGS=
5232 fi
5233fi
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241# We must set the default linker to the linker used by gcc for the correct
5242# operation of libtool. If LD is not defined and we are using gcc, try to
5243# set the LD default to the ld used by gcc.
5244if test -z "$LD"; then
5245 if test "$GCC" = yes; then
5246 case $build in
5247 *-*-mingw*)
5248 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5249 *)
5250 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5251 esac
5252 case $gcc_prog_ld in
5253 # Accept absolute paths.
5254 [\\/]* | [A-Za-z]:[\\/]*)
5255 LD="$gcc_prog_ld" ;;
5256 esac
5257 fi
5258fi
5259
5260# Check whether -static-libstdc++ -static-libgcc is supported.
5261have_static_libs=no
5262if test "$GCC" = yes; then
5263 saved_LDFLAGS="$LDFLAGS"
5264
5265 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5267$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5268 ac_ext=cpp
5269ac_cpp='$CXXCPP $CPPFLAGS'
5270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5273
5274
5275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h. */
5277
5278#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5279#error -static-libstdc++ not implemented
5280#endif
5281int main() {}
5282_ACEOF
5283if ac_fn_cxx_try_link "$LINENO"; then :
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285$as_echo "yes" >&6; }; have_static_libs=yes
5286else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289fi
5290rm -f core conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 ac_ext=c
5293ac_cpp='$CPP $CPPFLAGS'
5294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297
5298
5299 LDFLAGS="$saved_LDFLAGS"
5300fi
5301
5302
5303
5304
5305if test -n "$ac_tool_prefix"; then
5306 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5307set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309$as_echo_n "checking for $ac_word... " >&6; }
5310if ${ac_cv_prog_GNATBIND+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312else
5313 if test -n "$GNATBIND"; then
5314 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5315else
5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327done
5328 done
5329IFS=$as_save_IFS
5330
5331fi
5332fi
5333GNATBIND=$ac_cv_prog_GNATBIND
5334if test -n "$GNATBIND"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5336$as_echo "$GNATBIND" >&6; }
5337else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
5340fi
5341
5342
5343fi
5344if test -z "$ac_cv_prog_GNATBIND"; then
5345 ac_ct_GNATBIND=$GNATBIND
5346 # Extract the first word of "gnatbind", so it can be a program name with args.
5347set dummy gnatbind; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352else
5353 if test -n "$ac_ct_GNATBIND"; then
5354 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367done
5368 done
5369IFS=$as_save_IFS
5370
5371fi
5372fi
5373ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5374if test -n "$ac_ct_GNATBIND"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5376$as_echo "$ac_ct_GNATBIND" >&6; }
5377else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
5380fi
5381
5382 if test "x$ac_ct_GNATBIND" = x; then
5383 GNATBIND="no"
5384 else
5385 case $cross_compiling:$ac_tool_warned in
5386yes:)
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5389ac_tool_warned=yes ;;
5390esac
5391 GNATBIND=$ac_ct_GNATBIND
5392 fi
5393else
5394 GNATBIND="$ac_cv_prog_GNATBIND"
5395fi
5396
5397if test -n "$ac_tool_prefix"; then
5398 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5399set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401$as_echo_n "checking for $ac_word... " >&6; }
5402if ${ac_cv_prog_GNATMAKE+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404else
5405 if test -n "$GNATMAKE"; then
5406 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419done
5420 done
5421IFS=$as_save_IFS
5422
5423fi
5424fi
5425GNATMAKE=$ac_cv_prog_GNATMAKE
5426if test -n "$GNATMAKE"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5428$as_echo "$GNATMAKE" >&6; }
5429else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432fi
5433
5434
5435fi
5436if test -z "$ac_cv_prog_GNATMAKE"; then
5437 ac_ct_GNATMAKE=$GNATMAKE
5438 # Extract the first word of "gnatmake", so it can be a program name with args.
5439set dummy gnatmake; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444else
5445 if test -n "$ac_ct_GNATMAKE"; then
5446 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459done
5460 done
5461IFS=$as_save_IFS
5462
5463fi
5464fi
5465ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5466if test -n "$ac_ct_GNATMAKE"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5468$as_echo "$ac_ct_GNATMAKE" >&6; }
5469else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471$as_echo "no" >&6; }
5472fi
5473
5474 if test "x$ac_ct_GNATMAKE" = x; then
5475 GNATMAKE="no"
5476 else
5477 case $cross_compiling:$ac_tool_warned in
5478yes:)
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481ac_tool_warned=yes ;;
5482esac
5483 GNATMAKE=$ac_ct_GNATMAKE
5484 fi
5485else
5486 GNATMAKE="$ac_cv_prog_GNATMAKE"
5487fi
5488
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5490$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5491if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493else
5494 cat >conftest.adb <<EOF
5495procedure conftest is begin null; end conftest;
5496EOF
5497acx_cv_cc_gcc_supports_ada=no
5498# There is a bug in old released versions of GCC which causes the
5499# driver to exit successfully when the appropriate language module
5500# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5501# Therefore we must check for the error message as well as an
5502# unsuccessful exit.
5503# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5504# given a .adb file, but produce no object file. So we must check
5505# if an object file was really produced to guard against this.
5506errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5507if test x"$errors" = x && test -f conftest.$ac_objext; then
5508 acx_cv_cc_gcc_supports_ada=yes
5509fi
5510rm -f conftest.*
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5513$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5514
5515if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5516 have_gnat=yes
5517else
5518 have_gnat=no
5519fi
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5522$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5523if ${gcc_cv_prog_cmp_skip+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525else
5526 echo abfoo >t1
5527 echo cdfoo >t2
5528 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5529 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5530 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5531 :
5532 else
5533 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5534 fi
5535 fi
5536 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5537 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5538 :
5539 else
5540 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5541 fi
5542 fi
5543 rm t1 t2
5544
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5547$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5548do_compare="$gcc_cv_prog_cmp_skip"
5549
5550
5551
5552# Check whether --enable-bootstrap was given.
5553if test "${enable_bootstrap+set}" = set; then :
5554 enableval=$enable_bootstrap;
5555else
5556 enable_bootstrap=default
5557fi
5558
5559
5560# Issue errors and warnings for invalid/strange bootstrap combinations.
5561if test -r $srcdir/gcc/configure; then
5562 have_compiler=yes
5563else
5564 have_compiler=no
5565fi
5566
5567case "$have_compiler:$host:$target:$enable_bootstrap" in
5568 *:*:*:no) ;;
5569
5570 # Default behavior. Enable bootstrap if we have a compiler
5571 # and we are in a native configuration.
5572 yes:$build:$build:default)
5573 enable_bootstrap=yes ;;
5574
5575 *:*:*:default)
5576 enable_bootstrap=no ;;
5577
5578 # We have a compiler and we are in a native configuration, bootstrap is ok
5579 yes:$build:$build:yes)
5580 ;;
5581
5582 # Other configurations, but we have a compiler. Assume the user knows
5583 # what he's doing.
5584 yes:*:*:yes)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5586$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5587 ;;
5588
5589 # No compiler: if they passed --enable-bootstrap explicitly, fail
5590 no:*:*:yes)
5591 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5592
5593 # Fail if wrong command line
5594 *)
5595 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5596 ;;
5597esac
5598
5599# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5600# C++98 compiler can still start the bootstrap.
5601if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5602 CXX="$CXX -std=gnu++98"
5603fi
5604
5605# Check whether --enable-pgo-build was given.
5606if test "${enable_pgo_build+set}" = set; then :
5607 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5608else
5609 enable_pgo_build=no
5610fi
5611
5612
5613# Issue errors and warnings for invalid/strange PGO build combinations.
5614case "$have_compiler:$host:$target:$enable_pgo_build" in
5615 *:*:*:no) ;;
5616
5617 # Allow the PGO build only if we aren't building a compiler and
5618 # we are in a native configuration.
5619 no:$build:$build:yes | no:$build:$build:lto) ;;
5620
5621 # Disallow the PGO bootstrap if we are building a compiler.
5622 yes:*:*:yes | yes:*:*:lto)
5623 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5624
5625 *)
5626 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5627 ;;
5628esac
5629
5630if test "$enable_pgo_build" != "no"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5632$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5633 old_CFLAGS="$CFLAGS"
5634 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5635 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5636
5637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h. */
5639int foo;
5640_ACEOF
5641if ac_fn_c_try_compile "$LINENO"; then :
5642
5643else
5644 PGO_BUILD_GEN_CFLAGS=
5645fi
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 CFLAGS="$old_CFLAGS"
5648 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650$as_echo "yes" >&6; }
5651 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
5655 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5656 fi
5657
5658 if test "$enable_pgo_build" = "lto"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5660$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5661 old_CFLAGS="$CFLAGS"
5662 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5663 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665/* end confdefs.h. */
5666int foo;
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669
5670else
5671 PGO_BUILD_LTO_CFLAGS=
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 CFLAGS="$old_CFLAGS"
5675 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677$as_echo "yes" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5682$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5683 fi
5684 fi
5685fi
5686
5687
5688
5689
5690# Used for setting $lt_cv_objdir
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5692$as_echo_n "checking for objdir... " >&6; }
5693if ${lt_cv_objdir+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695else
5696 rm -f .libs 2>/dev/null
5697mkdir .libs 2>/dev/null
5698if test -d .libs; then
5699 lt_cv_objdir=.libs
5700else
5701 # MS-DOS does not allow filenames that begin with a dot.
5702 lt_cv_objdir=_libs
5703fi
5704rmdir .libs 2>/dev/null
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5707$as_echo "$lt_cv_objdir" >&6; }
5708objdir=$lt_cv_objdir
5709
5710
5711
5712
5713
5714cat >>confdefs.h <<_ACEOF
5715#define LT_OBJDIR "$lt_cv_objdir/"
5716_ACEOF
5717
5718
5719
5720# Check for GMP, MPFR and MPC
5721gmplibs="-lmpc -lmpfr -lgmp"
5722gmpinc=
5723have_gmp=no
5724
5725# Specify a location for mpc
5726# check for this first so it ends up on the link line before mpfr.
5727
5728# Check whether --with-mpc was given.
5729if test "${with_mpc+set}" = set; then :
5730 withval=$with_mpc;
5731fi
5732
5733
5734# Check whether --with-mpc-include was given.
5735if test "${with_mpc_include+set}" = set; then :
5736 withval=$with_mpc_include;
5737fi
5738
5739
5740# Check whether --with-mpc-lib was given.
5741if test "${with_mpc_lib+set}" = set; then :
5742 withval=$with_mpc_lib;
5743fi
5744
5745
5746if test "x$with_mpc" != x; then
5747 gmplibs="-L$with_mpc/lib $gmplibs"
5748 gmpinc="-I$with_mpc/include $gmpinc"
5749fi
5750if test "x$with_mpc_include" != x; then
5751 gmpinc="-I$with_mpc_include $gmpinc"
5752fi
5753if test "x$with_mpc_lib" != x; then
5754 gmplibs="-L$with_mpc_lib $gmplibs"
5755fi
5756if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5757 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5758 gmpinc='-I$$s/mpc/src '"$gmpinc"
5759 # Do not test the mpc version. Assume that it is sufficient, since
5760 # it is in the source tree, and the library has not been built yet
5761 # but it would be included on the link line in the version check below
5762 # hence making the test fail.
5763 have_gmp=yes
5764fi
5765
5766# Specify a location for mpfr
5767# check for this first so it ends up on the link line before gmp.
5768
5769# Check whether --with-mpfr-dir was given.
5770if test "${with_mpfr_dir+set}" = set; then :
5771 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5772Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5773fi
5774
5775
5776
5777# Check whether --with-mpfr was given.
5778if test "${with_mpfr+set}" = set; then :
5779 withval=$with_mpfr;
5780fi
5781
5782
5783# Check whether --with-mpfr-include was given.
5784if test "${with_mpfr_include+set}" = set; then :
5785 withval=$with_mpfr_include;
5786fi
5787
5788
5789# Check whether --with-mpfr-lib was given.
5790if test "${with_mpfr_lib+set}" = set; then :
5791 withval=$with_mpfr_lib;
5792fi
5793
5794
5795if test "x$with_mpfr" != x; then
5796 gmplibs="-L$with_mpfr/lib $gmplibs"
5797 gmpinc="-I$with_mpfr/include $gmpinc"
5798fi
5799if test "x$with_mpfr_include" != x; then
5800 gmpinc="-I$with_mpfr_include $gmpinc"
5801fi
5802if test "x$with_mpfr_lib" != x; then
5803 gmplibs="-L$with_mpfr_lib $gmplibs"
5804fi
5805if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5806 # MPFR v3.1.0 moved the sources into a src sub-directory.
5807 if ! test -d ${srcdir}/mpfr/src; then
5808 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5809 fi
5810 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5811 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5812 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5813 # Do not test the mpfr version. Assume that it is sufficient, since
5814 # it is in the source tree, and the library has not been built yet
5815 # but it would be included on the link line in the version check below
5816 # hence making the test fail.
5817 have_gmp=yes
5818fi
5819
5820# Specify a location for gmp
5821
5822# Check whether --with-gmp-dir was given.
5823if test "${with_gmp_dir+set}" = set; then :
5824 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5825Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5826fi
5827
5828
5829
5830# Check whether --with-gmp was given.
5831if test "${with_gmp+set}" = set; then :
5832 withval=$with_gmp;
5833fi
5834
5835
5836# Check whether --with-gmp-include was given.
5837if test "${with_gmp_include+set}" = set; then :
5838 withval=$with_gmp_include;
5839fi
5840
5841
5842# Check whether --with-gmp-lib was given.
5843if test "${with_gmp_lib+set}" = set; then :
5844 withval=$with_gmp_lib;
5845fi
5846
5847
5848
5849if test "x$with_gmp" != x; then
5850 gmplibs="-L$with_gmp/lib $gmplibs"
5851 gmpinc="-I$with_gmp/include $gmpinc"
5852fi
5853if test "x$with_gmp_include" != x; then
5854 gmpinc="-I$with_gmp_include $gmpinc"
5855fi
5856if test "x$with_gmp_lib" != x; then
5857 gmplibs="-L$with_gmp_lib $gmplibs"
5858fi
5859if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5860 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5861 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5862 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5863 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5864 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5865 # Do not test the gmp version. Assume that it is sufficient, since
5866 # it is in the source tree, and the library has not been built yet
5867 # but it would be included on the link line in the version check below
5868 # hence making the test fail.
5869 have_gmp=yes
5870fi
5871
5872if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5873 have_gmp=yes
5874 saved_CFLAGS="$CFLAGS"
5875 CFLAGS="$CFLAGS $gmpinc"
5876 # Check for the recommended and required versions of GMP.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5878$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880/* end confdefs.h. */
5881#include "gmp.h"
5882int
5883main ()
5884{
5885
5886 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5887 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5888 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5889 choke me
5890 #endif
5891
5892 ;
5893 return 0;
5894}
5895_ACEOF
5896if ac_fn_c_try_compile "$LINENO"; then :
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h. */
5899#include <gmp.h>
5900int
5901main ()
5902{
5903
5904 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5905 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5906 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5907 choke me
5908 #endif
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_compile "$LINENO"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5916$as_echo "yes" >&6; }
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5919$as_echo "buggy but acceptable" >&6; }
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }; have_gmp=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927
5928 # If we have GMP, check the MPFR version.
5929 if test x"$have_gmp" = xyes; then
5930 # Check for the recommended and required versions of MPFR.
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5932$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h. */
5935#include <gmp.h>
5936 #include <mpfr.h>
5937int
5938main ()
5939{
5940
5941 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5942 choke me
5943 #endif
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include <gmp.h>
5953 #include <mpfr.h>
5954int
5955main ()
5956{
5957
5958 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5959 choke me
5960 #endif
5961
5962 ;
5963 return 0;
5964}
5965_ACEOF
5966if ac_fn_c_try_compile "$LINENO"; then :
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5968$as_echo "yes" >&6; }
5969else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5971$as_echo "buggy but acceptable" >&6; }
5972fi
5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }; have_gmp=no
5977fi
5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980
5981 # Check for the MPC header version.
5982 if test x"$have_gmp" = xyes ; then
5983 # Check for the recommended and required versions of MPC.
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5985$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h. */
5988#include <mpc.h>
5989int
5990main ()
5991{
5992
5993 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5994 choke me
5995 #endif
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h. */
6004#include <mpc.h>
6005int
6006main ()
6007{
6008
6009 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6010 choke me
6011 #endif
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"; then :
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6019$as_echo "yes" >&6; }
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6022$as_echo "buggy but acceptable" >&6; }
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }; have_gmp=no
6028fi
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 fi
6031
6032 # Now check the MPFR library.
6033 if test x"$have_gmp" = xyes; then
6034 saved_LIBS="$LIBS"
6035 LIBS="$LIBS $gmplibs"
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6037$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h. */
6040#include <mpc.h>
6041int
6042main ()
6043{
6044
6045 mpfr_t n;
6046 mpfr_t x;
6047 mpc_t c;
6048 int t;
6049 mpfr_init (n);
6050 mpfr_init (x);
6051 mpfr_atan2 (n, n, x, GMP_RNDN);
6052 mpfr_erfc (n, x, GMP_RNDN);
6053 mpfr_subnormalize (x, t, GMP_RNDN);
6054 mpfr_clear(n);
6055 mpfr_clear(x);
6056 mpc_init2 (c, 53);
6057 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6058 mpc_cosh (c, c, MPC_RNDNN);
6059 mpc_pow (c, c, c, MPC_RNDNN);
6060 mpc_acosh (c, c, MPC_RNDNN);
6061 mpc_clear (c);
6062
6063 ;
6064 return 0;
6065}
6066_ACEOF
6067if ac_fn_c_try_link "$LINENO"; then :
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6069$as_echo "yes" >&6; }
6070else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }; have_gmp=no
6073fi
6074rm -f core conftest.err conftest.$ac_objext \
6075 conftest$ac_exeext conftest.$ac_ext
6076 LIBS="$saved_LIBS"
6077 fi
6078
6079 CFLAGS="$saved_CFLAGS"
6080
6081# The library versions listed in the error message below should match
6082# the HARD-minimums enforced above.
6083 if test x$have_gmp != xyes; then
6084 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6085Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6086their locations. Source code for these libraries can be found at
6087their respective hosting sites as well as at
6088ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6089http://gcc.gnu.org/install/prerequisites.html for additional info. If
6090you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6091make sure that you have installed both the libraries and the header
6092files. They may be located in separate packages." "$LINENO" 5
6093 fi
6094fi
6095
6096# Flags needed for both GMP, MPFR and/or MPC.
6097
6098
6099
6100
6101
6102
6103
6104# Libraries to use for stage1 or when not bootstrapping.
6105
6106# Check whether --with-stage1-libs was given.
6107if test "${with_stage1_libs+set}" = set; then :
6108 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6109 stage1_libs=
6110 else
6111 stage1_libs=$withval
6112 fi
6113else
6114 stage1_libs=
6115fi
6116
6117
6118
6119# Whether or not to use -static-libstdc++ and -static-libgcc. The
6120# default is yes if gcc is being built; no otherwise. The reason for
6121# this default is that gdb is sometimes linked against GNU Source
6122# Highlight, which is a shared library that uses C++ exceptions. In
6123# this case, -static-libstdc++ will cause crashes.
6124
6125# Check whether --with-static-standard-libraries was given.
6126if test "${with_static_standard_libraries+set}" = set; then :
6127 withval=$with_static_standard_libraries;
6128else
6129 with_static_standard_libraries=auto
6130fi
6131
6132if test "$with_static_standard_libraries" = auto; then
6133 with_static_standard_libraries=$have_compiler
6134fi
6135
6136# Linker flags to use for stage1 or when not bootstrapping.
6137
6138# Check whether --with-stage1-ldflags was given.
6139if test "${with_stage1_ldflags+set}" = set; then :
6140 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6141 stage1_ldflags=
6142 else
6143 stage1_ldflags=$withval
6144 fi
6145else
6146 stage1_ldflags=
6147 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6148 # if supported. But if the user explicitly specified the libraries to use,
6149 # trust that they are doing what they want.
6150 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6151 -a "$have_static_libs" = yes; then
6152 stage1_ldflags="-static-libstdc++ -static-libgcc"
6153 fi
6154fi
6155
6156
6157
6158# Libraries to use for stage2 and later builds.
6159
6160# Check whether --with-boot-libs was given.
6161if test "${with_boot_libs+set}" = set; then :
6162 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6163 poststage1_libs=
6164 else
6165 poststage1_libs=$withval
6166 fi
6167else
6168 poststage1_libs=
6169fi
6170
6171
6172
6173# Linker flags to use for stage2 and later builds.
6174
6175# Check whether --with-boot-ldflags was given.
6176if test "${with_boot_ldflags+set}" = set; then :
6177 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6178 poststage1_ldflags=
6179 else
6180 poststage1_ldflags=$withval
6181 fi
6182else
6183 poststage1_ldflags=
6184 # In stages 2 and 3, default to linking libstdc++ and libgcc
6185 # statically. But if the user explicitly specified the libraries to
6186 # use, trust that they are doing what they want.
6187 if test "$poststage1_libs" = ""; then
6188 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6189 fi
6190fi
6191
6192
6193
6194# GCC GRAPHITE dependency isl.
6195# Basic setup is inlined here, actual checks are in config/isl.m4
6196
6197
6198# Check whether --with-isl was given.
6199if test "${with_isl+set}" = set; then :
6200 withval=$with_isl;
6201fi
6202
6203
6204# Treat --without-isl as a request to disable
6205# GRAPHITE support and skip all following checks.
6206if test "x$with_isl" != "xno"; then
6207 # Check for isl
6208
6209
6210# Check whether --with-isl-include was given.
6211if test "${with_isl_include+set}" = set; then :
6212 withval=$with_isl_include;
6213fi
6214
6215
6216# Check whether --with-isl-lib was given.
6217if test "${with_isl_lib+set}" = set; then :
6218 withval=$with_isl_lib;
6219fi
6220
6221
6222 # Check whether --enable-isl-version-check was given.
6223if test "${enable_isl_version_check+set}" = set; then :
6224 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6225else
6226 ENABLE_ISL_CHECK=yes
6227fi
6228
6229
6230 # Initialize isllibs and islinc.
6231 case $with_isl in
6232 no)
6233 isllibs=
6234 islinc=
6235 ;;
6236 "" | yes)
6237 ;;
6238 *)
6239 isllibs="-L$with_isl/lib"
6240 islinc="-I$with_isl/include"
6241 ;;
6242 esac
6243 if test "x${with_isl_include}" != x ; then
6244 islinc="-I$with_isl_include"
6245 fi
6246 if test "x${with_isl_lib}" != x; then
6247 isllibs="-L$with_isl_lib"
6248 fi
6249 if test "x${islinc}" = x && test "x${isllibs}" = x \
6250 && test -d ${srcdir}/isl; then
6251 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6252 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6253 ENABLE_ISL_CHECK=no
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6255$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6256 fi
6257
6258 isllibs="${isllibs} -lisl"
6259
6260
6261
6262 if test "${ENABLE_ISL_CHECK}" = yes ; then
6263 _isl_saved_CFLAGS=$CFLAGS
6264 _isl_saved_LDFLAGS=$LDFLAGS
6265 _isl_saved_LIBS=$LIBS
6266
6267 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6268 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6269 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6272$as_echo_n "checking for isl 0.15 or later... " >&6; }
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h. */
6275#include <isl/schedule.h>
6276int
6277main ()
6278{
6279isl_options_set_schedule_serialize_sccs (NULL, 0);
6280 ;
6281 return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_link "$LINENO"; then :
6285 gcc_cv_isl=yes
6286else
6287 gcc_cv_isl=no
6288fi
6289rm -f core conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6292$as_echo "$gcc_cv_isl" >&6; }
6293
6294 if test "${gcc_cv_isl}" = no ; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6296$as_echo "required isl version is 0.15 or later" >&6; }
6297 fi
6298
6299 CFLAGS=$_isl_saved_CFLAGS
6300 LDFLAGS=$_isl_saved_LDFLAGS
6301 LIBS=$_isl_saved_LIBS
6302 fi
6303
6304
6305
6306
6307
6308
6309 if test "x${with_isl}" = xno; then
6310 graphite_requested=no
6311 elif test "x${with_isl}" != x \
6312 || test "x${with_isl_include}" != x \
6313 || test "x${with_isl_lib}" != x ; then
6314 graphite_requested=yes
6315 else
6316 graphite_requested=no
6317 fi
6318
6319
6320
6321 if test "${gcc_cv_isl}" = no ; then
6322 isllibs=
6323 islinc=
6324 fi
6325
6326 if test "${graphite_requested}" = yes \
6327 && test "x${isllibs}" = x \
6328 && test "x${islinc}" = x ; then
6329
6330 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6331 fi
6332
6333
6334fi
6335
6336# If the isl check failed, disable builds of in-tree variant of isl
6337if test "x$with_isl" = xno ||
6338 test "x$gcc_cv_isl" = xno; then
6339 noconfigdirs="$noconfigdirs isl"
6340 islinc=
6341fi
6342
6343
6344
6345
6346# Check for LTO support.
6347# Check whether --enable-lto was given.
6348if test "${enable_lto+set}" = set; then :
6349 enableval=$enable_lto; enable_lto=$enableval
6350else
6351 enable_lto=yes; default_enable_lto=yes
6352fi
6353
6354
6355
6356
6357
6358target_elf=no
6359case $target in
6360 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6361 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6362 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6363 nvptx-*-none)
6364 target_elf=no
6365 ;;
6366 *)
6367 target_elf=yes
6368 ;;
6369esac
6370
6371if test $target_elf = yes; then :
6372 # ELF platforms build the lto-plugin always.
6373 build_lto_plugin=yes
6374
6375else
6376 if test x"$default_enable_lto" = x"yes" ; then
6377 case $target in
6378 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6379 # On other non-ELF platforms, LTO has yet to be validated.
6380 *) enable_lto=no ;;
6381 esac
6382 else
6383 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6384 # It would also be nice to check the binutils support, but we don't
6385 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6386 # warn during gcc/ subconfigure; unless you're bootstrapping with
6387 # -flto it won't be needed until after installation anyway.
6388 case $target in
6389 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6390 *) if test x"$enable_lto" = x"yes"; then
6391 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6392 fi
6393 ;;
6394 esac
6395 fi
6396 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6397 # Build it unless LTO was explicitly disabled.
6398 case $target in
6399 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6400 *) ;;
6401 esac
6402
6403fi
6404
6405
6406# Check whether --enable-linker-plugin-configure-flags was given.
6407if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6408 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6409else
6410 extra_linker_plugin_configure_flags=
6411fi
6412
6413
6414# Check whether --enable-linker-plugin-flags was given.
6415if test "${enable_linker_plugin_flags+set}" = set; then :
6416 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6417else
6418 extra_linker_plugin_flags=
6419fi
6420
6421
6422
6423# Enable --enable-host-shared.
6424# Checked early to determine whether jit is an 'all' language
6425# Check whether --enable-host-shared was given.
6426if test "${enable_host_shared+set}" = set; then :
6427 enableval=$enable_host_shared; host_shared=$enableval
6428else
6429 host_shared=no
6430fi
6431
6432
6433
6434# By default, C and C++ are the only stage 1 languages.
6435stage1_languages=,c,
6436
6437# Target libraries that we bootstrap.
6438bootstrap_target_libs=,target-libgcc,
6439
6440# Figure out what language subdirectories are present.
6441# Look if the user specified --enable-languages="..."; if not, use
6442# the environment variable $LANGUAGES if defined. $LANGUAGES might
6443# go away some day.
6444# NB: embedded tabs in this IF block -- do not untabify
6445if test -d ${srcdir}/gcc; then
6446 if test x"${enable_languages+set}" != xset; then
6447 if test x"${LANGUAGES+set}" = xset; then
6448 enable_languages="${LANGUAGES}"
6449 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6450 else
6451 enable_languages=default
6452 fi
6453 else
6454 if test x"${enable_languages}" = x ||
6455 test x"${enable_languages}" = xyes;
6456 then
6457 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6458 exit 1
6459 fi
6460 fi
6461 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6462
6463 # 'f95' is the old name for the 'fortran' language. We issue a warning
6464 # and make the substitution.
6465 case ,${enable_languages}, in
6466 *,f95,*)
6467 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6468 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6469 ;;
6470 esac
6471
6472 # If bootstrapping, C++ must be enabled.
6473 case ",$enable_languages,:$enable_bootstrap" in
6474 *,c++,*:*) ;;
6475 *:yes)
6476 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6477 enable_languages="${enable_languages},c++"
6478 else
6479 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6480 fi
6481 ;;
6482 esac
6483
6484 # First scan to see if an enabled language requires some other language.
6485 # We assume that a given config-lang.in will list all the language
6486 # front ends it requires, even if some are required indirectly.
6487 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6488 case ${lang_frag} in
6489 ..) ;;
6490 # The odd quoting in the next line works around
6491 # an apparent bug in bash 1.12 on linux.
6492 ${srcdir}/gcc/[*]/config-lang.in) ;;
6493 *)
6494 # From the config-lang.in, get $language, $lang_requires, and
6495 # $lang_requires_boot_languages.
6496 language=
6497 lang_requires=
6498 lang_requires_boot_languages=
6499 # set srcdir during sourcing lang_frag to the gcc dir.
6500 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6501 # polutes this shell
6502 saved_srcdir=${srcdir}
6503 srcdir=${srcdir}/gcc . ${lang_frag}
6504 srcdir=${saved_srcdir}
6505 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6506 case ,${enable_languages}, in
6507 *,$other,*) ;;
6508 *,default,*) ;;
6509 *,all,*) ;;
6510 *,$language,*)
6511 echo " \`$other' language required by \`$language'; enabling" 1>&2
6512 enable_languages="${enable_languages},${other}"
6513 ;;
6514 esac
6515 done
6516 for other in ${lang_requires_boot_languages} ; do
6517 if test "$other" != "c"; then
6518 case ,${enable_stage1_languages}, in
6519 *,$other,*) ;;
6520 *,default,*) ;;
6521 *,all,*) ;;
6522 *)
6523 case ,${enable_languages}, in
6524 *,$language,*)
6525 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6526 enable_stage1_languages="$enable_stage1_languages,${other}"
6527 ;;
6528 esac
6529 ;;
6530 esac
6531 fi
6532 done
6533 ;;
6534 esac
6535 done
6536
6537 new_enable_languages=,c,
6538
6539 # If LTO is enabled, add the LTO front end.
6540 if test "$enable_lto" = "yes" ; then
6541 case ,${enable_languages}, in
6542 *,lto,*) ;;
6543 *) enable_languages="${enable_languages},lto" ;;
6544 esac
6545 if test "${build_lto_plugin}" = "yes" ; then
6546 configdirs="$configdirs lto-plugin"
6547 fi
6548 fi
6549
6550 # If we're building an offloading compiler, add the LTO front end.
6551 if test x"$enable_as_accelerator_for" != x ; then
6552 case ,${enable_languages}, in
6553 *,lto,*) ;;
6554 *) enable_languages="${enable_languages},lto" ;;
6555 esac
6556 fi
6557
6558 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6559 potential_languages=,c,
6560
6561 enabled_target_libs=
6562 disabled_target_libs=
6563
6564 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6565 case ${lang_frag} in
6566 ..) ;;
6567 # The odd quoting in the next line works around
6568 # an apparent bug in bash 1.12 on linux.
6569 ${srcdir}/gcc/[*]/config-lang.in) ;;
6570 *)
6571 # From the config-lang.in, get $language, $target_libs,
6572 # $lang_dirs, $boot_language, and $build_by_default
6573 language=
6574 target_libs=
6575 lang_dirs=
6576 subdir_requires=
6577 boot_language=no
6578 build_by_default=yes
6579 # set srcdir during sourcing. See above about save & restore
6580 saved_srcdir=${srcdir}
6581 srcdir=${srcdir}/gcc . ${lang_frag}
6582 srcdir=${saved_srcdir}
6583 if test x${language} = x; then
6584 echo "${lang_frag} doesn't set \$language." 1>&2
6585 exit 1
6586 fi
6587
6588 if test "$language" = "c++"; then
6589 boot_language=yes
6590 fi
6591
6592 add_this_lang=no
6593 # C is always enabled, so no need to add it again
6594 if test "$language" != "c"; then
6595 case ,${enable_languages}, in
6596 *,${language},*)
6597 # Language was explicitly selected; include it
6598 add_this_lang=yes
6599 ;;
6600 *,all,*)
6601 # All languages are enabled
6602 add_this_lang=all
6603 ;;
6604 *,default,*)
6605 # 'default' was selected, select it if it is a default language
6606 add_this_lang=${build_by_default}
6607 ;;
6608 esac
6609 fi
6610
6611 # Disable languages that need other directories if these aren't available.
6612 for i in $subdir_requires; do
6613 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6614 case ${add_this_lang} in
6615 yes)
6616 # Specifically requested language; tell them.
6617 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6618 ;;
6619 all)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6621$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6622 add_this_lang=unsupported
6623 ;;
6624 *)
6625 # Silently disable.
6626 add_this_lang=unsupported
6627 ;;
6628 esac
6629 done
6630
6631 # Disable Ada if no preexisting GNAT is available.
6632 case ${add_this_lang}:${language}:${have_gnat} in
6633 yes:ada:no)
6634 # Specifically requested language; tell them.
6635 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6636 ;;
6637 all:ada:no)
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6639$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6640 add_this_lang=unsupported
6641 ;;
6642 *:ada:no)
6643 # Silently disable.
6644 add_this_lang=unsupported
6645 ;;
6646 esac
6647
6648 # Disable jit if -enable-host-shared not specified
6649 case ${add_this_lang}:${language}:${host_shared} in
6650 yes:jit:no)
6651 # PR jit/64780: explicitly specify --enable-host-shared
6652 as_fn_error $? "
6653Enabling language \"jit\" requires --enable-host-shared.
6654
6655--enable-host-shared typically slows the rest of the compiler down by
6656a few %, so you must explicitly enable it.
6657
6658If you want to build both the jit and the regular compiler, it is often
6659best to do this via two separate configure/builds, in separate
6660directories, to avoid imposing the performance cost of
6661--enable-host-shared on the regular compiler." "$LINENO" 5
6662 ;;
6663 all:jit:no)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6665$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6666 add_this_lang=unsupported
6667 ;;
6668 *:jit:no)
6669 # Silently disable.
6670 add_this_lang=unsupported
6671 ;;
6672 esac
6673
6674 # Disable a language that is unsupported by the target.
6675 case "${add_this_lang}: $unsupported_languages " in
6676 no:*) ;;
6677 unsupported:*) ;;
6678 *:*" $language "*)
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6680$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6681 add_this_lang=unsupported
6682 ;;
6683 esac
6684
6685 case $add_this_lang in
6686 unsupported)
6687 # Remove language-dependent dirs.
6688 disabled_target_libs="$disabled_target_libs $target_libs"
6689 noconfigdirs="$noconfigdirs $lang_dirs"
6690 ;;
6691 no)
6692 # Remove language-dependent dirs; still show language as supported.
6693 disabled_target_libs="$disabled_target_libs $target_libs"
6694 noconfigdirs="$noconfigdirs $lang_dirs"
6695 potential_languages="${potential_languages}${language},"
6696 ;;
6697 all|yes)
6698 new_enable_languages="${new_enable_languages}${language},"
6699 potential_languages="${potential_languages}${language},"
6700 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6701 enabled_target_libs="$enabled_target_libs $target_libs"
6702 case "${boot_language}:,$enable_stage1_languages," in
6703 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6704 # Add to (comma-separated) list of stage 1 languages.
6705 case ",$stage1_languages," in
6706 *,$language,* | ,yes, | ,all,) ;;
6707 *) stage1_languages="${stage1_languages}${language}," ;;
6708 esac
6709 # We need to bootstrap any supporting libraries.
6710 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6711 ;;
6712 esac
6713 ;;
6714 esac
6715 ;;
6716 esac
6717 done
6718
6719 # Add target libraries which are only needed for disabled languages
6720 # to noconfigdirs.
6721 if test -n "$disabled_target_libs"; then
6722 for dir in $disabled_target_libs; do
6723 case " $enabled_target_libs " in
6724 *" ${dir} "*) ;;
6725 *) noconfigdirs="$noconfigdirs $dir" ;;
6726 esac
6727 done
6728 fi
6729
6730 # Check whether --enable-stage1-languages was given.
6731if test "${enable_stage1_languages+set}" = set; then :
6732 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6733 ,no,|,,)
6734 # Set it to something that will have no effect in the loop below
6735 enable_stage1_languages=c ;;
6736 ,yes,)
6737 enable_stage1_languages=`echo $new_enable_languages | \
6738 sed -e "s/^,//" -e "s/,$//" ` ;;
6739 *,all,*)
6740 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6741 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6742 esac
6743
6744 # Add "good" languages from enable_stage1_languages to stage1_languages,
6745 # while "bad" languages go in missing_languages. Leave no duplicates.
6746 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6747 case $potential_languages in
6748 *,$i,*)
6749 case $stage1_languages in
6750 *,$i,*) ;;
6751 *) stage1_languages="$stage1_languages$i," ;;
6752 esac ;;
6753 *)
6754 case $missing_languages in
6755 *,$i,*) ;;
6756 *) missing_languages="$missing_languages$i," ;;
6757 esac ;;
6758 esac
6759 done
6760fi
6761
6762
6763 # Remove leading/trailing commas that were added for simplicity
6764 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6765 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6766 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6767 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6768
6769 if test "x$missing_languages" != x; then
6770 as_fn_error $? "
6771The following requested languages could not be built: ${missing_languages}
6772Supported languages are: ${potential_languages}" "$LINENO" 5
6773 fi
6774 if test "x$new_enable_languages" != "x$enable_languages"; then
6775 echo The following languages will be built: ${new_enable_languages}
6776 enable_languages="$new_enable_languages"
6777 fi
6778
6779
6780 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6781fi
6782
6783# Handle --disable-<component> generically.
6784for dir in $configdirs $build_configdirs $target_configdirs ; do
6785 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6786 varname=`echo $dirname | sed -e s/+/_/g`
6787 if eval test x\${enable_${varname}} "=" xno ; then
6788 noconfigdirs="$noconfigdirs $dir"
6789 fi
6790done
6791
6792# Check for Boehm's garbage collector
6793# Check whether --enable-objc-gc was given.
6794if test "${enable_objc_gc+set}" = set; then :
6795 enableval=$enable_objc_gc;
6796fi
6797
6798
6799# Check whether --with-target-bdw-gc was given.
6800if test "${with_target_bdw_gc+set}" = set; then :
6801 withval=$with_target_bdw_gc;
6802fi
6803
6804
6805# Check whether --with-target-bdw-gc-include was given.
6806if test "${with_target_bdw_gc_include+set}" = set; then :
6807 withval=$with_target_bdw_gc_include;
6808fi
6809
6810
6811# Check whether --with-target-bdw-gc-lib was given.
6812if test "${with_target_bdw_gc_lib+set}" = set; then :
6813 withval=$with_target_bdw_gc_lib;
6814fi
6815
6816
6817case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6819$as_echo_n "checking for bdw garbage collector... " >&6; }
6820 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6822$as_echo "using bdw-gc in default locations" >&6; }
6823 else
6824 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6825 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6826 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6827 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6830$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6831 fi
6832 fi
6833esac
6834
6835# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6836case ,${enable_languages}, in
6837 *,c++,*)
6838 # Disable libitm, libsanitizer if we're not building libstdc++
6839 case "${noconfigdirs}" in
6840 *target-libstdc++-v3*)
6841 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6842 ;;
6843 *) ;;
6844 esac
6845 ;;
6846 *)
6847 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6848 ;;
6849esac
6850
6851# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6852# $build_configdirs and $target_configdirs.
6853# If we have the source for $noconfigdirs entries, add them to $notsupp.
6854
6855notsupp=""
6856for dir in . $skipdirs $noconfigdirs ; do
6857 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6858 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6859 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6860 if test -r $srcdir/$dirname/configure ; then
6861 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6862 true
6863 else
6864 notsupp="$notsupp $dir"
6865 fi
6866 fi
6867 fi
6868 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6869 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6870 if test -r $srcdir/$dirname/configure ; then
6871 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6872 true
6873 else
6874 notsupp="$notsupp $dir"
6875 fi
6876 fi
6877 fi
6878 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6879 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6880 if test -r $srcdir/$dirname/configure ; then
6881 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6882 true
6883 else
6884 notsupp="$notsupp $dir"
6885 fi
6886 fi
6887 fi
6888done
6889
6890# Quietly strip out all directories which aren't configurable in this tree.
6891# This relies on all configurable subdirectories being autoconfiscated, which
6892# is now the case.
6893build_configdirs_all="$build_configdirs"
6894build_configdirs=
6895for i in ${build_configdirs_all} ; do
6896 j=`echo $i | sed -e s/build-//g`
6897 if test -f ${srcdir}/$j/configure ; then
6898 build_configdirs="${build_configdirs} $i"
6899 fi
6900done
6901
6902configdirs_all="$configdirs"
6903configdirs=
6904for i in ${configdirs_all} ; do
6905 if test -f ${srcdir}/$i/configure ; then
6906 configdirs="${configdirs} $i"
6907 fi
6908done
6909
6910target_configdirs_all="$target_configdirs"
6911target_configdirs=
6912for i in ${target_configdirs_all} ; do
6913 j=`echo $i | sed -e s/target-//g`
6914 if test -f ${srcdir}/$j/configure ; then
6915 target_configdirs="${target_configdirs} $i"
6916 fi
6917done
6918
6919# libiberty-linker-plugin is special: it doesn't have its own source directory,
6920# so we have to add it after the preceding checks.
6921if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6922then
6923 case " $configdirs " in
6924 *" libiberty "*)
6925 # If we can build libiberty, we can also build libiberty-linker-plugin.
6926 configdirs="$configdirs libiberty-linker-plugin"
6927 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6928 --with-libiberty=../libiberty-linker-plugin";;
6929 *)
6930 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6931 esac
6932fi
6933
6934# Sometimes we have special requirements for the host libiberty.
6935extra_host_libiberty_configure_flags=
6936extra_host_zlib_configure_flags=
6937case " $configdirs " in
6938 *" lto-plugin "* | *" libcc1 "*)
6939 # When these are to be built as shared libraries, the same applies to
6940 # libiberty.
6941 extra_host_libiberty_configure_flags=--enable-shared
6942 ;;
6943 *" bfd "*)
6944 # When bfd is to be built as a shared library, the same applies to
6945 # zlib.
6946 if test "$enable_shared" = "yes"; then
6947 extra_host_zlib_configure_flags=--enable-host-shared
6948 fi
6949 ;;
6950esac
6951
6952
6953
6954# Produce a warning message for the subdirs we can't configure.
6955# This isn't especially interesting in the Cygnus tree, but in the individual
6956# FSF releases, it's important to let people know when their machine isn't
6957# supported by the one or two programs in a package.
6958
6959if test -n "${notsupp}" && test -z "${norecursion}" ; then
6960 # If $appdirs is non-empty, at least one of those directories must still
6961 # be configured, or we error out. (E.g., if the gas release supports a
6962 # specified target in some subdirs but not the gas subdir, we shouldn't
6963 # pretend that all is well.)
6964 if test -n "$appdirs" ; then
6965 for dir in $appdirs ; do
6966 if test -r $dir/Makefile.in ; then
6967 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6968 appdirs=""
6969 break
6970 fi
6971 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6972 appdirs=""
6973 break
6974 fi
6975 fi
6976 done
6977 if test -n "$appdirs" ; then
6978 echo "*** This configuration is not supported by this package." 1>&2
6979 exit 1
6980 fi
6981 fi
6982 # Okay, some application will build, or we don't care to check. Still
6983 # notify of subdirs not getting built.
6984 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6985 echo " ${notsupp}" 1>&2
6986 echo " (Any other directories should still work fine.)" 1>&2
6987fi
6988
6989case "$host" in
6990 *msdosdjgpp*)
6991 enable_gdbtk=no ;;
6992esac
6993
6994# To find our prefix, in gcc_cv_tool_prefix.
6995
6996# The user is always right.
6997if test "${PATH_SEPARATOR+set}" != set; then
6998 echo "#! /bin/sh" >conf$$.sh
6999 echo "exit 0" >>conf$$.sh
7000 chmod +x conf$$.sh
7001 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7002 PATH_SEPARATOR=';'
7003 else
7004 PATH_SEPARATOR=:
7005 fi
7006 rm -f conf$$.sh
7007fi
7008
7009
7010 get_gcc_base_ver="cat"
7011
7012# Check whether --with-gcc-major-version-only was given.
7013if test "${with_gcc_major_version_only+set}" = set; then :
7014 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7015 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7016 fi
7017
7018fi
7019
7020
7021
7022
7023
7024
7025if test "x$exec_prefix" = xNONE; then
7026 if test "x$prefix" = xNONE; then
7027 gcc_cv_tool_prefix=$ac_default_prefix
7028 else
7029 gcc_cv_tool_prefix=$prefix
7030 fi
7031else
7032 gcc_cv_tool_prefix=$exec_prefix
7033fi
7034
7035# If there is no compiler in the tree, use the PATH only. In any
7036# case, if there is no compiler in the tree nobody should use
7037# AS_FOR_TARGET and LD_FOR_TARGET.
7038if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7039 if test x$with_gcc_major_version_only = xyes ; then
7040 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7041 else
7042 gcc_version=`cat $srcdir/gcc/BASE-VER`
7043 fi
7044 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7045 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7046 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7048 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7049 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7050else
7051 gcc_cv_tool_dirs=
7052fi
7053
7054if test x$build = x$target && test -n "$md_exec_prefix"; then
7055 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7056fi
7057
7058
7059
7060copy_dirs=
7061
7062
7063# Check whether --with-build-sysroot was given.
7064if test "${with_build_sysroot+set}" = set; then :
7065 withval=$with_build_sysroot; if test x"$withval" != x ; then
7066 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7067 fi
7068else
7069 SYSROOT_CFLAGS_FOR_TARGET=
7070fi
7071
7072
7073
7074
7075# Check whether --with-debug-prefix-map was given.
7076if test "${with_debug_prefix_map+set}" = set; then :
7077 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7078 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7079 for debug_map in $withval; do
7080 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7081 done
7082 fi
7083else
7084 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7085fi
7086
7087
7088
7089# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7090# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7091# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7092# We want to ensure that TARGET libraries (which we know are built with
7093# gcc) are built with "-O2 -g", so include those options when setting
7094# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7095if test "x$CFLAGS_FOR_TARGET" = x; then
7096 if test "x${is_cross_compiler}" = xyes; then
7097 CFLAGS_FOR_TARGET="-g -O2"
7098 else
7099 CFLAGS_FOR_TARGET=$CFLAGS
7100 case " $CFLAGS " in
7101 *" -O2 "*) ;;
7102 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7103 esac
7104 case " $CFLAGS " in
7105 *" -g "* | *" -g3 "*) ;;
7106 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7107 esac
7108 fi
7109fi
7110
7111
7112if test "x$CXXFLAGS_FOR_TARGET" = x; then
7113 if test "x${is_cross_compiler}" = xyes; then
7114 CXXFLAGS_FOR_TARGET="-g -O2"
7115 else
7116 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7117 case " $CXXFLAGS " in
7118 *" -O2 "*) ;;
7119 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7120 esac
7121 case " $CXXFLAGS " in
7122 *" -g "* | *" -g3 "*) ;;
7123 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7124 esac
7125 fi
7126fi
7127
7128
7129
7130
7131# Handle --with-headers=XXX. If the value is not "yes", the contents of
7132# the named directory are copied to $(tooldir)/sys-include.
7133if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7134 if test x${is_cross_compiler} = xno ; then
7135 echo 1>&2 '***' --with-headers is only supported when cross compiling
7136 exit 1
7137 fi
7138 if test x"${with_headers}" != xyes ; then
7139 x=${gcc_cv_tool_prefix}
7140 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7141 fi
7142fi
7143
7144# Handle --with-libs=XXX. If the value is not "yes", the contents of
7145# the name directories are copied to $(tooldir)/lib. Multiple directories
7146# are permitted.
7147if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7148 if test x${is_cross_compiler} = xno ; then
7149 echo 1>&2 '***' --with-libs is only supported when cross compiling
7150 exit 1
7151 fi
7152 if test x"${with_libs}" != xyes ; then
7153 # Copy the libraries in reverse order, so that files in the first named
7154 # library override files in subsequent libraries.
7155 x=${gcc_cv_tool_prefix}
7156 for l in ${with_libs}; do
7157 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7158 done
7159 fi
7160fi
7161
7162# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7163#
7164# This is done by determining whether or not the appropriate directory
7165# is available, and by checking whether or not specific configurations
7166# have requested that this magic not happen.
7167#
7168# The command line options always override the explicit settings in
7169# configure.ac, and the settings in configure.ac override this magic.
7170#
7171# If the default for a toolchain is to use GNU as and ld, and you don't
7172# want to do that, then you should use the --without-gnu-as and
7173# --without-gnu-ld options for the configure script. Similarly, if
7174# the default is to use the included zlib and you don't want to do that,
7175# you should use the --with-system-zlib option for the configure script.
7176
7177if test x${use_gnu_as} = x &&
7178 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7179 with_gnu_as=yes
7180 extra_host_args="$extra_host_args --with-gnu-as"
7181fi
7182
7183if test x${use_gnu_ld} = x &&
7184 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7185 with_gnu_ld=yes
7186 extra_host_args="$extra_host_args --with-gnu-ld"
7187fi
7188
7189if test x${use_included_zlib} = x &&
7190 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7191 :
7192else
7193 with_system_zlib=yes
7194 extra_host_args="$extra_host_args --with-system-zlib"
7195fi
7196
7197# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7198# can detect this case.
7199
7200if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7201 with_newlib=yes
7202 extra_host_args="$extra_host_args --with-newlib"
7203fi
7204
7205# Handle ${copy_dirs}
7206set fnord ${copy_dirs}
7207shift
7208while test $# != 0 ; do
7209 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7210 :
7211 else
7212 echo Copying $1 to $2
7213
7214 # Use the install script to create the directory and all required
7215 # parent directories.
7216 if test -d $2 ; then
7217 :
7218 else
7219 echo >config.temp
7220 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7221 fi
7222
7223 # Copy the directory, assuming we have tar.
7224 # FIXME: Should we use B in the second tar? Not all systems support it.
7225 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7226
7227 # It is the responsibility of the user to correctly adjust all
7228 # symlinks. If somebody can figure out how to handle them correctly
7229 # here, feel free to add the code.
7230
7231 echo $1 > $2/COPIED
7232 fi
7233 shift; shift
7234done
7235
7236# Determine a target-dependent exec_prefix that the installed
7237# gcc will search in. Keep this list sorted by triplet, with
7238# the *-*-osname triplets last.
7239md_exec_prefix=
7240case "${target}" in
7241 i[34567]86-pc-msdosdjgpp*)
7242 md_exec_prefix=/dev/env/DJDIR/bin
7243 ;;
7244 *-*-hpux* | \
7245 *-*-nto-qnx* | \
7246 *-*-solaris2*)
7247 md_exec_prefix=/usr/ccs/bin
7248 ;;
7249esac
7250
7251extra_arflags_for_target=
7252extra_nmflags_for_target=
7253extra_ranlibflags_for_target=
7254target_makefile_frag=/dev/null
7255case "${target}" in
7256 spu-*-*)
7257 target_makefile_frag="config/mt-spu"
7258 ;;
7259 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7260 target_makefile_frag="config/mt-sde"
7261 ;;
7262 mipsisa*-*-elfoabi*)
7263 target_makefile_frag="config/mt-mips-elfoabi"
7264 ;;
7265 mips*-*-*linux* | mips*-*-gnu*)
7266 target_makefile_frag="config/mt-mips-gnu"
7267 ;;
7268 nios2-*-elf*)
7269 target_makefile_frag="config/mt-nios2-elf"
7270 ;;
7271 *-*-linux-android*)
7272 target_makefile_frag="config/mt-android"
7273 ;;
7274 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7275 target_makefile_frag="config/mt-gnu"
7276 ;;
7277 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7278 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7279 # commands to handle both 32-bit and 64-bit objects. These flags are
7280 # harmless if we're using GNU nm or ar.
7281 extra_arflags_for_target=" -X32_64"
7282 extra_nmflags_for_target=" -B -X32_64"
7283 ;;
7284esac
7285
7286alphaieee_frag=/dev/null
7287case $target in
7288 alpha*-*-*)
7289 # This just makes sure to use the -mieee option to build target libs.
7290 # This should probably be set individually by each library.
7291 alphaieee_frag="config/mt-alphaieee"
7292 ;;
7293esac
7294
7295# If --enable-target-optspace always use -Os instead of -O2 to build
7296# the target libraries, similarly if it is not specified, use -Os
7297# on selected platforms.
7298ospace_frag=/dev/null
7299case "${enable_target_optspace}:${target}" in
7300 yes:*)
7301 ospace_frag="config/mt-ospace"
7302 ;;
7303 :d30v-*)
7304 ospace_frag="config/mt-d30v"
7305 ;;
7306 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7307 ospace_frag="config/mt-ospace"
7308 ;;
7309 no:* | :*)
7310 ;;
7311 *)
7312 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7313 ;;
7314esac
7315
7316# Some systems (e.g., one of the i386-aix systems the gas testers are
7317# using) don't handle "\$" correctly, so don't use it here.
7318tooldir='${exec_prefix}'/${target_noncanonical}
7319build_tooldir=${tooldir}
7320
7321# Create a .gdbinit file which runs the one in srcdir
7322# and tells GDB to look there for source files.
7323
7324if test -r ${srcdir}/.gdbinit ; then
7325 case ${srcdir} in
7326 .) ;;
7327 *) cat > ./.gdbinit <<EOF
7328# ${NO_EDIT}
7329dir ${srcdir}
7330dir .
7331source ${srcdir}/.gdbinit
7332EOF
7333 ;;
7334 esac
7335fi
7336
7337# Make sure that the compiler is able to generate an executable. If it
7338# can't, we are probably in trouble. We don't care whether we can run the
7339# executable--we might be using a cross compiler--we only care whether it
7340# can be created. At this point the main configure script has set CC.
7341we_are_ok=no
7342echo "int main () { return 0; }" > conftest.c
7343${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7344if test $? = 0 ; then
7345 if test -s conftest || test -s conftest.exe ; then
7346 we_are_ok=yes
7347 fi
7348fi
7349case $we_are_ok in
7350 no)
7351 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7352 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7353 rm -f conftest*
7354 exit 1
7355 ;;
7356esac
7357rm -f conftest*
7358
7359# Decide which environment variable is used to find dynamic libraries.
7360case "${host}" in
7361 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7362 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7363 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7364 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7365esac
7366
7367# On systems where the dynamic library environment variable is PATH,
7368# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7369# built executables to PATH.
7370if test "$RPATH_ENVVAR" = PATH; then
7371 GCC_SHLIB_SUBDIR=/shlib
7372else
7373 GCC_SHLIB_SUBDIR=
7374fi
7375
7376# Adjust the toplevel makefile according to whether bootstrap was selected.
7377case $enable_bootstrap in
7378 yes)
7379 bootstrap_suffix=bootstrap
7380 BUILD_CONFIG=bootstrap-debug
7381 ;;
7382 no)
7383 bootstrap_suffix=no-bootstrap
7384 BUILD_CONFIG=
7385 ;;
7386esac
7387
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7389$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7390
7391
7392# Check whether --with-build-config was given.
7393if test "${with_build_config+set}" = set; then :
7394 withval=$with_build_config; case $with_build_config in
7395 yes) with_build_config= ;;
7396 no) with_build_config= BUILD_CONFIG= ;;
7397 esac
7398fi
7399
7400
7401if test "x${with_build_config}" != x; then
7402 BUILD_CONFIG=$with_build_config
7403else
7404 case $BUILD_CONFIG in
7405 bootstrap-debug)
7406 if echo "int f (void) { return 0; }" > conftest.c &&
7407 ${CC} -c conftest.c &&
7408 mv conftest.o conftest.o.g0 &&
7409 ${CC} -c -g conftest.c &&
7410 mv conftest.o conftest.o.g &&
7411 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7412 :
7413 else
7414 BUILD_CONFIG=
7415 fi
7416 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7417 ;;
7418 esac
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7421$as_echo "$BUILD_CONFIG" >&6; }
7422
7423
7424# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7426$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7427# Check whether --enable-vtable-verify was given.
7428if test "${enable_vtable_verify+set}" = set; then :
7429 enableval=$enable_vtable_verify; case "$enableval" in
7430 yes) enable_vtable_verify=yes ;;
7431 no) enable_vtable_verify=no ;;
7432 *) enable_vtable_verify=no;;
7433 esac
7434else
7435 enable_vtable_verify=no
7436fi
7437
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7439$as_echo "$enable_vtable_verify" >&6; }
7440
7441# Record target_configdirs and the configure arguments for target and
7442# build configuration in Makefile.
7443target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7444build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7445bootstrap_fixincludes=no
7446
7447# If we are building libgomp, bootstrap it.
7448if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7449 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7450fi
7451
7452# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7453# or bootstrap-ubsan, bootstrap it.
7454if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7455 case "$BUILD_CONFIG" in
7456 *bootstrap-asan* | *bootstrap-ubsan* )
7457 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7458 bootstrap_fixincludes=yes
7459 ;;
7460 esac
7461fi
7462
7463# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7464if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7465 test "$enable_vtable_verify" != no; then
7466 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7467fi
7468
7469# Determine whether gdb needs tk/tcl or not.
7470# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7471# and in that case we want gdb to be built without tk. Ugh!
7472# In fact I believe gdb is the *only* package directly dependent on tk,
7473# so we should be able to put the 'maybe's in unconditionally and
7474# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7475# 100% sure that that's safe though.
7476
7477gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7478case "$enable_gdbtk" in
7479 no)
7480 GDB_TK="" ;;
7481 yes)
7482 GDB_TK="${gdb_tk}" ;;
7483 *)
7484 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7485 # distro. Eventually someone will fix this and move Insight, nee
7486 # gdbtk to a separate directory.
7487 if test -d ${srcdir}/gdb/gdbtk ; then
7488 GDB_TK="${gdb_tk}"
7489 else
7490 GDB_TK=""
7491 fi
7492 ;;
7493esac
7494CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7495INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7496
7497# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7498# else does, only include them if one of these is built. The Makefile
7499# provides the ordering, so it's enough here to add to the list.
7500case " ${configdirs} " in
7501 *\ gdb\ *)
7502 configdirs="${configdirs} gnulib gdbsupport"
7503 ;;
7504 *\ gdbserver\ *)
7505 configdirs="${configdirs} gnulib gdbsupport"
7506 ;;
7507 *\ sim\ *)
7508 configdirs="${configdirs} gnulib"
7509 ;;
7510esac
7511
7512# Strip out unwanted targets.
7513
7514# While at that, we remove Makefiles if we were started for recursive
7515# configuration, so that the top-level Makefile reconfigures them,
7516# like we used to do when configure itself was recursive.
7517
7518# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7519# but now we're fixing up the Makefile ourselves with the additional
7520# commands passed to AC_CONFIG_FILES. Use separate variables
7521# extrasub-{build,host,target} not because there is any reason to split
7522# the substitutions up that way, but only to remain below the limit of
7523# 99 commands in a script, for HP-UX sed.
7524
7525# Do not nest @if/@endif or @unless/@endunless pairs, because
7526# configure will not warn you at all.
7527
7528case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7529 yes:yes:*\ gold\ *:*,c++,*) ;;
7530 yes:yes:*\ gold\ *:*)
7531 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7532 ;;
7533esac
7534
7535extrasub_build=
7536for module in ${build_configdirs} ; do
7537 if test -z "${no_recursion}" \
7538 && test -f ${build_subdir}/${module}/Makefile; then
7539 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7540 rm -f ${build_subdir}/${module}/Makefile
7541 fi
7542 extrasub_build="$extrasub_build
7543/^@if build-$module\$/d
7544/^@endif build-$module\$/d
7545/^@unless build-$module\$/,/^@endunless build-$module\$/d
7546/^@if build-$module-$bootstrap_suffix\$/d
7547/^@endif build-$module-$bootstrap_suffix\$/d
7548/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7549done
7550extrasub_host=
7551for module in ${configdirs} ; do
7552 if test -z "${no_recursion}"; then
7553 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7554 if test -f ${file}; then
7555 echo 1>&2 "*** removing ${file} to force reconfigure"
7556 rm -f ${file}
7557 fi
7558 done
7559 fi
7560 case ${module},${bootstrap_fixincludes} in
7561 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7562 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7563 esac
7564 extrasub_host="$extrasub_host
7565/^@if $module\$/d
7566/^@endif $module\$/d
7567/^@unless $module\$/,/^@endunless $module\$/d
7568/^@if $module-$host_bootstrap_suffix\$/d
7569/^@endif $module-$host_bootstrap_suffix\$/d
7570/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7571done
7572extrasub_target=
7573for module in ${target_configdirs} ; do
7574 if test -z "${no_recursion}" \
7575 && test -f ${target_subdir}/${module}/Makefile; then
7576 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7577 rm -f ${target_subdir}/${module}/Makefile
7578 fi
7579
7580 # We only bootstrap target libraries listed in bootstrap_target_libs.
7581 case $bootstrap_target_libs in
7582 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7583 *) target_bootstrap_suffix=no-bootstrap ;;
7584 esac
7585
7586 extrasub_target="$extrasub_target
7587/^@if target-$module\$/d
7588/^@endif target-$module\$/d
7589/^@unless target-$module\$/,/^@endunless target-$module\$/d
7590/^@if target-$module-$target_bootstrap_suffix\$/d
7591/^@endif target-$module-$target_bootstrap_suffix\$/d
7592/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7593done
7594
7595# Do the final fixup along with target modules.
7596extrasub_target="$extrasub_target
7597/^@if /,/^@endif /d
7598/^@unless /d
7599/^@endunless /d"
7600
7601if test "$enable_pgo_build" != "no"; then
7602 extrasub_build="$extrasub_build
7603/^@if pgo-build\$/d
7604/^@endif pgo-build\$/d"
7605fi
7606
7607# Create the serialization dependencies. This uses a temporary file.
7608
7609# Check whether --enable-serial-configure was given.
7610if test "${enable_serial_configure+set}" = set; then :
7611 enableval=$enable_serial_configure;
7612fi
7613
7614
7615case ${enable_serial_configure} in
7616 yes)
7617 enable_serial_build_configure=yes
7618 enable_serial_host_configure=yes
7619 enable_serial_target_configure=yes
7620 ;;
7621esac
7622
7623# These force 'configure's to be done one at a time, to avoid problems
7624# with contention over a shared config.cache.
7625rm -f serdep.tmp
7626echo '# serdep.tmp' > serdep.tmp
7627olditem=
7628test "x${enable_serial_build_configure}" = xyes &&
7629for item in ${build_configdirs} ; do
7630 case ${olditem} in
7631 "") ;;
7632 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7633 esac
7634 olditem=${item}
7635done
7636olditem=
7637test "x${enable_serial_host_configure}" = xyes &&
7638for item in ${configdirs} ; do
7639 case ${olditem} in
7640 "") ;;
7641 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7642 esac
7643 olditem=${item}
7644done
7645olditem=
7646test "x${enable_serial_target_configure}" = xyes &&
7647for item in ${target_configdirs} ; do
7648 case ${olditem} in
7649 "") ;;
7650 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7651 esac
7652 olditem=${item}
7653done
7654serialization_dependencies=serdep.tmp
7655
7656
7657# Base args. Strip norecursion, cache-file, srcdir, host, build,
7658# target, nonopt, and variable assignments. These are the ones we
7659# might not want to pass down to subconfigures. The exception being
7660# --cache-file=/dev/null, which is used to turn off the use of cache
7661# files altogether, and which should be passed on to subconfigures.
7662# Also strip program-prefix, program-suffix, and program-transform-name,
7663# so that we can pass down a consistent program-transform-name.
7664baseargs=
7665tbaseargs=
7666keep_next=no
7667skip_next=no
7668eval "set -- $ac_configure_args"
7669for ac_arg
7670do
7671 if test X"$skip_next" = X"yes"; then
7672 skip_next=no
7673 continue
7674 fi
7675 if test X"$keep_next" = X"yes"; then
7676 case $ac_arg in
7677 *\'*)
7678 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7679 esac
7680 baseargs="$baseargs '$ac_arg'"
7681 tbaseargs="$tbaseargs '$ac_arg'"
7682 keep_next=no
7683 continue
7684 fi
7685
7686 # Handle separated arguments. Based on the logic generated by
7687 # autoconf 2.59.
7688 case $ac_arg in
7689 *=* | --config-cache | -C | -disable-* | --disable-* \
7690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7692 | -with-* | --with-* | -without-* | --without-* | --x)
7693 separate_arg=no
7694 ;;
7695 -*)
7696 separate_arg=yes
7697 ;;
7698 *)
7699 separate_arg=no
7700 ;;
7701 esac
7702
7703 skip_targ=no
7704 case $ac_arg in
7705
7706 --with-* | --without-*)
7707 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7708
7709 case $libopt in
7710 *[-_]include)
7711 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7712 ;;
7713 *[-_]lib)
7714 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7715 ;;
7716 *)
7717 lib=$libopt
7718 ;;
7719 esac
7720
7721
7722 case $lib in
7723 mpc | mpfr | gmp | isl)
7724 # If we're processing --with-$lib, --with-$lib-include or
7725 # --with-$lib-lib, for one of the libs above, and target is
7726 # different from host, don't pass the current argument to any
7727 # target library's configure.
7728 if test x$is_cross_compiler = xyes; then
7729 skip_targ=yes
7730 fi
7731 ;;
7732 esac
7733 ;;
7734 esac
7735
7736 case "$ac_arg" in
7737 --cache-file=/dev/null | \
7738 -cache-file=/dev/null )
7739 # Handled here to avoid the test to skip args below.
7740 baseargs="$baseargs '$ac_arg'"
7741 tbaseargs="$tbaseargs '$ac_arg'"
7742 # Assert: $separate_arg should always be no.
7743 keep_next=$separate_arg
7744 ;;
7745 --no*)
7746 continue
7747 ;;
7748 --c* | \
7749 --sr* | \
7750 --ho* | \
7751 --bu* | \
7752 --t* | \
7753 --program-* | \
7754 -cache_file* | \
7755 -srcdir* | \
7756 -host* | \
7757 -build* | \
7758 -target* | \
7759 -program-prefix* | \
7760 -program-suffix* | \
7761 -program-transform-name* )
7762 skip_next=$separate_arg
7763 continue
7764 ;;
7765 -*)
7766 # An option. Add it.
7767 case $ac_arg in
7768 *\'*)
7769 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7770 esac
7771 baseargs="$baseargs '$ac_arg'"
7772 if test X"$skip_targ" = Xno; then
7773 tbaseargs="$tbaseargs '$ac_arg'"
7774 fi
7775 keep_next=$separate_arg
7776 ;;
7777 *)
7778 # Either a variable assignment, or a nonopt (triplet). Don't
7779 # pass it down; let the Makefile handle this.
7780 continue
7781 ;;
7782 esac
7783done
7784# Remove the initial space we just introduced and, as these will be
7785# expanded by make, quote '$'.
7786baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7787
7788# Add in --program-transform-name, after --program-prefix and
7789# --program-suffix have been applied to it. Autoconf has already
7790# doubled dollar signs and backslashes in program_transform_name; we want
7791# the backslashes un-doubled, and then the entire thing wrapped in single
7792# quotes, because this will be expanded first by make and then by the shell.
7793# Also, because we want to override the logic in subdir configure scripts to
7794# choose program_transform_name, replace any s,x,x, with s,y,y,.
7795sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7796${program_transform_name}
7797EOF_SED
7798gcc_transform_name=`cat conftestsed.out`
7799rm -f conftestsed.out
7800baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7801tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7802if test "$silent" = yes; then
7803 baseargs="$baseargs --silent"
7804 tbaseargs="$tbaseargs --silent"
7805fi
7806baseargs="$baseargs --disable-option-checking"
7807tbaseargs="$tbaseargs --disable-option-checking"
7808
7809# Record and document user additions to sub configure arguments.
7810
7811
7812
7813
7814# For the build-side libraries, we just need to pretend we're native,
7815# and not use the same cache file. Multilibs are neither needed nor
7816# desired. We can't even use the same cache file for all build-side
7817# libraries, as they're compiled differently; some with C, some with
7818# C++ or with different feature-enabling options.
7819build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7820
7821# For host modules, accept cache file option, or specification as blank.
7822case "${cache_file}" in
7823"") # empty
7824 cache_file_option="" ;;
7825/* | [A-Za-z]:[\\/]* ) # absolute path
7826 cache_file_option="--cache-file=${cache_file}" ;;
7827*) # relative path
7828 cache_file_option="--cache-file=../${cache_file}" ;;
7829esac
7830
7831# Host dirs don't like to share a cache file either, horribly enough.
7832# This seems to be due to autoconf 2.5x stupidity.
7833host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7834
7835target_configargs="$target_configargs ${tbaseargs}"
7836
7837# Passing a --with-cross-host argument lets the target libraries know
7838# whether they are being built with a cross-compiler or being built
7839# native. However, it would be better to use other mechanisms to make the
7840# sorts of decisions they want to make on this basis. Please consider
7841# this option to be deprecated. FIXME.
7842if test x${is_cross_compiler} = xyes ; then
7843 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7844fi
7845
7846# Special user-friendly check for native x86_64-linux build, if
7847# multilib is not explicitly enabled.
7848case "$target:$have_compiler:$host:$target:$enable_multilib" in
7849 x86_64-*linux*:yes:$build:$build:)
7850 # Make sure we have a development environment that handles 32-bit
7851 dev64=no
7852 echo "int main () { return 0; }" > conftest.c
7853 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7854 if test $? = 0 ; then
7855 if test -s conftest || test -s conftest.exe ; then
7856 dev64=yes
7857 fi
7858 fi
7859 rm -f conftest*
7860 if test x${dev64} != xyes ; then
7861 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
7862 fi
7863 ;;
7864esac
7865
7866# Default to --enable-multilib.
7867if test x${enable_multilib} = x ; then
7868 target_configargs="--enable-multilib ${target_configargs}"
7869fi
7870
7871# Pass --with-newlib if appropriate. Note that target_configdirs has
7872# changed from the earlier setting of with_newlib.
7873if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7874 target_configargs="--with-newlib ${target_configargs}"
7875fi
7876
7877# Different target subdirs use different values of certain variables
7878# (notably CXX). Worse, multilibs use *lots* of different values.
7879# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7880# it doesn't automatically accept command-line overrides of them.
7881# This means it's not safe for target subdirs to share a cache file,
7882# which is disgusting, but there you have it. Hopefully this can be
7883# fixed in future. It's still worthwhile to use a cache file for each
7884# directory. I think.
7885
7886# Pass the appropriate --build, --host, --target and --cache-file arguments.
7887# We need to pass --target, as newer autoconf's requires consistency
7888# for target_alias and gcc doesn't manage it consistently.
7889target_configargs="--cache-file=./config.cache ${target_configargs}"
7890
7891FLAGS_FOR_TARGET=
7892case " $target_configdirs " in
7893 *" newlib "*)
7894 case " $target_configargs " in
7895 *" --with-newlib "*)
7896 case "$target" in
7897 *-cygwin*)
7898 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7899 ;;
7900 esac
7901
7902 # If we're not building GCC, don't discard standard headers.
7903 if test -d ${srcdir}/gcc; then
7904 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7905
7906 if test "${build}" != "${host}"; then
7907 # On Canadian crosses, CC_FOR_TARGET will have already been set
7908 # by `configure', so we won't have an opportunity to add -Bgcc/
7909 # to it. This is right: we don't want to search that directory
7910 # for binaries, but we want the header files in there, so add
7911 # them explicitly.
7912 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7913
7914 # Someone might think of using the pre-installed headers on
7915 # Canadian crosses, in case the installed compiler is not fully
7916 # compatible with the compiler being built. In this case, it
7917 # would be better to flag an error than risking having
7918 # incompatible object files being constructed. We can't
7919 # guarantee that an error will be flagged, but let's hope the
7920 # compiler will do it, when presented with incompatible header
7921 # files.
7922 fi
7923 fi
7924
7925 case "${target}-${is_cross_compiler}" in
7926 i[3456789]86-*-linux*-no)
7927 # Here host == target, so we don't need to build gcc,
7928 # so we don't want to discard standard headers.
7929 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7930 ;;
7931 *)
7932 # If we're building newlib, use its generic headers last, but search
7933 # for any libc-related directories first (so make it the last -B
7934 # switch).
7935 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7936
7937 # If we're building libgloss, find the startup file, simulator library
7938 # and linker script.
7939 case " $target_configdirs " in
7940 *" libgloss "*)
7941 # Look for startup file, simulator library and maybe linker script.
7942 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7943 # Look for libnosys.a in case the target needs it.
7944 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7945 # Most targets have the linker script in the source directory.
7946 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7947 ;;
7948 esac
7949 ;;
7950 esac
7951 ;;
7952 esac
7953 ;;
7954esac
7955
7956case "$target" in
7957 x86_64-*mingw* | *-w64-mingw*)
7958 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7959 # however, use a symlink named 'mingw' in ${prefix} .
7960 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7961 ;;
7962 *-mingw*)
7963 # MinGW can't be handled as Cygwin above since it does not use newlib.
7964 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'
7965 ;;
7966esac
7967
7968# Allow the user to override the flags for
7969# our build compiler if desired.
7970if test x"${build}" = x"${host}" ; then
7971 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7972 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7973 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7974fi
7975
7976# On Canadian crosses, we'll be searching the right directories for
7977# the previously-installed cross compiler, so don't bother to add
7978# flags for directories within the install tree of the compiler
7979# being built; programs in there won't even run.
7980if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7981 # Search for pre-installed headers if nothing else fits.
7982 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7983fi
7984
7985if test "x${use_gnu_ld}" = x &&
7986 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7987 # Arrange for us to find uninstalled linker scripts.
7988 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7989fi
7990
7991# Search for other target-specific linker scripts and such.
7992case "${target}" in
7993 mep*)
7994 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7995 ;;
7996esac
7997
7998# Makefile fragments.
7999for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8000do
8001 eval fragval=\$$frag
8002 if test $fragval != /dev/null; then
8003 eval $frag=${srcdir}/$fragval
8004 fi
8005done
8006
8007
8008
8009
8010
8011# Miscellanea: directories, flags, etc.
8012
8013
8014
8015
8016
8017
8018
8019
8020# Build module lists & subconfigure args.
8021
8022
8023
8024# Host module lists & subconfigure args.
8025
8026
8027
8028
8029# Target module lists & subconfigure args.
8030
8031
8032
8033# Build tools.
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050# Generate default definitions for YACC, M4, LEX and other programs that run
8051# on the build machine. These are used if the Makefile can't locate these
8052# programs in objdir.
8053MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8054
8055for ac_prog in 'bison -y' byacc yacc
8056do
8057 # Extract the first word of "$ac_prog", so it can be a program name with args.
8058set dummy $ac_prog; ac_word=$2
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060$as_echo_n "checking for $ac_word... " >&6; }
8061if ${ac_cv_prog_YACC+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063else
8064 if test -n "$YACC"; then
8065 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8066else
8067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068for as_dir in $PATH
8069do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_YACC="$ac_prog"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078done
8079 done
8080IFS=$as_save_IFS
8081
8082fi
8083fi
8084YACC=$ac_cv_prog_YACC
8085if test -n "$YACC"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8087$as_echo "$YACC" >&6; }
8088else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090$as_echo "no" >&6; }
8091fi
8092
8093
8094 test -n "$YACC" && break
8095done
8096test -n "$YACC" || YACC="$MISSING bison -y"
8097
8098case " $build_configdirs " in
8099 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8100esac
8101
8102for ac_prog in bison
8103do
8104 # Extract the first word of "$ac_prog", so it can be a program name with args.
8105set dummy $ac_prog; ac_word=$2
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107$as_echo_n "checking for $ac_word... " >&6; }
8108if ${ac_cv_prog_BISON+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110else
8111 if test -n "$BISON"; then
8112 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_BISON="$ac_prog"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125done
8126 done
8127IFS=$as_save_IFS
8128
8129fi
8130fi
8131BISON=$ac_cv_prog_BISON
8132if test -n "$BISON"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8134$as_echo "$BISON" >&6; }
8135else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
8138fi
8139
8140
8141 test -n "$BISON" && break
8142done
8143test -n "$BISON" || BISON="$MISSING bison"
8144
8145case " $build_configdirs " in
8146 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8147esac
8148
8149for ac_prog in gm4 gnum4 m4
8150do
8151 # Extract the first word of "$ac_prog", so it can be a program name with args.
8152set dummy $ac_prog; ac_word=$2
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if ${ac_cv_prog_M4+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157else
8158 if test -n "$M4"; then
8159 ac_cv_prog_M4="$M4" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_M4="$ac_prog"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8171 fi
8172done
8173 done
8174IFS=$as_save_IFS
8175
8176fi
8177fi
8178M4=$ac_cv_prog_M4
8179if test -n "$M4"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8181$as_echo "$M4" >&6; }
8182else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184$as_echo "no" >&6; }
8185fi
8186
8187
8188 test -n "$M4" && break
8189done
8190test -n "$M4" || M4="$MISSING m4"
8191
8192case " $build_configdirs " in
8193 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8194esac
8195
8196for ac_prog in flex lex
8197do
8198 # Extract the first word of "$ac_prog", so it can be a program name with args.
8199set dummy $ac_prog; ac_word=$2
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
8202if ${ac_cv_prog_LEX+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204else
8205 if test -n "$LEX"; then
8206 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_LEX="$ac_prog"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219done
8220 done
8221IFS=$as_save_IFS
8222
8223fi
8224fi
8225LEX=$ac_cv_prog_LEX
8226if test -n "$LEX"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8228$as_echo "$LEX" >&6; }
8229else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
8232fi
8233
8234
8235 test -n "$LEX" && break
8236done
8237test -n "$LEX" || LEX="$MISSING flex"
8238
8239case " $build_configdirs " in
8240 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8241 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8242esac
8243
8244for ac_prog in flex
8245do
8246 # Extract the first word of "$ac_prog", so it can be a program name with args.
8247set dummy $ac_prog; ac_word=$2
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if ${ac_cv_prog_FLEX+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252else
8253 if test -n "$FLEX"; then
8254 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263 ac_cv_prog_FLEX="$ac_prog"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267done
8268 done
8269IFS=$as_save_IFS
8270
8271fi
8272fi
8273FLEX=$ac_cv_prog_FLEX
8274if test -n "$FLEX"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8276$as_echo "$FLEX" >&6; }
8277else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281
8282
8283 test -n "$FLEX" && break
8284done
8285test -n "$FLEX" || FLEX="$MISSING flex"
8286
8287case " $build_configdirs " in
8288 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8289esac
8290
8291for ac_prog in makeinfo
8292do
8293 # Extract the first word of "$ac_prog", so it can be a program name with args.
8294set dummy $ac_prog; ac_word=$2
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296$as_echo_n "checking for $ac_word... " >&6; }
8297if ${ac_cv_prog_MAKEINFO+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299else
8300 if test -n "$MAKEINFO"; then
8301 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8302else
8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304for as_dir in $PATH
8305do
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_MAKEINFO="$ac_prog"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314done
8315 done
8316IFS=$as_save_IFS
8317
8318fi
8319fi
8320MAKEINFO=$ac_cv_prog_MAKEINFO
8321if test -n "$MAKEINFO"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8323$as_echo "$MAKEINFO" >&6; }
8324else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326$as_echo "no" >&6; }
8327fi
8328
8329
8330 test -n "$MAKEINFO" && break
8331done
8332test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8333
8334case " $build_configdirs " in
8335 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8336 *)
8337
8338 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8339 # higher, else we use the "missing" dummy.
8340 if ${MAKEINFO} --version \
8341 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8342 :
8343 else
8344 MAKEINFO="$MISSING makeinfo"
8345 fi
8346 ;;
8347
8348esac
8349
8350# FIXME: expect and dejagnu may become build tools?
8351
8352for ac_prog in expect
8353do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355set dummy $ac_prog; ac_word=$2
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357$as_echo_n "checking for $ac_word... " >&6; }
8358if ${ac_cv_prog_EXPECT+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$EXPECT"; then
8362 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_EXPECT="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376 done
8377IFS=$as_save_IFS
8378
8379fi
8380fi
8381EXPECT=$ac_cv_prog_EXPECT
8382if test -n "$EXPECT"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8384$as_echo "$EXPECT" >&6; }
8385else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387$as_echo "no" >&6; }
8388fi
8389
8390
8391 test -n "$EXPECT" && break
8392done
8393test -n "$EXPECT" || EXPECT="expect"
8394
8395case " $configdirs " in
8396 *" expect "*)
8397 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8398 ;;
8399esac
8400
8401for ac_prog in runtest
8402do
8403 # Extract the first word of "$ac_prog", so it can be a program name with args.
8404set dummy $ac_prog; ac_word=$2
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
8407if ${ac_cv_prog_RUNTEST+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409else
8410 if test -n "$RUNTEST"; then
8411 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_prog_RUNTEST="$ac_prog"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424done
8425 done
8426IFS=$as_save_IFS
8427
8428fi
8429fi
8430RUNTEST=$ac_cv_prog_RUNTEST
8431if test -n "$RUNTEST"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8433$as_echo "$RUNTEST" >&6; }
8434else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
8437fi
8438
8439
8440 test -n "$RUNTEST" && break
8441done
8442test -n "$RUNTEST" || RUNTEST="runtest"
8443
8444case " $configdirs " in
8445 *" dejagnu "*)
8446 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8447 ;;
8448esac
8449
8450
8451# Host tools.
8452ncn_tool_prefix=
8453test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8454ncn_target_tool_prefix=
8455test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8456
8457
8458
8459if test -n "$AR"; then
8460 ac_cv_prog_AR=$AR
8461elif test -n "$ac_cv_prog_AR"; then
8462 AR=$ac_cv_prog_AR
8463fi
8464
8465if test -n "$ac_cv_prog_AR"; then
8466 for ncn_progname in ar; do
8467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8468set dummy ${ncn_progname}; ac_word=$2
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470$as_echo_n "checking for $ac_word... " >&6; }
8471if ${ac_cv_prog_AR+:} false; then :
8472 $as_echo_n "(cached) " >&6
8473else
8474 if test -n "$AR"; then
8475 ac_cv_prog_AR="$AR" # Let the user override the test.
8476else
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_AR="${ncn_progname}"
8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488done
8489 done
8490IFS=$as_save_IFS
8491
8492fi
8493fi
8494AR=$ac_cv_prog_AR
8495if test -n "$AR"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8497$as_echo "$AR" >&6; }
8498else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501fi
8502
8503
8504 done
8505fi
8506
8507for ncn_progname in ar; do
8508 if test -n "$ncn_tool_prefix"; then
8509 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8510set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512$as_echo_n "checking for $ac_word... " >&6; }
8513if ${ac_cv_prog_AR+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515else
8516 if test -n "$AR"; then
8517 ac_cv_prog_AR="$AR" # Let the user override the test.
8518else
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530done
8531 done
8532IFS=$as_save_IFS
8533
8534fi
8535fi
8536AR=$ac_cv_prog_AR
8537if test -n "$AR"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8539$as_echo "$AR" >&6; }
8540else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543fi
8544
8545
8546 fi
8547 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8549set dummy ${ncn_progname}; ac_word=$2
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551$as_echo_n "checking for $ac_word... " >&6; }
8552if ${ac_cv_prog_AR+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554else
8555 if test -n "$AR"; then
8556 ac_cv_prog_AR="$AR" # Let the user override the test.
8557else
8558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559for as_dir in $PATH
8560do
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565 ac_cv_prog_AR="${ncn_progname}"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8568 fi
8569done
8570 done
8571IFS=$as_save_IFS
8572
8573fi
8574fi
8575AR=$ac_cv_prog_AR
8576if test -n "$AR"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8578$as_echo "$AR" >&6; }
8579else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582fi
8583
8584
8585 fi
8586 test -n "$ac_cv_prog_AR" && break
8587done
8588
8589if test -z "$ac_cv_prog_AR" ; then
8590 set dummy ar
8591 if test $build = $host ; then
8592 AR="$2"
8593 else
8594 AR="${ncn_tool_prefix}$2"
8595 fi
8596fi
8597
8598
8599
8600if test -n "$AS"; then
8601 ac_cv_prog_AS=$AS
8602elif test -n "$ac_cv_prog_AS"; then
8603 AS=$ac_cv_prog_AS
8604fi
8605
8606if test -n "$ac_cv_prog_AS"; then
8607 for ncn_progname in as; do
8608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8609set dummy ${ncn_progname}; ac_word=$2
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611$as_echo_n "checking for $ac_word... " >&6; }
8612if ${ac_cv_prog_AS+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614else
8615 if test -n "$AS"; then
8616 ac_cv_prog_AS="$AS" # Let the user override the test.
8617else
8618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619for as_dir in $PATH
8620do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8625 ac_cv_prog_AS="${ncn_progname}"
8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8628 fi
8629done
8630 done
8631IFS=$as_save_IFS
8632
8633fi
8634fi
8635AS=$ac_cv_prog_AS
8636if test -n "$AS"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8638$as_echo "$AS" >&6; }
8639else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
8642fi
8643
8644
8645 done
8646fi
8647
8648for ncn_progname in as; do
8649 if test -n "$ncn_tool_prefix"; then
8650 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8651set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
8654if ${ac_cv_prog_AS+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656else
8657 if test -n "$AS"; then
8658 ac_cv_prog_AS="$AS" # Let the user override the test.
8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671done
8672 done
8673IFS=$as_save_IFS
8674
8675fi
8676fi
8677AS=$ac_cv_prog_AS
8678if test -n "$AS"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8680$as_echo "$AS" >&6; }
8681else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
8684fi
8685
8686
8687 fi
8688 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8690set dummy ${ncn_progname}; ac_word=$2
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692$as_echo_n "checking for $ac_word... " >&6; }
8693if ${ac_cv_prog_AS+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695else
8696 if test -n "$AS"; then
8697 ac_cv_prog_AS="$AS" # Let the user override the test.
8698else
8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706 ac_cv_prog_AS="${ncn_progname}"
8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 break 2
8709 fi
8710done
8711 done
8712IFS=$as_save_IFS
8713
8714fi
8715fi
8716AS=$ac_cv_prog_AS
8717if test -n "$AS"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8719$as_echo "$AS" >&6; }
8720else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722$as_echo "no" >&6; }
8723fi
8724
8725
8726 fi
8727 test -n "$ac_cv_prog_AS" && break
8728done
8729
8730if test -z "$ac_cv_prog_AS" ; then
8731 set dummy as
8732 if test $build = $host ; then
8733 AS="$2"
8734 else
8735 AS="${ncn_tool_prefix}$2"
8736 fi
8737fi
8738
8739
8740
8741if test -n "$DLLTOOL"; then
8742 ac_cv_prog_DLLTOOL=$DLLTOOL
8743elif test -n "$ac_cv_prog_DLLTOOL"; then
8744 DLLTOOL=$ac_cv_prog_DLLTOOL
8745fi
8746
8747if test -n "$ac_cv_prog_DLLTOOL"; then
8748 for ncn_progname in dlltool; do
8749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8750set dummy ${ncn_progname}; ac_word=$2
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752$as_echo_n "checking for $ac_word... " >&6; }
8753if ${ac_cv_prog_DLLTOOL+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755else
8756 if test -n "$DLLTOOL"; then
8757 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8758else
8759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_prog_DLLTOOL="${ncn_progname}"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8769 fi
8770done
8771 done
8772IFS=$as_save_IFS
8773
8774fi
8775fi
8776DLLTOOL=$ac_cv_prog_DLLTOOL
8777if test -n "$DLLTOOL"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8779$as_echo "$DLLTOOL" >&6; }
8780else
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782$as_echo "no" >&6; }
8783fi
8784
8785
8786 done
8787fi
8788
8789for ncn_progname in dlltool; do
8790 if test -n "$ncn_tool_prefix"; then
8791 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8792set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794$as_echo_n "checking for $ac_word... " >&6; }
8795if ${ac_cv_prog_DLLTOOL+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797else
8798 if test -n "$DLLTOOL"; then
8799 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8800else
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8811 fi
8812done
8813 done
8814IFS=$as_save_IFS
8815
8816fi
8817fi
8818DLLTOOL=$ac_cv_prog_DLLTOOL
8819if test -n "$DLLTOOL"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8821$as_echo "$DLLTOOL" >&6; }
8822else
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824$as_echo "no" >&6; }
8825fi
8826
8827
8828 fi
8829 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8831set dummy ${ncn_progname}; ac_word=$2
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833$as_echo_n "checking for $ac_word... " >&6; }
8834if ${ac_cv_prog_DLLTOOL+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836else
8837 if test -n "$DLLTOOL"; then
8838 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8839else
8840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841for as_dir in $PATH
8842do
8843 IFS=$as_save_IFS
8844 test -z "$as_dir" && as_dir=.
8845 for ac_exec_ext in '' $ac_executable_extensions; do
8846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8847 ac_cv_prog_DLLTOOL="${ncn_progname}"
8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 break 2
8850 fi
8851done
8852 done
8853IFS=$as_save_IFS
8854
8855fi
8856fi
8857DLLTOOL=$ac_cv_prog_DLLTOOL
8858if test -n "$DLLTOOL"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8860$as_echo "$DLLTOOL" >&6; }
8861else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863$as_echo "no" >&6; }
8864fi
8865
8866
8867 fi
8868 test -n "$ac_cv_prog_DLLTOOL" && break
8869done
8870
8871if test -z "$ac_cv_prog_DLLTOOL" ; then
8872 set dummy dlltool
8873 if test $build = $host ; then
8874 DLLTOOL="$2"
8875 else
8876 DLLTOOL="${ncn_tool_prefix}$2"
8877 fi
8878fi
8879
8880
8881
8882if test -n "$LD"; then
8883 ac_cv_prog_LD=$LD
8884elif test -n "$ac_cv_prog_LD"; then
8885 LD=$ac_cv_prog_LD
8886fi
8887
8888if test -n "$ac_cv_prog_LD"; then
8889 for ncn_progname in ld; do
8890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8891set dummy ${ncn_progname}; ac_word=$2
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893$as_echo_n "checking for $ac_word... " >&6; }
8894if ${ac_cv_prog_LD+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896else
8897 if test -n "$LD"; then
8898 ac_cv_prog_LD="$LD" # Let the user override the test.
8899else
8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901for as_dir in $PATH
8902do
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907 ac_cv_prog_LD="${ncn_progname}"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 break 2
8910 fi
8911done
8912 done
8913IFS=$as_save_IFS
8914
8915fi
8916fi
8917LD=$ac_cv_prog_LD
8918if test -n "$LD"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8920$as_echo "$LD" >&6; }
8921else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923$as_echo "no" >&6; }
8924fi
8925
8926
8927 done
8928fi
8929
8930for ncn_progname in ld; do
8931 if test -n "$ncn_tool_prefix"; then
8932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8933set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935$as_echo_n "checking for $ac_word... " >&6; }
8936if ${ac_cv_prog_LD+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 if test -n "$LD"; then
8940 ac_cv_prog_LD="$LD" # Let the user override the test.
8941else
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8949 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 break 2
8952 fi
8953done
8954 done
8955IFS=$as_save_IFS
8956
8957fi
8958fi
8959LD=$ac_cv_prog_LD
8960if test -n "$LD"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8962$as_echo "$LD" >&6; }
8963else
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965$as_echo "no" >&6; }
8966fi
8967
8968
8969 fi
8970 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8972set dummy ${ncn_progname}; ac_word=$2
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974$as_echo_n "checking for $ac_word... " >&6; }
8975if ${ac_cv_prog_LD+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977else
8978 if test -n "$LD"; then
8979 ac_cv_prog_LD="$LD" # Let the user override the test.
8980else
8981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982for as_dir in $PATH
8983do
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8988 ac_cv_prog_LD="${ncn_progname}"
8989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8991 fi
8992done
8993 done
8994IFS=$as_save_IFS
8995
8996fi
8997fi
8998LD=$ac_cv_prog_LD
8999if test -n "$LD"; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9001$as_echo "$LD" >&6; }
9002else
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004$as_echo "no" >&6; }
9005fi
9006
9007
9008 fi
9009 test -n "$ac_cv_prog_LD" && break
9010done
9011
9012if test -z "$ac_cv_prog_LD" ; then
9013 set dummy ld
9014 if test $build = $host ; then
9015 LD="$2"
9016 else
9017 LD="${ncn_tool_prefix}$2"
9018 fi
9019fi
9020
9021
9022
9023if test -n "$LIPO"; then
9024 ac_cv_prog_LIPO=$LIPO
9025elif test -n "$ac_cv_prog_LIPO"; then
9026 LIPO=$ac_cv_prog_LIPO
9027fi
9028
9029if test -n "$ac_cv_prog_LIPO"; then
9030 for ncn_progname in lipo; do
9031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9032set dummy ${ncn_progname}; ac_word=$2
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034$as_echo_n "checking for $ac_word... " >&6; }
9035if ${ac_cv_prog_LIPO+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037else
9038 if test -n "$LIPO"; then
9039 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9040else
9041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042for as_dir in $PATH
9043do
9044 IFS=$as_save_IFS
9045 test -z "$as_dir" && as_dir=.
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9048 ac_cv_prog_LIPO="${ncn_progname}"
9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050 break 2
9051 fi
9052done
9053 done
9054IFS=$as_save_IFS
9055
9056fi
9057fi
9058LIPO=$ac_cv_prog_LIPO
9059if test -n "$LIPO"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9061$as_echo "$LIPO" >&6; }
9062else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064$as_echo "no" >&6; }
9065fi
9066
9067
9068 done
9069fi
9070
9071for ncn_progname in lipo; do
9072 if test -n "$ncn_tool_prefix"; then
9073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9074set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076$as_echo_n "checking for $ac_word... " >&6; }
9077if ${ac_cv_prog_LIPO+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079else
9080 if test -n "$LIPO"; then
9081 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9082else
9083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084for as_dir in $PATH
9085do
9086 IFS=$as_save_IFS
9087 test -z "$as_dir" && as_dir=.
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9090 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9092 break 2
9093 fi
9094done
9095 done
9096IFS=$as_save_IFS
9097
9098fi
9099fi
9100LIPO=$ac_cv_prog_LIPO
9101if test -n "$LIPO"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9103$as_echo "$LIPO" >&6; }
9104else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106$as_echo "no" >&6; }
9107fi
9108
9109
9110 fi
9111 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113set dummy ${ncn_progname}; ac_word=$2
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115$as_echo_n "checking for $ac_word... " >&6; }
9116if ${ac_cv_prog_LIPO+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118else
9119 if test -n "$LIPO"; then
9120 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9121else
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129 ac_cv_prog_LIPO="${ncn_progname}"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9132 fi
9133done
9134 done
9135IFS=$as_save_IFS
9136
9137fi
9138fi
9139LIPO=$ac_cv_prog_LIPO
9140if test -n "$LIPO"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9142$as_echo "$LIPO" >&6; }
9143else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
9146fi
9147
9148
9149 fi
9150 test -n "$ac_cv_prog_LIPO" && break
9151done
9152
9153if test -z "$ac_cv_prog_LIPO" ; then
9154 set dummy lipo
9155 if test $build = $host ; then
9156 LIPO="$2"
9157 else
9158 LIPO="${ncn_tool_prefix}$2"
9159 fi
9160fi
9161
9162
9163
9164if test -n "$NM"; then
9165 ac_cv_prog_NM=$NM
9166elif test -n "$ac_cv_prog_NM"; then
9167 NM=$ac_cv_prog_NM
9168fi
9169
9170if test -n "$ac_cv_prog_NM"; then
9171 for ncn_progname in nm; do
9172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_progname}; ac_word=$2
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175$as_echo_n "checking for $ac_word... " >&6; }
9176if ${ac_cv_prog_NM+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178else
9179 if test -n "$NM"; then
9180 ac_cv_prog_NM="$NM" # Let the user override the test.
9181else
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9189 ac_cv_prog_NM="${ncn_progname}"
9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9192 fi
9193done
9194 done
9195IFS=$as_save_IFS
9196
9197fi
9198fi
9199NM=$ac_cv_prog_NM
9200if test -n "$NM"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9202$as_echo "$NM" >&6; }
9203else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
9206fi
9207
9208
9209 done
9210fi
9211
9212for ncn_progname in nm; do
9213 if test -n "$ncn_tool_prefix"; then
9214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9215set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
9218if ${ac_cv_prog_NM+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220else
9221 if test -n "$NM"; then
9222 ac_cv_prog_NM="$NM" # Let the user override the test.
9223else
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9234 fi
9235done
9236 done
9237IFS=$as_save_IFS
9238
9239fi
9240fi
9241NM=$ac_cv_prog_NM
9242if test -n "$NM"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9244$as_echo "$NM" >&6; }
9245else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247$as_echo "no" >&6; }
9248fi
9249
9250
9251 fi
9252 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9254set dummy ${ncn_progname}; ac_word=$2
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256$as_echo_n "checking for $ac_word... " >&6; }
9257if ${ac_cv_prog_NM+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259else
9260 if test -n "$NM"; then
9261 ac_cv_prog_NM="$NM" # Let the user override the test.
9262else
9263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264for as_dir in $PATH
9265do
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9270 ac_cv_prog_NM="${ncn_progname}"
9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 break 2
9273 fi
9274done
9275 done
9276IFS=$as_save_IFS
9277
9278fi
9279fi
9280NM=$ac_cv_prog_NM
9281if test -n "$NM"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9283$as_echo "$NM" >&6; }
9284else
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286$as_echo "no" >&6; }
9287fi
9288
9289
9290 fi
9291 test -n "$ac_cv_prog_NM" && break
9292done
9293
9294if test -z "$ac_cv_prog_NM" ; then
9295 set dummy nm
9296 if test $build = $host ; then
9297 NM="$2"
9298 else
9299 NM="${ncn_tool_prefix}$2"
9300 fi
9301fi
9302
9303
9304
9305if test -n "$RANLIB"; then
9306 ac_cv_prog_RANLIB=$RANLIB
9307elif test -n "$ac_cv_prog_RANLIB"; then
9308 RANLIB=$ac_cv_prog_RANLIB
9309fi
9310
9311if test -n "$ac_cv_prog_RANLIB"; then
9312 for ncn_progname in ranlib; do
9313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9314set dummy ${ncn_progname}; ac_word=$2
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316$as_echo_n "checking for $ac_word... " >&6; }
9317if ${ac_cv_prog_RANLIB+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319else
9320 if test -n "$RANLIB"; then
9321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9322else
9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9330 ac_cv_prog_RANLIB="${ncn_progname}"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9333 fi
9334done
9335 done
9336IFS=$as_save_IFS
9337
9338fi
9339fi
9340RANLIB=$ac_cv_prog_RANLIB
9341if test -n "$RANLIB"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9343$as_echo "$RANLIB" >&6; }
9344else
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
9347fi
9348
9349
9350 done
9351fi
9352
9353for ncn_progname in ranlib; do
9354 if test -n "$ncn_tool_prefix"; then
9355 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9356set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358$as_echo_n "checking for $ac_word... " >&6; }
9359if ${ac_cv_prog_RANLIB+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361else
9362 if test -n "$RANLIB"; then
9363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9364else
9365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $PATH
9367do
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9372 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9375 fi
9376done
9377 done
9378IFS=$as_save_IFS
9379
9380fi
9381fi
9382RANLIB=$ac_cv_prog_RANLIB
9383if test -n "$RANLIB"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9385$as_echo "$RANLIB" >&6; }
9386else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
9389fi
9390
9391
9392 fi
9393 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9395set dummy ${ncn_progname}; ac_word=$2
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397$as_echo_n "checking for $ac_word... " >&6; }
9398if ${ac_cv_prog_RANLIB+:} false; then :
9399 $as_echo_n "(cached) " >&6
9400else
9401 if test -n "$RANLIB"; then
9402 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9403else
9404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405for as_dir in $PATH
9406do
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9411 ac_cv_prog_RANLIB="${ncn_progname}"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9414 fi
9415done
9416 done
9417IFS=$as_save_IFS
9418
9419fi
9420fi
9421RANLIB=$ac_cv_prog_RANLIB
9422if test -n "$RANLIB"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9424$as_echo "$RANLIB" >&6; }
9425else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427$as_echo "no" >&6; }
9428fi
9429
9430
9431 fi
9432 test -n "$ac_cv_prog_RANLIB" && break
9433done
9434
9435if test -z "$ac_cv_prog_RANLIB" ; then
9436 RANLIB="true"
9437fi
9438
9439
9440
9441if test -n "$STRIP"; then
9442 ac_cv_prog_STRIP=$STRIP
9443elif test -n "$ac_cv_prog_STRIP"; then
9444 STRIP=$ac_cv_prog_STRIP
9445fi
9446
9447if test -n "$ac_cv_prog_STRIP"; then
9448 for ncn_progname in strip; do
9449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9450set dummy ${ncn_progname}; ac_word=$2
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452$as_echo_n "checking for $ac_word... " >&6; }
9453if ${ac_cv_prog_STRIP+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455else
9456 if test -n "$STRIP"; then
9457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9466 ac_cv_prog_STRIP="${ncn_progname}"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9469 fi
9470done
9471 done
9472IFS=$as_save_IFS
9473
9474fi
9475fi
9476STRIP=$ac_cv_prog_STRIP
9477if test -n "$STRIP"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9479$as_echo "$STRIP" >&6; }
9480else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482$as_echo "no" >&6; }
9483fi
9484
9485
9486 done
9487fi
9488
9489for ncn_progname in strip; do
9490 if test -n "$ncn_tool_prefix"; then
9491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9492set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494$as_echo_n "checking for $ac_word... " >&6; }
9495if ${ac_cv_prog_STRIP+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497else
9498 if test -n "$STRIP"; then
9499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9500else
9501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502for as_dir in $PATH
9503do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9508 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9511 fi
9512done
9513 done
9514IFS=$as_save_IFS
9515
9516fi
9517fi
9518STRIP=$ac_cv_prog_STRIP
9519if test -n "$STRIP"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9521$as_echo "$STRIP" >&6; }
9522else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524$as_echo "no" >&6; }
9525fi
9526
9527
9528 fi
9529 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531set dummy ${ncn_progname}; ac_word=$2
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
9534if ${ac_cv_prog_STRIP+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536else
9537 if test -n "$STRIP"; then
9538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_prog_STRIP="${ncn_progname}"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551done
9552 done
9553IFS=$as_save_IFS
9554
9555fi
9556fi
9557STRIP=$ac_cv_prog_STRIP
9558if test -n "$STRIP"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9560$as_echo "$STRIP" >&6; }
9561else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563$as_echo "no" >&6; }
9564fi
9565
9566
9567 fi
9568 test -n "$ac_cv_prog_STRIP" && break
9569done
9570
9571if test -z "$ac_cv_prog_STRIP" ; then
9572 STRIP="true"
9573fi
9574
9575
9576
9577if test -n "$WINDRES"; then
9578 ac_cv_prog_WINDRES=$WINDRES
9579elif test -n "$ac_cv_prog_WINDRES"; then
9580 WINDRES=$ac_cv_prog_WINDRES
9581fi
9582
9583if test -n "$ac_cv_prog_WINDRES"; then
9584 for ncn_progname in windres; do
9585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9586set dummy ${ncn_progname}; ac_word=$2
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588$as_echo_n "checking for $ac_word... " >&6; }
9589if ${ac_cv_prog_WINDRES+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591else
9592 if test -n "$WINDRES"; then
9593 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9594else
9595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596for as_dir in $PATH
9597do
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602 ac_cv_prog_WINDRES="${ncn_progname}"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9605 fi
9606done
9607 done
9608IFS=$as_save_IFS
9609
9610fi
9611fi
9612WINDRES=$ac_cv_prog_WINDRES
9613if test -n "$WINDRES"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9615$as_echo "$WINDRES" >&6; }
9616else
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618$as_echo "no" >&6; }
9619fi
9620
9621
9622 done
9623fi
9624
9625for ncn_progname in windres; do
9626 if test -n "$ncn_tool_prefix"; then
9627 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9628set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630$as_echo_n "checking for $ac_word... " >&6; }
9631if ${ac_cv_prog_WINDRES+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633else
9634 if test -n "$WINDRES"; then
9635 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9636else
9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638for as_dir in $PATH
9639do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9644 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9647 fi
9648done
9649 done
9650IFS=$as_save_IFS
9651
9652fi
9653fi
9654WINDRES=$ac_cv_prog_WINDRES
9655if test -n "$WINDRES"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9657$as_echo "$WINDRES" >&6; }
9658else
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660$as_echo "no" >&6; }
9661fi
9662
9663
9664 fi
9665 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9667set dummy ${ncn_progname}; ac_word=$2
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669$as_echo_n "checking for $ac_word... " >&6; }
9670if ${ac_cv_prog_WINDRES+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672else
9673 if test -n "$WINDRES"; then
9674 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9675else
9676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677for as_dir in $PATH
9678do
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9683 ac_cv_prog_WINDRES="${ncn_progname}"
9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 break 2
9686 fi
9687done
9688 done
9689IFS=$as_save_IFS
9690
9691fi
9692fi
9693WINDRES=$ac_cv_prog_WINDRES
9694if test -n "$WINDRES"; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9696$as_echo "$WINDRES" >&6; }
9697else
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699$as_echo "no" >&6; }
9700fi
9701
9702
9703 fi
9704 test -n "$ac_cv_prog_WINDRES" && break
9705done
9706
9707if test -z "$ac_cv_prog_WINDRES" ; then
9708 set dummy windres
9709 if test $build = $host ; then
9710 WINDRES="$2"
9711 else
9712 WINDRES="${ncn_tool_prefix}$2"
9713 fi
9714fi
9715
9716
9717
9718if test -n "$WINDMC"; then
9719 ac_cv_prog_WINDMC=$WINDMC
9720elif test -n "$ac_cv_prog_WINDMC"; then
9721 WINDMC=$ac_cv_prog_WINDMC
9722fi
9723
9724if test -n "$ac_cv_prog_WINDMC"; then
9725 for ncn_progname in windmc; do
9726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9727set dummy ${ncn_progname}; ac_word=$2
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729$as_echo_n "checking for $ac_word... " >&6; }
9730if ${ac_cv_prog_WINDMC+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732else
9733 if test -n "$WINDMC"; then
9734 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9735else
9736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737for as_dir in $PATH
9738do
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743 ac_cv_prog_WINDMC="${ncn_progname}"
9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 break 2
9746 fi
9747done
9748 done
9749IFS=$as_save_IFS
9750
9751fi
9752fi
9753WINDMC=$ac_cv_prog_WINDMC
9754if test -n "$WINDMC"; then
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9756$as_echo "$WINDMC" >&6; }
9757else
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9759$as_echo "no" >&6; }
9760fi
9761
9762
9763 done
9764fi
9765
9766for ncn_progname in windmc; do
9767 if test -n "$ncn_tool_prefix"; then
9768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9769set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771$as_echo_n "checking for $ac_word... " >&6; }
9772if ${ac_cv_prog_WINDMC+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774else
9775 if test -n "$WINDMC"; then
9776 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9777else
9778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9788 fi
9789done
9790 done
9791IFS=$as_save_IFS
9792
9793fi
9794fi
9795WINDMC=$ac_cv_prog_WINDMC
9796if test -n "$WINDMC"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9798$as_echo "$WINDMC" >&6; }
9799else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
9802fi
9803
9804
9805 fi
9806 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9808set dummy ${ncn_progname}; ac_word=$2
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810$as_echo_n "checking for $ac_word... " >&6; }
9811if ${ac_cv_prog_WINDMC+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813else
9814 if test -n "$WINDMC"; then
9815 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9816else
9817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $PATH
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_WINDMC="${ncn_progname}"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828done
9829 done
9830IFS=$as_save_IFS
9831
9832fi
9833fi
9834WINDMC=$ac_cv_prog_WINDMC
9835if test -n "$WINDMC"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9837$as_echo "$WINDMC" >&6; }
9838else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840$as_echo "no" >&6; }
9841fi
9842
9843
9844 fi
9845 test -n "$ac_cv_prog_WINDMC" && break
9846done
9847
9848if test -z "$ac_cv_prog_WINDMC" ; then
9849 set dummy windmc
9850 if test $build = $host ; then
9851 WINDMC="$2"
9852 else
9853 WINDMC="${ncn_tool_prefix}$2"
9854 fi
9855fi
9856
9857
9858
9859if test -n "$OBJCOPY"; then
9860 ac_cv_prog_OBJCOPY=$OBJCOPY
9861elif test -n "$ac_cv_prog_OBJCOPY"; then
9862 OBJCOPY=$ac_cv_prog_OBJCOPY
9863fi
9864
9865if test -n "$ac_cv_prog_OBJCOPY"; then
9866 for ncn_progname in objcopy; do
9867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9868set dummy ${ncn_progname}; ac_word=$2
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870$as_echo_n "checking for $ac_word... " >&6; }
9871if ${ac_cv_prog_OBJCOPY+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873else
9874 if test -n "$OBJCOPY"; then
9875 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9876else
9877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878for as_dir in $PATH
9879do
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_prog_OBJCOPY="${ncn_progname}"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9887 fi
9888done
9889 done
9890IFS=$as_save_IFS
9891
9892fi
9893fi
9894OBJCOPY=$ac_cv_prog_OBJCOPY
9895if test -n "$OBJCOPY"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9897$as_echo "$OBJCOPY" >&6; }
9898else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900$as_echo "no" >&6; }
9901fi
9902
9903
9904 done
9905fi
9906
9907for ncn_progname in objcopy; do
9908 if test -n "$ncn_tool_prefix"; then
9909 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9910set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912$as_echo_n "checking for $ac_word... " >&6; }
9913if ${ac_cv_prog_OBJCOPY+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915else
9916 if test -n "$OBJCOPY"; then
9917 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9918else
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9926 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9929 fi
9930done
9931 done
9932IFS=$as_save_IFS
9933
9934fi
9935fi
9936OBJCOPY=$ac_cv_prog_OBJCOPY
9937if test -n "$OBJCOPY"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9939$as_echo "$OBJCOPY" >&6; }
9940else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942$as_echo "no" >&6; }
9943fi
9944
9945
9946 fi
9947 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9949set dummy ${ncn_progname}; ac_word=$2
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951$as_echo_n "checking for $ac_word... " >&6; }
9952if ${ac_cv_prog_OBJCOPY+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954else
9955 if test -n "$OBJCOPY"; then
9956 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_prog_OBJCOPY="${ncn_progname}"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9968 fi
9969done
9970 done
9971IFS=$as_save_IFS
9972
9973fi
9974fi
9975OBJCOPY=$ac_cv_prog_OBJCOPY
9976if test -n "$OBJCOPY"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9978$as_echo "$OBJCOPY" >&6; }
9979else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981$as_echo "no" >&6; }
9982fi
9983
9984
9985 fi
9986 test -n "$ac_cv_prog_OBJCOPY" && break
9987done
9988
9989if test -z "$ac_cv_prog_OBJCOPY" ; then
9990 set dummy objcopy
9991 if test $build = $host ; then
9992 OBJCOPY="$2"
9993 else
9994 OBJCOPY="${ncn_tool_prefix}$2"
9995 fi
9996fi
9997
9998
9999
10000if test -n "$OBJDUMP"; then
10001 ac_cv_prog_OBJDUMP=$OBJDUMP
10002elif test -n "$ac_cv_prog_OBJDUMP"; then
10003 OBJDUMP=$ac_cv_prog_OBJDUMP
10004fi
10005
10006if test -n "$ac_cv_prog_OBJDUMP"; then
10007 for ncn_progname in objdump; do
10008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10009set dummy ${ncn_progname}; ac_word=$2
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011$as_echo_n "checking for $ac_word... " >&6; }
10012if ${ac_cv_prog_OBJDUMP+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014else
10015 if test -n "$OBJDUMP"; then
10016 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10017else
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_OBJDUMP="${ncn_progname}"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029done
10030 done
10031IFS=$as_save_IFS
10032
10033fi
10034fi
10035OBJDUMP=$ac_cv_prog_OBJDUMP
10036if test -n "$OBJDUMP"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10038$as_echo "$OBJDUMP" >&6; }
10039else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041$as_echo "no" >&6; }
10042fi
10043
10044
10045 done
10046fi
10047
10048for ncn_progname in objdump; do
10049 if test -n "$ncn_tool_prefix"; then
10050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10051set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053$as_echo_n "checking for $ac_word... " >&6; }
10054if ${ac_cv_prog_OBJDUMP+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056else
10057 if test -n "$OBJDUMP"; then
10058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10059else
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071done
10072 done
10073IFS=$as_save_IFS
10074
10075fi
10076fi
10077OBJDUMP=$ac_cv_prog_OBJDUMP
10078if test -n "$OBJDUMP"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10080$as_echo "$OBJDUMP" >&6; }
10081else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083$as_echo "no" >&6; }
10084fi
10085
10086
10087 fi
10088 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10090set dummy ${ncn_progname}; ac_word=$2
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092$as_echo_n "checking for $ac_word... " >&6; }
10093if ${ac_cv_prog_OBJDUMP+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095else
10096 if test -n "$OBJDUMP"; then
10097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10098else
10099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100for as_dir in $PATH
10101do
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_OBJDUMP="${ncn_progname}"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10109 fi
10110done
10111 done
10112IFS=$as_save_IFS
10113
10114fi
10115fi
10116OBJDUMP=$ac_cv_prog_OBJDUMP
10117if test -n "$OBJDUMP"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10119$as_echo "$OBJDUMP" >&6; }
10120else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122$as_echo "no" >&6; }
10123fi
10124
10125
10126 fi
10127 test -n "$ac_cv_prog_OBJDUMP" && break
10128done
10129
10130if test -z "$ac_cv_prog_OBJDUMP" ; then
10131 set dummy objdump
10132 if test $build = $host ; then
10133 OBJDUMP="$2"
10134 else
10135 OBJDUMP="${ncn_tool_prefix}$2"
10136 fi
10137fi
10138
10139
10140
10141if test -n "$READELF"; then
10142 ac_cv_prog_READELF=$READELF
10143elif test -n "$ac_cv_prog_READELF"; then
10144 READELF=$ac_cv_prog_READELF
10145fi
10146
10147if test -n "$ac_cv_prog_READELF"; then
10148 for ncn_progname in readelf; do
10149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10150set dummy ${ncn_progname}; ac_word=$2
10151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152$as_echo_n "checking for $ac_word... " >&6; }
10153if ${ac_cv_prog_READELF+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155else
10156 if test -n "$READELF"; then
10157 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10158else
10159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160for as_dir in $PATH
10161do
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10166 ac_cv_prog_READELF="${ncn_progname}"
10167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10169 fi
10170done
10171 done
10172IFS=$as_save_IFS
10173
10174fi
10175fi
10176READELF=$ac_cv_prog_READELF
10177if test -n "$READELF"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10179$as_echo "$READELF" >&6; }
10180else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182$as_echo "no" >&6; }
10183fi
10184
10185
10186 done
10187fi
10188
10189for ncn_progname in readelf; do
10190 if test -n "$ncn_tool_prefix"; then
10191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10192set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194$as_echo_n "checking for $ac_word... " >&6; }
10195if ${ac_cv_prog_READELF+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197else
10198 if test -n "$READELF"; then
10199 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10200else
10201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202for as_dir in $PATH
10203do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10211 fi
10212done
10213 done
10214IFS=$as_save_IFS
10215
10216fi
10217fi
10218READELF=$ac_cv_prog_READELF
10219if test -n "$READELF"; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10221$as_echo "$READELF" >&6; }
10222else
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224$as_echo "no" >&6; }
10225fi
10226
10227
10228 fi
10229 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10231set dummy ${ncn_progname}; ac_word=$2
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if ${ac_cv_prog_READELF+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236else
10237 if test -n "$READELF"; then
10238 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10239else
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_prog_READELF="${ncn_progname}"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10250 fi
10251done
10252 done
10253IFS=$as_save_IFS
10254
10255fi
10256fi
10257READELF=$ac_cv_prog_READELF
10258if test -n "$READELF"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10260$as_echo "$READELF" >&6; }
10261else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
10264fi
10265
10266
10267 fi
10268 test -n "$ac_cv_prog_READELF" && break
10269done
10270
10271if test -z "$ac_cv_prog_READELF" ; then
10272 set dummy readelf
10273 if test $build = $host ; then
10274 READELF="$2"
10275 else
10276 READELF="${ncn_tool_prefix}$2"
10277 fi
10278fi
10279
10280
10281
10282
10283
10284
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10286$as_echo_n "checking for -plugin option... " >&6; }
10287
10288plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10289plugin_option=
10290for plugin in $plugin_names; do
10291 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10292 if test x$plugin_so = x$plugin; then
10293 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10294 fi
10295 if test x$plugin_so != x$plugin; then
10296 plugin_option="--plugin $plugin_so"
10297 break
10298 fi
10299done
10300if test -n "$ac_tool_prefix"; then
10301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10302set dummy ${ac_tool_prefix}ar; ac_word=$2
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304$as_echo_n "checking for $ac_word... " >&6; }
10305if ${ac_cv_prog_AR+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307else
10308 if test -n "$AR"; then
10309 ac_cv_prog_AR="$AR" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_AR="${ac_tool_prefix}ar"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323 done
10324IFS=$as_save_IFS
10325
10326fi
10327fi
10328AR=$ac_cv_prog_AR
10329if test -n "$AR"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10331$as_echo "$AR" >&6; }
10332else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334$as_echo "no" >&6; }
10335fi
10336
10337
10338fi
10339if test -z "$ac_cv_prog_AR"; then
10340 ac_ct_AR=$AR
10341 # Extract the first word of "ar", so it can be a program name with args.
10342set dummy ar; ac_word=$2
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344$as_echo_n "checking for $ac_word... " >&6; }
10345if ${ac_cv_prog_ac_ct_AR+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347else
10348 if test -n "$ac_ct_AR"; then
10349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10358 ac_cv_prog_ac_ct_AR="ar"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 break 2
10361 fi
10362done
10363 done
10364IFS=$as_save_IFS
10365
10366fi
10367fi
10368ac_ct_AR=$ac_cv_prog_ac_ct_AR
10369if test -n "$ac_ct_AR"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10371$as_echo "$ac_ct_AR" >&6; }
10372else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374$as_echo "no" >&6; }
10375fi
10376
10377 if test "x$ac_ct_AR" = x; then
10378 AR=""
10379 else
10380 case $cross_compiling:$ac_tool_warned in
10381yes:)
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10384ac_tool_warned=yes ;;
10385esac
10386 AR=$ac_ct_AR
10387 fi
10388else
10389 AR="$ac_cv_prog_AR"
10390fi
10391
10392if test "${AR}" = "" ; then
10393 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10394fi
10395touch conftest.c
10396${AR} $plugin_option rc conftest.a conftest.c
10397if test "$?" != 0; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10399$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10400 plugin_option=
10401fi
10402rm -f conftest.*
10403if test -n "$plugin_option"; then
10404 PLUGIN_OPTION="$plugin_option"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10406$as_echo "$plugin_option" >&6; }
10407else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409$as_echo "no" >&6; }
10410fi
10411
10412AR_PLUGIN_OPTION=
10413RANLIB_PLUGIN_OPTION=
10414if test -n "$PLUGIN_OPTION"; then
10415 if $AR --help 2>&1 | grep -q "\--plugin"; then
10416 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10417 fi
10418 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10419 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10420 fi
10421else
10422 if test "$enable_pgo_build" != "no"; then
10423 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10424 fi
10425fi
10426
10427
10428
10429# Target tools.
10430
10431# Check whether --with-build-time-tools was given.
10432if test "${with_build_time_tools+set}" = set; then :
10433 withval=$with_build_time_tools; case x"$withval" in
10434 x/*) ;;
10435 *)
10436 with_build_time_tools=
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10438$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10439 ;;
10440 esac
10441else
10442 with_build_time_tools=
10443fi
10444
10445
10446
10447
10448if test -n "$CC_FOR_TARGET"; then
10449 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10450elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10451 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10452fi
10453
10454if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10455 for ncn_progname in cc gcc; do
10456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10457set dummy ${ncn_progname}; ac_word=$2
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459$as_echo_n "checking for $ac_word... " >&6; }
10460if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10461 $as_echo_n "(cached) " >&6
10462else
10463 if test -n "$CC_FOR_TARGET"; then
10464 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10465else
10466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467for as_dir in $PATH
10468do
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10473 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 break 2
10476 fi
10477done
10478 done
10479IFS=$as_save_IFS
10480
10481fi
10482fi
10483CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10484if test -n "$CC_FOR_TARGET"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10486$as_echo "$CC_FOR_TARGET" >&6; }
10487else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489$as_echo "no" >&6; }
10490fi
10491
10492
10493 done
10494fi
10495
10496if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10497 for ncn_progname in cc gcc; do
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10499$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10500 if test -x $with_build_time_tools/${ncn_progname}; then
10501 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10503$as_echo "yes" >&6; }
10504 break
10505 else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507$as_echo "no" >&6; }
10508 fi
10509 done
10510fi
10511
10512if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10513 for ncn_progname in cc gcc; do
10514 if test -n "$ncn_target_tool_prefix"; then
10515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10516set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518$as_echo_n "checking for $ac_word... " >&6; }
10519if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521else
10522 if test -n "$CC_FOR_TARGET"; then
10523 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10524else
10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536done
10537 done
10538IFS=$as_save_IFS
10539
10540fi
10541fi
10542CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10543if test -n "$CC_FOR_TARGET"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10545$as_echo "$CC_FOR_TARGET" >&6; }
10546else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
10549fi
10550
10551
10552 fi
10553 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10555set dummy ${ncn_progname}; ac_word=$2
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557$as_echo_n "checking for $ac_word... " >&6; }
10558if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560else
10561 if test -n "$CC_FOR_TARGET"; then
10562 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10563else
10564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565for as_dir in $PATH
10566do
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10571 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10574 fi
10575done
10576 done
10577IFS=$as_save_IFS
10578
10579fi
10580fi
10581CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10582if test -n "$CC_FOR_TARGET"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10584$as_echo "$CC_FOR_TARGET" >&6; }
10585else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587$as_echo "no" >&6; }
10588fi
10589
10590
10591 fi
10592 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10593 done
10594fi
10595
10596if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10597 set dummy cc gcc
10598 if test $build = $target ; then
10599 CC_FOR_TARGET="$2"
10600 else
10601 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10602 fi
10603else
10604 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10605fi
10606
10607
10608
10609if test -n "$CXX_FOR_TARGET"; then
10610 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10611elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10612 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10613fi
10614
10615if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10616 for ncn_progname in c++ g++ cxx gxx; do
10617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10618set dummy ${ncn_progname}; ac_word=$2
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620$as_echo_n "checking for $ac_word... " >&6; }
10621if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623else
10624 if test -n "$CXX_FOR_TARGET"; then
10625 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10626else
10627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10637 fi
10638done
10639 done
10640IFS=$as_save_IFS
10641
10642fi
10643fi
10644CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10645if test -n "$CXX_FOR_TARGET"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10647$as_echo "$CXX_FOR_TARGET" >&6; }
10648else
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650$as_echo "no" >&6; }
10651fi
10652
10653
10654 done
10655fi
10656
10657if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10658 for ncn_progname in c++ g++ cxx gxx; do
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10660$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10661 if test -x $with_build_time_tools/${ncn_progname}; then
10662 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10664$as_echo "yes" >&6; }
10665 break
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668$as_echo "no" >&6; }
10669 fi
10670 done
10671fi
10672
10673if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10674 for ncn_progname in c++ g++ cxx gxx; do
10675 if test -n "$ncn_target_tool_prefix"; then
10676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10677set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679$as_echo_n "checking for $ac_word... " >&6; }
10680if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682else
10683 if test -n "$CXX_FOR_TARGET"; then
10684 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10685else
10686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687for as_dir in $PATH
10688do
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10696 fi
10697done
10698 done
10699IFS=$as_save_IFS
10700
10701fi
10702fi
10703CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10704if test -n "$CXX_FOR_TARGET"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10706$as_echo "$CXX_FOR_TARGET" >&6; }
10707else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709$as_echo "no" >&6; }
10710fi
10711
10712
10713 fi
10714 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10716set dummy ${ncn_progname}; ac_word=$2
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718$as_echo_n "checking for $ac_word... " >&6; }
10719if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721else
10722 if test -n "$CXX_FOR_TARGET"; then
10723 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10724else
10725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726for as_dir in $PATH
10727do
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10732 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10735 fi
10736done
10737 done
10738IFS=$as_save_IFS
10739
10740fi
10741fi
10742CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10743if test -n "$CXX_FOR_TARGET"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10745$as_echo "$CXX_FOR_TARGET" >&6; }
10746else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748$as_echo "no" >&6; }
10749fi
10750
10751
10752 fi
10753 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10754 done
10755fi
10756
10757if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10758 set dummy c++ g++ cxx gxx
10759 if test $build = $target ; then
10760 CXX_FOR_TARGET="$2"
10761 else
10762 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10763 fi
10764else
10765 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10766fi
10767
10768
10769
10770if test -n "$GCC_FOR_TARGET"; then
10771 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10772elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10773 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10774fi
10775
10776if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10777 for ncn_progname in gcc; do
10778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10779set dummy ${ncn_progname}; ac_word=$2
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
10782if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10783 $as_echo_n "(cached) " >&6
10784else
10785 if test -n "$GCC_FOR_TARGET"; then
10786 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10798 fi
10799done
10800 done
10801IFS=$as_save_IFS
10802
10803fi
10804fi
10805GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10806if test -n "$GCC_FOR_TARGET"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10808$as_echo "$GCC_FOR_TARGET" >&6; }
10809else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
10812fi
10813
10814
10815 done
10816fi
10817
10818if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10819 for ncn_progname in gcc; do
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10821$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10822 if test -x $with_build_time_tools/${ncn_progname}; then
10823 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825$as_echo "yes" >&6; }
10826 break
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
10830 fi
10831 done
10832fi
10833
10834if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10835 for ncn_progname in gcc; do
10836 if test -n "$ncn_target_tool_prefix"; then
10837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10838set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840$as_echo_n "checking for $ac_word... " >&6; }
10841if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843else
10844 if test -n "$GCC_FOR_TARGET"; then
10845 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10846else
10847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10854 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858done
10859 done
10860IFS=$as_save_IFS
10861
10862fi
10863fi
10864GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10865if test -n "$GCC_FOR_TARGET"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10867$as_echo "$GCC_FOR_TARGET" >&6; }
10868else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
10871fi
10872
10873
10874 fi
10875 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10877set dummy ${ncn_progname}; ac_word=$2
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879$as_echo_n "checking for $ac_word... " >&6; }
10880if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882else
10883 if test -n "$GCC_FOR_TARGET"; then
10884 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10885else
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10898 done
10899IFS=$as_save_IFS
10900
10901fi
10902fi
10903GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10904if test -n "$GCC_FOR_TARGET"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10906$as_echo "$GCC_FOR_TARGET" >&6; }
10907else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
10910fi
10911
10912
10913 fi
10914 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10915 done
10916fi
10917
10918if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10919 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10920else
10921 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10922fi
10923
10924
10925
10926if test -n "$GFORTRAN_FOR_TARGET"; then
10927 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10928elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10929 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10930fi
10931
10932if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10933 for ncn_progname in gfortran; do
10934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10935set dummy ${ncn_progname}; ac_word=$2
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937$as_echo_n "checking for $ac_word... " >&6; }
10938if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940else
10941 if test -n "$GFORTRAN_FOR_TARGET"; then
10942 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10943else
10944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945for as_dir in $PATH
10946do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10951 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10954 fi
10955done
10956 done
10957IFS=$as_save_IFS
10958
10959fi
10960fi
10961GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10962if test -n "$GFORTRAN_FOR_TARGET"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10964$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10965else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967$as_echo "no" >&6; }
10968fi
10969
10970
10971 done
10972fi
10973
10974if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10975 for ncn_progname in gfortran; do
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10977$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10978 if test -x $with_build_time_tools/${ncn_progname}; then
10979 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981$as_echo "yes" >&6; }
10982 break
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985$as_echo "no" >&6; }
10986 fi
10987 done
10988fi
10989
10990if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10991 for ncn_progname in gfortran; do
10992 if test -n "$ncn_target_tool_prefix"; then
10993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10994set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996$as_echo_n "checking for $ac_word... " >&6; }
10997if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999else
11000 if test -n "$GFORTRAN_FOR_TARGET"; then
11001 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11002else
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
11015 done
11016IFS=$as_save_IFS
11017
11018fi
11019fi
11020GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11021if test -n "$GFORTRAN_FOR_TARGET"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11023$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11024else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026$as_echo "no" >&6; }
11027fi
11028
11029
11030 fi
11031 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033set dummy ${ncn_progname}; ac_word=$2
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035$as_echo_n "checking for $ac_word... " >&6; }
11036if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038else
11039 if test -n "$GFORTRAN_FOR_TARGET"; then
11040 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11052 fi
11053done
11054 done
11055IFS=$as_save_IFS
11056
11057fi
11058fi
11059GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11060if test -n "$GFORTRAN_FOR_TARGET"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11062$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11063else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
11066fi
11067
11068
11069 fi
11070 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11071 done
11072fi
11073
11074if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11075 set dummy gfortran
11076 if test $build = $target ; then
11077 GFORTRAN_FOR_TARGET="$2"
11078 else
11079 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11080 fi
11081else
11082 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11083fi
11084
11085
11086
11087if test -n "$GOC_FOR_TARGET"; then
11088 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11089elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11090 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11091fi
11092
11093if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11094 for ncn_progname in gccgo; do
11095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11096set dummy ${ncn_progname}; ac_word=$2
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098$as_echo_n "checking for $ac_word... " >&6; }
11099if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101else
11102 if test -n "$GOC_FOR_TARGET"; then
11103 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11104else
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116done
11117 done
11118IFS=$as_save_IFS
11119
11120fi
11121fi
11122GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11123if test -n "$GOC_FOR_TARGET"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11125$as_echo "$GOC_FOR_TARGET" >&6; }
11126else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128$as_echo "no" >&6; }
11129fi
11130
11131
11132 done
11133fi
11134
11135if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11136 for ncn_progname in gccgo; do
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11138$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11139 if test -x $with_build_time_tools/${ncn_progname}; then
11140 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142$as_echo "yes" >&6; }
11143 break
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147 fi
11148 done
11149fi
11150
11151if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11152 for ncn_progname in gccgo; do
11153 if test -n "$ncn_target_tool_prefix"; then
11154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11155set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157$as_echo_n "checking for $ac_word... " >&6; }
11158if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160else
11161 if test -n "$GOC_FOR_TARGET"; then
11162 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11163else
11164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11174 fi
11175done
11176 done
11177IFS=$as_save_IFS
11178
11179fi
11180fi
11181GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11182if test -n "$GOC_FOR_TARGET"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11184$as_echo "$GOC_FOR_TARGET" >&6; }
11185else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
11188fi
11189
11190
11191 fi
11192 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11194set dummy ${ncn_progname}; ac_word=$2
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196$as_echo_n "checking for $ac_word... " >&6; }
11197if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199else
11200 if test -n "$GOC_FOR_TARGET"; then
11201 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11202else
11203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204for as_dir in $PATH
11205do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11210 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 break 2
11213 fi
11214done
11215 done
11216IFS=$as_save_IFS
11217
11218fi
11219fi
11220GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11221if test -n "$GOC_FOR_TARGET"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11223$as_echo "$GOC_FOR_TARGET" >&6; }
11224else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226$as_echo "no" >&6; }
11227fi
11228
11229
11230 fi
11231 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11232 done
11233fi
11234
11235if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11236 set dummy gccgo
11237 if test $build = $target ; then
11238 GOC_FOR_TARGET="$2"
11239 else
11240 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11241 fi
11242else
11243 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11244fi
11245
11246
11247
11248cat > conftest.c << \EOF
11249#ifdef __GNUC__
11250 gcc_yay;
11251#endif
11252EOF
11253if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11254 have_gcc_for_target=yes
11255else
11256 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11257 have_gcc_for_target=no
11258fi
11259rm conftest.c
11260
11261
11262
11263
11264if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11265 if test -n "$with_build_time_tools"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11267$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11268 if test -x $with_build_time_tools/ar; then
11269 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11270 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11272$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11273 else
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275$as_echo "no" >&6; }
11276 fi
11277 elif test $build != $host && test $have_gcc_for_target = yes; then
11278 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11279 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11280 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11281 fi
11282fi
11283if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11284 # Extract the first word of "ar", so it can be a program name with args.
11285set dummy ar; ac_word=$2
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287$as_echo_n "checking for $ac_word... " >&6; }
11288if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290else
11291 case $AR_FOR_TARGET in
11292 [\\/]* | ?:[\\/]*)
11293 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11294 ;;
11295 *)
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $gcc_cv_tool_dirs
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307done
11308 done
11309IFS=$as_save_IFS
11310
11311 ;;
11312esac
11313fi
11314AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11315if test -n "$AR_FOR_TARGET"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11317$as_echo "$AR_FOR_TARGET" >&6; }
11318else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
11321fi
11322
11323
11324fi
11325if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11326
11327
11328if test -n "$AR_FOR_TARGET"; then
11329 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11330elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11331 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11332fi
11333
11334if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11335 for ncn_progname in ar; do
11336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11337set dummy ${ncn_progname}; ac_word=$2
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339$as_echo_n "checking for $ac_word... " >&6; }
11340if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 if test -n "$AR_FOR_TARGET"; then
11344 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357done
11358 done
11359IFS=$as_save_IFS
11360
11361fi
11362fi
11363AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11364if test -n "$AR_FOR_TARGET"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11366$as_echo "$AR_FOR_TARGET" >&6; }
11367else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
11370fi
11371
11372
11373 done
11374fi
11375
11376if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11377 for ncn_progname in ar; do
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11379$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11380 if test -x $with_build_time_tools/${ncn_progname}; then
11381 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383$as_echo "yes" >&6; }
11384 break
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
11388 fi
11389 done
11390fi
11391
11392if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11393 for ncn_progname in ar; do
11394 if test -n "$ncn_target_tool_prefix"; then
11395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11396set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401else
11402 if test -n "$AR_FOR_TARGET"; then
11403 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11404else
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11415 fi
11416done
11417 done
11418IFS=$as_save_IFS
11419
11420fi
11421fi
11422AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11423if test -n "$AR_FOR_TARGET"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11425$as_echo "$AR_FOR_TARGET" >&6; }
11426else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
11429fi
11430
11431
11432 fi
11433 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435set dummy ${ncn_progname}; ac_word=$2
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437$as_echo_n "checking for $ac_word... " >&6; }
11438if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11439 $as_echo_n "(cached) " >&6
11440else
11441 if test -n "$AR_FOR_TARGET"; then
11442 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11443else
11444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445for as_dir in $PATH
11446do
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11454 fi
11455done
11456 done
11457IFS=$as_save_IFS
11458
11459fi
11460fi
11461AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11462if test -n "$AR_FOR_TARGET"; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11464$as_echo "$AR_FOR_TARGET" >&6; }
11465else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
11468fi
11469
11470
11471 fi
11472 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11473 done
11474fi
11475
11476if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11477 set dummy ar
11478 if test $build = $target ; then
11479 AR_FOR_TARGET="$2"
11480 else
11481 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11482 fi
11483else
11484 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11485fi
11486
11487else
11488 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11489fi
11490
11491
11492
11493
11494if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11495 if test -n "$with_build_time_tools"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11497$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11498 if test -x $with_build_time_tools/as; then
11499 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11500 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11502$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
11506 fi
11507 elif test $build != $host && test $have_gcc_for_target = yes; then
11508 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11509 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11510 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11511 fi
11512fi
11513if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11514 # Extract the first word of "as", so it can be a program name with args.
11515set dummy as; ac_word=$2
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517$as_echo_n "checking for $ac_word... " >&6; }
11518if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520else
11521 case $AS_FOR_TARGET in
11522 [\\/]* | ?:[\\/]*)
11523 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11524 ;;
11525 *)
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527for as_dir in $gcc_cv_tool_dirs
11528do
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 break 2
11536 fi
11537done
11538 done
11539IFS=$as_save_IFS
11540
11541 ;;
11542esac
11543fi
11544AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11545if test -n "$AS_FOR_TARGET"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11547$as_echo "$AS_FOR_TARGET" >&6; }
11548else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
11551fi
11552
11553
11554fi
11555if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11556
11557
11558if test -n "$AS_FOR_TARGET"; then
11559 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11560elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11561 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11562fi
11563
11564if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11565 for ncn_progname in as; do
11566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11567set dummy ${ncn_progname}; ac_word=$2
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569$as_echo_n "checking for $ac_word... " >&6; }
11570if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572else
11573 if test -n "$AS_FOR_TARGET"; then
11574 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11575else
11576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $PATH
11578do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 break 2
11586 fi
11587done
11588 done
11589IFS=$as_save_IFS
11590
11591fi
11592fi
11593AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11594if test -n "$AS_FOR_TARGET"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11596$as_echo "$AS_FOR_TARGET" >&6; }
11597else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599$as_echo "no" >&6; }
11600fi
11601
11602
11603 done
11604fi
11605
11606if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11607 for ncn_progname in as; do
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11609$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11610 if test -x $with_build_time_tools/${ncn_progname}; then
11611 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613$as_echo "yes" >&6; }
11614 break
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
11618 fi
11619 done
11620fi
11621
11622if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11623 for ncn_progname in as; do
11624 if test -n "$ncn_target_tool_prefix"; then
11625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11626set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631else
11632 if test -n "$AS_FOR_TARGET"; then
11633 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11634else
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646done
11647 done
11648IFS=$as_save_IFS
11649
11650fi
11651fi
11652AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11653if test -n "$AS_FOR_TARGET"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11655$as_echo "$AS_FOR_TARGET" >&6; }
11656else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
11659fi
11660
11661
11662 fi
11663 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11665set dummy ${ncn_progname}; ac_word=$2
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
11668if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670else
11671 if test -n "$AS_FOR_TARGET"; then
11672 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11673else
11674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11684 fi
11685done
11686 done
11687IFS=$as_save_IFS
11688
11689fi
11690fi
11691AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11692if test -n "$AS_FOR_TARGET"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11694$as_echo "$AS_FOR_TARGET" >&6; }
11695else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697$as_echo "no" >&6; }
11698fi
11699
11700
11701 fi
11702 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11703 done
11704fi
11705
11706if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11707 set dummy as
11708 if test $build = $target ; then
11709 AS_FOR_TARGET="$2"
11710 else
11711 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11712 fi
11713else
11714 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11715fi
11716
11717else
11718 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11719fi
11720
11721
11722
11723
11724if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11725 if test -n "$with_build_time_tools"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11727$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11728 if test -x $with_build_time_tools/dlltool; then
11729 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11730 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11732$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11733 else
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
11736 fi
11737 elif test $build != $host && test $have_gcc_for_target = yes; then
11738 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11739 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11740 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11741 fi
11742fi
11743if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11744 # Extract the first word of "dlltool", so it can be a program name with args.
11745set dummy dlltool; ac_word=$2
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
11748if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750else
11751 case $DLLTOOL_FOR_TARGET in
11752 [\\/]* | ?:[\\/]*)
11753 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11754 ;;
11755 *)
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $gcc_cv_tool_dirs
11758do
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11763 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11766 fi
11767done
11768 done
11769IFS=$as_save_IFS
11770
11771 ;;
11772esac
11773fi
11774DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11775if test -n "$DLLTOOL_FOR_TARGET"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11777$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11778else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
11781fi
11782
11783
11784fi
11785if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11786
11787
11788if test -n "$DLLTOOL_FOR_TARGET"; then
11789 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11790elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11791 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11792fi
11793
11794if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11795 for ncn_progname in dlltool; do
11796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11797set dummy ${ncn_progname}; ac_word=$2
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799$as_echo_n "checking for $ac_word... " >&6; }
11800if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802else
11803 if test -n "$DLLTOOL_FOR_TARGET"; then
11804 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11805else
11806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in $PATH
11808do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11813 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11816 fi
11817done
11818 done
11819IFS=$as_save_IFS
11820
11821fi
11822fi
11823DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11824if test -n "$DLLTOOL_FOR_TARGET"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11826$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11827else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
11830fi
11831
11832
11833 done
11834fi
11835
11836if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11837 for ncn_progname in dlltool; do
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11839$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11840 if test -x $with_build_time_tools/${ncn_progname}; then
11841 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11843$as_echo "yes" >&6; }
11844 break
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847$as_echo "no" >&6; }
11848 fi
11849 done
11850fi
11851
11852if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11853 for ncn_progname in dlltool; do
11854 if test -n "$ncn_target_tool_prefix"; then
11855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11856set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861else
11862 if test -n "$DLLTOOL_FOR_TARGET"; then
11863 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876done
11877 done
11878IFS=$as_save_IFS
11879
11880fi
11881fi
11882DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11883if test -n "$DLLTOOL_FOR_TARGET"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11885$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11886else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
11889fi
11890
11891
11892 fi
11893 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11895set dummy ${ncn_progname}; ac_word=$2
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
11898if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900else
11901 if test -n "$DLLTOOL_FOR_TARGET"; then
11902 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11903else
11904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905for as_dir in $PATH
11906do
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11911 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11914 fi
11915done
11916 done
11917IFS=$as_save_IFS
11918
11919fi
11920fi
11921DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11922if test -n "$DLLTOOL_FOR_TARGET"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11924$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11925else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927$as_echo "no" >&6; }
11928fi
11929
11930
11931 fi
11932 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11933 done
11934fi
11935
11936if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11937 set dummy dlltool
11938 if test $build = $target ; then
11939 DLLTOOL_FOR_TARGET="$2"
11940 else
11941 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11942 fi
11943else
11944 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11945fi
11946
11947else
11948 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11949fi
11950
11951
11952
11953
11954if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11955 if test -n "$with_build_time_tools"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11957$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11958 if test -x $with_build_time_tools/ld; then
11959 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11960 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11962$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
11966 fi
11967 elif test $build != $host && test $have_gcc_for_target = yes; then
11968 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11969 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11970 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11971 fi
11972fi
11973if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11974 # Extract the first word of "ld", so it can be a program name with args.
11975set dummy ld; ac_word=$2
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11977$as_echo_n "checking for $ac_word... " >&6; }
11978if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980else
11981 case $LD_FOR_TARGET in
11982 [\\/]* | ?:[\\/]*)
11983 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11984 ;;
11985 *)
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987for as_dir in $gcc_cv_tool_dirs
11988do
11989 IFS=$as_save_IFS
11990 test -z "$as_dir" && as_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11993 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 break 2
11996 fi
11997done
11998 done
11999IFS=$as_save_IFS
12000
12001 ;;
12002esac
12003fi
12004LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12005if test -n "$LD_FOR_TARGET"; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12007$as_echo "$LD_FOR_TARGET" >&6; }
12008else
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
12011fi
12012
12013
12014fi
12015if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12016
12017
12018if test -n "$LD_FOR_TARGET"; then
12019 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12020elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12021 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12022fi
12023
12024if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12025 for ncn_progname in ld; do
12026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12027set dummy ${ncn_progname}; ac_word=$2
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029$as_echo_n "checking for $ac_word... " >&6; }
12030if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032else
12033 if test -n "$LD_FOR_TARGET"; then
12034 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12035else
12036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12043 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 break 2
12046 fi
12047done
12048 done
12049IFS=$as_save_IFS
12050
12051fi
12052fi
12053LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12054if test -n "$LD_FOR_TARGET"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12056$as_echo "$LD_FOR_TARGET" >&6; }
12057else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
12060fi
12061
12062
12063 done
12064fi
12065
12066if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12067 for ncn_progname in ld; do
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12069$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12070 if test -x $with_build_time_tools/${ncn_progname}; then
12071 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073$as_echo "yes" >&6; }
12074 break
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
12078 fi
12079 done
12080fi
12081
12082if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12083 for ncn_progname in ld; do
12084 if test -n "$ncn_target_tool_prefix"; then
12085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12086set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091else
12092 if test -n "$LD_FOR_TARGET"; then
12093 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106done
12107 done
12108IFS=$as_save_IFS
12109
12110fi
12111fi
12112LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12113if test -n "$LD_FOR_TARGET"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12115$as_echo "$LD_FOR_TARGET" >&6; }
12116else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119fi
12120
12121
12122 fi
12123 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12125set dummy ${ncn_progname}; ac_word=$2
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127$as_echo_n "checking for $ac_word... " >&6; }
12128if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130else
12131 if test -n "$LD_FOR_TARGET"; then
12132 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12133else
12134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $PATH
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12144 fi
12145done
12146 done
12147IFS=$as_save_IFS
12148
12149fi
12150fi
12151LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12152if test -n "$LD_FOR_TARGET"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12154$as_echo "$LD_FOR_TARGET" >&6; }
12155else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157$as_echo "no" >&6; }
12158fi
12159
12160
12161 fi
12162 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12163 done
12164fi
12165
12166if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12167 set dummy ld
12168 if test $build = $target ; then
12169 LD_FOR_TARGET="$2"
12170 else
12171 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12172 fi
12173else
12174 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12175fi
12176
12177else
12178 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12179fi
12180
12181
12182
12183
12184if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12185 if test -n "$with_build_time_tools"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12187$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12188 if test -x $with_build_time_tools/lipo; then
12189 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12190 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12192$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
12196 fi
12197 elif test $build != $host && test $have_gcc_for_target = yes; then
12198 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12199 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12200 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12201 fi
12202fi
12203if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12204 # Extract the first word of "lipo", so it can be a program name with args.
12205set dummy lipo; ac_word=$2
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207$as_echo_n "checking for $ac_word... " >&6; }
12208if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210else
12211 case $LIPO_FOR_TARGET in
12212 [\\/]* | ?:[\\/]*)
12213 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12214 ;;
12215 *)
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217for as_dir in $gcc_cv_tool_dirs
12218do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12226 fi
12227done
12228 done
12229IFS=$as_save_IFS
12230
12231 ;;
12232esac
12233fi
12234LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12235if test -n "$LIPO_FOR_TARGET"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12237$as_echo "$LIPO_FOR_TARGET" >&6; }
12238else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
12241fi
12242
12243
12244fi
12245if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12246
12247
12248if test -n "$LIPO_FOR_TARGET"; then
12249 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12250elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12251 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12252fi
12253
12254if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12255 for ncn_progname in lipo; do
12256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12257set dummy ${ncn_progname}; ac_word=$2
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
12260if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262else
12263 if test -n "$LIPO_FOR_TARGET"; then
12264 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 break 2
12276 fi
12277done
12278 done
12279IFS=$as_save_IFS
12280
12281fi
12282fi
12283LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12284if test -n "$LIPO_FOR_TARGET"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12286$as_echo "$LIPO_FOR_TARGET" >&6; }
12287else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290fi
12291
12292
12293 done
12294fi
12295
12296if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12297 for ncn_progname in lipo; do
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12299$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12300 if test -x $with_build_time_tools/${ncn_progname}; then
12301 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303$as_echo "yes" >&6; }
12304 break
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
12308 fi
12309 done
12310fi
12311
12312if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12313 for ncn_progname in lipo; do
12314 if test -n "$ncn_target_tool_prefix"; then
12315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12316set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321else
12322 if test -n "$LIPO_FOR_TARGET"; then
12323 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336done
12337 done
12338IFS=$as_save_IFS
12339
12340fi
12341fi
12342LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12343if test -n "$LIPO_FOR_TARGET"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12345$as_echo "$LIPO_FOR_TARGET" >&6; }
12346else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349fi
12350
12351
12352 fi
12353 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12355set dummy ${ncn_progname}; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
12358if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 if test -n "$LIPO_FOR_TARGET"; then
12362 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375done
12376 done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12382if test -n "$LIPO_FOR_TARGET"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12384$as_echo "$LIPO_FOR_TARGET" >&6; }
12385else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
12390
12391 fi
12392 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12393 done
12394fi
12395
12396if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12397 set dummy lipo
12398 if test $build = $target ; then
12399 LIPO_FOR_TARGET="$2"
12400 else
12401 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12402 fi
12403else
12404 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12405fi
12406
12407else
12408 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12409fi
12410
12411
12412
12413
12414if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12415 if test -n "$with_build_time_tools"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12417$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12418 if test -x $with_build_time_tools/nm; then
12419 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12420 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12422$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425$as_echo "no" >&6; }
12426 fi
12427 elif test $build != $host && test $have_gcc_for_target = yes; then
12428 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12429 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12430 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12431 fi
12432fi
12433if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12434 # Extract the first word of "nm", so it can be a program name with args.
12435set dummy nm; ac_word=$2
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437$as_echo_n "checking for $ac_word... " >&6; }
12438if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440else
12441 case $NM_FOR_TARGET in
12442 [\\/]* | ?:[\\/]*)
12443 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12444 ;;
12445 *)
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $gcc_cv_tool_dirs
12448do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12453 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455 break 2
12456 fi
12457done
12458 done
12459IFS=$as_save_IFS
12460
12461 ;;
12462esac
12463fi
12464NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12465if test -n "$NM_FOR_TARGET"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12467$as_echo "$NM_FOR_TARGET" >&6; }
12468else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
12471fi
12472
12473
12474fi
12475if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12476
12477
12478if test -n "$NM_FOR_TARGET"; then
12479 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12480elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12481 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12482fi
12483
12484if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12485 for ncn_progname in nm; do
12486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12487set dummy ${ncn_progname}; ac_word=$2
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489$as_echo_n "checking for $ac_word... " >&6; }
12490if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492else
12493 if test -n "$NM_FOR_TARGET"; then
12494 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12495else
12496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497for as_dir in $PATH
12498do
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
12502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12503 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505 break 2
12506 fi
12507done
12508 done
12509IFS=$as_save_IFS
12510
12511fi
12512fi
12513NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12514if test -n "$NM_FOR_TARGET"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12516$as_echo "$NM_FOR_TARGET" >&6; }
12517else
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519$as_echo "no" >&6; }
12520fi
12521
12522
12523 done
12524fi
12525
12526if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12527 for ncn_progname in nm; do
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12529$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12530 if test -x $with_build_time_tools/${ncn_progname}; then
12531 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533$as_echo "yes" >&6; }
12534 break
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537$as_echo "no" >&6; }
12538 fi
12539 done
12540fi
12541
12542if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12543 for ncn_progname in nm; do
12544 if test -n "$ncn_target_tool_prefix"; then
12545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551else
12552 if test -n "$NM_FOR_TARGET"; then
12553 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12554else
12555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566done
12567 done
12568IFS=$as_save_IFS
12569
12570fi
12571fi
12572NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12573if test -n "$NM_FOR_TARGET"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12575$as_echo "$NM_FOR_TARGET" >&6; }
12576else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
12579fi
12580
12581
12582 fi
12583 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585set dummy ${ncn_progname}; ac_word=$2
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
12588if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590else
12591 if test -n "$NM_FOR_TARGET"; then
12592 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12593else
12594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595for as_dir in $PATH
12596do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12604 fi
12605done
12606 done
12607IFS=$as_save_IFS
12608
12609fi
12610fi
12611NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12612if test -n "$NM_FOR_TARGET"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12614$as_echo "$NM_FOR_TARGET" >&6; }
12615else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
12618fi
12619
12620
12621 fi
12622 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12623 done
12624fi
12625
12626if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12627 set dummy nm
12628 if test $build = $target ; then
12629 NM_FOR_TARGET="$2"
12630 else
12631 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12632 fi
12633else
12634 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12635fi
12636
12637else
12638 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12639fi
12640
12641
12642
12643
12644if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12645 if test -n "$with_build_time_tools"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12647$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12648 if test -x $with_build_time_tools/objcopy; then
12649 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12650 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12652$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655$as_echo "no" >&6; }
12656 fi
12657 elif test $build != $host && test $have_gcc_for_target = yes; then
12658 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12659 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12660 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12661 fi
12662fi
12663if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12664 # Extract the first word of "objcopy", so it can be a program name with args.
12665set dummy objcopy; ac_word=$2
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667$as_echo_n "checking for $ac_word... " >&6; }
12668if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12669 $as_echo_n "(cached) " >&6
12670else
12671 case $OBJCOPY_FOR_TARGET in
12672 [\\/]* | ?:[\\/]*)
12673 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12674 ;;
12675 *)
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677for as_dir in $gcc_cv_tool_dirs
12678do
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12683 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 break 2
12686 fi
12687done
12688 done
12689IFS=$as_save_IFS
12690
12691 ;;
12692esac
12693fi
12694OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12695if test -n "$OBJCOPY_FOR_TARGET"; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12697$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12698else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
12701fi
12702
12703
12704fi
12705if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12706
12707
12708if test -n "$OBJCOPY_FOR_TARGET"; then
12709 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12710elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12711 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12712fi
12713
12714if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12715 for ncn_progname in objcopy; do
12716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12717set dummy ${ncn_progname}; ac_word=$2
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719$as_echo_n "checking for $ac_word... " >&6; }
12720if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722else
12723 if test -n "$OBJCOPY_FOR_TARGET"; then
12724 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12725else
12726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727for as_dir in $PATH
12728do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12736 fi
12737done
12738 done
12739IFS=$as_save_IFS
12740
12741fi
12742fi
12743OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12744if test -n "$OBJCOPY_FOR_TARGET"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12746$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12747else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
12750fi
12751
12752
12753 done
12754fi
12755
12756if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12757 for ncn_progname in objcopy; do
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12760 if test -x $with_build_time_tools/${ncn_progname}; then
12761 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763$as_echo "yes" >&6; }
12764 break
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
12768 fi
12769 done
12770fi
12771
12772if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12773 for ncn_progname in objcopy; do
12774 if test -n "$ncn_target_tool_prefix"; then
12775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781else
12782 if test -n "$OBJCOPY_FOR_TARGET"; then
12783 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796done
12797 done
12798IFS=$as_save_IFS
12799
12800fi
12801fi
12802OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12803if test -n "$OBJCOPY_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12805$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12806else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
12809fi
12810
12811
12812 fi
12813 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12815set dummy ${ncn_progname}; ac_word=$2
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817$as_echo_n "checking for $ac_word... " >&6; }
12818if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12819 $as_echo_n "(cached) " >&6
12820else
12821 if test -n "$OBJCOPY_FOR_TARGET"; then
12822 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12823else
12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 break 2
12834 fi
12835done
12836 done
12837IFS=$as_save_IFS
12838
12839fi
12840fi
12841OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12842if test -n "$OBJCOPY_FOR_TARGET"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12844$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12845else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
12848fi
12849
12850
12851 fi
12852 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12853 done
12854fi
12855
12856if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12857 set dummy objcopy
12858 if test $build = $target ; then
12859 OBJCOPY_FOR_TARGET="$2"
12860 else
12861 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12862 fi
12863else
12864 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12865fi
12866
12867else
12868 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12869fi
12870
12871
12872
12873
12874if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12875 if test -n "$with_build_time_tools"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12877$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12878 if test -x $with_build_time_tools/objdump; then
12879 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12880 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12882$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12883 else
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885$as_echo "no" >&6; }
12886 fi
12887 elif test $build != $host && test $have_gcc_for_target = yes; then
12888 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12889 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12890 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12891 fi
12892fi
12893if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12894 # Extract the first word of "objdump", so it can be a program name with args.
12895set dummy objdump; ac_word=$2
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897$as_echo_n "checking for $ac_word... " >&6; }
12898if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900else
12901 case $OBJDUMP_FOR_TARGET in
12902 [\\/]* | ?:[\\/]*)
12903 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12904 ;;
12905 *)
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907for as_dir in $gcc_cv_tool_dirs
12908do
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12916 fi
12917done
12918 done
12919IFS=$as_save_IFS
12920
12921 ;;
12922esac
12923fi
12924OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12925if test -n "$OBJDUMP_FOR_TARGET"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12927$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12928else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
12931fi
12932
12933
12934fi
12935if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12936
12937
12938if test -n "$OBJDUMP_FOR_TARGET"; then
12939 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12940elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12941 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12942fi
12943
12944if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12945 for ncn_progname in objdump; do
12946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12947set dummy ${ncn_progname}; ac_word=$2
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949$as_echo_n "checking for $ac_word... " >&6; }
12950if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952else
12953 if test -n "$OBJDUMP_FOR_TARGET"; then
12954 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12955else
12956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957for as_dir in $PATH
12958do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12966 fi
12967done
12968 done
12969IFS=$as_save_IFS
12970
12971fi
12972fi
12973OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12974if test -n "$OBJDUMP_FOR_TARGET"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12976$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12977else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
12980fi
12981
12982
12983 done
12984fi
12985
12986if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12987 for ncn_progname in objdump; do
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12989$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12990 if test -x $with_build_time_tools/${ncn_progname}; then
12991 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12993$as_echo "yes" >&6; }
12994 break
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997$as_echo "no" >&6; }
12998 fi
12999 done
13000fi
13001
13002if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13003 for ncn_progname in objdump; do
13004 if test -n "$ncn_target_tool_prefix"; then
13005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13006set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011else
13012 if test -n "$OBJDUMP_FOR_TARGET"; then
13013 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13014else
13015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $PATH
13017do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13022 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13025 fi
13026done
13027 done
13028IFS=$as_save_IFS
13029
13030fi
13031fi
13032OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13033if test -n "$OBJDUMP_FOR_TARGET"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13035$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13036else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
13039fi
13040
13041
13042 fi
13043 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13045set dummy ${ncn_progname}; ac_word=$2
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047$as_echo_n "checking for $ac_word... " >&6; }
13048if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050else
13051 if test -n "$OBJDUMP_FOR_TARGET"; then
13052 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13053else
13054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055for as_dir in $PATH
13056do
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13061 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13064 fi
13065done
13066 done
13067IFS=$as_save_IFS
13068
13069fi
13070fi
13071OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13072if test -n "$OBJDUMP_FOR_TARGET"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13074$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13075else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
13078fi
13079
13080
13081 fi
13082 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13083 done
13084fi
13085
13086if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13087 set dummy objdump
13088 if test $build = $target ; then
13089 OBJDUMP_FOR_TARGET="$2"
13090 else
13091 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13092 fi
13093else
13094 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13095fi
13096
13097else
13098 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13099fi
13100
13101
13102
13103
13104if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13105 if test -n "$with_build_time_tools"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13107$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13108 if test -x $with_build_time_tools/ranlib; then
13109 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13110 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13112$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13113 else
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115$as_echo "no" >&6; }
13116 fi
13117 elif test $build != $host && test $have_gcc_for_target = yes; then
13118 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13119 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13120 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13121 fi
13122fi
13123if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13124 # Extract the first word of "ranlib", so it can be a program name with args.
13125set dummy ranlib; ac_word=$2
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
13128if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130else
13131 case $RANLIB_FOR_TARGET in
13132 [\\/]* | ?:[\\/]*)
13133 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13134 ;;
13135 *)
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $gcc_cv_tool_dirs
13138do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145 break 2
13146 fi
13147done
13148 done
13149IFS=$as_save_IFS
13150
13151 ;;
13152esac
13153fi
13154RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13155if test -n "$RANLIB_FOR_TARGET"; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13157$as_echo "$RANLIB_FOR_TARGET" >&6; }
13158else
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160$as_echo "no" >&6; }
13161fi
13162
13163
13164fi
13165if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13166
13167
13168if test -n "$RANLIB_FOR_TARGET"; then
13169 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13170elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13171 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13172fi
13173
13174if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13175 for ncn_progname in ranlib; do
13176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13177set dummy ${ncn_progname}; ac_word=$2
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179$as_echo_n "checking for $ac_word... " >&6; }
13180if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13181 $as_echo_n "(cached) " >&6
13182else
13183 if test -n "$RANLIB_FOR_TARGET"; then
13184 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13185else
13186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187for as_dir in $PATH
13188do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13193 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13196 fi
13197done
13198 done
13199IFS=$as_save_IFS
13200
13201fi
13202fi
13203RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13204if test -n "$RANLIB_FOR_TARGET"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13206$as_echo "$RANLIB_FOR_TARGET" >&6; }
13207else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209$as_echo "no" >&6; }
13210fi
13211
13212
13213 done
13214fi
13215
13216if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13217 for ncn_progname in ranlib; do
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13219$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13220 if test -x $with_build_time_tools/${ncn_progname}; then
13221 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13223$as_echo "yes" >&6; }
13224 break
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
13228 fi
13229 done
13230fi
13231
13232if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13233 for ncn_progname in ranlib; do
13234 if test -n "$ncn_target_tool_prefix"; then
13235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13236set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
13239if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13240 $as_echo_n "(cached) " >&6
13241else
13242 if test -n "$RANLIB_FOR_TARGET"; then
13243 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13244else
13245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13252 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13255 fi
13256done
13257 done
13258IFS=$as_save_IFS
13259
13260fi
13261fi
13262RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13263if test -n "$RANLIB_FOR_TARGET"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13265$as_echo "$RANLIB_FOR_TARGET" >&6; }
13266else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
13269fi
13270
13271
13272 fi
13273 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13275set dummy ${ncn_progname}; ac_word=$2
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
13278if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280else
13281 if test -n "$RANLIB_FOR_TARGET"; then
13282 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296 done
13297IFS=$as_save_IFS
13298
13299fi
13300fi
13301RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13302if test -n "$RANLIB_FOR_TARGET"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13304$as_echo "$RANLIB_FOR_TARGET" >&6; }
13305else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307$as_echo "no" >&6; }
13308fi
13309
13310
13311 fi
13312 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13313 done
13314fi
13315
13316if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13317 set dummy ranlib
13318 if test $build = $target ; then
13319 RANLIB_FOR_TARGET="$2"
13320 else
13321 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13322 fi
13323else
13324 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13325fi
13326
13327else
13328 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13329fi
13330
13331
13332
13333
13334if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13335 if test -n "$with_build_time_tools"; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13337$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13338 if test -x $with_build_time_tools/readelf; then
13339 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13340 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13342$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13343 else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345$as_echo "no" >&6; }
13346 fi
13347 elif test $build != $host && test $have_gcc_for_target = yes; then
13348 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13349 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13350 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13351 fi
13352fi
13353if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13354 # Extract the first word of "readelf", so it can be a program name with args.
13355set dummy readelf; ac_word=$2
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357$as_echo_n "checking for $ac_word... " >&6; }
13358if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360else
13361 case $READELF_FOR_TARGET in
13362 [\\/]* | ?:[\\/]*)
13363 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13364 ;;
13365 *)
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367for as_dir in $gcc_cv_tool_dirs
13368do
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13373 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13376 fi
13377done
13378 done
13379IFS=$as_save_IFS
13380
13381 ;;
13382esac
13383fi
13384READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13385if test -n "$READELF_FOR_TARGET"; then
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13387$as_echo "$READELF_FOR_TARGET" >&6; }
13388else
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390$as_echo "no" >&6; }
13391fi
13392
13393
13394fi
13395if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13396
13397
13398if test -n "$READELF_FOR_TARGET"; then
13399 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13400elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13401 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13402fi
13403
13404if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13405 for ncn_progname in readelf; do
13406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13407set dummy ${ncn_progname}; ac_word=$2
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409$as_echo_n "checking for $ac_word... " >&6; }
13410if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13411 $as_echo_n "(cached) " >&6
13412else
13413 if test -n "$READELF_FOR_TARGET"; then
13414 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13415else
13416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417for as_dir in $PATH
13418do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13423 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 break 2
13426 fi
13427done
13428 done
13429IFS=$as_save_IFS
13430
13431fi
13432fi
13433READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13434if test -n "$READELF_FOR_TARGET"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13436$as_echo "$READELF_FOR_TARGET" >&6; }
13437else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439$as_echo "no" >&6; }
13440fi
13441
13442
13443 done
13444fi
13445
13446if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13447 for ncn_progname in readelf; do
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13449$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13450 if test -x $with_build_time_tools/${ncn_progname}; then
13451 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453$as_echo "yes" >&6; }
13454 break
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
13458 fi
13459 done
13460fi
13461
13462if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13463 for ncn_progname in readelf; do
13464 if test -n "$ncn_target_tool_prefix"; then
13465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13466set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468$as_echo_n "checking for $ac_word... " >&6; }
13469if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471else
13472 if test -n "$READELF_FOR_TARGET"; then
13473 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13474else
13475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476for as_dir in $PATH
13477do
13478 IFS=$as_save_IFS
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13482 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 break 2
13485 fi
13486done
13487 done
13488IFS=$as_save_IFS
13489
13490fi
13491fi
13492READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13493if test -n "$READELF_FOR_TARGET"; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13495$as_echo "$READELF_FOR_TARGET" >&6; }
13496else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498$as_echo "no" >&6; }
13499fi
13500
13501
13502 fi
13503 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13505set dummy ${ncn_progname}; ac_word=$2
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13507$as_echo_n "checking for $ac_word... " >&6; }
13508if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510else
13511 if test -n "$READELF_FOR_TARGET"; then
13512 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13513else
13514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515for as_dir in $PATH
13516do
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13521 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13523 break 2
13524 fi
13525done
13526 done
13527IFS=$as_save_IFS
13528
13529fi
13530fi
13531READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13532if test -n "$READELF_FOR_TARGET"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13534$as_echo "$READELF_FOR_TARGET" >&6; }
13535else
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13537$as_echo "no" >&6; }
13538fi
13539
13540
13541 fi
13542 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13543 done
13544fi
13545
13546if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13547 set dummy readelf
13548 if test $build = $target ; then
13549 READELF_FOR_TARGET="$2"
13550 else
13551 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13552 fi
13553else
13554 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13555fi
13556
13557else
13558 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13559fi
13560
13561
13562
13563
13564if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13565 if test -n "$with_build_time_tools"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13567$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13568 if test -x $with_build_time_tools/strip; then
13569 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13570 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13572$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13573 else
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575$as_echo "no" >&6; }
13576 fi
13577 elif test $build != $host && test $have_gcc_for_target = yes; then
13578 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13579 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13580 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13581 fi
13582fi
13583if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13584 # Extract the first word of "strip", so it can be a program name with args.
13585set dummy strip; ac_word=$2
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587$as_echo_n "checking for $ac_word... " >&6; }
13588if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13589 $as_echo_n "(cached) " >&6
13590else
13591 case $STRIP_FOR_TARGET in
13592 [\\/]* | ?:[\\/]*)
13593 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13594 ;;
13595 *)
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597for as_dir in $gcc_cv_tool_dirs
13598do
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 break 2
13606 fi
13607done
13608 done
13609IFS=$as_save_IFS
13610
13611 ;;
13612esac
13613fi
13614STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13615if test -n "$STRIP_FOR_TARGET"; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13617$as_echo "$STRIP_FOR_TARGET" >&6; }
13618else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620$as_echo "no" >&6; }
13621fi
13622
13623
13624fi
13625if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13626
13627
13628if test -n "$STRIP_FOR_TARGET"; then
13629 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13630elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13631 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13632fi
13633
13634if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13635 for ncn_progname in strip; do
13636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13637set dummy ${ncn_progname}; ac_word=$2
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13639$as_echo_n "checking for $ac_word... " >&6; }
13640if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642else
13643 if test -n "$STRIP_FOR_TARGET"; then
13644 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13645else
13646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647for as_dir in $PATH
13648do
13649 IFS=$as_save_IFS
13650 test -z "$as_dir" && as_dir=.
13651 for ac_exec_ext in '' $ac_executable_extensions; do
13652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13653 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13655 break 2
13656 fi
13657done
13658 done
13659IFS=$as_save_IFS
13660
13661fi
13662fi
13663STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13664if test -n "$STRIP_FOR_TARGET"; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13666$as_echo "$STRIP_FOR_TARGET" >&6; }
13667else
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669$as_echo "no" >&6; }
13670fi
13671
13672
13673 done
13674fi
13675
13676if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13677 for ncn_progname in strip; do
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13679$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13680 if test -x $with_build_time_tools/${ncn_progname}; then
13681 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13683$as_echo "yes" >&6; }
13684 break
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687$as_echo "no" >&6; }
13688 fi
13689 done
13690fi
13691
13692if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13693 for ncn_progname in strip; do
13694 if test -n "$ncn_target_tool_prefix"; then
13695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698$as_echo_n "checking for $ac_word... " >&6; }
13699if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701else
13702 if test -n "$STRIP_FOR_TARGET"; then
13703 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13704else
13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706for as_dir in $PATH
13707do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716done
13717 done
13718IFS=$as_save_IFS
13719
13720fi
13721fi
13722STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13723if test -n "$STRIP_FOR_TARGET"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13725$as_echo "$STRIP_FOR_TARGET" >&6; }
13726else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728$as_echo "no" >&6; }
13729fi
13730
13731
13732 fi
13733 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13735set dummy ${ncn_progname}; ac_word=$2
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
13738if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740else
13741 if test -n "$STRIP_FOR_TARGET"; then
13742 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13743else
13744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745for as_dir in $PATH
13746do
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13751 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13754 fi
13755done
13756 done
13757IFS=$as_save_IFS
13758
13759fi
13760fi
13761STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13762if test -n "$STRIP_FOR_TARGET"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13764$as_echo "$STRIP_FOR_TARGET" >&6; }
13765else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768fi
13769
13770
13771 fi
13772 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13773 done
13774fi
13775
13776if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13777 set dummy strip
13778 if test $build = $target ; then
13779 STRIP_FOR_TARGET="$2"
13780 else
13781 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13782 fi
13783else
13784 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13785fi
13786
13787else
13788 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13789fi
13790
13791
13792
13793
13794if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13795 if test -n "$with_build_time_tools"; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13797$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13798 if test -x $with_build_time_tools/windres; then
13799 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13800 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13802$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13803 else
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805$as_echo "no" >&6; }
13806 fi
13807 elif test $build != $host && test $have_gcc_for_target = yes; then
13808 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13809 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13810 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13811 fi
13812fi
13813if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13814 # Extract the first word of "windres", so it can be a program name with args.
13815set dummy windres; ac_word=$2
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817$as_echo_n "checking for $ac_word... " >&6; }
13818if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820else
13821 case $WINDRES_FOR_TARGET in
13822 [\\/]* | ?:[\\/]*)
13823 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13824 ;;
13825 *)
13826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13827for as_dir in $gcc_cv_tool_dirs
13828do
13829 IFS=$as_save_IFS
13830 test -z "$as_dir" && as_dir=.
13831 for ac_exec_ext in '' $ac_executable_extensions; do
13832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13833 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13835 break 2
13836 fi
13837done
13838 done
13839IFS=$as_save_IFS
13840
13841 ;;
13842esac
13843fi
13844WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13845if test -n "$WINDRES_FOR_TARGET"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13847$as_echo "$WINDRES_FOR_TARGET" >&6; }
13848else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850$as_echo "no" >&6; }
13851fi
13852
13853
13854fi
13855if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13856
13857
13858if test -n "$WINDRES_FOR_TARGET"; then
13859 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13860elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13861 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13862fi
13863
13864if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13865 for ncn_progname in windres; do
13866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13867set dummy ${ncn_progname}; ac_word=$2
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13869$as_echo_n "checking for $ac_word... " >&6; }
13870if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872else
13873 if test -n "$WINDRES_FOR_TARGET"; then
13874 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888 done
13889IFS=$as_save_IFS
13890
13891fi
13892fi
13893WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13894if test -n "$WINDRES_FOR_TARGET"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13896$as_echo "$WINDRES_FOR_TARGET" >&6; }
13897else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899$as_echo "no" >&6; }
13900fi
13901
13902
13903 done
13904fi
13905
13906if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13907 for ncn_progname in windres; do
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13909$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13910 if test -x $with_build_time_tools/${ncn_progname}; then
13911 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913$as_echo "yes" >&6; }
13914 break
13915 else
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917$as_echo "no" >&6; }
13918 fi
13919 done
13920fi
13921
13922if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13923 for ncn_progname in windres; do
13924 if test -n "$ncn_target_tool_prefix"; then
13925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13926set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928$as_echo_n "checking for $ac_word... " >&6; }
13929if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931else
13932 if test -n "$WINDRES_FOR_TARGET"; then
13933 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13934else
13935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936for as_dir in $PATH
13937do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13945 fi
13946done
13947 done
13948IFS=$as_save_IFS
13949
13950fi
13951fi
13952WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13953if test -n "$WINDRES_FOR_TARGET"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13955$as_echo "$WINDRES_FOR_TARGET" >&6; }
13956else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
13959fi
13960
13961
13962 fi
13963 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13965set dummy ${ncn_progname}; ac_word=$2
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967$as_echo_n "checking for $ac_word... " >&6; }
13968if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970else
13971 if test -n "$WINDRES_FOR_TARGET"; then
13972 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13973else
13974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975for as_dir in $PATH
13976do
13977 IFS=$as_save_IFS
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13981 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 break 2
13984 fi
13985done
13986 done
13987IFS=$as_save_IFS
13988
13989fi
13990fi
13991WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13992if test -n "$WINDRES_FOR_TARGET"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13994$as_echo "$WINDRES_FOR_TARGET" >&6; }
13995else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13997$as_echo "no" >&6; }
13998fi
13999
14000
14001 fi
14002 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14003 done
14004fi
14005
14006if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14007 set dummy windres
14008 if test $build = $target ; then
14009 WINDRES_FOR_TARGET="$2"
14010 else
14011 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14012 fi
14013else
14014 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14015fi
14016
14017else
14018 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14019fi
14020
14021
14022
14023
14024if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14025 if test -n "$with_build_time_tools"; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14027$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14028 if test -x $with_build_time_tools/windmc; then
14029 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14030 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14032$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14033 else
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035$as_echo "no" >&6; }
14036 fi
14037 elif test $build != $host && test $have_gcc_for_target = yes; then
14038 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14039 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14040 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14041 fi
14042fi
14043if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14044 # Extract the first word of "windmc", so it can be a program name with args.
14045set dummy windmc; ac_word=$2
14046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14047$as_echo_n "checking for $ac_word... " >&6; }
14048if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050else
14051 case $WINDMC_FOR_TARGET in
14052 [\\/]* | ?:[\\/]*)
14053 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14054 ;;
14055 *)
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057for as_dir in $gcc_cv_tool_dirs
14058do
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14063 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14065 break 2
14066 fi
14067done
14068 done
14069IFS=$as_save_IFS
14070
14071 ;;
14072esac
14073fi
14074WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14075if test -n "$WINDMC_FOR_TARGET"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14077$as_echo "$WINDMC_FOR_TARGET" >&6; }
14078else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080$as_echo "no" >&6; }
14081fi
14082
14083
14084fi
14085if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14086
14087
14088if test -n "$WINDMC_FOR_TARGET"; then
14089 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14090elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14091 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14092fi
14093
14094if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14095 for ncn_progname in windmc; do
14096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14097set dummy ${ncn_progname}; ac_word=$2
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099$as_echo_n "checking for $ac_word... " >&6; }
14100if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14101 $as_echo_n "(cached) " >&6
14102else
14103 if test -n "$WINDMC_FOR_TARGET"; then
14104 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14105else
14106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107for as_dir in $PATH
14108do
14109 IFS=$as_save_IFS
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14113 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 break 2
14116 fi
14117done
14118 done
14119IFS=$as_save_IFS
14120
14121fi
14122fi
14123WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14124if test -n "$WINDMC_FOR_TARGET"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14126$as_echo "$WINDMC_FOR_TARGET" >&6; }
14127else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129$as_echo "no" >&6; }
14130fi
14131
14132
14133 done
14134fi
14135
14136if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14137 for ncn_progname in windmc; do
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14139$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14140 if test -x $with_build_time_tools/${ncn_progname}; then
14141 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14143$as_echo "yes" >&6; }
14144 break
14145 else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147$as_echo "no" >&6; }
14148 fi
14149 done
14150fi
14151
14152if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14153 for ncn_progname in windmc; do
14154 if test -n "$ncn_target_tool_prefix"; then
14155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14156set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14158$as_echo_n "checking for $ac_word... " >&6; }
14159if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14160 $as_echo_n "(cached) " >&6
14161else
14162 if test -n "$WINDMC_FOR_TARGET"; then
14163 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14164else
14165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14166for as_dir in $PATH
14167do
14168 IFS=$as_save_IFS
14169 test -z "$as_dir" && as_dir=.
14170 for ac_exec_ext in '' $ac_executable_extensions; do
14171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14172 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14174 break 2
14175 fi
14176done
14177 done
14178IFS=$as_save_IFS
14179
14180fi
14181fi
14182WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14183if test -n "$WINDMC_FOR_TARGET"; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14185$as_echo "$WINDMC_FOR_TARGET" >&6; }
14186else
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188$as_echo "no" >&6; }
14189fi
14190
14191
14192 fi
14193 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14195set dummy ${ncn_progname}; ac_word=$2
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197$as_echo_n "checking for $ac_word... " >&6; }
14198if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200else
14201 if test -n "$WINDMC_FOR_TARGET"; then
14202 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14203else
14204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205for as_dir in $PATH
14206do
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14211 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14214 fi
14215done
14216 done
14217IFS=$as_save_IFS
14218
14219fi
14220fi
14221WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14222if test -n "$WINDMC_FOR_TARGET"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14224$as_echo "$WINDMC_FOR_TARGET" >&6; }
14225else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227$as_echo "no" >&6; }
14228fi
14229
14230
14231 fi
14232 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14233 done
14234fi
14235
14236if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14237 set dummy windmc
14238 if test $build = $target ; then
14239 WINDMC_FOR_TARGET="$2"
14240 else
14241 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14242 fi
14243else
14244 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14245fi
14246
14247else
14248 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14249fi
14250
14251
14252RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14253
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14255$as_echo_n "checking where to find the target ar... " >&6; }
14256if test "x${build}" != "x${host}" ; then
14257 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14258 # We already found the complete path
14259 ac_dir=`dirname $AR_FOR_TARGET`
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14261$as_echo "pre-installed in $ac_dir" >&6; }
14262 else
14263 # Canadian cross, just use what we found
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265$as_echo "pre-installed" >&6; }
14266 fi
14267else
14268 ok=yes
14269 case " ${configdirs} " in
14270 *" binutils "*) ;;
14271 *) ok=no ;;
14272 esac
14273
14274 if test $ok = yes; then
14275 # An in-tree tool is available and we can use it
14276 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14278$as_echo "just compiled" >&6; }
14279 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14280 # We already found the complete path
14281 ac_dir=`dirname $AR_FOR_TARGET`
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14283$as_echo "pre-installed in $ac_dir" >&6; }
14284 elif test "x$target" = "x$host"; then
14285 # We can use an host tool
14286 AR_FOR_TARGET='$(AR)'
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14288$as_echo "host tool" >&6; }
14289 else
14290 # We need a cross tool
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14292$as_echo "pre-installed" >&6; }
14293 fi
14294fi
14295
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14297$as_echo_n "checking where to find the target as... " >&6; }
14298if test "x${build}" != "x${host}" ; then
14299 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14300 # We already found the complete path
14301 ac_dir=`dirname $AS_FOR_TARGET`
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14303$as_echo "pre-installed in $ac_dir" >&6; }
14304 else
14305 # Canadian cross, just use what we found
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307$as_echo "pre-installed" >&6; }
14308 fi
14309else
14310 ok=yes
14311 case " ${configdirs} " in
14312 *" gas "*) ;;
14313 *) ok=no ;;
14314 esac
14315
14316 if test $ok = yes; then
14317 # An in-tree tool is available and we can use it
14318 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14320$as_echo "just compiled" >&6; }
14321 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14322 # We already found the complete path
14323 ac_dir=`dirname $AS_FOR_TARGET`
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14325$as_echo "pre-installed in $ac_dir" >&6; }
14326 elif test "x$target" = "x$host"; then
14327 # We can use an host tool
14328 AS_FOR_TARGET='$(AS)'
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14330$as_echo "host tool" >&6; }
14331 else
14332 # We need a cross tool
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334$as_echo "pre-installed" >&6; }
14335 fi
14336fi
14337
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14339$as_echo_n "checking where to find the target cc... " >&6; }
14340if test "x${build}" != "x${host}" ; then
14341 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14342 # We already found the complete path
14343 ac_dir=`dirname $CC_FOR_TARGET`
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14345$as_echo "pre-installed in $ac_dir" >&6; }
14346 else
14347 # Canadian cross, just use what we found
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349$as_echo "pre-installed" >&6; }
14350 fi
14351else
14352 ok=yes
14353 case " ${configdirs} " in
14354 *" gcc "*) ;;
14355 *) ok=no ;;
14356 esac
14357
14358 if test $ok = yes; then
14359 # An in-tree tool is available and we can use it
14360 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14362$as_echo "just compiled" >&6; }
14363 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14364 # We already found the complete path
14365 ac_dir=`dirname $CC_FOR_TARGET`
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14367$as_echo "pre-installed in $ac_dir" >&6; }
14368 elif test "x$target" = "x$host"; then
14369 # We can use an host tool
14370 CC_FOR_TARGET='$(CC)'
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14372$as_echo "host tool" >&6; }
14373 else
14374 # We need a cross tool
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376$as_echo "pre-installed" >&6; }
14377 fi
14378fi
14379
14380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14381$as_echo_n "checking where to find the target c++... " >&6; }
14382if test "x${build}" != "x${host}" ; then
14383 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14384 # We already found the complete path
14385 ac_dir=`dirname $CXX_FOR_TARGET`
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14387$as_echo "pre-installed in $ac_dir" >&6; }
14388 else
14389 # Canadian cross, just use what we found
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391$as_echo "pre-installed" >&6; }
14392 fi
14393else
14394 ok=yes
14395 case " ${configdirs} " in
14396 *" gcc "*) ;;
14397 *) ok=no ;;
14398 esac
14399 case ,${enable_languages}, in
14400 *,c++,*) ;;
14401 *) ok=no ;;
14402 esac
14403 if test $ok = yes; then
14404 # An in-tree tool is available and we can use it
14405 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'
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14407$as_echo "just compiled" >&6; }
14408 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14409 # We already found the complete path
14410 ac_dir=`dirname $CXX_FOR_TARGET`
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14412$as_echo "pre-installed in $ac_dir" >&6; }
14413 elif test "x$target" = "x$host"; then
14414 # We can use an host tool
14415 CXX_FOR_TARGET='$(CXX)'
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14417$as_echo "host tool" >&6; }
14418 else
14419 # We need a cross tool
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14421$as_echo "pre-installed" >&6; }
14422 fi
14423fi
14424
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14426$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14427if test "x${build}" != "x${host}" ; then
14428 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14429 # We already found the complete path
14430 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14432$as_echo "pre-installed in $ac_dir" >&6; }
14433 else
14434 # Canadian cross, just use what we found
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14436$as_echo "pre-installed" >&6; }
14437 fi
14438else
14439 ok=yes
14440 case " ${configdirs} " in
14441 *" gcc "*) ;;
14442 *) ok=no ;;
14443 esac
14444 case ,${enable_languages}, in
14445 *,c++,*) ;;
14446 *) ok=no ;;
14447 esac
14448 if test $ok = yes; then
14449 # An in-tree tool is available and we can use it
14450 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'
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14452$as_echo "just compiled" >&6; }
14453 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14454 # We already found the complete path
14455 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14457$as_echo "pre-installed in $ac_dir" >&6; }
14458 elif test "x$target" = "x$host"; then
14459 # We can use an host tool
14460 RAW_CXX_FOR_TARGET='$(CXX)'
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14462$as_echo "host tool" >&6; }
14463 else
14464 # We need a cross tool
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466$as_echo "pre-installed" >&6; }
14467 fi
14468fi
14469
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14471$as_echo_n "checking where to find the target dlltool... " >&6; }
14472if test "x${build}" != "x${host}" ; then
14473 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14474 # We already found the complete path
14475 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477$as_echo "pre-installed in $ac_dir" >&6; }
14478 else
14479 # Canadian cross, just use what we found
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481$as_echo "pre-installed" >&6; }
14482 fi
14483else
14484 ok=yes
14485 case " ${configdirs} " in
14486 *" binutils "*) ;;
14487 *) ok=no ;;
14488 esac
14489
14490 if test $ok = yes; then
14491 # An in-tree tool is available and we can use it
14492 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14494$as_echo "just compiled" >&6; }
14495 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14496 # We already found the complete path
14497 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499$as_echo "pre-installed in $ac_dir" >&6; }
14500 elif test "x$target" = "x$host"; then
14501 # We can use an host tool
14502 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14504$as_echo "host tool" >&6; }
14505 else
14506 # We need a cross tool
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508$as_echo "pre-installed" >&6; }
14509 fi
14510fi
14511
14512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14513$as_echo_n "checking where to find the target gcc... " >&6; }
14514if test "x${build}" != "x${host}" ; then
14515 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14516 # We already found the complete path
14517 ac_dir=`dirname $GCC_FOR_TARGET`
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14519$as_echo "pre-installed in $ac_dir" >&6; }
14520 else
14521 # Canadian cross, just use what we found
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523$as_echo "pre-installed" >&6; }
14524 fi
14525else
14526 ok=yes
14527 case " ${configdirs} " in
14528 *" gcc "*) ;;
14529 *) ok=no ;;
14530 esac
14531
14532 if test $ok = yes; then
14533 # An in-tree tool is available and we can use it
14534 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14536$as_echo "just compiled" >&6; }
14537 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14538 # We already found the complete path
14539 ac_dir=`dirname $GCC_FOR_TARGET`
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541$as_echo "pre-installed in $ac_dir" >&6; }
14542 elif test "x$target" = "x$host"; then
14543 # We can use an host tool
14544 GCC_FOR_TARGET='$()'
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14546$as_echo "host tool" >&6; }
14547 else
14548 # We need a cross tool
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550$as_echo "pre-installed" >&6; }
14551 fi
14552fi
14553
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14555$as_echo_n "checking where to find the target gfortran... " >&6; }
14556if test "x${build}" != "x${host}" ; then
14557 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14558 # We already found the complete path
14559 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14561$as_echo "pre-installed in $ac_dir" >&6; }
14562 else
14563 # Canadian cross, just use what we found
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565$as_echo "pre-installed" >&6; }
14566 fi
14567else
14568 ok=yes
14569 case " ${configdirs} " in
14570 *" gcc "*) ;;
14571 *) ok=no ;;
14572 esac
14573 case ,${enable_languages}, in
14574 *,fortran,*) ;;
14575 *) ok=no ;;
14576 esac
14577 if test $ok = yes; then
14578 # An in-tree tool is available and we can use it
14579 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14581$as_echo "just compiled" >&6; }
14582 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
14584 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586$as_echo "pre-installed in $ac_dir" >&6; }
14587 elif test "x$target" = "x$host"; then
14588 # We can use an host tool
14589 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14591$as_echo "host tool" >&6; }
14592 else
14593 # We need a cross tool
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14595$as_echo "pre-installed" >&6; }
14596 fi
14597fi
14598
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14600$as_echo_n "checking where to find the target gccgo... " >&6; }
14601if test "x${build}" != "x${host}" ; then
14602 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14603 # We already found the complete path
14604 ac_dir=`dirname $GOC_FOR_TARGET`
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14606$as_echo "pre-installed in $ac_dir" >&6; }
14607 else
14608 # Canadian cross, just use what we found
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14610$as_echo "pre-installed" >&6; }
14611 fi
14612else
14613 ok=yes
14614 case " ${configdirs} " in
14615 *" gcc "*) ;;
14616 *) ok=no ;;
14617 esac
14618 case ,${enable_languages}, in
14619 *,go,*) ;;
14620 *) ok=no ;;
14621 esac
14622 if test $ok = yes; then
14623 # An in-tree tool is available and we can use it
14624 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14626$as_echo "just compiled" >&6; }
14627 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14628 # We already found the complete path
14629 ac_dir=`dirname $GOC_FOR_TARGET`
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14631$as_echo "pre-installed in $ac_dir" >&6; }
14632 elif test "x$target" = "x$host"; then
14633 # We can use an host tool
14634 GOC_FOR_TARGET='$(GOC)'
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14636$as_echo "host tool" >&6; }
14637 else
14638 # We need a cross tool
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14640$as_echo "pre-installed" >&6; }
14641 fi
14642fi
14643
14644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14645$as_echo_n "checking where to find the target ld... " >&6; }
14646if test "x${build}" != "x${host}" ; then
14647 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14648 # We already found the complete path
14649 ac_dir=`dirname $LD_FOR_TARGET`
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14651$as_echo "pre-installed in $ac_dir" >&6; }
14652 else
14653 # Canadian cross, just use what we found
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14655$as_echo "pre-installed" >&6; }
14656 fi
14657else
14658 ok=yes
14659 case " ${configdirs} " in
14660 *" ld "*) ;;
14661 *) ok=no ;;
14662 esac
14663
14664 if test $ok = yes; then
14665 # An in-tree tool is available and we can use it
14666 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14668$as_echo "just compiled" >&6; }
14669 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14670 # We already found the complete path
14671 ac_dir=`dirname $LD_FOR_TARGET`
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14673$as_echo "pre-installed in $ac_dir" >&6; }
14674 elif test "x$target" = "x$host"; then
14675 # We can use an host tool
14676 LD_FOR_TARGET='$(LD)'
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14678$as_echo "host tool" >&6; }
14679 else
14680 # We need a cross tool
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14682$as_echo "pre-installed" >&6; }
14683 fi
14684fi
14685
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14687$as_echo_n "checking where to find the target lipo... " >&6; }
14688if test "x${build}" != "x${host}" ; then
14689 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14690 # We already found the complete path
14691 ac_dir=`dirname $LIPO_FOR_TARGET`
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14693$as_echo "pre-installed in $ac_dir" >&6; }
14694 else
14695 # Canadian cross, just use what we found
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14697$as_echo "pre-installed" >&6; }
14698 fi
14699else
14700 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14701 # We already found the complete path
14702 ac_dir=`dirname $LIPO_FOR_TARGET`
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14704$as_echo "pre-installed in $ac_dir" >&6; }
14705 elif test "x$target" = "x$host"; then
14706 # We can use an host tool
14707 LIPO_FOR_TARGET='$(LIPO)'
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14709$as_echo "host tool" >&6; }
14710 else
14711 # We need a cross tool
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14713$as_echo "pre-installed" >&6; }
14714 fi
14715fi
14716
14717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14718$as_echo_n "checking where to find the target nm... " >&6; }
14719if test "x${build}" != "x${host}" ; then
14720 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14721 # We already found the complete path
14722 ac_dir=`dirname $NM_FOR_TARGET`
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14724$as_echo "pre-installed in $ac_dir" >&6; }
14725 else
14726 # Canadian cross, just use what we found
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14728$as_echo "pre-installed" >&6; }
14729 fi
14730else
14731 ok=yes
14732 case " ${configdirs} " in
14733 *" binutils "*) ;;
14734 *) ok=no ;;
14735 esac
14736
14737 if test $ok = yes; then
14738 # An in-tree tool is available and we can use it
14739 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14741$as_echo "just compiled" >&6; }
14742 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14743 # We already found the complete path
14744 ac_dir=`dirname $NM_FOR_TARGET`
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14746$as_echo "pre-installed in $ac_dir" >&6; }
14747 elif test "x$target" = "x$host"; then
14748 # We can use an host tool
14749 NM_FOR_TARGET='$(NM)'
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14751$as_echo "host tool" >&6; }
14752 else
14753 # We need a cross tool
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14755$as_echo "pre-installed" >&6; }
14756 fi
14757fi
14758
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14760$as_echo_n "checking where to find the target objcopy... " >&6; }
14761if test "x${build}" != "x${host}" ; then
14762 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14763 # We already found the complete path
14764 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14766$as_echo "pre-installed in $ac_dir" >&6; }
14767 else
14768 # Canadian cross, just use what we found
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14770$as_echo "pre-installed" >&6; }
14771 fi
14772else
14773 ok=yes
14774 case " ${configdirs} " in
14775 *" binutils "*) ;;
14776 *) ok=no ;;
14777 esac
14778
14779 if test $ok = yes; then
14780 # An in-tree tool is available and we can use it
14781 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14783$as_echo "just compiled" >&6; }
14784 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14785 # We already found the complete path
14786 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14788$as_echo "pre-installed in $ac_dir" >&6; }
14789 elif test "x$target" = "x$host"; then
14790 # We can use an host tool
14791 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14793$as_echo "host tool" >&6; }
14794 else
14795 # We need a cross tool
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14797$as_echo "pre-installed" >&6; }
14798 fi
14799fi
14800
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14802$as_echo_n "checking where to find the target objdump... " >&6; }
14803if test "x${build}" != "x${host}" ; then
14804 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14805 # We already found the complete path
14806 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14808$as_echo "pre-installed in $ac_dir" >&6; }
14809 else
14810 # Canadian cross, just use what we found
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14812$as_echo "pre-installed" >&6; }
14813 fi
14814else
14815 ok=yes
14816 case " ${configdirs} " in
14817 *" binutils "*) ;;
14818 *) ok=no ;;
14819 esac
14820
14821 if test $ok = yes; then
14822 # An in-tree tool is available and we can use it
14823 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14825$as_echo "just compiled" >&6; }
14826 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14827 # We already found the complete path
14828 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14830$as_echo "pre-installed in $ac_dir" >&6; }
14831 elif test "x$target" = "x$host"; then
14832 # We can use an host tool
14833 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14835$as_echo "host tool" >&6; }
14836 else
14837 # We need a cross tool
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14839$as_echo "pre-installed" >&6; }
14840 fi
14841fi
14842
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14844$as_echo_n "checking where to find the target ranlib... " >&6; }
14845if test "x${build}" != "x${host}" ; then
14846 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14847 # We already found the complete path
14848 ac_dir=`dirname $RANLIB_FOR_TARGET`
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14850$as_echo "pre-installed in $ac_dir" >&6; }
14851 else
14852 # Canadian cross, just use what we found
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14854$as_echo "pre-installed" >&6; }
14855 fi
14856else
14857 ok=yes
14858 case " ${configdirs} " in
14859 *" binutils "*) ;;
14860 *) ok=no ;;
14861 esac
14862
14863 if test $ok = yes; then
14864 # An in-tree tool is available and we can use it
14865 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14867$as_echo "just compiled" >&6; }
14868 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14869 # We already found the complete path
14870 ac_dir=`dirname $RANLIB_FOR_TARGET`
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14872$as_echo "pre-installed in $ac_dir" >&6; }
14873 elif test "x$target" = "x$host"; then
14874 # We can use an host tool
14875 RANLIB_FOR_TARGET='$(RANLIB)'
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14877$as_echo "host tool" >&6; }
14878 else
14879 # We need a cross tool
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14881$as_echo "pre-installed" >&6; }
14882 fi
14883fi
14884
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14886$as_echo_n "checking where to find the target readelf... " >&6; }
14887if test "x${build}" != "x${host}" ; then
14888 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14889 # We already found the complete path
14890 ac_dir=`dirname $READELF_FOR_TARGET`
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14892$as_echo "pre-installed in $ac_dir" >&6; }
14893 else
14894 # Canadian cross, just use what we found
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14896$as_echo "pre-installed" >&6; }
14897 fi
14898else
14899 ok=yes
14900 case " ${configdirs} " in
14901 *" binutils "*) ;;
14902 *) ok=no ;;
14903 esac
14904
14905 if test $ok = yes; then
14906 # An in-tree tool is available and we can use it
14907 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14909$as_echo "just compiled" >&6; }
14910 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14911 # We already found the complete path
14912 ac_dir=`dirname $READELF_FOR_TARGET`
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14914$as_echo "pre-installed in $ac_dir" >&6; }
14915 elif test "x$target" = "x$host"; then
14916 # We can use an host tool
14917 READELF_FOR_TARGET='$(READELF)'
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14919$as_echo "host tool" >&6; }
14920 else
14921 # We need a cross tool
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14923$as_echo "pre-installed" >&6; }
14924 fi
14925fi
14926
14927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14928$as_echo_n "checking where to find the target strip... " >&6; }
14929if test "x${build}" != "x${host}" ; then
14930 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14931 # We already found the complete path
14932 ac_dir=`dirname $STRIP_FOR_TARGET`
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14934$as_echo "pre-installed in $ac_dir" >&6; }
14935 else
14936 # Canadian cross, just use what we found
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14938$as_echo "pre-installed" >&6; }
14939 fi
14940else
14941 ok=yes
14942 case " ${configdirs} " in
14943 *" binutils "*) ;;
14944 *) ok=no ;;
14945 esac
14946
14947 if test $ok = yes; then
14948 # An in-tree tool is available and we can use it
14949 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14951$as_echo "just compiled" >&6; }
14952 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14953 # We already found the complete path
14954 ac_dir=`dirname $STRIP_FOR_TARGET`
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14956$as_echo "pre-installed in $ac_dir" >&6; }
14957 elif test "x$target" = "x$host"; then
14958 # We can use an host tool
14959 STRIP_FOR_TARGET='$(STRIP)'
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14961$as_echo "host tool" >&6; }
14962 else
14963 # We need a cross tool
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14965$as_echo "pre-installed" >&6; }
14966 fi
14967fi
14968
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14970$as_echo_n "checking where to find the target windres... " >&6; }
14971if test "x${build}" != "x${host}" ; then
14972 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14973 # We already found the complete path
14974 ac_dir=`dirname $WINDRES_FOR_TARGET`
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14976$as_echo "pre-installed in $ac_dir" >&6; }
14977 else
14978 # Canadian cross, just use what we found
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14980$as_echo "pre-installed" >&6; }
14981 fi
14982else
14983 ok=yes
14984 case " ${configdirs} " in
14985 *" binutils "*) ;;
14986 *) ok=no ;;
14987 esac
14988
14989 if test $ok = yes; then
14990 # An in-tree tool is available and we can use it
14991 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14993$as_echo "just compiled" >&6; }
14994 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14995 # We already found the complete path
14996 ac_dir=`dirname $WINDRES_FOR_TARGET`
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14998$as_echo "pre-installed in $ac_dir" >&6; }
14999 elif test "x$target" = "x$host"; then
15000 # We can use an host tool
15001 WINDRES_FOR_TARGET='$(WINDRES)'
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15003$as_echo "host tool" >&6; }
15004 else
15005 # We need a cross tool
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15007$as_echo "pre-installed" >&6; }
15008 fi
15009fi
15010
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15012$as_echo_n "checking where to find the target windmc... " >&6; }
15013if test "x${build}" != "x${host}" ; then
15014 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15015 # We already found the complete path
15016 ac_dir=`dirname $WINDMC_FOR_TARGET`
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15018$as_echo "pre-installed in $ac_dir" >&6; }
15019 else
15020 # Canadian cross, just use what we found
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15022$as_echo "pre-installed" >&6; }
15023 fi
15024else
15025 ok=yes
15026 case " ${configdirs} " in
15027 *" binutils "*) ;;
15028 *) ok=no ;;
15029 esac
15030
15031 if test $ok = yes; then
15032 # An in-tree tool is available and we can use it
15033 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15035$as_echo "just compiled" >&6; }
15036 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15037 # We already found the complete path
15038 ac_dir=`dirname $WINDMC_FOR_TARGET`
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15040$as_echo "pre-installed in $ac_dir" >&6; }
15041 elif test "x$target" = "x$host"; then
15042 # We can use an host tool
15043 WINDMC_FOR_TARGET='$(WINDMC)'
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15045$as_echo "host tool" >&6; }
15046 else
15047 # We need a cross tool
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15049$as_echo "pre-installed" >&6; }
15050 fi
15051fi
15052
15053
15054
15055
15056
15057# Certain tools may need extra flags.
15058AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15059RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15060NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15061
15062# When building target libraries, except in a Canadian cross, we use
15063# the same toolchain as the compiler we just built.
15064COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15065COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15066COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15067if test $host = $build; then
15068 case " $configdirs " in
15069 *" gcc "*)
15070 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15071 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15072 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15073 ;;
15074 esac
15075fi
15076
15077
15078
15079
15080
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15082$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15083# Check whether --enable-maintainer-mode was given.
15084if test "${enable_maintainer_mode+set}" = set; then :
15085 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15086else
15087 USE_MAINTAINER_MODE=no
15088fi
15089
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15091$as_echo "$USE_MAINTAINER_MODE" >&6; }
15092
15093
15094if test "$USE_MAINTAINER_MODE" = yes; then
15095 MAINTAINER_MODE_TRUE=
15096 MAINTAINER_MODE_FALSE='#'
15097else
15098 MAINTAINER_MODE_TRUE='#'
15099 MAINTAINER_MODE_FALSE=
15100fi
15101MAINT=$MAINTAINER_MODE_TRUE
15102
15103# ---------------------
15104# GCC bootstrap support
15105# ---------------------
15106
15107# Stage specific cflags for build.
15108stage1_cflags="-g"
15109case $build in
15110 vax-*-*)
15111 case ${GCC} in
15112 yes) stage1_cflags="-g -Wa,-J" ;;
15113 *) stage1_cflags="-g -J" ;;
15114 esac ;;
15115esac
15116
15117
15118
15119# Enable --enable-checking in stage1 of the compiler.
15120# Check whether --enable-stage1-checking was given.
15121if test "${enable_stage1_checking+set}" = set; then :
15122 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15123else
15124 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15125 # For --disable-checking or implicit --enable-checking=release, avoid
15126 # setting --enable-checking=gc in the default stage1 checking for LTO
15127 # bootstraps. See PR62077.
15128 case $BUILD_CONFIG in
15129 *lto*)
15130 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15131 *)
15132 stage1_checking=--enable-checking=yes,types;;
15133 esac
15134 if test "x$enable_checking" = x && \
15135 test -d ${srcdir}/gcc && \
15136 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15137 stage1_checking=--enable-checking=yes,types,extra
15138 fi
15139else
15140 stage1_checking=--enable-checking=$enable_checking,types
15141fi
15142fi
15143
15144
15145
15146# Enable -Werror in bootstrap stage2 and later.
15147# Check whether --enable-werror was given.
15148if test "${enable_werror+set}" = set; then :
15149 enableval=$enable_werror;
15150case ${enable_werror} in
15151 yes) stage2_werror_flag="--enable-werror-always" ;;
15152 *) stage2_werror_flag="" ;;
15153esac
15154
15155else
15156
15157if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15158 case $BUILD_CONFIG in
15159 bootstrap-debug)
15160 stage2_werror_flag="--enable-werror-always" ;;
15161 "")
15162 stage2_werror_flag="--enable-werror-always" ;;
15163 esac
15164fi
15165
15166fi
15167
15168
15169
15170
15171# Specify what files to not compare during bootstrap.
15172
15173compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15174case "$target" in
15175 hppa*64*-*-hpux*) ;;
15176 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15177 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15178esac
15179
15180
15181ac_config_files="$ac_config_files Makefile"
15182
15183cat >confcache <<\_ACEOF
15184# This file is a shell script that caches the results of configure
15185# tests run on this system so they can be shared between configure
15186# scripts and configure runs, see configure's option --config-cache.
15187# It is not useful on other systems. If it contains results you don't
15188# want to keep, you may remove or edit it.
15189#
15190# config.status only pays attention to the cache file if you give it
15191# the --recheck option to rerun configure.
15192#
15193# `ac_cv_env_foo' variables (set or unset) will be overridden when
15194# loading this file, other *unset* `ac_cv_foo' will be assigned the
15195# following values.
15196
15197_ACEOF
15198
15199# The following way of writing the cache mishandles newlines in values,
15200# but we know of no workaround that is simple, portable, and efficient.
15201# So, we kill variables containing newlines.
15202# Ultrix sh set writes to stderr and can't be redirected directly,
15203# and sets the high bit in the cache file unless we assign to the vars.
15204(
15205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15206 eval ac_val=\$$ac_var
15207 case $ac_val in #(
15208 *${as_nl}*)
15209 case $ac_var in #(
15210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15211$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15212 esac
15213 case $ac_var in #(
15214 _ | IFS | as_nl) ;; #(
15215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15216 *) { eval $ac_var=; unset $ac_var;} ;;
15217 esac ;;
15218 esac
15219 done
15220
15221 (set) 2>&1 |
15222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15223 *${as_nl}ac_space=\ *)
15224 # `set' does not quote correctly, so add quotes: double-quote
15225 # substitution turns \\\\ into \\, and sed turns \\ into \.
15226 sed -n \
15227 "s/'/'\\\\''/g;
15228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15229 ;; #(
15230 *)
15231 # `set' quotes correctly as required by POSIX, so do not add quotes.
15232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15233 ;;
15234 esac |
15235 sort
15236) |
15237 sed '
15238 /^ac_cv_env_/b end
15239 t clear
15240 :clear
15241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15242 t end
15243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15244 :end' >>confcache
15245if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15246 if test -w "$cache_file"; then
15247 if test "x$cache_file" != "x/dev/null"; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15249$as_echo "$as_me: updating cache $cache_file" >&6;}
15250 if test ! -f "$cache_file" || test -h "$cache_file"; then
15251 cat confcache >"$cache_file"
15252 else
15253 case $cache_file in #(
15254 */* | ?:*)
15255 mv -f confcache "$cache_file"$$ &&
15256 mv -f "$cache_file"$$ "$cache_file" ;; #(
15257 *)
15258 mv -f confcache "$cache_file" ;;
15259 esac
15260 fi
15261 fi
15262 else
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15264$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15265 fi
15266fi
15267rm -f confcache
15268
15269test "x$prefix" = xNONE && prefix=$ac_default_prefix
15270# Let make expand exec_prefix.
15271test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15272
15273# Transform confdefs.h into DEFS.
15274# Protect against shell expansion while executing Makefile rules.
15275# Protect against Makefile macro expansion.
15276#
15277# If the first sed substitution is executed (which looks for macros that
15278# take arguments), then branch to the quote section. Otherwise,
15279# look for a macro that doesn't take arguments.
15280ac_script='
15281:mline
15282/\\$/{
15283 N
15284 s,\\\n,,
15285 b mline
15286}
15287t clear
15288:clear
15289s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15290t quote
15291s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15292t quote
15293b any
15294:quote
15295s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15296s/\[/\\&/g
15297s/\]/\\&/g
15298s/\$/$$/g
15299H
15300:any
15301${
15302 g
15303 s/^\n//
15304 s/\n/ /g
15305 p
15306}
15307'
15308DEFS=`sed -n "$ac_script" confdefs.h`
15309
15310
15311ac_libobjs=
15312ac_ltlibobjs=
15313U=
15314for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15315 # 1. Remove the extension, and $U if already installed.
15316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15319 # will be set to the directory where LIBOBJS objects are built.
15320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15322done
15323LIBOBJS=$ac_libobjs
15324
15325LTLIBOBJS=$ac_ltlibobjs
15326
15327
15328
15329: "${CONFIG_STATUS=./config.status}"
15330ac_write_fail=0
15331ac_clean_files_save=$ac_clean_files
15332ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15333{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15334$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15335as_write_fail=0
15336cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15337#! $SHELL
15338# Generated by $as_me.
15339# Run this file to recreate the current configuration.
15340# Compiler output produced by configure, useful for debugging
15341# configure, is in config.log if it exists.
15342
15343debug=false
15344ac_cs_recheck=false
15345ac_cs_silent=false
15346
15347SHELL=\${CONFIG_SHELL-$SHELL}
15348export SHELL
15349_ASEOF
15350cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15351## -------------------- ##
15352## M4sh Initialization. ##
15353## -------------------- ##
15354
15355# Be more Bourne compatible
15356DUALCASE=1; export DUALCASE # for MKS sh
15357if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15358 emulate sh
15359 NULLCMD=:
15360 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15361 # is contrary to our usage. Disable this feature.
15362 alias -g '${1+"$@"}'='"$@"'
15363 setopt NO_GLOB_SUBST
15364else
15365 case `(set -o) 2>/dev/null` in #(
15366 *posix*) :
15367 set -o posix ;; #(
15368 *) :
15369 ;;
15370esac
15371fi
15372
15373
15374as_nl='
15375'
15376export as_nl
15377# Printing a long string crashes Solaris 7 /usr/bin/printf.
15378as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15379as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15381# Prefer a ksh shell builtin over an external printf program on Solaris,
15382# but without wasting forks for bash or zsh.
15383if test -z "$BASH_VERSION$ZSH_VERSION" \
15384 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15385 as_echo='print -r --'
15386 as_echo_n='print -rn --'
15387elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15388 as_echo='printf %s\n'
15389 as_echo_n='printf %s'
15390else
15391 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15392 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15393 as_echo_n='/usr/ucb/echo -n'
15394 else
15395 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15396 as_echo_n_body='eval
15397 arg=$1;
15398 case $arg in #(
15399 *"$as_nl"*)
15400 expr "X$arg" : "X\\(.*\\)$as_nl";
15401 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15402 esac;
15403 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15404 '
15405 export as_echo_n_body
15406 as_echo_n='sh -c $as_echo_n_body as_echo'
15407 fi
15408 export as_echo_body
15409 as_echo='sh -c $as_echo_body as_echo'
15410fi
15411
15412# The user is always right.
15413if test "${PATH_SEPARATOR+set}" != set; then
15414 PATH_SEPARATOR=:
15415 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15416 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15417 PATH_SEPARATOR=';'
15418 }
15419fi
15420
15421
15422# IFS
15423# We need space, tab and new line, in precisely that order. Quoting is
15424# there to prevent editors from complaining about space-tab.
15425# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15426# splitting by setting IFS to empty value.)
15427IFS=" "" $as_nl"
15428
15429# Find who we are. Look in the path if we contain no directory separator.
15430as_myself=
15431case $0 in #((
15432 *[\\/]* ) as_myself=$0 ;;
15433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15434for as_dir in $PATH
15435do
15436 IFS=$as_save_IFS
15437 test -z "$as_dir" && as_dir=.
15438 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15439 done
15440IFS=$as_save_IFS
15441
15442 ;;
15443esac
15444# We did not find ourselves, most probably we were run as `sh COMMAND'
15445# in which case we are not to be found in the path.
15446if test "x$as_myself" = x; then
15447 as_myself=$0
15448fi
15449if test ! -f "$as_myself"; then
15450 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15451 exit 1
15452fi
15453
15454# Unset variables that we do not need and which cause bugs (e.g. in
15455# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15456# suppresses any "Segmentation fault" message there. '((' could
15457# trigger a bug in pdksh 5.2.14.
15458for as_var in BASH_ENV ENV MAIL MAILPATH
15459do eval test x\${$as_var+set} = xset \
15460 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15461done
15462PS1='$ '
15463PS2='> '
15464PS4='+ '
15465
15466# NLS nuisances.
15467LC_ALL=C
15468export LC_ALL
15469LANGUAGE=C
15470export LANGUAGE
15471
15472# CDPATH.
15473(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15474
15475
15476# as_fn_error STATUS ERROR [LINENO LOG_FD]
15477# ----------------------------------------
15478# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15479# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15480# script with STATUS, using 1 if that was 0.
15481as_fn_error ()
15482{
15483 as_status=$1; test $as_status -eq 0 && as_status=1
15484 if test "$4"; then
15485 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15486 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15487 fi
15488 $as_echo "$as_me: error: $2" >&2
15489 as_fn_exit $as_status
15490} # as_fn_error
15491
15492
15493# as_fn_set_status STATUS
15494# -----------------------
15495# Set $? to STATUS, without forking.
15496as_fn_set_status ()
15497{
15498 return $1
15499} # as_fn_set_status
15500
15501# as_fn_exit STATUS
15502# -----------------
15503# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15504as_fn_exit ()
15505{
15506 set +e
15507 as_fn_set_status $1
15508 exit $1
15509} # as_fn_exit
15510
15511# as_fn_unset VAR
15512# ---------------
15513# Portably unset VAR.
15514as_fn_unset ()
15515{
15516 { eval $1=; unset $1;}
15517}
15518as_unset=as_fn_unset
15519# as_fn_append VAR VALUE
15520# ----------------------
15521# Append the text in VALUE to the end of the definition contained in VAR. Take
15522# advantage of any shell optimizations that allow amortized linear growth over
15523# repeated appends, instead of the typical quadratic growth present in naive
15524# implementations.
15525if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15526 eval 'as_fn_append ()
15527 {
15528 eval $1+=\$2
15529 }'
15530else
15531 as_fn_append ()
15532 {
15533 eval $1=\$$1\$2
15534 }
15535fi # as_fn_append
15536
15537# as_fn_arith ARG...
15538# ------------------
15539# Perform arithmetic evaluation on the ARGs, and store the result in the
15540# global $as_val. Take advantage of shells that can avoid forks. The arguments
15541# must be portable across $(()) and expr.
15542if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15543 eval 'as_fn_arith ()
15544 {
15545 as_val=$(( $* ))
15546 }'
15547else
15548 as_fn_arith ()
15549 {
15550 as_val=`expr "$@" || test $? -eq 1`
15551 }
15552fi # as_fn_arith
15553
15554
15555if expr a : '\(a\)' >/dev/null 2>&1 &&
15556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15557 as_expr=expr
15558else
15559 as_expr=false
15560fi
15561
15562if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15563 as_basename=basename
15564else
15565 as_basename=false
15566fi
15567
15568if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15569 as_dirname=dirname
15570else
15571 as_dirname=false
15572fi
15573
15574as_me=`$as_basename -- "$0" ||
15575$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15576 X"$0" : 'X\(//\)$' \| \
15577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15578$as_echo X/"$0" |
15579 sed '/^.*\/\([^/][^/]*\)\/*$/{
15580 s//\1/
15581 q
15582 }
15583 /^X\/\(\/\/\)$/{
15584 s//\1/
15585 q
15586 }
15587 /^X\/\(\/\).*/{
15588 s//\1/
15589 q
15590 }
15591 s/.*/./; q'`
15592
15593# Avoid depending upon Character Ranges.
15594as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15595as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15596as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15597as_cr_digits='0123456789'
15598as_cr_alnum=$as_cr_Letters$as_cr_digits
15599
15600ECHO_C= ECHO_N= ECHO_T=
15601case `echo -n x` in #(((((
15602-n*)
15603 case `echo 'xy\c'` in
15604 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15605 xy) ECHO_C='\c';;
15606 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15607 ECHO_T=' ';;
15608 esac;;
15609*)
15610 ECHO_N='-n';;
15611esac
15612
15613rm -f conf$$ conf$$.exe conf$$.file
15614if test -d conf$$.dir; then
15615 rm -f conf$$.dir/conf$$.file
15616else
15617 rm -f conf$$.dir
15618 mkdir conf$$.dir 2>/dev/null
15619fi
15620if (echo >conf$$.file) 2>/dev/null; then
15621 if ln -s conf$$.file conf$$ 2>/dev/null; then
15622 as_ln_s='ln -s'
15623 # ... but there are two gotchas:
15624 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15625 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15626 # In both cases, we have to default to `cp -pR'.
15627 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15628 as_ln_s='cp -pR'
15629 elif ln conf$$.file conf$$ 2>/dev/null; then
15630 as_ln_s=ln
15631 else
15632 as_ln_s='cp -pR'
15633 fi
15634else
15635 as_ln_s='cp -pR'
15636fi
15637rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15638rmdir conf$$.dir 2>/dev/null
15639
15640
15641# as_fn_mkdir_p
15642# -------------
15643# Create "$as_dir" as a directory, including parents if necessary.
15644as_fn_mkdir_p ()
15645{
15646
15647 case $as_dir in #(
15648 -*) as_dir=./$as_dir;;
15649 esac
15650 test -d "$as_dir" || eval $as_mkdir_p || {
15651 as_dirs=
15652 while :; do
15653 case $as_dir in #(
15654 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15655 *) as_qdir=$as_dir;;
15656 esac
15657 as_dirs="'$as_qdir' $as_dirs"
15658 as_dir=`$as_dirname -- "$as_dir" ||
15659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15660 X"$as_dir" : 'X\(//\)[^/]' \| \
15661 X"$as_dir" : 'X\(//\)$' \| \
15662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15663$as_echo X"$as_dir" |
15664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15665 s//\1/
15666 q
15667 }
15668 /^X\(\/\/\)[^/].*/{
15669 s//\1/
15670 q
15671 }
15672 /^X\(\/\/\)$/{
15673 s//\1/
15674 q
15675 }
15676 /^X\(\/\).*/{
15677 s//\1/
15678 q
15679 }
15680 s/.*/./; q'`
15681 test -d "$as_dir" && break
15682 done
15683 test -z "$as_dirs" || eval "mkdir $as_dirs"
15684 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15685
15686
15687} # as_fn_mkdir_p
15688if mkdir -p . 2>/dev/null; then
15689 as_mkdir_p='mkdir -p "$as_dir"'
15690else
15691 test -d ./-p && rmdir ./-p
15692 as_mkdir_p=false
15693fi
15694
15695
15696# as_fn_executable_p FILE
15697# -----------------------
15698# Test if FILE is an executable regular file.
15699as_fn_executable_p ()
15700{
15701 test -f "$1" && test -x "$1"
15702} # as_fn_executable_p
15703as_test_x='test -x'
15704as_executable_p=as_fn_executable_p
15705
15706# Sed expression to map a string onto a valid CPP name.
15707as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15708
15709# Sed expression to map a string onto a valid variable name.
15710as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15711
15712
15713exec 6>&1
15714## ----------------------------------- ##
15715## Main body of $CONFIG_STATUS script. ##
15716## ----------------------------------- ##
15717_ASEOF
15718test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15719
15720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15721# Save the log message, to keep $0 and so on meaningful, and to
15722# report actual input values of CONFIG_FILES etc. instead of their
15723# values after options handling.
15724ac_log="
15725This file was extended by $as_me, which was
15726generated by GNU Autoconf 2.69. Invocation command line was
15727
15728 CONFIG_FILES = $CONFIG_FILES
15729 CONFIG_HEADERS = $CONFIG_HEADERS
15730 CONFIG_LINKS = $CONFIG_LINKS
15731 CONFIG_COMMANDS = $CONFIG_COMMANDS
15732 $ $0 $@
15733
15734on `(hostname || uname -n) 2>/dev/null | sed 1q`
15735"
15736
15737_ACEOF
15738
15739case $ac_config_files in *"
15740"*) set x $ac_config_files; shift; ac_config_files=$*;;
15741esac
15742
15743
15744
15745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15746# Files that config.status was made for.
15747config_files="$ac_config_files"
15748
15749_ACEOF
15750
15751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15752ac_cs_usage="\
15753\`$as_me' instantiates files and other configuration actions
15754from templates according to the current configuration. Unless the files
15755and actions are specified as TAGs, all are instantiated by default.
15756
15757Usage: $0 [OPTION]... [TAG]...
15758
15759 -h, --help print this help, then exit
15760 -V, --version print version number and configuration settings, then exit
15761 --config print configuration, then exit
15762 -q, --quiet, --silent
15763 do not print progress messages
15764 -d, --debug don't remove temporary files
15765 --recheck update $as_me by reconfiguring in the same conditions
15766 --file=FILE[:TEMPLATE]
15767 instantiate the configuration file FILE
15768
15769Configuration files:
15770$config_files
15771
15772Report bugs to the package provider."
15773
15774_ACEOF
15775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15777ac_cs_version="\\
15778config.status
15779configured by $0, generated by GNU Autoconf 2.69,
15780 with options \\"\$ac_cs_config\\"
15781
15782Copyright (C) 2012 Free Software Foundation, Inc.
15783This config.status script is free software; the Free Software Foundation
15784gives unlimited permission to copy, distribute and modify it."
15785
15786ac_pwd='$ac_pwd'
15787srcdir='$srcdir'
15788INSTALL='$INSTALL'
15789AWK='$AWK'
15790test -n "\$AWK" || AWK=awk
15791_ACEOF
15792
15793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15794# The default lists apply if the user does not specify any file.
15795ac_need_defaults=:
15796while test $# != 0
15797do
15798 case $1 in
15799 --*=?*)
15800 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15801 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15802 ac_shift=:
15803 ;;
15804 --*=)
15805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15806 ac_optarg=
15807 ac_shift=:
15808 ;;
15809 *)
15810 ac_option=$1
15811 ac_optarg=$2
15812 ac_shift=shift
15813 ;;
15814 esac
15815
15816 case $ac_option in
15817 # Handling of the options.
15818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15819 ac_cs_recheck=: ;;
15820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15821 $as_echo "$ac_cs_version"; exit ;;
15822 --config | --confi | --conf | --con | --co | --c )
15823 $as_echo "$ac_cs_config"; exit ;;
15824 --debug | --debu | --deb | --de | --d | -d )
15825 debug=: ;;
15826 --file | --fil | --fi | --f )
15827 $ac_shift
15828 case $ac_optarg in
15829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15830 '') as_fn_error $? "missing file argument" ;;
15831 esac
15832 as_fn_append CONFIG_FILES " '$ac_optarg'"
15833 ac_need_defaults=false;;
15834 --he | --h | --help | --hel | -h )
15835 $as_echo "$ac_cs_usage"; exit ;;
15836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15838 ac_cs_silent=: ;;
15839
15840 # This is an error.
15841 -*) as_fn_error $? "unrecognized option: \`$1'
15842Try \`$0 --help' for more information." ;;
15843
15844 *) as_fn_append ac_config_targets " $1"
15845 ac_need_defaults=false ;;
15846
15847 esac
15848 shift
15849done
15850
15851ac_configure_extra_args=
15852
15853if $ac_cs_silent; then
15854 exec 6>/dev/null
15855 ac_configure_extra_args="$ac_configure_extra_args --silent"
15856fi
15857
15858_ACEOF
15859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15860if \$ac_cs_recheck; then
15861 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15862 shift
15863 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15864 CONFIG_SHELL='$SHELL'
15865 export CONFIG_SHELL
15866 exec "\$@"
15867fi
15868
15869_ACEOF
15870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15871exec 5>>config.log
15872{
15873 echo
15874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15875## Running $as_me. ##
15876_ASBOX
15877 $as_echo "$ac_log"
15878} >&5
15879
15880_ACEOF
15881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15882#
15883# INIT-COMMANDS
15884#
15885extrasub_build="$extrasub_build"
15886 extrasub_host="$extrasub_host"
15887 extrasub_target="$extrasub_target"
15888
15889_ACEOF
15890
15891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15892
15893# Handling of arguments.
15894for ac_config_target in $ac_config_targets
15895do
15896 case $ac_config_target in
15897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15898
15899 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15900 esac
15901done
15902
15903
15904# If the user did not use the arguments to specify the items to instantiate,
15905# then the envvar interface is used. Set only those that are not.
15906# We use the long form for the default assignment because of an extremely
15907# bizarre bug on SunOS 4.1.3.
15908if $ac_need_defaults; then
15909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15910fi
15911
15912# Have a temporary directory for convenience. Make it in the build tree
15913# simply because there is no reason against having it here, and in addition,
15914# creating and moving files from /tmp can sometimes cause problems.
15915# Hook for its removal unless debugging.
15916# Note that there is a small window in which the directory will not be cleaned:
15917# after its creation but before its name has been assigned to `$tmp'.
15918$debug ||
15919{
15920 tmp= ac_tmp=
15921 trap 'exit_status=$?
15922 : "${ac_tmp:=$tmp}"
15923 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15924' 0
15925 trap 'as_fn_exit 1' 1 2 13 15
15926}
15927# Create a (secure) tmp directory for tmp files.
15928
15929{
15930 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15931 test -d "$tmp"
15932} ||
15933{
15934 tmp=./conf$$-$RANDOM
15935 (umask 077 && mkdir "$tmp")
15936} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15937ac_tmp=$tmp
15938
15939# Set up the scripts for CONFIG_FILES section.
15940# No need to generate them if there are no CONFIG_FILES.
15941# This happens for instance with `./config.status config.h'.
15942if test -n "$CONFIG_FILES"; then
15943
15944if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15945 ac_cs_awk_getline=:
15946 ac_cs_awk_pipe_init=
15947 ac_cs_awk_read_file='
15948 while ((getline aline < (F[key])) > 0)
15949 print(aline)
15950 close(F[key])'
15951 ac_cs_awk_pipe_fini=
15952else
15953 ac_cs_awk_getline=false
15954 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15955 ac_cs_awk_read_file='
15956 print "|#_!!_#|"
15957 print "cat " F[key] " &&"
15958 '$ac_cs_awk_pipe_init
15959 # The final `:' finishes the AND list.
15960 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15961fi
15962ac_cr=`echo X | tr X '\015'`
15963# On cygwin, bash can eat \r inside `` if the user requested igncr.
15964# But we know of no other shell where ac_cr would be empty at this
15965# point, so we can use a bashism as a fallback.
15966if test "x$ac_cr" = x; then
15967 eval ac_cr=\$\'\\r\'
15968fi
15969ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15970if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15971 ac_cs_awk_cr='\\r'
15972else
15973 ac_cs_awk_cr=$ac_cr
15974fi
15975
15976echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15977_ACEOF
15978
15979# Create commands to substitute file output variables.
15980{
15981 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15982 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15983 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15984 echo "_ACAWK" &&
15985 echo "_ACEOF"
15986} >conf$$files.sh &&
15987. ./conf$$files.sh ||
15988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15989rm -f conf$$files.sh
15990
15991{
15992 echo "cat >conf$$subs.awk <<_ACEOF" &&
15993 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15994 echo "_ACEOF"
15995} >conf$$subs.sh ||
15996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15997ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15998ac_delim='%!_!# '
15999for ac_last_try in false false false false false :; do
16000 . ./conf$$subs.sh ||
16001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16002
16003 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16004 if test $ac_delim_n = $ac_delim_num; then
16005 break
16006 elif $ac_last_try; then
16007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16008 else
16009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16010 fi
16011done
16012rm -f conf$$subs.sh
16013
16014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16015cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16016_ACEOF
16017sed -n '
16018h
16019s/^/S["/; s/!.*/"]=/
16020p
16021g
16022s/^[^!]*!//
16023:repl
16024t repl
16025s/'"$ac_delim"'$//
16026t delim
16027:nl
16028h
16029s/\(.\{148\}\)..*/\1/
16030t more1
16031s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16032p
16033n
16034b repl
16035:more1
16036s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16037p
16038g
16039s/.\{148\}//
16040t nl
16041:delim
16042h
16043s/\(.\{148\}\)..*/\1/
16044t more2
16045s/["\\]/\\&/g; s/^/"/; s/$/"/
16046p
16047b
16048:more2
16049s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16050p
16051g
16052s/.\{148\}//
16053t delim
16054' <conf$$subs.awk | sed '
16055/^[^""]/{
16056 N
16057 s/\n//
16058}
16059' >>$CONFIG_STATUS || ac_write_fail=1
16060rm -f conf$$subs.awk
16061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16062_ACAWK
16063cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16064 for (key in S) S_is_set[key] = 1
16065 FS = "\a"
16066 \$ac_cs_awk_pipe_init
16067}
16068{
16069 line = $ 0
16070 nfields = split(line, field, "@")
16071 substed = 0
16072 len = length(field[1])
16073 for (i = 2; i < nfields; i++) {
16074 key = field[i]
16075 keylen = length(key)
16076 if (S_is_set[key]) {
16077 value = S[key]
16078 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16079 len += length(value) + length(field[++i])
16080 substed = 1
16081 } else
16082 len += 1 + keylen
16083 }
16084 if (nfields == 3 && !substed) {
16085 key = field[2]
16086 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16087 \$ac_cs_awk_read_file
16088 next
16089 }
16090 }
16091 print line
16092}
16093\$ac_cs_awk_pipe_fini
16094_ACAWK
16095_ACEOF
16096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16097if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16099else
16100 cat
16101fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16102 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16103_ACEOF
16104
16105# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16106# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16107# trailing colons and then remove the whole line if VPATH becomes empty
16108# (actually we leave an empty line to preserve line numbers).
16109if test "x$srcdir" = x.; then
16110 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16111h
16112s///
16113s/^/:/
16114s/[ ]*$/:/
16115s/:\$(srcdir):/:/g
16116s/:\${srcdir}:/:/g
16117s/:@srcdir@:/:/g
16118s/^:*//
16119s/:*$//
16120x
16121s/\(=[ ]*\).*/\1/
16122G
16123s/\n//
16124s/^[^=]*=[ ]*$//
16125}'
16126fi
16127
16128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16129fi # test -n "$CONFIG_FILES"
16130
16131
16132eval set X " :F $CONFIG_FILES "
16133shift
16134for ac_tag
16135do
16136 case $ac_tag in
16137 :[FHLC]) ac_mode=$ac_tag; continue;;
16138 esac
16139 case $ac_mode$ac_tag in
16140 :[FHL]*:*);;
16141 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16142 :[FH]-) ac_tag=-:-;;
16143 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16144 esac
16145 ac_save_IFS=$IFS
16146 IFS=:
16147 set x $ac_tag
16148 IFS=$ac_save_IFS
16149 shift
16150 ac_file=$1
16151 shift
16152
16153 case $ac_mode in
16154 :L) ac_source=$1;;
16155 :[FH])
16156 ac_file_inputs=
16157 for ac_f
16158 do
16159 case $ac_f in
16160 -) ac_f="$ac_tmp/stdin";;
16161 *) # Look for the file first in the build tree, then in the source tree
16162 # (if the path is not absolute). The absolute path cannot be DOS-style,
16163 # because $ac_f cannot contain `:'.
16164 test -f "$ac_f" ||
16165 case $ac_f in
16166 [\\/$]*) false;;
16167 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16168 esac ||
16169 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16170 esac
16171 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16172 as_fn_append ac_file_inputs " '$ac_f'"
16173 done
16174
16175 # Let's still pretend it is `configure' which instantiates (i.e., don't
16176 # use $as_me), people would be surprised to read:
16177 # /* config.h. Generated by config.status. */
16178 configure_input='Generated from '`
16179 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16180 `' by configure.'
16181 if test x"$ac_file" != x-; then
16182 configure_input="$ac_file. $configure_input"
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16184$as_echo "$as_me: creating $ac_file" >&6;}
16185 fi
16186 # Neutralize special characters interpreted by sed in replacement strings.
16187 case $configure_input in #(
16188 *\&* | *\|* | *\\* )
16189 ac_sed_conf_input=`$as_echo "$configure_input" |
16190 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16191 *) ac_sed_conf_input=$configure_input;;
16192 esac
16193
16194 case $ac_tag in
16195 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16197 esac
16198 ;;
16199 esac
16200
16201 ac_dir=`$as_dirname -- "$ac_file" ||
16202$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16203 X"$ac_file" : 'X\(//\)[^/]' \| \
16204 X"$ac_file" : 'X\(//\)$' \| \
16205 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16206$as_echo X"$ac_file" |
16207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\/\)[^/].*/{
16212 s//\1/
16213 q
16214 }
16215 /^X\(\/\/\)$/{
16216 s//\1/
16217 q
16218 }
16219 /^X\(\/\).*/{
16220 s//\1/
16221 q
16222 }
16223 s/.*/./; q'`
16224 as_dir="$ac_dir"; as_fn_mkdir_p
16225 ac_builddir=.
16226
16227case "$ac_dir" in
16228.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16229*)
16230 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16231 # A ".." for each directory in $ac_dir_suffix.
16232 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16233 case $ac_top_builddir_sub in
16234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16236 esac ;;
16237esac
16238ac_abs_top_builddir=$ac_pwd
16239ac_abs_builddir=$ac_pwd$ac_dir_suffix
16240# for backward compatibility:
16241ac_top_builddir=$ac_top_build_prefix
16242
16243case $srcdir in
16244 .) # We are building in place.
16245 ac_srcdir=.
16246 ac_top_srcdir=$ac_top_builddir_sub
16247 ac_abs_top_srcdir=$ac_pwd ;;
16248 [\\/]* | ?:[\\/]* ) # Absolute name.
16249 ac_srcdir=$srcdir$ac_dir_suffix;
16250 ac_top_srcdir=$srcdir
16251 ac_abs_top_srcdir=$srcdir ;;
16252 *) # Relative name.
16253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16254 ac_top_srcdir=$ac_top_build_prefix$srcdir
16255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16256esac
16257ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16258
16259
16260 case $ac_mode in
16261 :F)
16262 #
16263 # CONFIG_FILE
16264 #
16265
16266 case $INSTALL in
16267 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16268 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16269 esac
16270_ACEOF
16271
16272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16273# If the template does not know about datarootdir, expand it.
16274# FIXME: This hack should be removed a few years after 2.60.
16275ac_datarootdir_hack=; ac_datarootdir_seen=
16276ac_sed_dataroot='
16277/datarootdir/ {
16278 p
16279 q
16280}
16281/@datadir@/p
16282/@docdir@/p
16283/@infodir@/p
16284/@localedir@/p
16285/@mandir@/p'
16286case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16287*datarootdir*) ac_datarootdir_seen=yes;;
16288*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16290$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16291_ACEOF
16292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16293 ac_datarootdir_hack='
16294 s&@datadir@&$datadir&g
16295 s&@docdir@&$docdir&g
16296 s&@infodir@&$infodir&g
16297 s&@localedir@&$localedir&g
16298 s&@mandir@&$mandir&g
16299 s&\\\${datarootdir}&$datarootdir&g' ;;
16300esac
16301_ACEOF
16302
16303# Neutralize VPATH when `$srcdir' = `.'.
16304# Shell code in configure.ac might set extrasub.
16305# FIXME: do we really want to maintain this feature?
16306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16307ac_sed_extra="$ac_vpsub
16308$extrasub
16309_ACEOF
16310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16311:t
16312/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16313s|@configure_input@|$ac_sed_conf_input|;t t
16314s&@top_builddir@&$ac_top_builddir_sub&;t t
16315s&@top_build_prefix@&$ac_top_build_prefix&;t t
16316s&@srcdir@&$ac_srcdir&;t t
16317s&@abs_srcdir@&$ac_abs_srcdir&;t t
16318s&@top_srcdir@&$ac_top_srcdir&;t t
16319s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16320s&@builddir@&$ac_builddir&;t t
16321s&@abs_builddir@&$ac_abs_builddir&;t t
16322s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16323s&@INSTALL@&$ac_INSTALL&;t t
16324$ac_datarootdir_hack
16325"
16326eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16327if $ac_cs_awk_getline; then
16328 $AWK -f "$ac_tmp/subs.awk"
16329else
16330 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16331fi \
16332 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16333
16334test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16335 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16336 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16337 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16339which seems to be undefined. Please make sure it is defined" >&5
16340$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16341which seems to be undefined. Please make sure it is defined" >&2;}
16342
16343 rm -f "$ac_tmp/stdin"
16344 case $ac_file in
16345 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16346 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16347 esac \
16348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16349 ;;
16350
16351
16352
16353 esac
16354
16355
16356 case $ac_file$ac_mode in
16357 "Makefile":F) sed "$extrasub_build" Makefile |
16358 sed "$extrasub_host" |
16359 sed "$extrasub_target" > mf$$
16360 mv -f mf$$ Makefile ;;
16361
16362 esac
16363done # for ac_tag
16364
16365
16366as_fn_exit 0
16367_ACEOF
16368ac_clean_files=$ac_clean_files_save
16369
16370test $ac_write_fail = 0 ||
16371 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16372
16373
16374# configure is writing to config.log, and then calls config.status.
16375# config.status does its own redirection, appending to config.log.
16376# Unfortunately, on DOS this fails, as config.log is still kept open
16377# by configure, so config.status won't be able to write to it; its
16378# output is simply discarded. So we exec the FD to /dev/null,
16379# effectively closing config.log, so it can be properly (re)opened and
16380# appended to by config.status. When coming back to configure, we
16381# need to make the FD available again.
16382if test "$no_create" != yes; then
16383 ac_cs_success=:
16384 ac_config_status_args=
16385 test "$silent" = yes &&
16386 ac_config_status_args="$ac_config_status_args --quiet"
16387 exec 5>/dev/null
16388 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16389 exec 5>>config.log
16390 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16391 # would make configure fail if this is the last instruction.
16392 $ac_cs_success || as_fn_exit 1
16393fi
16394if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16396$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16397fi
16398
This page took 0.076594 seconds and 4 git commands to generate.