configure revision 1.13 1 1.1 mrg #! /bin/sh
2 1.1 mrg # Guess values for system-dependent variables and create Makefiles.
3 1.12 mrg # Generated by GNU Autoconf 2.69.
4 1.12 mrg #
5 1.12 mrg #
6 1.12 mrg # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 1.1 mrg #
8 1.1 mrg #
9 1.1 mrg # This configure script is free software; the Free Software Foundation
10 1.1 mrg # gives unlimited permission to copy, distribute and modify it.
11 1.1 mrg ## -------------------- ##
12 1.1 mrg ## M4sh Initialization. ##
13 1.1 mrg ## -------------------- ##
14 1.1 mrg
15 1.1 mrg # Be more Bourne compatible
16 1.1 mrg DUALCASE=1; export DUALCASE # for MKS sh
17 1.1 mrg if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 1.1 mrg emulate sh
19 1.1 mrg NULLCMD=:
20 1.1 mrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 1.1 mrg # is contrary to our usage. Disable this feature.
22 1.1 mrg alias -g '${1+"$@"}'='"$@"'
23 1.1 mrg setopt NO_GLOB_SUBST
24 1.1 mrg else
25 1.1 mrg case `(set -o) 2>/dev/null` in #(
26 1.1 mrg *posix*) :
27 1.1 mrg set -o posix ;; #(
28 1.1 mrg *) :
29 1.1 mrg ;;
30 1.1 mrg esac
31 1.1 mrg fi
32 1.1 mrg
33 1.1 mrg
34 1.1 mrg as_nl='
35 1.1 mrg '
36 1.1 mrg export as_nl
37 1.1 mrg # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 1.1 mrg as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 1.1 mrg as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 1.1 mrg as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 1.1 mrg # Prefer a ksh shell builtin over an external printf program on Solaris,
42 1.1 mrg # but without wasting forks for bash or zsh.
43 1.1 mrg if test -z "$BASH_VERSION$ZSH_VERSION" \
44 1.1 mrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 1.1 mrg as_echo='print -r --'
46 1.1 mrg as_echo_n='print -rn --'
47 1.1 mrg elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 1.1 mrg as_echo='printf %s\n'
49 1.1 mrg as_echo_n='printf %s'
50 1.1 mrg else
51 1.1 mrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 1.1 mrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 1.1 mrg as_echo_n='/usr/ucb/echo -n'
54 1.1 mrg else
55 1.1 mrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 1.1 mrg as_echo_n_body='eval
57 1.1 mrg arg=$1;
58 1.1 mrg case $arg in #(
59 1.1 mrg *"$as_nl"*)
60 1.1 mrg expr "X$arg" : "X\\(.*\\)$as_nl";
61 1.1 mrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 1.1 mrg esac;
63 1.1 mrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 1.1 mrg '
65 1.1 mrg export as_echo_n_body
66 1.1 mrg as_echo_n='sh -c $as_echo_n_body as_echo'
67 1.1 mrg fi
68 1.1 mrg export as_echo_body
69 1.1 mrg as_echo='sh -c $as_echo_body as_echo'
70 1.1 mrg fi
71 1.1 mrg
72 1.1 mrg # The user is always right.
73 1.1 mrg if test "${PATH_SEPARATOR+set}" != set; then
74 1.1 mrg PATH_SEPARATOR=:
75 1.1 mrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 1.1 mrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 1.1 mrg PATH_SEPARATOR=';'
78 1.1 mrg }
79 1.1 mrg fi
80 1.1 mrg
81 1.1 mrg
82 1.1 mrg # IFS
83 1.1 mrg # We need space, tab and new line, in precisely that order. Quoting is
84 1.1 mrg # there to prevent editors from complaining about space-tab.
85 1.1 mrg # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 1.1 mrg # splitting by setting IFS to empty value.)
87 1.1 mrg IFS=" "" $as_nl"
88 1.1 mrg
89 1.1 mrg # Find who we are. Look in the path if we contain no directory separator.
90 1.12 mrg as_myself=
91 1.1 mrg case $0 in #((
92 1.1 mrg *[\\/]* ) as_myself=$0 ;;
93 1.1 mrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 1.1 mrg for as_dir in $PATH
95 1.1 mrg do
96 1.1 mrg IFS=$as_save_IFS
97 1.1 mrg test -z "$as_dir" && as_dir=.
98 1.1 mrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 1.1 mrg done
100 1.1 mrg IFS=$as_save_IFS
101 1.1 mrg
102 1.1 mrg ;;
103 1.1 mrg esac
104 1.1 mrg # We did not find ourselves, most probably we were run as `sh COMMAND'
105 1.1 mrg # in which case we are not to be found in the path.
106 1.1 mrg if test "x$as_myself" = x; then
107 1.1 mrg as_myself=$0
108 1.1 mrg fi
109 1.1 mrg if test ! -f "$as_myself"; then
110 1.1 mrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 1.1 mrg exit 1
112 1.1 mrg fi
113 1.1 mrg
114 1.1 mrg # Unset variables that we do not need and which cause bugs (e.g. in
115 1.1 mrg # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 1.1 mrg # suppresses any "Segmentation fault" message there. '((' could
117 1.1 mrg # trigger a bug in pdksh 5.2.14.
118 1.1 mrg for as_var in BASH_ENV ENV MAIL MAILPATH
119 1.1 mrg do eval test x\${$as_var+set} = xset \
120 1.1 mrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 1.1 mrg done
122 1.1 mrg PS1='$ '
123 1.1 mrg PS2='> '
124 1.1 mrg PS4='+ '
125 1.1 mrg
126 1.1 mrg # NLS nuisances.
127 1.1 mrg LC_ALL=C
128 1.1 mrg export LC_ALL
129 1.1 mrg LANGUAGE=C
130 1.1 mrg export LANGUAGE
131 1.1 mrg
132 1.1 mrg # CDPATH.
133 1.1 mrg (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 1.1 mrg
135 1.12 mrg # Use a proper internal environment variable to ensure we don't fall
136 1.12 mrg # into an infinite loop, continuously re-executing ourselves.
137 1.12 mrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 1.12 mrg _as_can_reexec=no; export _as_can_reexec;
139 1.12 mrg # We cannot yet assume a decent shell, so we have to provide a
140 1.12 mrg # neutralization value for shells without unset; and this also
141 1.12 mrg # works around shells that cannot unset nonexistent variables.
142 1.12 mrg # Preserve -v and -x to the replacement shell.
143 1.12 mrg BASH_ENV=/dev/null
144 1.12 mrg ENV=/dev/null
145 1.12 mrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 1.12 mrg case $- in # ((((
147 1.12 mrg *v*x* | *x*v* ) as_opts=-vx ;;
148 1.12 mrg *v* ) as_opts=-v ;;
149 1.12 mrg *x* ) as_opts=-x ;;
150 1.12 mrg * ) as_opts= ;;
151 1.12 mrg esac
152 1.12 mrg exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 1.12 mrg # Admittedly, this is quite paranoid, since all the known shells bail
154 1.12 mrg # out after a failed `exec'.
155 1.12 mrg $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 1.12 mrg as_fn_exit 255
157 1.12 mrg fi
158 1.12 mrg # We don't want this to propagate to other subprocesses.
159 1.12 mrg { _as_can_reexec=; unset _as_can_reexec;}
160 1.1 mrg if test "x$CONFIG_SHELL" = x; then
161 1.1 mrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 1.1 mrg emulate sh
163 1.1 mrg NULLCMD=:
164 1.1 mrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 1.1 mrg # is contrary to our usage. Disable this feature.
166 1.1 mrg alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 1.1 mrg setopt NO_GLOB_SUBST
168 1.1 mrg else
169 1.1 mrg case \`(set -o) 2>/dev/null\` in #(
170 1.1 mrg *posix*) :
171 1.1 mrg set -o posix ;; #(
172 1.1 mrg *) :
173 1.1 mrg ;;
174 1.1 mrg esac
175 1.1 mrg fi
176 1.1 mrg "
177 1.1 mrg as_required="as_fn_return () { (exit \$1); }
178 1.1 mrg as_fn_success () { as_fn_return 0; }
179 1.1 mrg as_fn_failure () { as_fn_return 1; }
180 1.1 mrg as_fn_ret_success () { return 0; }
181 1.1 mrg as_fn_ret_failure () { return 1; }
182 1.1 mrg
183 1.1 mrg exitcode=0
184 1.1 mrg as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 1.1 mrg as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 1.1 mrg as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 1.1 mrg as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 1.1 mrg if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189 1.1 mrg
190 1.1 mrg else
191 1.1 mrg exitcode=1; echo positional parameters were not saved.
192 1.1 mrg fi
193 1.12 mrg test x\$exitcode = x0 || exit 1
194 1.12 mrg test -x / || exit 1"
195 1.1 mrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 1.1 mrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 1.1 mrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 1.1 mrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 1.1 mrg test \$(( 1 + 1 )) = 2 || exit 1"
200 1.1 mrg if (eval "$as_required") 2>/dev/null; then :
201 1.1 mrg as_have_required=yes
202 1.1 mrg else
203 1.1 mrg as_have_required=no
204 1.1 mrg fi
205 1.1 mrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206 1.1 mrg
207 1.1 mrg else
208 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 1.1 mrg as_found=false
210 1.1 mrg for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 1.1 mrg do
212 1.1 mrg IFS=$as_save_IFS
213 1.1 mrg test -z "$as_dir" && as_dir=.
214 1.1 mrg as_found=:
215 1.1 mrg case $as_dir in #(
216 1.1 mrg /*)
217 1.1 mrg for as_base in sh bash ksh sh5; do
218 1.1 mrg # Try only shells that exist, to save several forks.
219 1.1 mrg as_shell=$as_dir/$as_base
220 1.1 mrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 1.1 mrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 1.1 mrg CONFIG_SHELL=$as_shell as_have_required=yes
223 1.1 mrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 1.1 mrg break 2
225 1.1 mrg fi
226 1.1 mrg fi
227 1.1 mrg done;;
228 1.1 mrg esac
229 1.1 mrg as_found=false
230 1.1 mrg done
231 1.1 mrg $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 1.1 mrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 1.1 mrg CONFIG_SHELL=$SHELL as_have_required=yes
234 1.1 mrg fi; }
235 1.1 mrg IFS=$as_save_IFS
236 1.1 mrg
237 1.1 mrg
238 1.1 mrg if test "x$CONFIG_SHELL" != x; then :
239 1.12 mrg export CONFIG_SHELL
240 1.12 mrg # We cannot yet assume a decent shell, so we have to provide a
241 1.12 mrg # neutralization value for shells without unset; and this also
242 1.12 mrg # works around shells that cannot unset nonexistent variables.
243 1.12 mrg # Preserve -v and -x to the replacement shell.
244 1.12 mrg BASH_ENV=/dev/null
245 1.12 mrg ENV=/dev/null
246 1.12 mrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 1.12 mrg case $- in # ((((
248 1.12 mrg *v*x* | *x*v* ) as_opts=-vx ;;
249 1.12 mrg *v* ) as_opts=-v ;;
250 1.12 mrg *x* ) as_opts=-x ;;
251 1.12 mrg * ) as_opts= ;;
252 1.12 mrg esac
253 1.12 mrg exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 1.12 mrg # Admittedly, this is quite paranoid, since all the known shells bail
255 1.12 mrg # out after a failed `exec'.
256 1.12 mrg $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 1.12 mrg exit 255
258 1.1 mrg fi
259 1.1 mrg
260 1.1 mrg if test x$as_have_required = xno; then :
261 1.1 mrg $as_echo "$0: This script requires a shell more modern than all"
262 1.1 mrg $as_echo "$0: the shells that I found on your system."
263 1.1 mrg if test x${ZSH_VERSION+set} = xset ; then
264 1.1 mrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 1.1 mrg $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 1.1 mrg else
267 1.1 mrg $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
268 1.1 mrg $0: including any error possibly output before this
269 1.1 mrg $0: message. Then install a modern shell, or manually run
270 1.1 mrg $0: the script under such a shell if you do have one."
271 1.1 mrg fi
272 1.1 mrg exit 1
273 1.1 mrg fi
274 1.1 mrg fi
275 1.1 mrg fi
276 1.1 mrg SHELL=${CONFIG_SHELL-/bin/sh}
277 1.1 mrg export SHELL
278 1.1 mrg # Unset more variables known to interfere with behavior of common tools.
279 1.1 mrg CLICOLOR_FORCE= GREP_OPTIONS=
280 1.1 mrg unset CLICOLOR_FORCE GREP_OPTIONS
281 1.1 mrg
282 1.1 mrg ## --------------------- ##
283 1.1 mrg ## M4sh Shell Functions. ##
284 1.1 mrg ## --------------------- ##
285 1.1 mrg # as_fn_unset VAR
286 1.1 mrg # ---------------
287 1.1 mrg # Portably unset VAR.
288 1.1 mrg as_fn_unset ()
289 1.1 mrg {
290 1.1 mrg { eval $1=; unset $1;}
291 1.1 mrg }
292 1.1 mrg as_unset=as_fn_unset
293 1.1 mrg
294 1.1 mrg # as_fn_set_status STATUS
295 1.1 mrg # -----------------------
296 1.1 mrg # Set $? to STATUS, without forking.
297 1.1 mrg as_fn_set_status ()
298 1.1 mrg {
299 1.1 mrg return $1
300 1.1 mrg } # as_fn_set_status
301 1.1 mrg
302 1.1 mrg # as_fn_exit STATUS
303 1.1 mrg # -----------------
304 1.1 mrg # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 1.1 mrg as_fn_exit ()
306 1.1 mrg {
307 1.1 mrg set +e
308 1.1 mrg as_fn_set_status $1
309 1.1 mrg exit $1
310 1.1 mrg } # as_fn_exit
311 1.1 mrg
312 1.1 mrg # as_fn_mkdir_p
313 1.1 mrg # -------------
314 1.1 mrg # Create "$as_dir" as a directory, including parents if necessary.
315 1.1 mrg as_fn_mkdir_p ()
316 1.1 mrg {
317 1.1 mrg
318 1.1 mrg case $as_dir in #(
319 1.1 mrg -*) as_dir=./$as_dir;;
320 1.1 mrg esac
321 1.1 mrg test -d "$as_dir" || eval $as_mkdir_p || {
322 1.1 mrg as_dirs=
323 1.1 mrg while :; do
324 1.1 mrg case $as_dir in #(
325 1.1 mrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 1.1 mrg *) as_qdir=$as_dir;;
327 1.1 mrg esac
328 1.1 mrg as_dirs="'$as_qdir' $as_dirs"
329 1.1 mrg as_dir=`$as_dirname -- "$as_dir" ||
330 1.1 mrg $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 1.1 mrg X"$as_dir" : 'X\(//\)[^/]' \| \
332 1.1 mrg X"$as_dir" : 'X\(//\)$' \| \
333 1.1 mrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 1.1 mrg $as_echo X"$as_dir" |
335 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 1.1 mrg s//\1/
337 1.1 mrg q
338 1.1 mrg }
339 1.1 mrg /^X\(\/\/\)[^/].*/{
340 1.1 mrg s//\1/
341 1.1 mrg q
342 1.1 mrg }
343 1.1 mrg /^X\(\/\/\)$/{
344 1.1 mrg s//\1/
345 1.1 mrg q
346 1.1 mrg }
347 1.1 mrg /^X\(\/\).*/{
348 1.1 mrg s//\1/
349 1.1 mrg q
350 1.1 mrg }
351 1.1 mrg s/.*/./; q'`
352 1.1 mrg test -d "$as_dir" && break
353 1.1 mrg done
354 1.1 mrg test -z "$as_dirs" || eval "mkdir $as_dirs"
355 1.12 mrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356 1.1 mrg
357 1.1 mrg
358 1.1 mrg } # as_fn_mkdir_p
359 1.12 mrg
360 1.12 mrg # as_fn_executable_p FILE
361 1.12 mrg # -----------------------
362 1.12 mrg # Test if FILE is an executable regular file.
363 1.12 mrg as_fn_executable_p ()
364 1.12 mrg {
365 1.12 mrg test -f "$1" && test -x "$1"
366 1.12 mrg } # as_fn_executable_p
367 1.1 mrg # as_fn_append VAR VALUE
368 1.1 mrg # ----------------------
369 1.1 mrg # Append the text in VALUE to the end of the definition contained in VAR. Take
370 1.1 mrg # advantage of any shell optimizations that allow amortized linear growth over
371 1.1 mrg # repeated appends, instead of the typical quadratic growth present in naive
372 1.1 mrg # implementations.
373 1.1 mrg if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 1.1 mrg eval 'as_fn_append ()
375 1.1 mrg {
376 1.1 mrg eval $1+=\$2
377 1.1 mrg }'
378 1.1 mrg else
379 1.1 mrg as_fn_append ()
380 1.1 mrg {
381 1.1 mrg eval $1=\$$1\$2
382 1.1 mrg }
383 1.1 mrg fi # as_fn_append
384 1.1 mrg
385 1.1 mrg # as_fn_arith ARG...
386 1.1 mrg # ------------------
387 1.1 mrg # Perform arithmetic evaluation on the ARGs, and store the result in the
388 1.1 mrg # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 1.1 mrg # must be portable across $(()) and expr.
390 1.1 mrg if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 1.1 mrg eval 'as_fn_arith ()
392 1.1 mrg {
393 1.1 mrg as_val=$(( $* ))
394 1.1 mrg }'
395 1.1 mrg else
396 1.1 mrg as_fn_arith ()
397 1.1 mrg {
398 1.1 mrg as_val=`expr "$@" || test $? -eq 1`
399 1.1 mrg }
400 1.1 mrg fi # as_fn_arith
401 1.1 mrg
402 1.1 mrg
403 1.12 mrg # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 1.12 mrg # ----------------------------------------
405 1.1 mrg # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 1.1 mrg # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 1.12 mrg # script with STATUS, using 1 if that was 0.
408 1.1 mrg as_fn_error ()
409 1.1 mrg {
410 1.12 mrg as_status=$1; test $as_status -eq 0 && as_status=1
411 1.12 mrg if test "$4"; then
412 1.12 mrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 1.1 mrg fi
415 1.12 mrg $as_echo "$as_me: error: $2" >&2
416 1.1 mrg as_fn_exit $as_status
417 1.1 mrg } # as_fn_error
418 1.1 mrg
419 1.1 mrg if expr a : '\(a\)' >/dev/null 2>&1 &&
420 1.1 mrg test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 1.1 mrg as_expr=expr
422 1.1 mrg else
423 1.1 mrg as_expr=false
424 1.1 mrg fi
425 1.1 mrg
426 1.1 mrg if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 1.1 mrg as_basename=basename
428 1.1 mrg else
429 1.1 mrg as_basename=false
430 1.1 mrg fi
431 1.1 mrg
432 1.1 mrg if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 1.1 mrg as_dirname=dirname
434 1.1 mrg else
435 1.1 mrg as_dirname=false
436 1.1 mrg fi
437 1.1 mrg
438 1.1 mrg as_me=`$as_basename -- "$0" ||
439 1.1 mrg $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 1.1 mrg X"$0" : 'X\(//\)$' \| \
441 1.1 mrg X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 1.1 mrg $as_echo X/"$0" |
443 1.1 mrg sed '/^.*\/\([^/][^/]*\)\/*$/{
444 1.1 mrg s//\1/
445 1.1 mrg q
446 1.1 mrg }
447 1.1 mrg /^X\/\(\/\/\)$/{
448 1.1 mrg s//\1/
449 1.1 mrg q
450 1.1 mrg }
451 1.1 mrg /^X\/\(\/\).*/{
452 1.1 mrg s//\1/
453 1.1 mrg q
454 1.1 mrg }
455 1.1 mrg s/.*/./; q'`
456 1.1 mrg
457 1.1 mrg # Avoid depending upon Character Ranges.
458 1.1 mrg as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 1.1 mrg as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 1.1 mrg as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 1.1 mrg as_cr_digits='0123456789'
462 1.1 mrg as_cr_alnum=$as_cr_Letters$as_cr_digits
463 1.1 mrg
464 1.1 mrg
465 1.1 mrg as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 1.1 mrg as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 1.1 mrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 1.1 mrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 1.1 mrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 1.1 mrg sed -n '
471 1.1 mrg p
472 1.1 mrg /[$]LINENO/=
473 1.1 mrg ' <$as_myself |
474 1.1 mrg sed '
475 1.1 mrg s/[$]LINENO.*/&-/
476 1.1 mrg t lineno
477 1.1 mrg b
478 1.1 mrg :lineno
479 1.1 mrg N
480 1.1 mrg :loop
481 1.1 mrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 1.1 mrg t loop
483 1.1 mrg s/-\n.*//
484 1.1 mrg ' >$as_me.lineno &&
485 1.1 mrg chmod +x "$as_me.lineno" ||
486 1.1 mrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487 1.1 mrg
488 1.12 mrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 1.12 mrg # already done that, so ensure we don't try to do so again and fall
490 1.12 mrg # in an infinite loop. This has already happened in practice.
491 1.12 mrg _as_can_reexec=no; export _as_can_reexec
492 1.1 mrg # Don't try to exec as it changes $[0], causing all sort of problems
493 1.1 mrg # (the dirname of $[0] is not the place where we might find the
494 1.1 mrg # original and so on. Autoconf is especially sensitive to this).
495 1.1 mrg . "./$as_me.lineno"
496 1.1 mrg # Exit status is that of the last command.
497 1.1 mrg exit
498 1.1 mrg }
499 1.1 mrg
500 1.1 mrg ECHO_C= ECHO_N= ECHO_T=
501 1.1 mrg case `echo -n x` in #(((((
502 1.1 mrg -n*)
503 1.1 mrg case `echo 'xy\c'` in
504 1.1 mrg *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 1.1 mrg xy) ECHO_C='\c';;
506 1.1 mrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 1.1 mrg ECHO_T=' ';;
508 1.1 mrg esac;;
509 1.1 mrg *)
510 1.1 mrg ECHO_N='-n';;
511 1.1 mrg esac
512 1.1 mrg
513 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
514 1.1 mrg if test -d conf$$.dir; then
515 1.1 mrg rm -f conf$$.dir/conf$$.file
516 1.1 mrg else
517 1.1 mrg rm -f conf$$.dir
518 1.1 mrg mkdir conf$$.dir 2>/dev/null
519 1.1 mrg fi
520 1.1 mrg if (echo >conf$$.file) 2>/dev/null; then
521 1.1 mrg if ln -s conf$$.file conf$$ 2>/dev/null; then
522 1.1 mrg as_ln_s='ln -s'
523 1.1 mrg # ... but there are two gotchas:
524 1.1 mrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 1.1 mrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 1.12 mrg # In both cases, we have to default to `cp -pR'.
527 1.1 mrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 1.12 mrg as_ln_s='cp -pR'
529 1.1 mrg elif ln conf$$.file conf$$ 2>/dev/null; then
530 1.1 mrg as_ln_s=ln
531 1.1 mrg else
532 1.12 mrg as_ln_s='cp -pR'
533 1.1 mrg fi
534 1.1 mrg else
535 1.12 mrg as_ln_s='cp -pR'
536 1.1 mrg fi
537 1.1 mrg rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 1.1 mrg rmdir conf$$.dir 2>/dev/null
539 1.1 mrg
540 1.1 mrg if mkdir -p . 2>/dev/null; then
541 1.1 mrg as_mkdir_p='mkdir -p "$as_dir"'
542 1.1 mrg else
543 1.1 mrg test -d ./-p && rmdir ./-p
544 1.1 mrg as_mkdir_p=false
545 1.1 mrg fi
546 1.1 mrg
547 1.12 mrg as_test_x='test -x'
548 1.12 mrg as_executable_p=as_fn_executable_p
549 1.1 mrg
550 1.1 mrg # Sed expression to map a string onto a valid CPP name.
551 1.1 mrg as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 1.1 mrg
553 1.1 mrg # Sed expression to map a string onto a valid variable name.
554 1.1 mrg as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 1.1 mrg
556 1.1 mrg
557 1.12 mrg test -n "$DJDIR" || exec 7<&0 </dev/null
558 1.12 mrg exec 6>&1
559 1.1 mrg
560 1.1 mrg # Name of the host.
561 1.12 mrg # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 1.1 mrg # so uname gets run too.
563 1.1 mrg ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 1.1 mrg
565 1.1 mrg #
566 1.1 mrg # Initializations.
567 1.1 mrg #
568 1.1 mrg ac_default_prefix=/usr/local
569 1.1 mrg ac_clean_files=
570 1.1 mrg ac_config_libobj_dir=.
571 1.1 mrg LIBOBJS=
572 1.1 mrg cross_compiling=no
573 1.1 mrg subdirs=
574 1.1 mrg MFLAGS=
575 1.1 mrg MAKEFLAGS=
576 1.1 mrg
577 1.1 mrg # Identity of this package.
578 1.1 mrg PACKAGE_NAME=
579 1.1 mrg PACKAGE_TARNAME=
580 1.1 mrg PACKAGE_VERSION=
581 1.1 mrg PACKAGE_STRING=
582 1.1 mrg PACKAGE_BUGREPORT=
583 1.1 mrg PACKAGE_URL=
584 1.1 mrg
585 1.1 mrg ac_unique_file="move-if-change"
586 1.1 mrg enable_option_checking=no
587 1.1 mrg ac_subst_vars='LTLIBOBJS
588 1.1 mrg LIBOBJS
589 1.1 mrg compare_exclusions
590 1.1 mrg stage2_werror_flag
591 1.1 mrg stage1_checking
592 1.1 mrg stage1_cflags
593 1.1 mrg MAINT
594 1.1 mrg MAINTAINER_MODE_FALSE
595 1.1 mrg MAINTAINER_MODE_TRUE
596 1.1 mrg COMPILER_NM_FOR_TARGET
597 1.1 mrg COMPILER_LD_FOR_TARGET
598 1.1 mrg COMPILER_AS_FOR_TARGET
599 1.1 mrg FLAGS_FOR_TARGET
600 1.1 mrg RAW_CXX_FOR_TARGET
601 1.1 mrg WINDMC_FOR_TARGET
602 1.1 mrg WINDRES_FOR_TARGET
603 1.1 mrg STRIP_FOR_TARGET
604 1.4 mrg READELF_FOR_TARGET
605 1.1 mrg RANLIB_FOR_TARGET
606 1.12 mrg OTOOL_FOR_TARGET
607 1.1 mrg OBJDUMP_FOR_TARGET
608 1.6 mrg OBJCOPY_FOR_TARGET
609 1.1 mrg NM_FOR_TARGET
610 1.1 mrg LIPO_FOR_TARGET
611 1.1 mrg LD_FOR_TARGET
612 1.13 mrg DSYMUTIL_FOR_TARGET
613 1.1 mrg DLLTOOL_FOR_TARGET
614 1.1 mrg AS_FOR_TARGET
615 1.1 mrg AR_FOR_TARGET
616 1.12 mrg GDC_FOR_TARGET
617 1.4 mrg GOC_FOR_TARGET
618 1.1 mrg GFORTRAN_FOR_TARGET
619 1.1 mrg GCC_FOR_TARGET
620 1.1 mrg CXX_FOR_TARGET
621 1.1 mrg CC_FOR_TARGET
622 1.4 mrg READELF
623 1.12 mrg OTOOL
624 1.1 mrg OBJDUMP
625 1.1 mrg OBJCOPY
626 1.1 mrg WINDMC
627 1.1 mrg WINDRES
628 1.1 mrg STRIP
629 1.1 mrg RANLIB
630 1.1 mrg NM
631 1.1 mrg LIPO
632 1.1 mrg LD
633 1.13 mrg DSYMUTIL
634 1.1 mrg DLLTOOL
635 1.1 mrg AS
636 1.1 mrg AR
637 1.1 mrg RUNTEST
638 1.1 mrg EXPECT
639 1.1 mrg MAKEINFO
640 1.1 mrg FLEX
641 1.1 mrg LEX
642 1.1 mrg M4
643 1.1 mrg BISON
644 1.1 mrg YACC
645 1.1 mrg WINDRES_FOR_BUILD
646 1.1 mrg WINDMC_FOR_BUILD
647 1.1 mrg RANLIB_FOR_BUILD
648 1.1 mrg NM_FOR_BUILD
649 1.1 mrg LD_FOR_BUILD
650 1.1 mrg LDFLAGS_FOR_BUILD
651 1.12 mrg GDC_FOR_BUILD
652 1.4 mrg GOC_FOR_BUILD
653 1.1 mrg GFORTRAN_FOR_BUILD
654 1.13 mrg DSYMUTIL_FOR_BUILD
655 1.1 mrg DLLTOOL_FOR_BUILD
656 1.1 mrg CXX_FOR_BUILD
657 1.1 mrg CXXFLAGS_FOR_BUILD
658 1.1 mrg CFLAGS_FOR_BUILD
659 1.1 mrg CC_FOR_BUILD
660 1.1 mrg AS_FOR_BUILD
661 1.1 mrg AR_FOR_BUILD
662 1.1 mrg target_configdirs
663 1.1 mrg configdirs
664 1.1 mrg build_configdirs
665 1.1 mrg INSTALL_GDB_TK
666 1.1 mrg GDB_TK
667 1.1 mrg CONFIGURE_GDB_TK
668 1.1 mrg build_tooldir
669 1.1 mrg tooldir
670 1.1 mrg GCC_SHLIB_SUBDIR
671 1.1 mrg RPATH_ENVVAR
672 1.4 mrg target_configargs
673 1.4 mrg host_configargs
674 1.4 mrg build_configargs
675 1.1 mrg BUILD_CONFIG
676 1.4 mrg LDFLAGS_FOR_TARGET
677 1.1 mrg CXXFLAGS_FOR_TARGET
678 1.1 mrg CFLAGS_FOR_TARGET
679 1.1 mrg DEBUG_PREFIX_CFLAGS_FOR_TARGET
680 1.1 mrg SYSROOT_CFLAGS_FOR_TARGET
681 1.10 mrg get_gcc_base_ver
682 1.8 mrg extra_host_zlib_configure_flags
683 1.6 mrg extra_host_libiberty_configure_flags
684 1.1 mrg stage1_languages
685 1.11 mrg host_shared
686 1.6 mrg extra_linker_plugin_flags
687 1.6 mrg extra_linker_plugin_configure_flags
688 1.4 mrg islinc
689 1.6 mrg isllibs
690 1.1 mrg poststage1_ldflags
691 1.1 mrg poststage1_libs
692 1.4 mrg stage1_ldflags
693 1.1 mrg stage1_libs
694 1.4 mrg extra_isl_gmp_configure_flags
695 1.1 mrg extra_mpc_mpfr_configure_flags
696 1.1 mrg extra_mpc_gmp_configure_flags
697 1.1 mrg extra_mpfr_configure_flags
698 1.1 mrg gmpinc
699 1.1 mrg gmplibs
700 1.1 mrg do_compare
701 1.1 mrg GNATMAKE
702 1.1 mrg GNATBIND
703 1.1 mrg ac_ct_CXX
704 1.1 mrg CXXFLAGS
705 1.1 mrg CXX
706 1.1 mrg OBJEXT
707 1.1 mrg EXEEXT
708 1.1 mrg ac_ct_CC
709 1.1 mrg CPPFLAGS
710 1.1 mrg LDFLAGS
711 1.1 mrg CFLAGS
712 1.1 mrg CC
713 1.6 mrg extra_liboffloadmic_configure_flags
714 1.1 mrg target_subdir
715 1.1 mrg host_subdir
716 1.1 mrg build_subdir
717 1.1 mrg build_libsubdir
718 1.1 mrg AWK
719 1.1 mrg SED
720 1.1 mrg LN_S
721 1.1 mrg LN
722 1.1 mrg INSTALL_DATA
723 1.1 mrg INSTALL_SCRIPT
724 1.1 mrg INSTALL_PROGRAM
725 1.1 mrg target_os
726 1.1 mrg target_vendor
727 1.1 mrg target_cpu
728 1.1 mrg target
729 1.1 mrg host_os
730 1.1 mrg host_vendor
731 1.1 mrg host_cpu
732 1.1 mrg host
733 1.1 mrg target_noncanonical
734 1.1 mrg host_noncanonical
735 1.1 mrg build_noncanonical
736 1.1 mrg build_os
737 1.1 mrg build_vendor
738 1.1 mrg build_cpu
739 1.1 mrg build
740 1.1 mrg TOPLEVEL_CONFIGURE_ARGUMENTS
741 1.1 mrg target_alias
742 1.1 mrg host_alias
743 1.1 mrg build_alias
744 1.1 mrg LIBS
745 1.1 mrg ECHO_T
746 1.1 mrg ECHO_N
747 1.1 mrg ECHO_C
748 1.1 mrg DEFS
749 1.1 mrg mandir
750 1.1 mrg localedir
751 1.1 mrg libdir
752 1.1 mrg psdir
753 1.1 mrg pdfdir
754 1.1 mrg dvidir
755 1.1 mrg htmldir
756 1.1 mrg infodir
757 1.1 mrg docdir
758 1.1 mrg oldincludedir
759 1.1 mrg includedir
760 1.1 mrg localstatedir
761 1.1 mrg sharedstatedir
762 1.1 mrg sysconfdir
763 1.1 mrg datadir
764 1.1 mrg datarootdir
765 1.1 mrg libexecdir
766 1.1 mrg sbindir
767 1.1 mrg bindir
768 1.1 mrg program_transform_name
769 1.1 mrg prefix
770 1.1 mrg exec_prefix
771 1.1 mrg PACKAGE_URL
772 1.1 mrg PACKAGE_BUGREPORT
773 1.1 mrg PACKAGE_STRING
774 1.1 mrg PACKAGE_VERSION
775 1.1 mrg PACKAGE_TARNAME
776 1.1 mrg PACKAGE_NAME
777 1.1 mrg PATH_SEPARATOR
778 1.1 mrg SHELL'
779 1.1 mrg ac_subst_files='serialization_dependencies
780 1.1 mrg host_makefile_frag
781 1.1 mrg target_makefile_frag
782 1.1 mrg alphaieee_frag
783 1.1 mrg ospace_frag'
784 1.1 mrg ac_user_opts='
785 1.1 mrg enable_option_checking
786 1.1 mrg with_build_libsubdir
787 1.8 mrg with_system_zlib
788 1.6 mrg enable_as_accelerator_for
789 1.6 mrg enable_offload_targets
790 1.1 mrg enable_gold
791 1.4 mrg enable_ld
792 1.8 mrg enable_compressed_debug_sections
793 1.4 mrg enable_libquadmath
794 1.4 mrg enable_libquadmath_support
795 1.1 mrg enable_libada
796 1.1 mrg enable_libssp
797 1.4 mrg enable_libstdcxx
798 1.6 mrg enable_liboffloadmic
799 1.4 mrg enable_bootstrap
800 1.1 mrg with_mpc
801 1.1 mrg with_mpc_include
802 1.1 mrg with_mpc_lib
803 1.1 mrg with_mpfr_dir
804 1.1 mrg with_mpfr
805 1.1 mrg with_mpfr_include
806 1.1 mrg with_mpfr_lib
807 1.1 mrg with_gmp_dir
808 1.1 mrg with_gmp
809 1.1 mrg with_gmp_include
810 1.1 mrg with_gmp_lib
811 1.4 mrg with_stage1_libs
812 1.13 mrg with_static_standard_libraries
813 1.1 mrg with_stage1_ldflags
814 1.1 mrg with_boot_libs
815 1.1 mrg with_boot_ldflags
816 1.4 mrg with_isl
817 1.4 mrg with_isl_include
818 1.4 mrg with_isl_lib
819 1.4 mrg enable_isl_version_check
820 1.1 mrg enable_lto
821 1.6 mrg enable_linker_plugin_configure_flags
822 1.6 mrg enable_linker_plugin_flags
823 1.11 mrg enable_host_shared
824 1.1 mrg enable_stage1_languages
825 1.1 mrg enable_objc_gc
826 1.10 mrg with_target_bdw_gc
827 1.10 mrg with_target_bdw_gc_include
828 1.10 mrg with_target_bdw_gc_lib
829 1.10 mrg with_gcc_major_version_only
830 1.1 mrg with_build_sysroot
831 1.1 mrg with_debug_prefix_map
832 1.1 mrg with_build_config
833 1.6 mrg enable_vtable_verify
834 1.1 mrg enable_serial_configure
835 1.1 mrg with_build_time_tools
836 1.1 mrg enable_maintainer_mode
837 1.1 mrg enable_stage1_checking
838 1.1 mrg enable_werror
839 1.1 mrg '
840 1.1 mrg ac_precious_vars='build_alias
841 1.1 mrg host_alias
842 1.1 mrg target_alias
843 1.1 mrg CC
844 1.1 mrg CFLAGS
845 1.1 mrg LDFLAGS
846 1.1 mrg LIBS
847 1.1 mrg CPPFLAGS
848 1.1 mrg CXX
849 1.1 mrg CXXFLAGS
850 1.1 mrg CCC
851 1.4 mrg build_configargs
852 1.4 mrg host_configargs
853 1.4 mrg target_configargs
854 1.1 mrg AR
855 1.1 mrg AS
856 1.1 mrg DLLTOOL
857 1.13 mrg DSYMUTIL
858 1.1 mrg LD
859 1.1 mrg LIPO
860 1.1 mrg NM
861 1.1 mrg RANLIB
862 1.1 mrg STRIP
863 1.1 mrg WINDRES
864 1.1 mrg WINDMC
865 1.1 mrg OBJCOPY
866 1.1 mrg OBJDUMP
867 1.12 mrg OTOOL
868 1.4 mrg READELF
869 1.1 mrg CC_FOR_TARGET
870 1.1 mrg CXX_FOR_TARGET
871 1.1 mrg GCC_FOR_TARGET
872 1.1 mrg GFORTRAN_FOR_TARGET
873 1.4 mrg GOC_FOR_TARGET
874 1.12 mrg GDC_FOR_TARGET
875 1.1 mrg AR_FOR_TARGET
876 1.1 mrg AS_FOR_TARGET
877 1.1 mrg DLLTOOL_FOR_TARGET
878 1.13 mrg DSYMUTIL_FOR_TARGET
879 1.1 mrg LD_FOR_TARGET
880 1.1 mrg LIPO_FOR_TARGET
881 1.1 mrg NM_FOR_TARGET
882 1.6 mrg OBJCOPY_FOR_TARGET
883 1.1 mrg OBJDUMP_FOR_TARGET
884 1.12 mrg OTOOL_FOR_TARGET
885 1.1 mrg RANLIB_FOR_TARGET
886 1.4 mrg READELF_FOR_TARGET
887 1.1 mrg STRIP_FOR_TARGET
888 1.1 mrg WINDRES_FOR_TARGET
889 1.1 mrg WINDMC_FOR_TARGET'
890 1.1 mrg
891 1.1 mrg
892 1.1 mrg # Initialize some variables set by options.
893 1.1 mrg ac_init_help=
894 1.1 mrg ac_init_version=false
895 1.1 mrg ac_unrecognized_opts=
896 1.1 mrg ac_unrecognized_sep=
897 1.1 mrg # The variables have the same names as the options, with
898 1.1 mrg # dashes changed to underlines.
899 1.1 mrg cache_file=/dev/null
900 1.1 mrg exec_prefix=NONE
901 1.1 mrg no_create=
902 1.1 mrg no_recursion=
903 1.1 mrg prefix=NONE
904 1.1 mrg program_prefix=NONE
905 1.1 mrg program_suffix=NONE
906 1.1 mrg program_transform_name=s,x,x,
907 1.1 mrg silent=
908 1.1 mrg site=
909 1.1 mrg srcdir=
910 1.1 mrg verbose=
911 1.1 mrg x_includes=NONE
912 1.1 mrg x_libraries=NONE
913 1.1 mrg
914 1.1 mrg # Installation directory options.
915 1.1 mrg # These are left unexpanded so users can "make install exec_prefix=/foo"
916 1.1 mrg # and all the variables that are supposed to be based on exec_prefix
917 1.1 mrg # by default will actually change.
918 1.1 mrg # Use braces instead of parens because sh, perl, etc. also accept them.
919 1.1 mrg # (The list follows the same order as the GNU Coding Standards.)
920 1.1 mrg bindir='${exec_prefix}/bin'
921 1.1 mrg sbindir='${exec_prefix}/sbin'
922 1.1 mrg libexecdir='${exec_prefix}/libexec'
923 1.1 mrg datarootdir='${prefix}/share'
924 1.1 mrg datadir='${datarootdir}'
925 1.1 mrg sysconfdir='${prefix}/etc'
926 1.1 mrg sharedstatedir='${prefix}/com'
927 1.1 mrg localstatedir='${prefix}/var'
928 1.1 mrg includedir='${prefix}/include'
929 1.1 mrg oldincludedir='/usr/include'
930 1.1 mrg docdir='${datarootdir}/doc/${PACKAGE}'
931 1.1 mrg infodir='${datarootdir}/info'
932 1.1 mrg htmldir='${docdir}'
933 1.1 mrg dvidir='${docdir}'
934 1.1 mrg pdfdir='${docdir}'
935 1.1 mrg psdir='${docdir}'
936 1.1 mrg libdir='${exec_prefix}/lib'
937 1.1 mrg localedir='${datarootdir}/locale'
938 1.1 mrg mandir='${datarootdir}/man'
939 1.1 mrg
940 1.1 mrg ac_prev=
941 1.1 mrg ac_dashdash=
942 1.1 mrg for ac_option
943 1.1 mrg do
944 1.1 mrg # If the previous option needs an argument, assign it.
945 1.1 mrg if test -n "$ac_prev"; then
946 1.1 mrg eval $ac_prev=\$ac_option
947 1.1 mrg ac_prev=
948 1.1 mrg continue
949 1.1 mrg fi
950 1.1 mrg
951 1.1 mrg case $ac_option in
952 1.12 mrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 1.12 mrg *=) ac_optarg= ;;
954 1.12 mrg *) ac_optarg=yes ;;
955 1.1 mrg esac
956 1.1 mrg
957 1.1 mrg # Accept the important Cygnus configure options, so we can diagnose typos.
958 1.1 mrg
959 1.1 mrg case $ac_dashdash$ac_option in
960 1.1 mrg --)
961 1.1 mrg ac_dashdash=yes ;;
962 1.1 mrg
963 1.1 mrg -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 1.1 mrg ac_prev=bindir ;;
965 1.1 mrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 1.1 mrg bindir=$ac_optarg ;;
967 1.1 mrg
968 1.1 mrg -build | --build | --buil | --bui | --bu)
969 1.1 mrg ac_prev=build_alias ;;
970 1.1 mrg -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 1.1 mrg build_alias=$ac_optarg ;;
972 1.1 mrg
973 1.1 mrg -cache-file | --cache-file | --cache-fil | --cache-fi \
974 1.1 mrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 1.1 mrg ac_prev=cache_file ;;
976 1.1 mrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 1.1 mrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 1.1 mrg cache_file=$ac_optarg ;;
979 1.1 mrg
980 1.1 mrg --config-cache | -C)
981 1.1 mrg cache_file=config.cache ;;
982 1.1 mrg
983 1.1 mrg -datadir | --datadir | --datadi | --datad)
984 1.1 mrg ac_prev=datadir ;;
985 1.1 mrg -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 1.1 mrg datadir=$ac_optarg ;;
987 1.1 mrg
988 1.1 mrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 1.1 mrg | --dataroo | --dataro | --datar)
990 1.1 mrg ac_prev=datarootdir ;;
991 1.1 mrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 1.1 mrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 1.1 mrg datarootdir=$ac_optarg ;;
994 1.1 mrg
995 1.1 mrg -disable-* | --disable-*)
996 1.1 mrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 1.1 mrg # Reject names that are not valid shell variable names.
998 1.1 mrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 1.12 mrg as_fn_error $? "invalid feature name: $ac_useropt"
1000 1.1 mrg ac_useropt_orig=$ac_useropt
1001 1.1 mrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 1.1 mrg case $ac_user_opts in
1003 1.1 mrg *"
1004 1.1 mrg "enable_$ac_useropt"
1005 1.1 mrg "*) ;;
1006 1.1 mrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 1.1 mrg ac_unrecognized_sep=', ';;
1008 1.1 mrg esac
1009 1.1 mrg eval enable_$ac_useropt=no ;;
1010 1.1 mrg
1011 1.1 mrg -docdir | --docdir | --docdi | --doc | --do)
1012 1.1 mrg ac_prev=docdir ;;
1013 1.1 mrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 1.1 mrg docdir=$ac_optarg ;;
1015 1.1 mrg
1016 1.1 mrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 1.1 mrg ac_prev=dvidir ;;
1018 1.1 mrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 1.1 mrg dvidir=$ac_optarg ;;
1020 1.1 mrg
1021 1.1 mrg -enable-* | --enable-*)
1022 1.1 mrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 1.1 mrg # Reject names that are not valid shell variable names.
1024 1.1 mrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 1.12 mrg as_fn_error $? "invalid feature name: $ac_useropt"
1026 1.1 mrg ac_useropt_orig=$ac_useropt
1027 1.1 mrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 1.1 mrg case $ac_user_opts in
1029 1.1 mrg *"
1030 1.1 mrg "enable_$ac_useropt"
1031 1.1 mrg "*) ;;
1032 1.1 mrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 1.1 mrg ac_unrecognized_sep=', ';;
1034 1.1 mrg esac
1035 1.1 mrg eval enable_$ac_useropt=\$ac_optarg ;;
1036 1.1 mrg
1037 1.1 mrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 1.1 mrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 1.1 mrg | --exec | --exe | --ex)
1040 1.1 mrg ac_prev=exec_prefix ;;
1041 1.1 mrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 1.1 mrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 1.1 mrg | --exec=* | --exe=* | --ex=*)
1044 1.1 mrg exec_prefix=$ac_optarg ;;
1045 1.1 mrg
1046 1.1 mrg -gas | --gas | --ga | --g)
1047 1.1 mrg # Obsolete; use --with-gas.
1048 1.1 mrg with_gas=yes ;;
1049 1.1 mrg
1050 1.1 mrg -help | --help | --hel | --he | -h)
1051 1.1 mrg ac_init_help=long ;;
1052 1.1 mrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 1.1 mrg ac_init_help=recursive ;;
1054 1.1 mrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 1.1 mrg ac_init_help=short ;;
1056 1.1 mrg
1057 1.1 mrg -host | --host | --hos | --ho)
1058 1.1 mrg ac_prev=host_alias ;;
1059 1.1 mrg -host=* | --host=* | --hos=* | --ho=*)
1060 1.1 mrg host_alias=$ac_optarg ;;
1061 1.1 mrg
1062 1.1 mrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 1.1 mrg ac_prev=htmldir ;;
1064 1.1 mrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 1.1 mrg | --ht=*)
1066 1.1 mrg htmldir=$ac_optarg ;;
1067 1.1 mrg
1068 1.1 mrg -includedir | --includedir | --includedi | --included | --include \
1069 1.1 mrg | --includ | --inclu | --incl | --inc)
1070 1.1 mrg ac_prev=includedir ;;
1071 1.1 mrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 1.1 mrg | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 1.1 mrg includedir=$ac_optarg ;;
1074 1.1 mrg
1075 1.1 mrg -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 1.1 mrg ac_prev=infodir ;;
1077 1.1 mrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 1.1 mrg infodir=$ac_optarg ;;
1079 1.1 mrg
1080 1.1 mrg -libdir | --libdir | --libdi | --libd)
1081 1.1 mrg ac_prev=libdir ;;
1082 1.1 mrg -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 1.1 mrg libdir=$ac_optarg ;;
1084 1.1 mrg
1085 1.1 mrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 1.1 mrg | --libexe | --libex | --libe)
1087 1.1 mrg ac_prev=libexecdir ;;
1088 1.1 mrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 1.1 mrg | --libexe=* | --libex=* | --libe=*)
1090 1.1 mrg libexecdir=$ac_optarg ;;
1091 1.1 mrg
1092 1.1 mrg -localedir | --localedir | --localedi | --localed | --locale)
1093 1.1 mrg ac_prev=localedir ;;
1094 1.1 mrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 1.1 mrg localedir=$ac_optarg ;;
1096 1.1 mrg
1097 1.1 mrg -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 1.1 mrg | --localstate | --localstat | --localsta | --localst | --locals)
1099 1.1 mrg ac_prev=localstatedir ;;
1100 1.1 mrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 1.1 mrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 1.1 mrg localstatedir=$ac_optarg ;;
1103 1.1 mrg
1104 1.1 mrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 1.1 mrg ac_prev=mandir ;;
1106 1.1 mrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 1.1 mrg mandir=$ac_optarg ;;
1108 1.1 mrg
1109 1.1 mrg -nfp | --nfp | --nf)
1110 1.1 mrg # Obsolete; use --without-fp.
1111 1.1 mrg with_fp=no ;;
1112 1.1 mrg
1113 1.1 mrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 1.1 mrg | --no-cr | --no-c | -n)
1115 1.1 mrg no_create=yes ;;
1116 1.1 mrg
1117 1.1 mrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 1.1 mrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 1.1 mrg no_recursion=yes ;;
1120 1.1 mrg
1121 1.1 mrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 1.1 mrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 1.1 mrg | --oldin | --oldi | --old | --ol | --o)
1124 1.1 mrg ac_prev=oldincludedir ;;
1125 1.1 mrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 1.1 mrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 1.1 mrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 1.1 mrg oldincludedir=$ac_optarg ;;
1129 1.1 mrg
1130 1.1 mrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 1.1 mrg ac_prev=prefix ;;
1132 1.1 mrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 1.1 mrg prefix=$ac_optarg ;;
1134 1.1 mrg
1135 1.1 mrg -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 1.1 mrg | --program-pre | --program-pr | --program-p)
1137 1.1 mrg ac_prev=program_prefix ;;
1138 1.1 mrg -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 1.1 mrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 1.1 mrg program_prefix=$ac_optarg ;;
1141 1.1 mrg
1142 1.1 mrg -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 1.1 mrg | --program-suf | --program-su | --program-s)
1144 1.1 mrg ac_prev=program_suffix ;;
1145 1.1 mrg -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 1.1 mrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 1.1 mrg program_suffix=$ac_optarg ;;
1148 1.1 mrg
1149 1.1 mrg -program-transform-name | --program-transform-name \
1150 1.1 mrg | --program-transform-nam | --program-transform-na \
1151 1.1 mrg | --program-transform-n | --program-transform- \
1152 1.1 mrg | --program-transform | --program-transfor \
1153 1.1 mrg | --program-transfo | --program-transf \
1154 1.1 mrg | --program-trans | --program-tran \
1155 1.1 mrg | --progr-tra | --program-tr | --program-t)
1156 1.1 mrg ac_prev=program_transform_name ;;
1157 1.1 mrg -program-transform-name=* | --program-transform-name=* \
1158 1.1 mrg | --program-transform-nam=* | --program-transform-na=* \
1159 1.1 mrg | --program-transform-n=* | --program-transform-=* \
1160 1.1 mrg | --program-transform=* | --program-transfor=* \
1161 1.1 mrg | --program-transfo=* | --program-transf=* \
1162 1.1 mrg | --program-trans=* | --program-tran=* \
1163 1.1 mrg | --progr-tra=* | --program-tr=* | --program-t=*)
1164 1.1 mrg program_transform_name=$ac_optarg ;;
1165 1.1 mrg
1166 1.1 mrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 1.1 mrg ac_prev=pdfdir ;;
1168 1.1 mrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 1.1 mrg pdfdir=$ac_optarg ;;
1170 1.1 mrg
1171 1.1 mrg -psdir | --psdir | --psdi | --psd | --ps)
1172 1.1 mrg ac_prev=psdir ;;
1173 1.1 mrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 1.1 mrg psdir=$ac_optarg ;;
1175 1.1 mrg
1176 1.1 mrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 1.1 mrg | -silent | --silent | --silen | --sile | --sil)
1178 1.1 mrg silent=yes ;;
1179 1.1 mrg
1180 1.1 mrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 1.1 mrg ac_prev=sbindir ;;
1182 1.1 mrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 1.1 mrg | --sbi=* | --sb=*)
1184 1.1 mrg sbindir=$ac_optarg ;;
1185 1.1 mrg
1186 1.1 mrg -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 1.1 mrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 1.1 mrg | --sharedst | --shareds | --shared | --share | --shar \
1189 1.1 mrg | --sha | --sh)
1190 1.1 mrg ac_prev=sharedstatedir ;;
1191 1.1 mrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 1.1 mrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 1.1 mrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 1.1 mrg | --sha=* | --sh=*)
1195 1.1 mrg sharedstatedir=$ac_optarg ;;
1196 1.1 mrg
1197 1.1 mrg -site | --site | --sit)
1198 1.1 mrg ac_prev=site ;;
1199 1.1 mrg -site=* | --site=* | --sit=*)
1200 1.1 mrg site=$ac_optarg ;;
1201 1.1 mrg
1202 1.1 mrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 1.1 mrg ac_prev=srcdir ;;
1204 1.1 mrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 1.1 mrg srcdir=$ac_optarg ;;
1206 1.1 mrg
1207 1.1 mrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 1.1 mrg | --syscon | --sysco | --sysc | --sys | --sy)
1209 1.1 mrg ac_prev=sysconfdir ;;
1210 1.1 mrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 1.1 mrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 1.1 mrg sysconfdir=$ac_optarg ;;
1213 1.1 mrg
1214 1.1 mrg -target | --target | --targe | --targ | --tar | --ta | --t)
1215 1.1 mrg ac_prev=target_alias ;;
1216 1.1 mrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 1.1 mrg target_alias=$ac_optarg ;;
1218 1.1 mrg
1219 1.1 mrg -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 1.1 mrg verbose=yes ;;
1221 1.1 mrg
1222 1.1 mrg -version | --version | --versio | --versi | --vers | -V)
1223 1.1 mrg ac_init_version=: ;;
1224 1.1 mrg
1225 1.1 mrg -with-* | --with-*)
1226 1.1 mrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 1.1 mrg # Reject names that are not valid shell variable names.
1228 1.1 mrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 1.12 mrg as_fn_error $? "invalid package name: $ac_useropt"
1230 1.1 mrg ac_useropt_orig=$ac_useropt
1231 1.1 mrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 1.1 mrg case $ac_user_opts in
1233 1.1 mrg *"
1234 1.1 mrg "with_$ac_useropt"
1235 1.1 mrg "*) ;;
1236 1.1 mrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 1.1 mrg ac_unrecognized_sep=', ';;
1238 1.1 mrg esac
1239 1.1 mrg eval with_$ac_useropt=\$ac_optarg ;;
1240 1.1 mrg
1241 1.1 mrg -without-* | --without-*)
1242 1.1 mrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 1.1 mrg # Reject names that are not valid shell variable names.
1244 1.1 mrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 1.12 mrg as_fn_error $? "invalid package name: $ac_useropt"
1246 1.1 mrg ac_useropt_orig=$ac_useropt
1247 1.1 mrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 1.1 mrg case $ac_user_opts in
1249 1.1 mrg *"
1250 1.1 mrg "with_$ac_useropt"
1251 1.1 mrg "*) ;;
1252 1.1 mrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 1.1 mrg ac_unrecognized_sep=', ';;
1254 1.1 mrg esac
1255 1.1 mrg eval with_$ac_useropt=no ;;
1256 1.1 mrg
1257 1.1 mrg --x)
1258 1.1 mrg # Obsolete; use --with-x.
1259 1.1 mrg with_x=yes ;;
1260 1.1 mrg
1261 1.1 mrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 1.1 mrg | --x-incl | --x-inc | --x-in | --x-i)
1263 1.1 mrg ac_prev=x_includes ;;
1264 1.1 mrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 1.1 mrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 1.1 mrg x_includes=$ac_optarg ;;
1267 1.1 mrg
1268 1.1 mrg -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 1.1 mrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 1.1 mrg ac_prev=x_libraries ;;
1271 1.1 mrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 1.1 mrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 1.1 mrg x_libraries=$ac_optarg ;;
1274 1.1 mrg
1275 1.12 mrg -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 1.12 mrg Try \`$0 --help' for more information"
1277 1.1 mrg ;;
1278 1.1 mrg
1279 1.1 mrg *=*)
1280 1.1 mrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 1.1 mrg # Reject names that are not valid shell variable names.
1282 1.1 mrg case $ac_envvar in #(
1283 1.1 mrg '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 1.12 mrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285 1.1 mrg esac
1286 1.1 mrg eval $ac_envvar=\$ac_optarg
1287 1.1 mrg export $ac_envvar ;;
1288 1.1 mrg
1289 1.1 mrg *)
1290 1.1 mrg # FIXME: should be removed in autoconf 3.0.
1291 1.1 mrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 1.1 mrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 1.1 mrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 1.12 mrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 1.1 mrg ;;
1296 1.1 mrg
1297 1.1 mrg esac
1298 1.1 mrg done
1299 1.1 mrg
1300 1.1 mrg if test -n "$ac_prev"; then
1301 1.1 mrg ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 1.12 mrg as_fn_error $? "missing argument to $ac_option"
1303 1.1 mrg fi
1304 1.1 mrg
1305 1.1 mrg if test -n "$ac_unrecognized_opts"; then
1306 1.1 mrg case $enable_option_checking in
1307 1.1 mrg no) ;;
1308 1.12 mrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 1.1 mrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 1.1 mrg esac
1311 1.1 mrg fi
1312 1.1 mrg
1313 1.1 mrg # Check all directory arguments for consistency.
1314 1.1 mrg for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 1.1 mrg datadir sysconfdir sharedstatedir localstatedir includedir \
1316 1.1 mrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 1.1 mrg libdir localedir mandir
1318 1.1 mrg do
1319 1.1 mrg eval ac_val=\$$ac_var
1320 1.1 mrg # Remove trailing slashes.
1321 1.1 mrg case $ac_val in
1322 1.1 mrg */ )
1323 1.1 mrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 1.1 mrg eval $ac_var=\$ac_val;;
1325 1.1 mrg esac
1326 1.1 mrg # Be sure to have absolute directory names.
1327 1.1 mrg case $ac_val in
1328 1.1 mrg [\\/$]* | ?:[\\/]* ) continue;;
1329 1.1 mrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 1.1 mrg esac
1331 1.12 mrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 1.1 mrg done
1333 1.1 mrg
1334 1.1 mrg # There might be people who depend on the old broken behavior: `$host'
1335 1.1 mrg # used to hold the argument of --host etc.
1336 1.1 mrg # FIXME: To remove some day.
1337 1.1 mrg build=$build_alias
1338 1.1 mrg host=$host_alias
1339 1.1 mrg target=$target_alias
1340 1.1 mrg
1341 1.1 mrg # FIXME: To remove some day.
1342 1.1 mrg if test "x$host_alias" != x; then
1343 1.1 mrg if test "x$build_alias" = x; then
1344 1.1 mrg cross_compiling=maybe
1345 1.1 mrg elif test "x$build_alias" != "x$host_alias"; then
1346 1.1 mrg cross_compiling=yes
1347 1.1 mrg fi
1348 1.1 mrg fi
1349 1.1 mrg
1350 1.1 mrg ac_tool_prefix=
1351 1.1 mrg test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 1.1 mrg
1353 1.1 mrg test "$silent" = yes && exec 6>/dev/null
1354 1.1 mrg
1355 1.1 mrg
1356 1.1 mrg ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 1.1 mrg ac_ls_di=`ls -di .` &&
1358 1.1 mrg ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 1.12 mrg as_fn_error $? "working directory cannot be determined"
1360 1.1 mrg test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 1.12 mrg as_fn_error $? "pwd does not report name of working directory"
1362 1.1 mrg
1363 1.1 mrg
1364 1.1 mrg # Find the source files, if location was not specified.
1365 1.1 mrg if test -z "$srcdir"; then
1366 1.1 mrg ac_srcdir_defaulted=yes
1367 1.1 mrg # Try the directory containing this script, then the parent directory.
1368 1.1 mrg ac_confdir=`$as_dirname -- "$as_myself" ||
1369 1.1 mrg $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 1.1 mrg X"$as_myself" : 'X\(//\)[^/]' \| \
1371 1.1 mrg X"$as_myself" : 'X\(//\)$' \| \
1372 1.1 mrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373 1.1 mrg $as_echo X"$as_myself" |
1374 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 1.1 mrg s//\1/
1376 1.1 mrg q
1377 1.1 mrg }
1378 1.1 mrg /^X\(\/\/\)[^/].*/{
1379 1.1 mrg s//\1/
1380 1.1 mrg q
1381 1.1 mrg }
1382 1.1 mrg /^X\(\/\/\)$/{
1383 1.1 mrg s//\1/
1384 1.1 mrg q
1385 1.1 mrg }
1386 1.1 mrg /^X\(\/\).*/{
1387 1.1 mrg s//\1/
1388 1.1 mrg q
1389 1.1 mrg }
1390 1.1 mrg s/.*/./; q'`
1391 1.1 mrg srcdir=$ac_confdir
1392 1.1 mrg if test ! -r "$srcdir/$ac_unique_file"; then
1393 1.1 mrg srcdir=..
1394 1.1 mrg fi
1395 1.1 mrg else
1396 1.1 mrg ac_srcdir_defaulted=no
1397 1.1 mrg fi
1398 1.1 mrg if test ! -r "$srcdir/$ac_unique_file"; then
1399 1.1 mrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 1.12 mrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 1.1 mrg fi
1402 1.1 mrg ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 1.1 mrg ac_abs_confdir=`(
1404 1.12 mrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 1.1 mrg pwd)`
1406 1.1 mrg # When building in place, set srcdir=.
1407 1.1 mrg if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 1.1 mrg srcdir=.
1409 1.1 mrg fi
1410 1.1 mrg # Remove unnecessary trailing slashes from srcdir.
1411 1.1 mrg # Double slashes in file names in object file debugging info
1412 1.1 mrg # mess up M-x gdb in Emacs.
1413 1.1 mrg case $srcdir in
1414 1.1 mrg */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 1.1 mrg esac
1416 1.4 mrg case $srcdir in
1417 1.4 mrg *" "*)
1418 1.12 mrg as_fn_error $? "path to source, $srcdir, contains spaces"
1419 1.4 mrg ;;
1420 1.4 mrg esac
1421 1.1 mrg ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1422 1.1 mrg
1423 1.1 mrg for ac_var in $ac_precious_vars; do
1424 1.1 mrg eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 1.1 mrg eval ac_env_${ac_var}_value=\$${ac_var}
1426 1.1 mrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 1.1 mrg eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 1.1 mrg done
1429 1.1 mrg
1430 1.1 mrg #
1431 1.1 mrg # Report the --help message.
1432 1.1 mrg #
1433 1.1 mrg if test "$ac_init_help" = "long"; then
1434 1.1 mrg # Omit some internal or obsolete options to make the list less imposing.
1435 1.1 mrg # This message is too long to be a string in the A/UX 3.1 sh.
1436 1.1 mrg cat <<_ACEOF
1437 1.1 mrg \`configure' configures this package to adapt to many kinds of systems.
1438 1.1 mrg
1439 1.1 mrg Usage: $0 [OPTION]... [VAR=VALUE]...
1440 1.1 mrg
1441 1.1 mrg To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 1.1 mrg VAR=VALUE. See below for descriptions of some of the useful variables.
1443 1.1 mrg
1444 1.1 mrg Defaults for the options are specified in brackets.
1445 1.1 mrg
1446 1.1 mrg Configuration:
1447 1.1 mrg -h, --help display this help and exit
1448 1.1 mrg --help=short display options specific to this package
1449 1.1 mrg --help=recursive display the short help of all the included packages
1450 1.1 mrg -V, --version display version information and exit
1451 1.12 mrg -q, --quiet, --silent do not print \`checking ...' messages
1452 1.1 mrg --cache-file=FILE cache test results in FILE [disabled]
1453 1.1 mrg -C, --config-cache alias for \`--cache-file=config.cache'
1454 1.1 mrg -n, --no-create do not create output files
1455 1.1 mrg --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 1.1 mrg
1457 1.1 mrg Installation directories:
1458 1.1 mrg --prefix=PREFIX install architecture-independent files in PREFIX
1459 1.1 mrg [$ac_default_prefix]
1460 1.1 mrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 1.1 mrg [PREFIX]
1462 1.1 mrg
1463 1.1 mrg By default, \`make install' will install all the files in
1464 1.1 mrg \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 1.1 mrg an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 1.1 mrg for instance \`--prefix=\$HOME'.
1467 1.1 mrg
1468 1.1 mrg For better control, use the options below.
1469 1.1 mrg
1470 1.1 mrg Fine tuning of the installation directories:
1471 1.1 mrg --bindir=DIR user executables [EPREFIX/bin]
1472 1.1 mrg --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 1.1 mrg --libexecdir=DIR program executables [EPREFIX/libexec]
1474 1.1 mrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 1.1 mrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 1.1 mrg --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 1.1 mrg --libdir=DIR object code libraries [EPREFIX/lib]
1478 1.1 mrg --includedir=DIR C header files [PREFIX/include]
1479 1.1 mrg --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 1.1 mrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 1.1 mrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 1.1 mrg --infodir=DIR info documentation [DATAROOTDIR/info]
1483 1.1 mrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 1.1 mrg --mandir=DIR man documentation [DATAROOTDIR/man]
1485 1.1 mrg --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 1.1 mrg --htmldir=DIR html documentation [DOCDIR]
1487 1.1 mrg --dvidir=DIR dvi documentation [DOCDIR]
1488 1.1 mrg --pdfdir=DIR pdf documentation [DOCDIR]
1489 1.1 mrg --psdir=DIR ps documentation [DOCDIR]
1490 1.1 mrg _ACEOF
1491 1.1 mrg
1492 1.1 mrg cat <<\_ACEOF
1493 1.1 mrg
1494 1.1 mrg Program names:
1495 1.1 mrg --program-prefix=PREFIX prepend PREFIX to installed program names
1496 1.1 mrg --program-suffix=SUFFIX append SUFFIX to installed program names
1497 1.1 mrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 1.1 mrg
1499 1.1 mrg System types:
1500 1.1 mrg --build=BUILD configure for building on BUILD [guessed]
1501 1.1 mrg --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 1.1 mrg --target=TARGET configure for building compilers for TARGET [HOST]
1503 1.1 mrg _ACEOF
1504 1.1 mrg fi
1505 1.1 mrg
1506 1.1 mrg if test -n "$ac_init_help"; then
1507 1.1 mrg
1508 1.1 mrg cat <<\_ACEOF
1509 1.1 mrg
1510 1.1 mrg Optional Features:
1511 1.1 mrg --disable-option-checking ignore unrecognized --enable/--with options
1512 1.1 mrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 1.1 mrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 1.6 mrg --enable-as-accelerator-for=ARG
1515 1.6 mrg build as offload target compiler. Specify offload
1516 1.6 mrg host triple by ARG
1517 1.6 mrg --enable-offload-targets=LIST
1518 1.6 mrg enable offloading to devices from comma-separated
1519 1.6 mrg LIST of TARGET[=DIR]. Use optional path to find
1520 1.6 mrg offload target compiler during the build
1521 1.4 mrg --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1522 1.4 mrg --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1523 1.8 mrg --enable-compressed-debug-sections={all,gas,gold,ld,none}
1524 1.8 mrg Enable compressed debug sections for gas, gold or ld
1525 1.8 mrg by default
1526 1.4 mrg --disable-libquadmath do not build libquadmath directory
1527 1.4 mrg --disable-libquadmath-support
1528 1.4 mrg disable libquadmath support for Fortran
1529 1.1 mrg --enable-libada build libada directory
1530 1.1 mrg --enable-libssp build libssp directory
1531 1.4 mrg --disable-libstdcxx do not build libstdc++-v3 directory
1532 1.6 mrg --enable-liboffloadmic=ARG
1533 1.6 mrg build liboffloadmic [ARG={no,host,target}]
1534 1.4 mrg --enable-bootstrap enable bootstrapping [yes if native build]
1535 1.4 mrg --disable-isl-version-check
1536 1.8 mrg disable check for isl version
1537 1.1 mrg --enable-lto enable link time optimization support
1538 1.6 mrg --enable-linker-plugin-configure-flags=FLAGS
1539 1.6 mrg additional flags for configuring linker plugins
1540 1.6 mrg [none]
1541 1.6 mrg --enable-linker-plugin-flags=FLAGS
1542 1.6 mrg additional flags for configuring and building linker
1543 1.6 mrg plugins [none]
1544 1.11 mrg --enable-host-shared build host code as shared libraries
1545 1.4 mrg --enable-stage1-languages[=all]
1546 1.4 mrg choose additional languages to build during stage1.
1547 1.4 mrg Mostly useful for compiler development
1548 1.4 mrg --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1549 1.4 mrg Objective-C runtime
1550 1.8 mrg --enable-vtable-verify Enable vtable verification feature
1551 1.1 mrg --enable-serial-[{host,target,build}-]configure
1552 1.4 mrg force sequential configuration of sub-packages for
1553 1.4 mrg the host, target or build machine, or all
1554 1.4 mrg sub-packages
1555 1.4 mrg --enable-maintainer-mode
1556 1.4 mrg enable make rules and dependencies not useful (and
1557 1.4 mrg sometimes confusing) to the casual installer
1558 1.4 mrg --enable-stage1-checking[=all]
1559 1.4 mrg choose additional checking for stage1 of the
1560 1.4 mrg compiler
1561 1.1 mrg --enable-werror enable -Werror in bootstrap stage2 and later
1562 1.1 mrg
1563 1.1 mrg Optional Packages:
1564 1.1 mrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 1.1 mrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 1.1 mrg --with-build-libsubdir=DIR Directory where to find libraries for build system
1567 1.8 mrg --with-system-zlib use installed libz
1568 1.4 mrg --with-mpc=PATH specify prefix directory for installed MPC package.
1569 1.4 mrg Equivalent to --with-mpc-include=PATH/include plus
1570 1.4 mrg --with-mpc-lib=PATH/lib
1571 1.4 mrg --with-mpc-include=PATH specify directory for installed MPC include files
1572 1.4 mrg --with-mpc-lib=PATH specify directory for the installed MPC library
1573 1.1 mrg --with-mpfr-dir=PATH this option has been REMOVED
1574 1.1 mrg --with-mpfr=PATH specify prefix directory for installed MPFR package.
1575 1.4 mrg Equivalent to --with-mpfr-include=PATH/include plus
1576 1.4 mrg --with-mpfr-lib=PATH/lib
1577 1.1 mrg --with-mpfr-include=PATH
1578 1.1 mrg specify directory for installed MPFR include files
1579 1.1 mrg --with-mpfr-lib=PATH specify directory for the installed MPFR library
1580 1.1 mrg --with-gmp-dir=PATH this option has been REMOVED
1581 1.4 mrg --with-gmp=PATH specify prefix directory for the installed GMP
1582 1.4 mrg package. Equivalent to
1583 1.4 mrg --with-gmp-include=PATH/include plus
1584 1.4 mrg --with-gmp-lib=PATH/lib
1585 1.1 mrg --with-gmp-include=PATH specify directory for installed GMP include files
1586 1.1 mrg --with-gmp-lib=PATH specify directory for the installed GMP library
1587 1.4 mrg --with-stage1-libs=LIBS libraries for stage1
1588 1.13 mrg --with-static-standard-libraries
1589 1.13 mrg use -static-libstdc++ and -static-libgcc
1590 1.13 mrg (default=auto)
1591 1.4 mrg --with-stage1-ldflags=FLAGS
1592 1.4 mrg linker flags for stage1
1593 1.4 mrg --with-boot-libs=LIBS libraries for stage2 and later
1594 1.4 mrg --with-boot-ldflags=FLAGS
1595 1.4 mrg linker flags for stage2 and later
1596 1.8 mrg --with-isl=PATH Specify prefix directory for the installed isl
1597 1.4 mrg package. Equivalent to
1598 1.4 mrg --with-isl-include=PATH/include plus
1599 1.4 mrg --with-isl-lib=PATH/lib
1600 1.8 mrg --with-isl-include=PATH Specify directory for installed isl include files
1601 1.8 mrg --with-isl-lib=PATH Specify the directory for the installed isl library
1602 1.10 mrg --with-target-bdw-gc=PATHLIST
1603 1.10 mrg specify prefix directory for installed bdw-gc
1604 1.10 mrg package. Equivalent to
1605 1.10 mrg --with-target-bdw-gc-include=PATH/include plus
1606 1.10 mrg --with-target-bdw-gc-lib=PATH/lib
1607 1.10 mrg --with-target-bdw-gc-include=PATHLIST
1608 1.10 mrg specify directories for installed bdw-gc include
1609 1.10 mrg files
1610 1.10 mrg --with-target-bdw-gc-lib=PATHLIST
1611 1.10 mrg specify directories for installed bdw-gc library
1612 1.10 mrg --with-gcc-major-version-only
1613 1.10 mrg use only GCC major number in filesystem paths
1614 1.1 mrg --with-build-sysroot=SYSROOT
1615 1.1 mrg use sysroot as the system root during the build
1616 1.1 mrg --with-debug-prefix-map='A=B C=D ...'
1617 1.4 mrg map A to B, C to D ... in debug information
1618 1.4 mrg --with-build-config='NAME NAME2...'
1619 1.4 mrg use config/NAME.mk build configuration
1620 1.1 mrg --with-build-time-tools=PATH
1621 1.1 mrg use given path to find target tools during the build
1622 1.1 mrg
1623 1.1 mrg Some influential environment variables:
1624 1.1 mrg CC C compiler command
1625 1.1 mrg CFLAGS C compiler flags
1626 1.1 mrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1627 1.1 mrg nonstandard directory <lib dir>
1628 1.1 mrg LIBS libraries to pass to the linker, e.g. -l<library>
1629 1.12 mrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1630 1.1 mrg you have headers in a nonstandard directory <include dir>
1631 1.1 mrg CXX C++ compiler command
1632 1.1 mrg CXXFLAGS C++ compiler flags
1633 1.4 mrg build_configargs
1634 1.4 mrg additional configure arguments for build directories
1635 1.4 mrg host_configargs
1636 1.4 mrg additional configure arguments for host directories
1637 1.4 mrg target_configargs
1638 1.4 mrg additional configure arguments for target directories
1639 1.1 mrg AR AR for the host
1640 1.1 mrg AS AS for the host
1641 1.1 mrg DLLTOOL DLLTOOL for the host
1642 1.13 mrg DSYMUTIL DSYMUTIL for the host
1643 1.1 mrg LD LD for the host
1644 1.1 mrg LIPO LIPO for the host
1645 1.1 mrg NM NM for the host
1646 1.1 mrg RANLIB RANLIB for the host
1647 1.1 mrg STRIP STRIP for the host
1648 1.1 mrg WINDRES WINDRES for the host
1649 1.1 mrg WINDMC WINDMC for the host
1650 1.1 mrg OBJCOPY OBJCOPY for the host
1651 1.1 mrg OBJDUMP OBJDUMP for the host
1652 1.12 mrg OTOOL OTOOL for the host
1653 1.4 mrg READELF READELF for the host
1654 1.1 mrg CC_FOR_TARGET
1655 1.1 mrg CC for the target
1656 1.1 mrg CXX_FOR_TARGET
1657 1.1 mrg CXX for the target
1658 1.1 mrg GCC_FOR_TARGET
1659 1.1 mrg GCC for the target
1660 1.1 mrg GFORTRAN_FOR_TARGET
1661 1.1 mrg GFORTRAN for the target
1662 1.4 mrg GOC_FOR_TARGET
1663 1.4 mrg GOC for the target
1664 1.12 mrg GDC_FOR_TARGET
1665 1.12 mrg GDC for the target
1666 1.1 mrg AR_FOR_TARGET
1667 1.1 mrg AR for the target
1668 1.1 mrg AS_FOR_TARGET
1669 1.1 mrg AS for the target
1670 1.1 mrg DLLTOOL_FOR_TARGET
1671 1.1 mrg DLLTOOL for the target
1672 1.13 mrg DSYMUTIL_FOR_TARGET
1673 1.13 mrg DSYMUTIL for the target
1674 1.1 mrg LD_FOR_TARGET
1675 1.1 mrg LD for the target
1676 1.1 mrg LIPO_FOR_TARGET
1677 1.1 mrg LIPO for the target
1678 1.1 mrg NM_FOR_TARGET
1679 1.1 mrg NM for the target
1680 1.6 mrg OBJCOPY_FOR_TARGET
1681 1.6 mrg OBJCOPY for the target
1682 1.1 mrg OBJDUMP_FOR_TARGET
1683 1.1 mrg OBJDUMP for the target
1684 1.12 mrg OTOOL_FOR_TARGET
1685 1.12 mrg OTOOL for the target
1686 1.1 mrg RANLIB_FOR_TARGET
1687 1.1 mrg RANLIB for the target
1688 1.4 mrg READELF_FOR_TARGET
1689 1.4 mrg READELF for the target
1690 1.1 mrg STRIP_FOR_TARGET
1691 1.1 mrg STRIP for the target
1692 1.1 mrg WINDRES_FOR_TARGET
1693 1.1 mrg WINDRES for the target
1694 1.1 mrg WINDMC_FOR_TARGET
1695 1.1 mrg WINDMC for the target
1696 1.1 mrg
1697 1.1 mrg Use these variables to override the choices made by `configure' or to help
1698 1.1 mrg it to find libraries and programs with nonstandard names/locations.
1699 1.1 mrg
1700 1.1 mrg Report bugs to the package provider.
1701 1.1 mrg _ACEOF
1702 1.1 mrg ac_status=$?
1703 1.1 mrg fi
1704 1.1 mrg
1705 1.1 mrg if test "$ac_init_help" = "recursive"; then
1706 1.1 mrg # If there are subdirs, report their specific --help.
1707 1.1 mrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708 1.1 mrg test -d "$ac_dir" ||
1709 1.1 mrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 1.1 mrg continue
1711 1.1 mrg ac_builddir=.
1712 1.1 mrg
1713 1.1 mrg case "$ac_dir" in
1714 1.1 mrg .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 1.1 mrg *)
1716 1.1 mrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 1.1 mrg # A ".." for each directory in $ac_dir_suffix.
1718 1.1 mrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 1.1 mrg case $ac_top_builddir_sub in
1720 1.1 mrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 1.1 mrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 1.1 mrg esac ;;
1723 1.1 mrg esac
1724 1.1 mrg ac_abs_top_builddir=$ac_pwd
1725 1.1 mrg ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 1.1 mrg # for backward compatibility:
1727 1.1 mrg ac_top_builddir=$ac_top_build_prefix
1728 1.1 mrg
1729 1.1 mrg case $srcdir in
1730 1.1 mrg .) # We are building in place.
1731 1.1 mrg ac_srcdir=.
1732 1.1 mrg ac_top_srcdir=$ac_top_builddir_sub
1733 1.1 mrg ac_abs_top_srcdir=$ac_pwd ;;
1734 1.1 mrg [\\/]* | ?:[\\/]* ) # Absolute name.
1735 1.1 mrg ac_srcdir=$srcdir$ac_dir_suffix;
1736 1.1 mrg ac_top_srcdir=$srcdir
1737 1.1 mrg ac_abs_top_srcdir=$srcdir ;;
1738 1.1 mrg *) # Relative name.
1739 1.1 mrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 1.1 mrg ac_top_srcdir=$ac_top_build_prefix$srcdir
1741 1.1 mrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 1.1 mrg esac
1743 1.1 mrg ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744 1.1 mrg
1745 1.1 mrg cd "$ac_dir" || { ac_status=$?; continue; }
1746 1.1 mrg # Check for guested configure.
1747 1.1 mrg if test -f "$ac_srcdir/configure.gnu"; then
1748 1.1 mrg echo &&
1749 1.1 mrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 1.1 mrg elif test -f "$ac_srcdir/configure"; then
1751 1.1 mrg echo &&
1752 1.1 mrg $SHELL "$ac_srcdir/configure" --help=recursive
1753 1.1 mrg else
1754 1.1 mrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 1.1 mrg fi || ac_status=$?
1756 1.1 mrg cd "$ac_pwd" || { ac_status=$?; break; }
1757 1.1 mrg done
1758 1.1 mrg fi
1759 1.1 mrg
1760 1.1 mrg test -n "$ac_init_help" && exit $ac_status
1761 1.1 mrg if $ac_init_version; then
1762 1.1 mrg cat <<\_ACEOF
1763 1.1 mrg configure
1764 1.12 mrg generated by GNU Autoconf 2.69
1765 1.1 mrg
1766 1.12 mrg Copyright (C) 2012 Free Software Foundation, Inc.
1767 1.1 mrg This configure script is free software; the Free Software Foundation
1768 1.1 mrg gives unlimited permission to copy, distribute and modify it.
1769 1.1 mrg _ACEOF
1770 1.1 mrg exit
1771 1.1 mrg fi
1772 1.1 mrg
1773 1.1 mrg ## ------------------------ ##
1774 1.1 mrg ## Autoconf initialization. ##
1775 1.1 mrg ## ------------------------ ##
1776 1.1 mrg
1777 1.1 mrg # ac_fn_c_try_compile LINENO
1778 1.1 mrg # --------------------------
1779 1.1 mrg # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 1.1 mrg ac_fn_c_try_compile ()
1781 1.1 mrg {
1782 1.1 mrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 1.1 mrg rm -f conftest.$ac_objext
1784 1.1 mrg if { { ac_try="$ac_compile"
1785 1.1 mrg case "(($ac_try" in
1786 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 1.1 mrg *) ac_try_echo=$ac_try;;
1788 1.1 mrg esac
1789 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 1.1 mrg $as_echo "$ac_try_echo"; } >&5
1791 1.1 mrg (eval "$ac_compile") 2>conftest.err
1792 1.1 mrg ac_status=$?
1793 1.1 mrg if test -s conftest.err; then
1794 1.1 mrg grep -v '^ *+' conftest.err >conftest.er1
1795 1.1 mrg cat conftest.er1 >&5
1796 1.1 mrg mv -f conftest.er1 conftest.err
1797 1.1 mrg fi
1798 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 1.1 mrg test $ac_status = 0; } && {
1800 1.1 mrg test -z "$ac_c_werror_flag" ||
1801 1.1 mrg test ! -s conftest.err
1802 1.1 mrg } && test -s conftest.$ac_objext; then :
1803 1.1 mrg ac_retval=0
1804 1.1 mrg else
1805 1.1 mrg $as_echo "$as_me: failed program was:" >&5
1806 1.1 mrg sed 's/^/| /' conftest.$ac_ext >&5
1807 1.1 mrg
1808 1.1 mrg ac_retval=1
1809 1.1 mrg fi
1810 1.12 mrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 1.12 mrg as_fn_set_status $ac_retval
1812 1.1 mrg
1813 1.1 mrg } # ac_fn_c_try_compile
1814 1.1 mrg
1815 1.1 mrg # ac_fn_cxx_try_compile LINENO
1816 1.1 mrg # ----------------------------
1817 1.1 mrg # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 1.1 mrg ac_fn_cxx_try_compile ()
1819 1.1 mrg {
1820 1.1 mrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 1.1 mrg rm -f conftest.$ac_objext
1822 1.1 mrg if { { ac_try="$ac_compile"
1823 1.1 mrg case "(($ac_try" in
1824 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 1.1 mrg *) ac_try_echo=$ac_try;;
1826 1.1 mrg esac
1827 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 1.1 mrg $as_echo "$ac_try_echo"; } >&5
1829 1.1 mrg (eval "$ac_compile") 2>conftest.err
1830 1.1 mrg ac_status=$?
1831 1.1 mrg if test -s conftest.err; then
1832 1.1 mrg grep -v '^ *+' conftest.err >conftest.er1
1833 1.1 mrg cat conftest.er1 >&5
1834 1.1 mrg mv -f conftest.er1 conftest.err
1835 1.1 mrg fi
1836 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 1.1 mrg test $ac_status = 0; } && {
1838 1.1 mrg test -z "$ac_cxx_werror_flag" ||
1839 1.1 mrg test ! -s conftest.err
1840 1.1 mrg } && test -s conftest.$ac_objext; then :
1841 1.1 mrg ac_retval=0
1842 1.1 mrg else
1843 1.1 mrg $as_echo "$as_me: failed program was:" >&5
1844 1.1 mrg sed 's/^/| /' conftest.$ac_ext >&5
1845 1.1 mrg
1846 1.1 mrg ac_retval=1
1847 1.1 mrg fi
1848 1.12 mrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 1.12 mrg as_fn_set_status $ac_retval
1850 1.1 mrg
1851 1.1 mrg } # ac_fn_cxx_try_compile
1852 1.1 mrg
1853 1.4 mrg # ac_fn_cxx_try_link LINENO
1854 1.4 mrg # -------------------------
1855 1.1 mrg # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 1.4 mrg ac_fn_cxx_try_link ()
1857 1.1 mrg {
1858 1.1 mrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
1860 1.1 mrg if { { ac_try="$ac_link"
1861 1.1 mrg case "(($ac_try" in
1862 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 1.1 mrg *) ac_try_echo=$ac_try;;
1864 1.1 mrg esac
1865 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 1.1 mrg $as_echo "$ac_try_echo"; } >&5
1867 1.1 mrg (eval "$ac_link") 2>conftest.err
1868 1.1 mrg ac_status=$?
1869 1.1 mrg if test -s conftest.err; then
1870 1.1 mrg grep -v '^ *+' conftest.err >conftest.er1
1871 1.1 mrg cat conftest.er1 >&5
1872 1.1 mrg mv -f conftest.er1 conftest.err
1873 1.1 mrg fi
1874 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 1.1 mrg test $ac_status = 0; } && {
1876 1.4 mrg test -z "$ac_cxx_werror_flag" ||
1877 1.1 mrg test ! -s conftest.err
1878 1.1 mrg } && test -s conftest$ac_exeext && {
1879 1.1 mrg test "$cross_compiling" = yes ||
1880 1.12 mrg test -x conftest$ac_exeext
1881 1.1 mrg }; then :
1882 1.1 mrg ac_retval=0
1883 1.1 mrg else
1884 1.1 mrg $as_echo "$as_me: failed program was:" >&5
1885 1.1 mrg sed 's/^/| /' conftest.$ac_ext >&5
1886 1.1 mrg
1887 1.1 mrg ac_retval=1
1888 1.1 mrg fi
1889 1.1 mrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 1.1 mrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 1.1 mrg # interfere with the next link command; also delete a directory that is
1892 1.1 mrg # left behind by Apple's compiler. We do this before executing the actions.
1893 1.1 mrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 1.12 mrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 1.12 mrg as_fn_set_status $ac_retval
1896 1.1 mrg
1897 1.4 mrg } # ac_fn_cxx_try_link
1898 1.1 mrg
1899 1.4 mrg # ac_fn_c_try_link LINENO
1900 1.4 mrg # -----------------------
1901 1.4 mrg # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 1.4 mrg ac_fn_c_try_link ()
1903 1.1 mrg {
1904 1.1 mrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 1.4 mrg rm -f conftest.$ac_objext conftest$ac_exeext
1906 1.4 mrg if { { ac_try="$ac_link"
1907 1.1 mrg case "(($ac_try" in
1908 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 1.1 mrg *) ac_try_echo=$ac_try;;
1910 1.1 mrg esac
1911 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 1.1 mrg $as_echo "$ac_try_echo"; } >&5
1913 1.4 mrg (eval "$ac_link") 2>conftest.err
1914 1.1 mrg ac_status=$?
1915 1.1 mrg if test -s conftest.err; then
1916 1.1 mrg grep -v '^ *+' conftest.err >conftest.er1
1917 1.1 mrg cat conftest.er1 >&5
1918 1.1 mrg mv -f conftest.er1 conftest.err
1919 1.1 mrg fi
1920 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 1.4 mrg test $ac_status = 0; } && {
1922 1.4 mrg test -z "$ac_c_werror_flag" ||
1923 1.1 mrg test ! -s conftest.err
1924 1.4 mrg } && test -s conftest$ac_exeext && {
1925 1.4 mrg test "$cross_compiling" = yes ||
1926 1.12 mrg test -x conftest$ac_exeext
1927 1.1 mrg }; then :
1928 1.1 mrg ac_retval=0
1929 1.1 mrg else
1930 1.1 mrg $as_echo "$as_me: failed program was:" >&5
1931 1.1 mrg sed 's/^/| /' conftest.$ac_ext >&5
1932 1.1 mrg
1933 1.4 mrg ac_retval=1
1934 1.1 mrg fi
1935 1.4 mrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 1.4 mrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 1.4 mrg # interfere with the next link command; also delete a directory that is
1938 1.4 mrg # left behind by Apple's compiler. We do this before executing the actions.
1939 1.4 mrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 1.12 mrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 1.12 mrg as_fn_set_status $ac_retval
1942 1.1 mrg
1943 1.4 mrg } # ac_fn_c_try_link
1944 1.1 mrg cat >config.log <<_ACEOF
1945 1.1 mrg This file contains any messages produced by compilers while
1946 1.1 mrg running configure, to aid debugging if configure makes a mistake.
1947 1.1 mrg
1948 1.1 mrg It was created by $as_me, which was
1949 1.12 mrg generated by GNU Autoconf 2.69. Invocation command line was
1950 1.1 mrg
1951 1.1 mrg $ $0 $@
1952 1.1 mrg
1953 1.1 mrg _ACEOF
1954 1.1 mrg exec 5>>config.log
1955 1.1 mrg {
1956 1.1 mrg cat <<_ASUNAME
1957 1.1 mrg ## --------- ##
1958 1.1 mrg ## Platform. ##
1959 1.1 mrg ## --------- ##
1960 1.1 mrg
1961 1.1 mrg hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 1.1 mrg uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 1.1 mrg uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 1.1 mrg uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 1.1 mrg uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966 1.1 mrg
1967 1.1 mrg /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 1.1 mrg /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1969 1.1 mrg
1970 1.1 mrg /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 1.1 mrg /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 1.1 mrg /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 1.1 mrg /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 1.1 mrg /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 1.1 mrg /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 1.1 mrg /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1977 1.1 mrg
1978 1.1 mrg _ASUNAME
1979 1.1 mrg
1980 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 1.1 mrg for as_dir in $PATH
1982 1.1 mrg do
1983 1.1 mrg IFS=$as_save_IFS
1984 1.1 mrg test -z "$as_dir" && as_dir=.
1985 1.1 mrg $as_echo "PATH: $as_dir"
1986 1.1 mrg done
1987 1.1 mrg IFS=$as_save_IFS
1988 1.1 mrg
1989 1.1 mrg } >&5
1990 1.1 mrg
1991 1.1 mrg cat >&5 <<_ACEOF
1992 1.1 mrg
1993 1.1 mrg
1994 1.1 mrg ## ----------- ##
1995 1.1 mrg ## Core tests. ##
1996 1.1 mrg ## ----------- ##
1997 1.1 mrg
1998 1.1 mrg _ACEOF
1999 1.1 mrg
2000 1.1 mrg
2001 1.1 mrg # Keep a trace of the command line.
2002 1.1 mrg # Strip out --no-create and --no-recursion so they do not pile up.
2003 1.1 mrg # Strip out --silent because we don't want to record it for future runs.
2004 1.1 mrg # Also quote any args containing shell meta-characters.
2005 1.1 mrg # Make two passes to allow for proper duplicate-argument suppression.
2006 1.1 mrg ac_configure_args=
2007 1.1 mrg ac_configure_args0=
2008 1.1 mrg ac_configure_args1=
2009 1.1 mrg ac_must_keep_next=false
2010 1.1 mrg for ac_pass in 1 2
2011 1.1 mrg do
2012 1.1 mrg for ac_arg
2013 1.1 mrg do
2014 1.1 mrg case $ac_arg in
2015 1.1 mrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 1.1 mrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 1.1 mrg | -silent | --silent | --silen | --sile | --sil)
2018 1.1 mrg continue ;;
2019 1.1 mrg *\'*)
2020 1.1 mrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 1.1 mrg esac
2022 1.1 mrg case $ac_pass in
2023 1.1 mrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2024 1.1 mrg 2)
2025 1.1 mrg as_fn_append ac_configure_args1 " '$ac_arg'"
2026 1.1 mrg if test $ac_must_keep_next = true; then
2027 1.1 mrg ac_must_keep_next=false # Got value, back to normal.
2028 1.1 mrg else
2029 1.1 mrg case $ac_arg in
2030 1.1 mrg *=* | --config-cache | -C | -disable-* | --disable-* \
2031 1.1 mrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 1.1 mrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 1.1 mrg | -with-* | --with-* | -without-* | --without-* | --x)
2034 1.1 mrg case "$ac_configure_args0 " in
2035 1.1 mrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 1.1 mrg esac
2037 1.1 mrg ;;
2038 1.1 mrg -* ) ac_must_keep_next=true ;;
2039 1.1 mrg esac
2040 1.1 mrg fi
2041 1.1 mrg as_fn_append ac_configure_args " '$ac_arg'"
2042 1.1 mrg ;;
2043 1.1 mrg esac
2044 1.1 mrg done
2045 1.1 mrg done
2046 1.1 mrg { ac_configure_args0=; unset ac_configure_args0;}
2047 1.1 mrg { ac_configure_args1=; unset ac_configure_args1;}
2048 1.1 mrg
2049 1.1 mrg # When interrupted or exit'd, cleanup temporary files, and complete
2050 1.1 mrg # config.log. We remove comments because anyway the quotes in there
2051 1.1 mrg # would cause problems or look ugly.
2052 1.1 mrg # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 1.1 mrg # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 1.1 mrg trap 'exit_status=$?
2055 1.1 mrg # Save into config.log some information that might help in debugging.
2056 1.1 mrg {
2057 1.1 mrg echo
2058 1.1 mrg
2059 1.12 mrg $as_echo "## ---------------- ##
2060 1.1 mrg ## Cache variables. ##
2061 1.12 mrg ## ---------------- ##"
2062 1.1 mrg echo
2063 1.1 mrg # The following way of writing the cache mishandles newlines in values,
2064 1.1 mrg (
2065 1.1 mrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 1.1 mrg eval ac_val=\$$ac_var
2067 1.1 mrg case $ac_val in #(
2068 1.1 mrg *${as_nl}*)
2069 1.1 mrg case $ac_var in #(
2070 1.1 mrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 1.1 mrg $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 1.1 mrg esac
2073 1.1 mrg case $ac_var in #(
2074 1.1 mrg _ | IFS | as_nl) ;; #(
2075 1.1 mrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 1.1 mrg *) { eval $ac_var=; unset $ac_var;} ;;
2077 1.1 mrg esac ;;
2078 1.1 mrg esac
2079 1.1 mrg done
2080 1.1 mrg (set) 2>&1 |
2081 1.1 mrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 1.1 mrg *${as_nl}ac_space=\ *)
2083 1.1 mrg sed -n \
2084 1.1 mrg "s/'\''/'\''\\\\'\'''\''/g;
2085 1.1 mrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 1.1 mrg ;; #(
2087 1.1 mrg *)
2088 1.1 mrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089 1.1 mrg ;;
2090 1.1 mrg esac |
2091 1.1 mrg sort
2092 1.1 mrg )
2093 1.1 mrg echo
2094 1.1 mrg
2095 1.12 mrg $as_echo "## ----------------- ##
2096 1.1 mrg ## Output variables. ##
2097 1.12 mrg ## ----------------- ##"
2098 1.1 mrg echo
2099 1.1 mrg for ac_var in $ac_subst_vars
2100 1.1 mrg do
2101 1.1 mrg eval ac_val=\$$ac_var
2102 1.1 mrg case $ac_val in
2103 1.1 mrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 1.1 mrg esac
2105 1.1 mrg $as_echo "$ac_var='\''$ac_val'\''"
2106 1.1 mrg done | sort
2107 1.1 mrg echo
2108 1.1 mrg
2109 1.1 mrg if test -n "$ac_subst_files"; then
2110 1.12 mrg $as_echo "## ------------------- ##
2111 1.1 mrg ## File substitutions. ##
2112 1.12 mrg ## ------------------- ##"
2113 1.1 mrg echo
2114 1.1 mrg for ac_var in $ac_subst_files
2115 1.1 mrg do
2116 1.1 mrg eval ac_val=\$$ac_var
2117 1.1 mrg case $ac_val in
2118 1.1 mrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 1.1 mrg esac
2120 1.1 mrg $as_echo "$ac_var='\''$ac_val'\''"
2121 1.1 mrg done | sort
2122 1.1 mrg echo
2123 1.1 mrg fi
2124 1.1 mrg
2125 1.1 mrg if test -s confdefs.h; then
2126 1.12 mrg $as_echo "## ----------- ##
2127 1.1 mrg ## confdefs.h. ##
2128 1.12 mrg ## ----------- ##"
2129 1.1 mrg echo
2130 1.1 mrg cat confdefs.h
2131 1.1 mrg echo
2132 1.1 mrg fi
2133 1.1 mrg test "$ac_signal" != 0 &&
2134 1.1 mrg $as_echo "$as_me: caught signal $ac_signal"
2135 1.1 mrg $as_echo "$as_me: exit $exit_status"
2136 1.1 mrg } >&5
2137 1.1 mrg rm -f core *.core core.conftest.* &&
2138 1.1 mrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 1.1 mrg exit $exit_status
2140 1.1 mrg ' 0
2141 1.1 mrg for ac_signal in 1 2 13 15; do
2142 1.1 mrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 1.1 mrg done
2144 1.1 mrg ac_signal=0
2145 1.1 mrg
2146 1.1 mrg # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 1.1 mrg rm -f -r conftest* confdefs.h
2148 1.1 mrg
2149 1.1 mrg $as_echo "/* confdefs.h */" > confdefs.h
2150 1.1 mrg
2151 1.1 mrg # Predefined preprocessor variables.
2152 1.1 mrg
2153 1.1 mrg cat >>confdefs.h <<_ACEOF
2154 1.1 mrg #define PACKAGE_NAME "$PACKAGE_NAME"
2155 1.1 mrg _ACEOF
2156 1.1 mrg
2157 1.1 mrg cat >>confdefs.h <<_ACEOF
2158 1.1 mrg #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159 1.1 mrg _ACEOF
2160 1.1 mrg
2161 1.1 mrg cat >>confdefs.h <<_ACEOF
2162 1.1 mrg #define PACKAGE_VERSION "$PACKAGE_VERSION"
2163 1.1 mrg _ACEOF
2164 1.1 mrg
2165 1.1 mrg cat >>confdefs.h <<_ACEOF
2166 1.1 mrg #define PACKAGE_STRING "$PACKAGE_STRING"
2167 1.1 mrg _ACEOF
2168 1.1 mrg
2169 1.1 mrg cat >>confdefs.h <<_ACEOF
2170 1.1 mrg #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171 1.1 mrg _ACEOF
2172 1.1 mrg
2173 1.1 mrg cat >>confdefs.h <<_ACEOF
2174 1.1 mrg #define PACKAGE_URL "$PACKAGE_URL"
2175 1.1 mrg _ACEOF
2176 1.1 mrg
2177 1.1 mrg
2178 1.1 mrg # Let the site file select an alternate cache file if it wants to.
2179 1.1 mrg # Prefer an explicitly selected file to automatically selected ones.
2180 1.1 mrg ac_site_file1=NONE
2181 1.1 mrg ac_site_file2=NONE
2182 1.1 mrg if test -n "$CONFIG_SITE"; then
2183 1.12 mrg # We do not want a PATH search for config.site.
2184 1.12 mrg case $CONFIG_SITE in #((
2185 1.12 mrg -*) ac_site_file1=./$CONFIG_SITE;;
2186 1.12 mrg */*) ac_site_file1=$CONFIG_SITE;;
2187 1.12 mrg *) ac_site_file1=./$CONFIG_SITE;;
2188 1.12 mrg esac
2189 1.1 mrg elif test "x$prefix" != xNONE; then
2190 1.1 mrg ac_site_file1=$prefix/share/config.site
2191 1.1 mrg ac_site_file2=$prefix/etc/config.site
2192 1.1 mrg else
2193 1.1 mrg ac_site_file1=$ac_default_prefix/share/config.site
2194 1.1 mrg ac_site_file2=$ac_default_prefix/etc/config.site
2195 1.1 mrg fi
2196 1.1 mrg for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197 1.1 mrg do
2198 1.1 mrg test "x$ac_site_file" = xNONE && continue
2199 1.12 mrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 1.1 mrg $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 1.1 mrg sed 's/^/| /' "$ac_site_file" >&5
2203 1.12 mrg . "$ac_site_file" \
2204 1.12 mrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 1.12 mrg $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 1.12 mrg as_fn_error $? "failed to load site script $ac_site_file
2207 1.12 mrg See \`config.log' for more details" "$LINENO" 5; }
2208 1.1 mrg fi
2209 1.1 mrg done
2210 1.1 mrg
2211 1.1 mrg if test -r "$cache_file"; then
2212 1.12 mrg # Some versions of bash will fail to source /dev/null (special files
2213 1.12 mrg # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 1.12 mrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 1.1 mrg $as_echo "$as_me: loading cache $cache_file" >&6;}
2217 1.1 mrg case $cache_file in
2218 1.1 mrg [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 1.1 mrg *) . "./$cache_file";;
2220 1.1 mrg esac
2221 1.1 mrg fi
2222 1.1 mrg else
2223 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 1.1 mrg $as_echo "$as_me: creating cache $cache_file" >&6;}
2225 1.1 mrg >$cache_file
2226 1.1 mrg fi
2227 1.1 mrg
2228 1.1 mrg # Check that the precious variables saved in the cache have kept the same
2229 1.1 mrg # value.
2230 1.1 mrg ac_cache_corrupted=false
2231 1.1 mrg for ac_var in $ac_precious_vars; do
2232 1.1 mrg eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233 1.1 mrg eval ac_new_set=\$ac_env_${ac_var}_set
2234 1.1 mrg eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235 1.1 mrg eval ac_new_val=\$ac_env_${ac_var}_value
2236 1.1 mrg case $ac_old_set,$ac_new_set in
2237 1.1 mrg set,)
2238 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 1.1 mrg $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240 1.1 mrg ac_cache_corrupted=: ;;
2241 1.1 mrg ,set)
2242 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 1.1 mrg $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244 1.1 mrg ac_cache_corrupted=: ;;
2245 1.1 mrg ,);;
2246 1.1 mrg *)
2247 1.1 mrg if test "x$ac_old_val" != "x$ac_new_val"; then
2248 1.1 mrg # differences in whitespace do not lead to failure.
2249 1.1 mrg ac_old_val_w=`echo x $ac_old_val`
2250 1.1 mrg ac_new_val_w=`echo x $ac_new_val`
2251 1.1 mrg if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 1.1 mrg $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 1.1 mrg ac_cache_corrupted=:
2255 1.1 mrg else
2256 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 1.1 mrg $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 1.1 mrg eval $ac_var=\$ac_old_val
2259 1.1 mrg fi
2260 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261 1.1 mrg $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263 1.1 mrg $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2264 1.1 mrg fi;;
2265 1.1 mrg esac
2266 1.1 mrg # Pass precious variables to config.status.
2267 1.1 mrg if test "$ac_new_set" = set; then
2268 1.1 mrg case $ac_new_val in
2269 1.1 mrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 1.1 mrg *) ac_arg=$ac_var=$ac_new_val ;;
2271 1.1 mrg esac
2272 1.1 mrg case " $ac_configure_args " in
2273 1.1 mrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2274 1.1 mrg *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275 1.1 mrg esac
2276 1.1 mrg fi
2277 1.1 mrg done
2278 1.1 mrg if $ac_cache_corrupted; then
2279 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 1.1 mrg $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 1.1 mrg $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283 1.12 mrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284 1.1 mrg fi
2285 1.1 mrg ## -------------------- ##
2286 1.1 mrg ## Main body of script. ##
2287 1.1 mrg ## -------------------- ##
2288 1.1 mrg
2289 1.1 mrg ac_ext=c
2290 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
2291 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294 1.1 mrg
2295 1.1 mrg
2296 1.1 mrg
2297 1.1 mrg
2298 1.1 mrg
2299 1.1 mrg
2300 1.1 mrg
2301 1.1 mrg
2302 1.1 mrg progname=$0
2303 1.1 mrg # if PWD already has a value, it is probably wrong.
2304 1.1 mrg if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2305 1.1 mrg
2306 1.1 mrg # Export original configure arguments for use by sub-configures.
2307 1.1 mrg # Quote arguments with shell meta charatcers.
2308 1.1 mrg TOPLEVEL_CONFIGURE_ARGUMENTS=
2309 1.1 mrg set -- "$progname" "$@"
2310 1.1 mrg for ac_arg
2311 1.1 mrg do
2312 1.1 mrg case "$ac_arg" in
2313 1.1 mrg *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2314 1.1 mrg ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2315 1.1 mrg # if the argument is of the form -foo=baz, quote the baz part only
2316 1.1 mrg ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2317 1.1 mrg *) ;;
2318 1.1 mrg esac
2319 1.1 mrg # Add the quoted argument to the list.
2320 1.1 mrg TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2321 1.1 mrg done
2322 1.1 mrg if test "$silent" = yes; then
2323 1.1 mrg TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2324 1.1 mrg fi
2325 1.1 mrg # Remove the initial space we just introduced and, as these will be
2326 1.1 mrg # expanded by make, quote '$'.
2327 1.1 mrg TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2328 1.1 mrg
2329 1.1 mrg
2330 1.1 mrg # Find the build, host, and target systems.
2331 1.1 mrg ac_aux_dir=
2332 1.1 mrg for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2333 1.12 mrg if test -f "$ac_dir/install-sh"; then
2334 1.12 mrg ac_aux_dir=$ac_dir
2335 1.12 mrg ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2336 1.12 mrg break
2337 1.12 mrg elif test -f "$ac_dir/install.sh"; then
2338 1.12 mrg ac_aux_dir=$ac_dir
2339 1.12 mrg ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2340 1.12 mrg break
2341 1.12 mrg elif test -f "$ac_dir/shtool"; then
2342 1.12 mrg ac_aux_dir=$ac_dir
2343 1.12 mrg ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2344 1.12 mrg break
2345 1.12 mrg fi
2346 1.1 mrg done
2347 1.1 mrg if test -z "$ac_aux_dir"; then
2348 1.12 mrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2349 1.1 mrg fi
2350 1.1 mrg
2351 1.1 mrg # These three variables are undocumented and unsupported,
2352 1.1 mrg # and are intended to be withdrawn in a future Autoconf release.
2353 1.1 mrg # They can cause serious problems if a builder's source tree is in a directory
2354 1.1 mrg # whose full name contains unusual characters.
2355 1.1 mrg ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356 1.1 mrg ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357 1.1 mrg ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2358 1.1 mrg
2359 1.1 mrg
2360 1.1 mrg # Make sure we can run config.sub.
2361 1.1 mrg $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2362 1.12 mrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2363 1.1 mrg
2364 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 1.1 mrg $as_echo_n "checking build system type... " >&6; }
2366 1.12 mrg if ${ac_cv_build+:} false; then :
2367 1.1 mrg $as_echo_n "(cached) " >&6
2368 1.1 mrg else
2369 1.1 mrg ac_build_alias=$build_alias
2370 1.1 mrg test "x$ac_build_alias" = x &&
2371 1.1 mrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372 1.1 mrg test "x$ac_build_alias" = x &&
2373 1.12 mrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2374 1.1 mrg ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375 1.12 mrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2376 1.1 mrg
2377 1.1 mrg fi
2378 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 1.1 mrg $as_echo "$ac_cv_build" >&6; }
2380 1.1 mrg case $ac_cv_build in
2381 1.1 mrg *-*-*) ;;
2382 1.12 mrg *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2383 1.1 mrg esac
2384 1.1 mrg build=$ac_cv_build
2385 1.1 mrg ac_save_IFS=$IFS; IFS='-'
2386 1.1 mrg set x $ac_cv_build
2387 1.1 mrg shift
2388 1.1 mrg build_cpu=$1
2389 1.1 mrg build_vendor=$2
2390 1.1 mrg shift; shift
2391 1.1 mrg # Remember, the first character of IFS is used to create $*,
2392 1.1 mrg # except with old shells:
2393 1.1 mrg build_os=$*
2394 1.1 mrg IFS=$ac_save_IFS
2395 1.1 mrg case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2396 1.1 mrg
2397 1.1 mrg
2398 1.1 mrg case ${build_alias} in
2399 1.1 mrg "") build_noncanonical=${build} ;;
2400 1.1 mrg *) build_noncanonical=${build_alias} ;;
2401 1.1 mrg esac
2402 1.1 mrg
2403 1.1 mrg
2404 1.1 mrg
2405 1.1 mrg case ${host_alias} in
2406 1.1 mrg "") host_noncanonical=${build_noncanonical} ;;
2407 1.1 mrg *) host_noncanonical=${host_alias} ;;
2408 1.1 mrg esac
2409 1.1 mrg
2410 1.1 mrg
2411 1.1 mrg
2412 1.1 mrg case ${target_alias} in
2413 1.1 mrg "") target_noncanonical=${host_noncanonical} ;;
2414 1.1 mrg *) target_noncanonical=${target_alias} ;;
2415 1.1 mrg esac
2416 1.1 mrg
2417 1.1 mrg
2418 1.1 mrg
2419 1.1 mrg
2420 1.1 mrg test "$host_noncanonical" = "$target_noncanonical" &&
2421 1.1 mrg test "$program_prefix$program_suffix$program_transform_name" = \
2422 1.1 mrg NONENONEs,x,x, &&
2423 1.1 mrg program_transform_name=s,y,y,
2424 1.1 mrg
2425 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426 1.1 mrg $as_echo_n "checking host system type... " >&6; }
2427 1.12 mrg if ${ac_cv_host+:} false; then :
2428 1.1 mrg $as_echo_n "(cached) " >&6
2429 1.1 mrg else
2430 1.1 mrg if test "x$host_alias" = x; then
2431 1.1 mrg ac_cv_host=$ac_cv_build
2432 1.1 mrg else
2433 1.1 mrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434 1.12 mrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2435 1.1 mrg fi
2436 1.1 mrg
2437 1.1 mrg fi
2438 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439 1.1 mrg $as_echo "$ac_cv_host" >&6; }
2440 1.1 mrg case $ac_cv_host in
2441 1.1 mrg *-*-*) ;;
2442 1.12 mrg *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2443 1.1 mrg esac
2444 1.1 mrg host=$ac_cv_host
2445 1.1 mrg ac_save_IFS=$IFS; IFS='-'
2446 1.1 mrg set x $ac_cv_host
2447 1.1 mrg shift
2448 1.1 mrg host_cpu=$1
2449 1.1 mrg host_vendor=$2
2450 1.1 mrg shift; shift
2451 1.1 mrg # Remember, the first character of IFS is used to create $*,
2452 1.1 mrg # except with old shells:
2453 1.1 mrg host_os=$*
2454 1.1 mrg IFS=$ac_save_IFS
2455 1.1 mrg case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2456 1.1 mrg
2457 1.1 mrg
2458 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459 1.1 mrg $as_echo_n "checking target system type... " >&6; }
2460 1.12 mrg if ${ac_cv_target+:} false; then :
2461 1.1 mrg $as_echo_n "(cached) " >&6
2462 1.1 mrg else
2463 1.1 mrg if test "x$target_alias" = x; then
2464 1.1 mrg ac_cv_target=$ac_cv_host
2465 1.1 mrg else
2466 1.1 mrg ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2467 1.12 mrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2468 1.1 mrg fi
2469 1.1 mrg
2470 1.1 mrg fi
2471 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472 1.1 mrg $as_echo "$ac_cv_target" >&6; }
2473 1.1 mrg case $ac_cv_target in
2474 1.1 mrg *-*-*) ;;
2475 1.12 mrg *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2476 1.1 mrg esac
2477 1.1 mrg target=$ac_cv_target
2478 1.1 mrg ac_save_IFS=$IFS; IFS='-'
2479 1.1 mrg set x $ac_cv_target
2480 1.1 mrg shift
2481 1.1 mrg target_cpu=$1
2482 1.1 mrg target_vendor=$2
2483 1.1 mrg shift; shift
2484 1.1 mrg # Remember, the first character of IFS is used to create $*,
2485 1.1 mrg # except with old shells:
2486 1.1 mrg target_os=$*
2487 1.1 mrg IFS=$ac_save_IFS
2488 1.1 mrg case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2489 1.1 mrg
2490 1.1 mrg
2491 1.1 mrg # The aliases save the names the user supplied, while $host etc.
2492 1.1 mrg # will get canonicalized.
2493 1.1 mrg test -n "$target_alias" &&
2494 1.1 mrg test "$program_prefix$program_suffix$program_transform_name" = \
2495 1.1 mrg NONENONEs,x,x, &&
2496 1.1 mrg program_prefix=${target_alias}-
2497 1.1 mrg
2498 1.1 mrg test "$program_prefix" != NONE &&
2499 1.1 mrg program_transform_name="s&^&$program_prefix&;$program_transform_name"
2500 1.1 mrg # Use a double $ so make ignores it.
2501 1.1 mrg test "$program_suffix" != NONE &&
2502 1.1 mrg program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2503 1.1 mrg # Double any \ or $.
2504 1.1 mrg # By default was `s,x,x', remove it if useless.
2505 1.1 mrg ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2506 1.1 mrg program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2507 1.1 mrg
2508 1.1 mrg
2509 1.1 mrg
2510 1.1 mrg # Get 'install' or 'install-sh' and its variants.
2511 1.1 mrg # Find a good install program. We prefer a C program (faster),
2512 1.1 mrg # so one script is as good as another. But avoid the broken or
2513 1.1 mrg # incompatible versions:
2514 1.1 mrg # SysV /etc/install, /usr/sbin/install
2515 1.1 mrg # SunOS /usr/etc/install
2516 1.1 mrg # IRIX /sbin/install
2517 1.1 mrg # AIX /bin/install
2518 1.1 mrg # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 1.1 mrg # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 1.1 mrg # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 1.1 mrg # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 1.1 mrg # OS/2's system install, which has a completely different semantic
2523 1.1 mrg # ./install, which can be erroneously created by make from ./install.sh.
2524 1.1 mrg # Reject install programs that cannot install multiple files.
2525 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 1.1 mrg $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 1.1 mrg if test -z "$INSTALL"; then
2528 1.12 mrg if ${ac_cv_path_install+:} false; then :
2529 1.1 mrg $as_echo_n "(cached) " >&6
2530 1.1 mrg else
2531 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 1.1 mrg for as_dir in $PATH
2533 1.1 mrg do
2534 1.1 mrg IFS=$as_save_IFS
2535 1.1 mrg test -z "$as_dir" && as_dir=.
2536 1.1 mrg # Account for people who put trailing slashes in PATH elements.
2537 1.1 mrg case $as_dir/ in #((
2538 1.1 mrg ./ | .// | /[cC]/* | \
2539 1.1 mrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540 1.1 mrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2541 1.1 mrg /usr/ucb/* ) ;;
2542 1.1 mrg *)
2543 1.1 mrg # OSF1 and SCO ODT 3.0 have their own names for install.
2544 1.1 mrg # Don't use installbsd from OSF since it installs stuff as root
2545 1.1 mrg # by default.
2546 1.1 mrg for ac_prog in ginstall scoinst install; do
2547 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
2548 1.12 mrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549 1.1 mrg if test $ac_prog = install &&
2550 1.1 mrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 1.1 mrg # AIX install. It has an incompatible calling convention.
2552 1.1 mrg :
2553 1.1 mrg elif test $ac_prog = install &&
2554 1.1 mrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 1.1 mrg # program-specific install script used by HP pwplus--don't use.
2556 1.1 mrg :
2557 1.1 mrg else
2558 1.1 mrg rm -rf conftest.one conftest.two conftest.dir
2559 1.1 mrg echo one > conftest.one
2560 1.1 mrg echo two > conftest.two
2561 1.1 mrg mkdir conftest.dir
2562 1.1 mrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563 1.1 mrg test -s conftest.one && test -s conftest.two &&
2564 1.1 mrg test -s conftest.dir/conftest.one &&
2565 1.1 mrg test -s conftest.dir/conftest.two
2566 1.1 mrg then
2567 1.1 mrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568 1.1 mrg break 3
2569 1.1 mrg fi
2570 1.1 mrg fi
2571 1.1 mrg fi
2572 1.1 mrg done
2573 1.1 mrg done
2574 1.1 mrg ;;
2575 1.1 mrg esac
2576 1.1 mrg
2577 1.1 mrg done
2578 1.1 mrg IFS=$as_save_IFS
2579 1.1 mrg
2580 1.1 mrg rm -rf conftest.one conftest.two conftest.dir
2581 1.1 mrg
2582 1.1 mrg fi
2583 1.1 mrg if test "${ac_cv_path_install+set}" = set; then
2584 1.1 mrg INSTALL=$ac_cv_path_install
2585 1.1 mrg else
2586 1.1 mrg # As a last resort, use the slow shell script. Don't cache a
2587 1.1 mrg # value for INSTALL within a source directory, because that will
2588 1.1 mrg # break other packages using the cache if that directory is
2589 1.1 mrg # removed, or if the value is a relative name.
2590 1.1 mrg INSTALL=$ac_install_sh
2591 1.1 mrg fi
2592 1.1 mrg fi
2593 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 1.1 mrg $as_echo "$INSTALL" >&6; }
2595 1.1 mrg
2596 1.1 mrg # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 1.1 mrg # It thinks the first close brace ends the variable substitution.
2598 1.1 mrg test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2599 1.1 mrg
2600 1.1 mrg test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2601 1.1 mrg
2602 1.1 mrg test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2603 1.1 mrg
2604 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2605 1.1 mrg $as_echo_n "checking whether ln works... " >&6; }
2606 1.12 mrg if ${acx_cv_prog_LN+:} false; then :
2607 1.1 mrg $as_echo_n "(cached) " >&6
2608 1.1 mrg else
2609 1.1 mrg rm -f conftestdata_t
2610 1.1 mrg echo >conftestdata_f
2611 1.1 mrg if ln conftestdata_f conftestdata_t 2>/dev/null
2612 1.1 mrg then
2613 1.1 mrg acx_cv_prog_LN=ln
2614 1.1 mrg else
2615 1.1 mrg acx_cv_prog_LN=no
2616 1.1 mrg fi
2617 1.1 mrg rm -f conftestdata_f conftestdata_t
2618 1.1 mrg
2619 1.1 mrg fi
2620 1.1 mrg if test $acx_cv_prog_LN = no; then
2621 1.1 mrg LN="cp"
2622 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2623 1.1 mrg $as_echo "no, using $LN" >&6; }
2624 1.1 mrg else
2625 1.1 mrg LN="$acx_cv_prog_LN"
2626 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 1.1 mrg $as_echo "yes" >&6; }
2628 1.1 mrg fi
2629 1.1 mrg
2630 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2631 1.1 mrg $as_echo_n "checking whether ln -s works... " >&6; }
2632 1.1 mrg LN_S=$as_ln_s
2633 1.1 mrg if test "$LN_S" = "ln -s"; then
2634 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 1.1 mrg $as_echo "yes" >&6; }
2636 1.1 mrg else
2637 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2638 1.1 mrg $as_echo "no, using $LN_S" >&6; }
2639 1.1 mrg fi
2640 1.1 mrg
2641 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2642 1.1 mrg $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2643 1.12 mrg if ${ac_cv_path_SED+:} false; then :
2644 1.1 mrg $as_echo_n "(cached) " >&6
2645 1.1 mrg else
2646 1.1 mrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2647 1.1 mrg for ac_i in 1 2 3 4 5 6 7; do
2648 1.1 mrg ac_script="$ac_script$as_nl$ac_script"
2649 1.1 mrg done
2650 1.1 mrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2651 1.1 mrg { ac_script=; unset ac_script;}
2652 1.1 mrg if test -z "$SED"; then
2653 1.1 mrg ac_path_SED_found=false
2654 1.1 mrg # Loop through the user's path and test for each of PROGNAME-LIST
2655 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 1.1 mrg for as_dir in $PATH
2657 1.1 mrg do
2658 1.1 mrg IFS=$as_save_IFS
2659 1.1 mrg test -z "$as_dir" && as_dir=.
2660 1.1 mrg for ac_prog in sed gsed; do
2661 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
2662 1.1 mrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2663 1.12 mrg as_fn_executable_p "$ac_path_SED" || continue
2664 1.1 mrg # Check for GNU ac_path_SED and select it if it is found.
2665 1.1 mrg # Check for GNU $ac_path_SED
2666 1.1 mrg case `"$ac_path_SED" --version 2>&1` in
2667 1.1 mrg *GNU*)
2668 1.1 mrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2669 1.1 mrg *)
2670 1.1 mrg ac_count=0
2671 1.1 mrg $as_echo_n 0123456789 >"conftest.in"
2672 1.1 mrg while :
2673 1.1 mrg do
2674 1.1 mrg cat "conftest.in" "conftest.in" >"conftest.tmp"
2675 1.1 mrg mv "conftest.tmp" "conftest.in"
2676 1.1 mrg cp "conftest.in" "conftest.nl"
2677 1.1 mrg $as_echo '' >> "conftest.nl"
2678 1.1 mrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2679 1.1 mrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2680 1.1 mrg as_fn_arith $ac_count + 1 && ac_count=$as_val
2681 1.1 mrg if test $ac_count -gt ${ac_path_SED_max-0}; then
2682 1.1 mrg # Best one so far, save it but keep looking for a better one
2683 1.1 mrg ac_cv_path_SED="$ac_path_SED"
2684 1.1 mrg ac_path_SED_max=$ac_count
2685 1.1 mrg fi
2686 1.1 mrg # 10*(2^10) chars as input seems more than enough
2687 1.1 mrg test $ac_count -gt 10 && break
2688 1.1 mrg done
2689 1.1 mrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2690 1.1 mrg esac
2691 1.1 mrg
2692 1.1 mrg $ac_path_SED_found && break 3
2693 1.1 mrg done
2694 1.1 mrg done
2695 1.1 mrg done
2696 1.1 mrg IFS=$as_save_IFS
2697 1.1 mrg if test -z "$ac_cv_path_SED"; then
2698 1.12 mrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2699 1.1 mrg fi
2700 1.1 mrg else
2701 1.1 mrg ac_cv_path_SED=$SED
2702 1.1 mrg fi
2703 1.1 mrg
2704 1.1 mrg fi
2705 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2706 1.1 mrg $as_echo "$ac_cv_path_SED" >&6; }
2707 1.1 mrg SED="$ac_cv_path_SED"
2708 1.1 mrg rm -f conftest.sed
2709 1.1 mrg
2710 1.1 mrg for ac_prog in gawk mawk nawk awk
2711 1.1 mrg do
2712 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 1.1 mrg set dummy $ac_prog; ac_word=$2
2714 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
2716 1.12 mrg if ${ac_cv_prog_AWK+:} false; then :
2717 1.1 mrg $as_echo_n "(cached) " >&6
2718 1.1 mrg else
2719 1.1 mrg if test -n "$AWK"; then
2720 1.1 mrg ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721 1.1 mrg else
2722 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 1.1 mrg for as_dir in $PATH
2724 1.1 mrg do
2725 1.1 mrg IFS=$as_save_IFS
2726 1.1 mrg test -z "$as_dir" && as_dir=.
2727 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
2728 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 1.1 mrg ac_cv_prog_AWK="$ac_prog"
2730 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 1.1 mrg break 2
2732 1.1 mrg fi
2733 1.1 mrg done
2734 1.1 mrg done
2735 1.1 mrg IFS=$as_save_IFS
2736 1.1 mrg
2737 1.1 mrg fi
2738 1.1 mrg fi
2739 1.1 mrg AWK=$ac_cv_prog_AWK
2740 1.1 mrg if test -n "$AWK"; then
2741 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 1.1 mrg $as_echo "$AWK" >&6; }
2743 1.1 mrg else
2744 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 1.1 mrg $as_echo "no" >&6; }
2746 1.1 mrg fi
2747 1.1 mrg
2748 1.1 mrg
2749 1.1 mrg test -n "$AWK" && break
2750 1.1 mrg done
2751 1.1 mrg
2752 1.1 mrg
2753 1.1 mrg srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754 1.1 mrg
2755 1.1 mrg # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2756 1.1 mrg # a relative path.
2757 1.1 mrg if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2758 1.1 mrg INSTALL="${srcpwd}/install-sh -c"
2759 1.1 mrg fi
2760 1.1 mrg
2761 1.1 mrg # Set srcdir to "." if that's what it is.
2762 1.1 mrg # This is important for multilib support.
2763 1.1 mrg pwd=`${PWDCMD-pwd}`
2764 1.1 mrg if test "${pwd}" = "${srcpwd}" ; then
2765 1.1 mrg srcdir=.
2766 1.1 mrg fi
2767 1.1 mrg
2768 1.1 mrg topsrcdir=$srcpwd
2769 1.1 mrg
2770 1.1 mrg extra_host_args=
2771 1.1 mrg
2772 1.1 mrg ### To add a new directory to the tree, first choose whether it is a target
2773 1.1 mrg ### or a host dependent tool. Then put it into the appropriate list
2774 1.1 mrg ### (library or tools, host or target), doing a dependency sort.
2775 1.1 mrg
2776 1.1 mrg # Subdirs will be configured in the order listed in build_configdirs,
2777 1.1 mrg # configdirs, or target_configdirs; see the serialization section below.
2778 1.1 mrg
2779 1.1 mrg # Dependency sorting is only needed when *configuration* must be done in
2780 1.1 mrg # a particular order. In all cases a dependency should be specified in
2781 1.1 mrg # the Makefile, whether or not it's implicitly specified here.
2782 1.1 mrg
2783 1.1 mrg # Double entries in build_configdirs, configdirs, or target_configdirs may
2784 1.1 mrg # cause circular dependencies and break everything horribly.
2785 1.1 mrg
2786 1.1 mrg # these library is used by various programs built for the build
2787 1.1 mrg # environment
2788 1.1 mrg #
2789 1.6 mrg build_libs="build-libiberty build-libcpp"
2790 1.1 mrg
2791 1.1 mrg # these tools are built for the build environment
2792 1.4 mrg build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2793 1.1 mrg
2794 1.1 mrg # these libraries are used by various programs built for the host environment
2795 1.6 mrg #f
2796 1.13 mrg host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2797 1.1 mrg
2798 1.1 mrg # these tools are built for the host environment
2799 1.1 mrg # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2800 1.1 mrg # know that we are building the simulator.
2801 1.1 mrg # binutils, gas and ld appear in that order because it makes sense to run
2802 1.1 mrg # "make check" in that particular order.
2803 1.4 mrg # If --enable-gold is used, "gold" may replace "ld".
2804 1.13 mrg host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2805 1.1 mrg
2806 1.1 mrg # these libraries are built for the target environment, and are built after
2807 1.1 mrg # the host libraries and the host tools (which may be a cross compiler)
2808 1.1 mrg # Note that libiberty is not a target library.
2809 1.1 mrg target_libraries="target-libgcc \
2810 1.4 mrg target-libbacktrace \
2811 1.1 mrg target-libgloss \
2812 1.1 mrg target-newlib \
2813 1.1 mrg target-libgomp \
2814 1.6 mrg target-liboffloadmic \
2815 1.10 mrg target-libhsail-rt \
2816 1.4 mrg target-libatomic \
2817 1.4 mrg target-libitm \
2818 1.1 mrg target-libstdc++-v3 \
2819 1.4 mrg target-libsanitizer \
2820 1.6 mrg target-libvtv \
2821 1.1 mrg target-libssp \
2822 1.4 mrg target-libquadmath \
2823 1.1 mrg target-libgfortran \
2824 1.10 mrg target-libffi \
2825 1.1 mrg target-libobjc \
2826 1.4 mrg target-libada \
2827 1.12 mrg target-libgo \
2828 1.12 mrg target-libphobos \
2829 1.12 mrg target-zlib"
2830 1.1 mrg
2831 1.1 mrg # these tools are built using the target libraries, and are intended to
2832 1.1 mrg # run only in the target environment
2833 1.1 mrg #
2834 1.1 mrg # note: any program that *uses* libraries that are in the "target_libraries"
2835 1.4 mrg # list belongs in this list.
2836 1.1 mrg #
2837 1.4 mrg target_tools="target-rda"
2838 1.1 mrg
2839 1.1 mrg ################################################################################
2840 1.1 mrg
2841 1.1 mrg ## All tools belong in one of the four categories, and are assigned above
2842 1.1 mrg ## We assign ${configdirs} this way to remove all embedded newlines. This
2843 1.1 mrg ## is important because configure will choke if they ever get through.
2844 1.1 mrg ## ${configdirs} is directories we build using the host tools.
2845 1.1 mrg ## ${target_configdirs} is directories we build using the target tools.
2846 1.1 mrg configdirs=`echo ${host_libs} ${host_tools}`
2847 1.1 mrg target_configdirs=`echo ${target_libraries} ${target_tools}`
2848 1.1 mrg build_configdirs=`echo ${build_libs} ${build_tools}`
2849 1.1 mrg
2850 1.1 mrg
2851 1.1 mrg
2852 1.1 mrg ################################################################################
2853 1.1 mrg
2854 1.1 mrg srcname="gnu development package"
2855 1.1 mrg
2856 1.1 mrg # This gets set non-empty for some net releases of packages.
2857 1.1 mrg appdirs=""
2858 1.1 mrg
2859 1.1 mrg # Define is_cross_compiler to save on calls to 'test'.
2860 1.1 mrg is_cross_compiler=
2861 1.1 mrg if test x"${host}" = x"${target}" ; then
2862 1.1 mrg is_cross_compiler=no
2863 1.1 mrg else
2864 1.1 mrg is_cross_compiler=yes
2865 1.1 mrg fi
2866 1.1 mrg
2867 1.1 mrg # Find the build and target subdir names.
2868 1.1 mrg
2869 1.1 mrg # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2870 1.1 mrg # have matching libraries, they should use host libraries: Makefile.tpl
2871 1.1 mrg # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2872 1.1 mrg # However, they still use the build modules, because the corresponding
2873 1.1 mrg # host modules (e.g. bison) are only built for the host when bootstrap
2874 1.1 mrg # finishes. So:
2875 1.1 mrg # - build_subdir is where we find build modules, and never changes.
2876 1.1 mrg # - build_libsubdir is where we find build libraries, and can be overridden.
2877 1.1 mrg
2878 1.1 mrg # Prefix 'build-' so this never conflicts with target_subdir.
2879 1.1 mrg build_subdir="build-${build_noncanonical}"
2880 1.1 mrg
2881 1.1 mrg # Check whether --with-build-libsubdir was given.
2882 1.1 mrg if test "${with_build_libsubdir+set}" = set; then :
2883 1.1 mrg withval=$with_build_libsubdir; build_libsubdir="$withval"
2884 1.1 mrg else
2885 1.1 mrg build_libsubdir="$build_subdir"
2886 1.1 mrg fi
2887 1.1 mrg
2888 1.1 mrg # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2889 1.1 mrg if ( test $srcdir = . && test -d gcc ) \
2890 1.1 mrg || test -d $srcdir/../host-${host_noncanonical}; then
2891 1.1 mrg host_subdir="host-${host_noncanonical}"
2892 1.1 mrg else
2893 1.1 mrg host_subdir=.
2894 1.1 mrg fi
2895 1.1 mrg # No prefix.
2896 1.1 mrg target_subdir=${target_noncanonical}
2897 1.1 mrg
2898 1.1 mrg # Be sure to cover against remnants of an in-tree build.
2899 1.1 mrg if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2900 1.12 mrg as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2901 1.1 mrg Use a pristine source tree when building in a separate tree" "$LINENO" 5
2902 1.1 mrg fi
2903 1.1 mrg
2904 1.1 mrg # Skipdirs are removed silently.
2905 1.1 mrg skipdirs=
2906 1.1 mrg # Noconfigdirs are removed loudly.
2907 1.1 mrg noconfigdirs=""
2908 1.1 mrg
2909 1.1 mrg use_gnu_ld=
2910 1.1 mrg # Make sure we don't let GNU ld be added if we didn't want it.
2911 1.1 mrg if test x$with_gnu_ld = xno ; then
2912 1.1 mrg use_gnu_ld=no
2913 1.1 mrg noconfigdirs="$noconfigdirs ld gold"
2914 1.1 mrg fi
2915 1.1 mrg
2916 1.1 mrg use_gnu_as=
2917 1.1 mrg # Make sure we don't let GNU as be added if we didn't want it.
2918 1.1 mrg if test x$with_gnu_as = xno ; then
2919 1.1 mrg use_gnu_as=no
2920 1.1 mrg noconfigdirs="$noconfigdirs gas"
2921 1.1 mrg fi
2922 1.1 mrg
2923 1.1 mrg use_included_zlib=
2924 1.8 mrg
2925 1.8 mrg # Check whether --with-system-zlib was given.
2926 1.8 mrg if test "${with_system_zlib+set}" = set; then :
2927 1.8 mrg withval=$with_system_zlib;
2928 1.8 mrg fi
2929 1.8 mrg
2930 1.1 mrg # Make sure we don't let ZLIB be added if we didn't want it.
2931 1.1 mrg if test x$with_system_zlib = xyes ; then
2932 1.1 mrg use_included_zlib=no
2933 1.1 mrg noconfigdirs="$noconfigdirs zlib"
2934 1.1 mrg fi
2935 1.1 mrg
2936 1.1 mrg # some tools are so dependent upon X11 that if we're not building with X,
2937 1.1 mrg # it's not even worth trying to configure, much less build, that tool.
2938 1.1 mrg
2939 1.1 mrg case ${with_x} in
2940 1.1 mrg yes | "") ;; # the default value for this tree is that X11 is available
2941 1.1 mrg no)
2942 1.1 mrg skipdirs="${skipdirs} tk itcl libgui"
2943 1.1 mrg # We won't be able to build gdbtk without X.
2944 1.1 mrg enable_gdbtk=no
2945 1.1 mrg ;;
2946 1.1 mrg *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2947 1.1 mrg esac
2948 1.1 mrg
2949 1.4 mrg # Some are only suitable for cross toolchains.
2950 1.1 mrg # Remove these if host=target.
2951 1.1 mrg cross_only="target-libgloss target-newlib target-opcodes"
2952 1.1 mrg
2953 1.1 mrg case $is_cross_compiler in
2954 1.1 mrg no) skipdirs="${skipdirs} ${cross_only}" ;;
2955 1.1 mrg esac
2956 1.1 mrg
2957 1.1 mrg # If both --with-headers and --with-libs are specified, default to
2958 1.1 mrg # --without-newlib.
2959 1.1 mrg if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2960 1.1 mrg && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2961 1.1 mrg if test x"${with_newlib}" = x ; then
2962 1.1 mrg with_newlib=no
2963 1.1 mrg fi
2964 1.1 mrg fi
2965 1.1 mrg
2966 1.1 mrg # Recognize --with-newlib/--without-newlib.
2967 1.1 mrg case ${with_newlib} in
2968 1.1 mrg no) skipdirs="${skipdirs} target-newlib" ;;
2969 1.1 mrg yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2970 1.1 mrg esac
2971 1.1 mrg
2972 1.6 mrg # Check whether --enable-as-accelerator-for was given.
2973 1.6 mrg if test "${enable_as_accelerator_for+set}" = set; then :
2974 1.6 mrg enableval=$enable_as_accelerator_for;
2975 1.6 mrg fi
2976 1.6 mrg
2977 1.6 mrg
2978 1.6 mrg # Check whether --enable-offload-targets was given.
2979 1.6 mrg if test "${enable_offload_targets+set}" = set; then :
2980 1.6 mrg enableval=$enable_offload_targets;
2981 1.6 mrg if test x"$enable_offload_targets" = x; then
2982 1.12 mrg as_fn_error $? "no offload targets specified" "$LINENO" 5
2983 1.6 mrg fi
2984 1.6 mrg
2985 1.6 mrg else
2986 1.6 mrg enable_offload_targets=
2987 1.6 mrg fi
2988 1.6 mrg
2989 1.6 mrg
2990 1.4 mrg # Handle --enable-gold, --enable-ld.
2991 1.4 mrg # --disable-gold [--enable-ld]
2992 1.4 mrg # Build only ld. Default option.
2993 1.4 mrg # --enable-gold [--enable-ld]
2994 1.4 mrg # Build both gold and ld. Install gold as "ld.gold", install ld
2995 1.4 mrg # as "ld.bfd" and "ld".
2996 1.4 mrg # --enable-gold=default [--enable-ld]
2997 1.4 mrg # Build both gold and ld. Install gold as "ld.gold" and "ld",
2998 1.4 mrg # install ld as "ld.bfd".
2999 1.4 mrg # --enable-gold[=default] --disable-ld
3000 1.4 mrg # Build only gold, which is then installed as both "ld.gold" and "ld".
3001 1.4 mrg # --enable-gold --enable-ld=default
3002 1.4 mrg # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3003 1.4 mrg # and ld.bfd).
3004 1.4 mrg # In other words, ld is default
3005 1.4 mrg # --enable-gold=default --enable-ld=default
3006 1.4 mrg # Error.
3007 1.1 mrg
3008 1.4 mrg default_ld=
3009 1.1 mrg # Check whether --enable-gold was given.
3010 1.1 mrg if test "${enable_gold+set}" = set; then :
3011 1.1 mrg enableval=$enable_gold; ENABLE_GOLD=$enableval
3012 1.1 mrg else
3013 1.1 mrg ENABLE_GOLD=no
3014 1.1 mrg fi
3015 1.1 mrg
3016 1.4 mrg case "${ENABLE_GOLD}" in
3017 1.4 mrg yes|default)
3018 1.4 mrg # Check for ELF target.
3019 1.4 mrg is_elf=no
3020 1.4 mrg case "${target}" in
3021 1.4 mrg *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3022 1.4 mrg | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3023 1.4 mrg | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3024 1.4 mrg | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3025 1.4 mrg case "${target}" in
3026 1.4 mrg *-*-linux*aout* | *-*-linux*oldld*)
3027 1.4 mrg ;;
3028 1.4 mrg *)
3029 1.4 mrg is_elf=yes
3030 1.4 mrg ;;
3031 1.4 mrg esac
3032 1.4 mrg esac
3033 1.4 mrg
3034 1.4 mrg if test "$is_elf" = "yes"; then
3035 1.4 mrg # Check for target supported by gold.
3036 1.1 mrg case "${target}" in
3037 1.6 mrg i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3038 1.8 mrg | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3039 1.4 mrg configdirs="$configdirs gold"
3040 1.4 mrg if test x${ENABLE_GOLD} = xdefault; then
3041 1.4 mrg default_ld=gold
3042 1.4 mrg fi
3043 1.4 mrg ENABLE_GOLD=yes
3044 1.1 mrg ;;
3045 1.1 mrg esac
3046 1.4 mrg fi
3047 1.4 mrg ;;
3048 1.4 mrg no)
3049 1.4 mrg ;;
3050 1.4 mrg *)
3051 1.12 mrg as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3052 1.4 mrg ;;
3053 1.4 mrg esac
3054 1.1 mrg
3055 1.4 mrg # Check whether --enable-ld was given.
3056 1.4 mrg if test "${enable_ld+set}" = set; then :
3057 1.4 mrg enableval=$enable_ld; ENABLE_LD=$enableval
3058 1.4 mrg else
3059 1.4 mrg ENABLE_LD=yes
3060 1.1 mrg fi
3061 1.1 mrg
3062 1.4 mrg
3063 1.4 mrg case "${ENABLE_LD}" in
3064 1.4 mrg default)
3065 1.4 mrg if test x${default_ld} != x; then
3066 1.12 mrg as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3067 1.4 mrg fi
3068 1.4 mrg ;;
3069 1.4 mrg yes)
3070 1.4 mrg ;;
3071 1.4 mrg no)
3072 1.4 mrg if test x${ENABLE_GOLD} != xyes; then
3073 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3074 1.4 mrg $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3075 1.4 mrg fi
3076 1.4 mrg configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3077 1.4 mrg ;;
3078 1.4 mrg *)
3079 1.12 mrg as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3080 1.4 mrg ;;
3081 1.4 mrg esac
3082 1.4 mrg
3083 1.8 mrg # PR gas/19109
3084 1.8 mrg # Decide the default method for compressing debug sections.
3085 1.8 mrg # Provide a configure time option to override our default.
3086 1.8 mrg # Check whether --enable-compressed_debug_sections was given.
3087 1.8 mrg if test "${enable_compressed_debug_sections+set}" = set; then :
3088 1.8 mrg enableval=$enable_compressed_debug_sections;
3089 1.8 mrg if test x"$enable_compressed_debug_sections" = xyes; then
3090 1.12 mrg as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3091 1.8 mrg fi
3092 1.8 mrg
3093 1.8 mrg else
3094 1.8 mrg enable_compressed_debug_sections=
3095 1.8 mrg fi
3096 1.8 mrg
3097 1.8 mrg
3098 1.1 mrg # Configure extra directories which are host specific
3099 1.1 mrg
3100 1.1 mrg case "${host}" in
3101 1.1 mrg *-cygwin*)
3102 1.1 mrg configdirs="$configdirs libtermcap" ;;
3103 1.1 mrg esac
3104 1.1 mrg
3105 1.1 mrg # A target can indicate whether a language isn't supported for some reason.
3106 1.1 mrg # Only spaces may be used in this macro; not newlines or tabs.
3107 1.1 mrg unsupported_languages=
3108 1.1 mrg
3109 1.1 mrg # Remove more programs from consideration, based on the host or
3110 1.1 mrg # target this usually means that a port of the program doesn't
3111 1.1 mrg # exist yet.
3112 1.1 mrg
3113 1.1 mrg case "${host}" in
3114 1.4 mrg i[3456789]86-*-msdosdjgpp*)
3115 1.4 mrg noconfigdirs="$noconfigdirs tcl tk itcl"
3116 1.1 mrg ;;
3117 1.1 mrg esac
3118 1.1 mrg
3119 1.1 mrg
3120 1.4 mrg # Check whether --enable-libquadmath was given.
3121 1.4 mrg if test "${enable_libquadmath+set}" = set; then :
3122 1.4 mrg enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3123 1.4 mrg else
3124 1.4 mrg ENABLE_LIBQUADMATH=yes
3125 1.4 mrg fi
3126 1.4 mrg
3127 1.4 mrg if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3128 1.4 mrg noconfigdirs="$noconfigdirs target-libquadmath"
3129 1.4 mrg fi
3130 1.4 mrg
3131 1.4 mrg
3132 1.4 mrg # Check whether --enable-libquadmath-support was given.
3133 1.4 mrg if test "${enable_libquadmath_support+set}" = set; then :
3134 1.4 mrg enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3135 1.4 mrg else
3136 1.4 mrg ENABLE_LIBQUADMATH_SUPPORT=yes
3137 1.4 mrg fi
3138 1.4 mrg
3139 1.4 mrg enable_libquadmath_support=
3140 1.4 mrg if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3141 1.4 mrg enable_libquadmath_support=no
3142 1.4 mrg fi
3143 1.4 mrg
3144 1.4 mrg
3145 1.1 mrg # Check whether --enable-libada was given.
3146 1.1 mrg if test "${enable_libada+set}" = set; then :
3147 1.1 mrg enableval=$enable_libada; ENABLE_LIBADA=$enableval
3148 1.1 mrg else
3149 1.1 mrg ENABLE_LIBADA=yes
3150 1.1 mrg fi
3151 1.1 mrg
3152 1.1 mrg if test "${ENABLE_LIBADA}" != "yes" ; then
3153 1.1 mrg noconfigdirs="$noconfigdirs gnattools"
3154 1.1 mrg fi
3155 1.1 mrg
3156 1.1 mrg # Check whether --enable-libssp was given.
3157 1.1 mrg if test "${enable_libssp+set}" = set; then :
3158 1.1 mrg enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3159 1.1 mrg else
3160 1.1 mrg ENABLE_LIBSSP=yes
3161 1.1 mrg fi
3162 1.1 mrg
3163 1.1 mrg
3164 1.4 mrg # Check whether --enable-libstdcxx was given.
3165 1.4 mrg if test "${enable_libstdcxx+set}" = set; then :
3166 1.4 mrg enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3167 1.4 mrg else
3168 1.4 mrg ENABLE_LIBSTDCXX=default
3169 1.4 mrg fi
3170 1.4 mrg
3171 1.4 mrg if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3172 1.6 mrg noconfigdirs="$noconfigdirs target-libstdc++-v3"
3173 1.6 mrg fi
3174 1.6 mrg
3175 1.6 mrg # If this is accelerator compiler and its target is intelmic we enable
3176 1.6 mrg # target liboffloadmic by default. If this is compiler with offloading
3177 1.6 mrg # for intelmic we enable host liboffloadmic by default. Otherwise
3178 1.6 mrg # liboffloadmic is disabled by default.
3179 1.6 mrg # Check whether --enable-liboffloadmic was given.
3180 1.6 mrg if test "${enable_liboffloadmic+set}" = set; then :
3181 1.6 mrg enableval=$enable_liboffloadmic; case "$enableval" in
3182 1.6 mrg no | host | target)
3183 1.6 mrg enable_liboffloadmic=$enableval ;;
3184 1.6 mrg *)
3185 1.12 mrg as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3186 1.6 mrg esac
3187 1.6 mrg else
3188 1.6 mrg if test x"$enable_as_accelerator_for" != x; then
3189 1.6 mrg case "${target}" in
3190 1.6 mrg *-intelmic-* | *-intelmicemul-*)
3191 1.6 mrg enable_liboffloadmic=target
3192 1.6 mrg extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3193 1.6 mrg ;;
3194 1.6 mrg *)
3195 1.6 mrg enable_liboffloadmic=no
3196 1.6 mrg ;;
3197 1.6 mrg esac
3198 1.6 mrg else
3199 1.6 mrg case "${enable_offload_targets}" in
3200 1.6 mrg *-intelmic-* | *-intelmicemul-*)
3201 1.6 mrg enable_liboffloadmic=host
3202 1.6 mrg extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3203 1.6 mrg ;;
3204 1.6 mrg *)
3205 1.6 mrg enable_liboffloadmic=no
3206 1.6 mrg ;;
3207 1.6 mrg esac
3208 1.4 mrg fi
3209 1.6 mrg fi
3210 1.6 mrg
3211 1.6 mrg
3212 1.4 mrg
3213 1.8 mrg # Enable libgomp by default on hosted POSIX systems, and a few others.
3214 1.1 mrg if test x$enable_libgomp = x ; then
3215 1.1 mrg case "${target}" in
3216 1.1 mrg *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3217 1.1 mrg ;;
3218 1.4 mrg *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3219 1.1 mrg ;;
3220 1.4 mrg *-*-solaris2* | *-*-hpux11*)
3221 1.1 mrg ;;
3222 1.1 mrg *-*-darwin* | *-*-aix*)
3223 1.1 mrg ;;
3224 1.13 mrg nvptx*-*-* | amdgcn*-*-*)
3225 1.8 mrg ;;
3226 1.1 mrg *)
3227 1.1 mrg noconfigdirs="$noconfigdirs target-libgomp"
3228 1.1 mrg ;;
3229 1.1 mrg esac
3230 1.1 mrg fi
3231 1.1 mrg
3232 1.4 mrg # Disable libatomic on unsupported systems.
3233 1.4 mrg if test -d ${srcdir}/libatomic; then
3234 1.4 mrg if test x$enable_libatomic = x; then
3235 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3236 1.4 mrg $as_echo_n "checking for libatomic support... " >&6; }
3237 1.4 mrg if (srcdir=${srcdir}/libatomic; \
3238 1.4 mrg . ${srcdir}/configure.tgt; \
3239 1.4 mrg test -n "$UNSUPPORTED")
3240 1.4 mrg then
3241 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 1.4 mrg $as_echo "no" >&6; }
3243 1.4 mrg noconfigdirs="$noconfigdirs target-libatomic"
3244 1.4 mrg else
3245 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 1.4 mrg $as_echo "yes" >&6; }
3247 1.4 mrg fi
3248 1.4 mrg fi
3249 1.4 mrg fi
3250 1.4 mrg
3251 1.6 mrg # Disable liboffloadmic on unsupported systems.
3252 1.6 mrg if test -d ${srcdir}/liboffloadmic; then
3253 1.6 mrg if test x$enable_liboffloadmic != xno; then
3254 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3255 1.6 mrg $as_echo_n "checking for liboffloadmic support... " >&6; }
3256 1.6 mrg if (srcdir=${srcdir}/liboffloadmic; \
3257 1.6 mrg . ${srcdir}/configure.tgt; \
3258 1.6 mrg test -n "$UNSUPPORTED")
3259 1.6 mrg then
3260 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 1.6 mrg $as_echo "no" >&6; }
3262 1.6 mrg noconfigdirs="$noconfigdirs target-liboffloadmic"
3263 1.6 mrg else
3264 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 1.6 mrg $as_echo "yes" >&6; }
3266 1.6 mrg fi
3267 1.6 mrg fi
3268 1.6 mrg fi
3269 1.6 mrg
3270 1.4 mrg # Disable libitm on unsupported systems.
3271 1.4 mrg if test -d ${srcdir}/libitm; then
3272 1.4 mrg if test x$enable_libitm = x; then
3273 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3274 1.4 mrg $as_echo_n "checking for libitm support... " >&6; }
3275 1.4 mrg if (srcdir=${srcdir}/libitm; \
3276 1.4 mrg . ${srcdir}/configure.tgt; \
3277 1.4 mrg test -n "$UNSUPPORTED")
3278 1.4 mrg then
3279 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 1.4 mrg $as_echo "no" >&6; }
3281 1.4 mrg noconfigdirs="$noconfigdirs target-libitm"
3282 1.4 mrg else
3283 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 1.4 mrg $as_echo "yes" >&6; }
3285 1.4 mrg fi
3286 1.4 mrg fi
3287 1.4 mrg fi
3288 1.4 mrg
3289 1.4 mrg # Disable libsanitizer on unsupported systems.
3290 1.4 mrg if test -d ${srcdir}/libsanitizer; then
3291 1.4 mrg if test x$enable_libsanitizer = x; then
3292 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3293 1.4 mrg $as_echo_n "checking for libsanitizer support... " >&6; }
3294 1.4 mrg if (srcdir=${srcdir}/libsanitizer; \
3295 1.4 mrg . ${srcdir}/configure.tgt; \
3296 1.4 mrg test -n "$UNSUPPORTED")
3297 1.4 mrg then
3298 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 1.4 mrg $as_echo "no" >&6; }
3300 1.4 mrg noconfigdirs="$noconfigdirs target-libsanitizer"
3301 1.4 mrg else
3302 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 1.4 mrg $as_echo "yes" >&6; }
3304 1.4 mrg fi
3305 1.4 mrg fi
3306 1.4 mrg fi
3307 1.1 mrg
3308 1.6 mrg # Disable libvtv on unsupported systems.
3309 1.6 mrg if test -d ${srcdir}/libvtv; then
3310 1.6 mrg if test x$enable_libvtv = x; then
3311 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3312 1.6 mrg $as_echo_n "checking for libvtv support... " >&6; }
3313 1.6 mrg if (srcdir=${srcdir}/libvtv; \
3314 1.6 mrg . ${srcdir}/configure.tgt; \
3315 1.6 mrg test "$VTV_SUPPORTED" != "yes")
3316 1.6 mrg then
3317 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 1.6 mrg $as_echo "no" >&6; }
3319 1.6 mrg noconfigdirs="$noconfigdirs target-libvtv"
3320 1.6 mrg else
3321 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 1.6 mrg $as_echo "yes" >&6; }
3323 1.6 mrg fi
3324 1.6 mrg fi
3325 1.6 mrg fi
3326 1.6 mrg
3327 1.6 mrg
3328 1.10 mrg # Disable libhsail-rt on unsupported systems.
3329 1.10 mrg if test -d ${srcdir}/libhsail-rt; then
3330 1.10 mrg if test x$enable_libhsail_rt = x; then
3331 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3332 1.10 mrg $as_echo_n "checking for libhsail-rt support... " >&6; }
3333 1.10 mrg if (srcdir=${srcdir}/libhsail-rt; \
3334 1.10 mrg . ${srcdir}/configure.tgt; \
3335 1.10 mrg test -n "$UNSUPPORTED")
3336 1.10 mrg then
3337 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 1.10 mrg $as_echo "no" >&6; }
3339 1.10 mrg unsupported_languages="$unsupported_languages brig"
3340 1.10 mrg # This implicitly disables also target-libhsail-rt as it won't
3341 1.10 mrg # get added to the build without BRIG FE.
3342 1.10 mrg else
3343 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 1.10 mrg $as_echo "yes" >&6; }
3345 1.10 mrg fi
3346 1.10 mrg fi
3347 1.10 mrg fi
3348 1.6 mrg
3349 1.6 mrg
3350 1.4 mrg # Disable libquadmath for some systems.
3351 1.1 mrg case "${target}" in
3352 1.4 mrg avr-*-*)
3353 1.4 mrg noconfigdirs="$noconfigdirs target-libquadmath"
3354 1.1 mrg ;;
3355 1.4 mrg # libquadmath is unused on AIX and libquadmath build process use of
3356 1.4 mrg # LD_LIBRARY_PATH can break AIX bootstrap.
3357 1.4 mrg powerpc-*-aix* | rs6000-*-aix*)
3358 1.4 mrg noconfigdirs="$noconfigdirs target-libquadmath"
3359 1.1 mrg ;;
3360 1.4 mrg esac
3361 1.4 mrg
3362 1.4 mrg # Disable libssp for some systems.
3363 1.4 mrg case "${target}" in
3364 1.4 mrg avr-*-*)
3365 1.4 mrg # No hosted I/O support.
3366 1.4 mrg noconfigdirs="$noconfigdirs target-libssp"
3367 1.1 mrg ;;
3368 1.13 mrg bpf-*-*)
3369 1.13 mrg noconfigdirs="$noconfigdirs target-libssp"
3370 1.13 mrg ;;
3371 1.4 mrg powerpc-*-aix* | rs6000-*-aix*)
3372 1.4 mrg noconfigdirs="$noconfigdirs target-libssp"
3373 1.1 mrg ;;
3374 1.13 mrg pru-*-*)
3375 1.13 mrg # No hosted I/O support.
3376 1.13 mrg noconfigdirs="$noconfigdirs target-libssp"
3377 1.13 mrg ;;
3378 1.4 mrg rl78-*-*)
3379 1.4 mrg # libssp uses a misaligned load to trigger a fault, but the RL78
3380 1.4 mrg # doesn't fault for those - instead, it gives a build-time error
3381 1.4 mrg # for explicit misaligned loads.
3382 1.4 mrg noconfigdirs="$noconfigdirs target-libssp"
3383 1.1 mrg ;;
3384 1.6 mrg visium-*-*)
3385 1.6 mrg # No hosted I/O support.
3386 1.6 mrg noconfigdirs="$noconfigdirs target-libssp"
3387 1.6 mrg ;;
3388 1.4 mrg esac
3389 1.4 mrg
3390 1.4 mrg # Disable libstdc++-v3 for some systems.
3391 1.4 mrg # Allow user to override this if they pass --enable-libstdc++-v3
3392 1.4 mrg if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3393 1.4 mrg case "${target}" in
3394 1.4 mrg *-*-vxworks*)
3395 1.4 mrg # VxWorks uses the Dinkumware C++ library.
3396 1.4 mrg noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 1.4 mrg ;;
3398 1.13 mrg amdgcn*-*-*)
3399 1.13 mrg # Not ported/fails to build when using newlib.
3400 1.13 mrg noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 1.13 mrg ;;
3402 1.4 mrg arm*-wince-pe*)
3403 1.4 mrg # the C++ libraries don't build on top of CE's C libraries
3404 1.4 mrg noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 1.4 mrg ;;
3406 1.4 mrg avr-*-*)
3407 1.4 mrg noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 1.4 mrg ;;
3409 1.13 mrg bpf-*-*)
3410 1.13 mrg noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411 1.13 mrg ;;
3412 1.8 mrg ft32-*-*)
3413 1.8 mrg noconfigdirs="$noconfigdirs target-libstdc++-v3"
3414 1.8 mrg ;;
3415 1.4 mrg esac
3416 1.4 mrg fi
3417 1.4 mrg
3418 1.13 mrg # Disable C++ on systems where it is known to not work.
3419 1.13 mrg # For testing, you can override this with --enable-languages=c++.
3420 1.13 mrg case ,${enable_languages}, in
3421 1.13 mrg *,c++,*)
3422 1.13 mrg ;;
3423 1.13 mrg *)
3424 1.13 mrg case "${target}" in
3425 1.13 mrg bpf-*-*)
3426 1.13 mrg unsupported_languages="$unsupported_languages c++"
3427 1.13 mrg ;;
3428 1.13 mrg esac
3429 1.13 mrg ;;
3430 1.13 mrg esac
3431 1.13 mrg
3432 1.13 mrg # Disable Objc on systems where it is known to not work.
3433 1.13 mrg # For testing, you can override this with --enable-languages=objc.
3434 1.13 mrg case ,${enable_languages}, in
3435 1.13 mrg *,objc,*)
3436 1.13 mrg ;;
3437 1.13 mrg *)
3438 1.13 mrg case "${target}" in
3439 1.13 mrg bpf-*-*)
3440 1.13 mrg unsupported_languages="$unsupported_languages objc"
3441 1.13 mrg ;;
3442 1.13 mrg esac
3443 1.13 mrg ;;
3444 1.13 mrg esac
3445 1.13 mrg
3446 1.12 mrg # Disable D on systems where it is known to not work.
3447 1.12 mrg # For testing, you can override this with --enable-languages=d.
3448 1.12 mrg case ,${enable_languages}, in
3449 1.12 mrg *,d,*)
3450 1.12 mrg ;;
3451 1.12 mrg *)
3452 1.12 mrg case "${target}" in
3453 1.12 mrg *-*-darwin*)
3454 1.12 mrg unsupported_languages="$unsupported_languages d"
3455 1.13 mrg ;;
3456 1.13 mrg bpf-*-*)
3457 1.13 mrg unsupported_languages="$unsupported_languages d"
3458 1.12 mrg ;;
3459 1.12 mrg esac
3460 1.12 mrg ;;
3461 1.12 mrg esac
3462 1.12 mrg
3463 1.12 mrg # Disable libphobos on unsupported systems.
3464 1.12 mrg # For testing, you can override this with --enable-libphobos.
3465 1.12 mrg if test -d ${srcdir}/libphobos; then
3466 1.12 mrg if test x$enable_libphobos = x; then
3467 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3468 1.12 mrg $as_echo_n "checking for libphobos support... " >&6; }
3469 1.12 mrg if (srcdir=${srcdir}/libphobos; \
3470 1.12 mrg . ${srcdir}/configure.tgt; \
3471 1.12 mrg test "$LIBPHOBOS_SUPPORTED" != "yes")
3472 1.12 mrg then
3473 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 1.12 mrg $as_echo "no" >&6; }
3475 1.12 mrg noconfigdirs="$noconfigdirs target-libphobos"
3476 1.12 mrg else
3477 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3478 1.12 mrg $as_echo "yes" >&6; }
3479 1.12 mrg fi
3480 1.12 mrg fi
3481 1.12 mrg fi
3482 1.12 mrg
3483 1.4 mrg # Disable Fortran for some systems.
3484 1.4 mrg case "${target}" in
3485 1.4 mrg mmix-*-*)
3486 1.4 mrg # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3487 1.4 mrg unsupported_languages="$unsupported_languages fortran"
3488 1.1 mrg ;;
3489 1.13 mrg bpf-*-*)
3490 1.13 mrg unsupported_languages="$unsupported_languages fortran"
3491 1.13 mrg ;;
3492 1.4 mrg esac
3493 1.1 mrg
3494 1.10 mrg # Disable libffi for some systems.
3495 1.4 mrg case "${target}" in
3496 1.4 mrg powerpc-*-darwin*)
3497 1.4 mrg ;;
3498 1.4 mrg i[3456789]86-*-darwin*)
3499 1.4 mrg ;;
3500 1.4 mrg x86_64-*-darwin[912]*)
3501 1.4 mrg ;;
3502 1.4 mrg *-*-darwin*)
3503 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3504 1.4 mrg ;;
3505 1.4 mrg *-*-netware*)
3506 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3507 1.10 mrg ;;
3508 1.10 mrg *-*-phoenix*)
3509 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3510 1.4 mrg ;;
3511 1.4 mrg *-*-rtems*)
3512 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3513 1.1 mrg ;;
3514 1.1 mrg *-*-tpf*)
3515 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3516 1.1 mrg ;;
3517 1.1 mrg *-*-uclinux*)
3518 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3519 1.1 mrg ;;
3520 1.1 mrg *-*-vxworks*)
3521 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3522 1.1 mrg ;;
3523 1.7 mrg aarch64*-*-freebsd*)
3524 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3525 1.7 mrg ;;
3526 1.4 mrg alpha*-*-*vms*)
3527 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3528 1.4 mrg ;;
3529 1.6 mrg arm*-*-freebsd*)
3530 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3531 1.6 mrg ;;
3532 1.4 mrg arm-wince-pe)
3533 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3534 1.4 mrg ;;
3535 1.4 mrg arm*-*-symbianelf*)
3536 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3537 1.4 mrg ;;
3538 1.13 mrg bpf-*-*)
3539 1.13 mrg noconfigdirs="$noconfigdirs target-libffi"
3540 1.13 mrg ;;
3541 1.4 mrg cris-*-* | crisv32-*-*)
3542 1.4 mrg case "${target}" in
3543 1.4 mrg *-*-linux*)
3544 1.4 mrg ;;
3545 1.4 mrg *) # See PR46792 regarding target-libffi.
3546 1.10 mrg noconfigdirs="$noconfigdirs target-libffi";;
3547 1.4 mrg esac
3548 1.4 mrg ;;
3549 1.4 mrg hppa*64*-*-hpux*)
3550 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3551 1.1 mrg ;;
3552 1.4 mrg hppa*-hp-hpux11*)
3553 1.1 mrg ;;
3554 1.4 mrg hppa*-*-hpux*)
3555 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3556 1.1 mrg ;;
3557 1.4 mrg ia64*-*-*vms*)
3558 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3559 1.1 mrg ;;
3560 1.4 mrg i[3456789]86-w64-mingw*)
3561 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3562 1.1 mrg ;;
3563 1.4 mrg i[3456789]86-*-mingw*)
3564 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3565 1.1 mrg ;;
3566 1.4 mrg x86_64-*-mingw*)
3567 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3568 1.1 mrg ;;
3569 1.4 mrg mmix-*-*)
3570 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3571 1.1 mrg ;;
3572 1.4 mrg powerpc-*-aix*)
3573 1.1 mrg ;;
3574 1.4 mrg rs6000-*-aix*)
3575 1.1 mrg ;;
3576 1.8 mrg ft32-*-*)
3577 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3578 1.8 mrg ;;
3579 1.4 mrg *-*-lynxos*)
3580 1.10 mrg noconfigdirs="$noconfigdirs target-libffi"
3581 1.1 mrg ;;
3582 1.4 mrg esac
3583 1.4 mrg
3584 1.6 mrg # Disable the go frontend on systems where it is known to not work. Please keep
3585 1.6 mrg # this in sync with contrib/config-list.mk.
3586 1.6 mrg case "${target}" in
3587 1.13 mrg *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3588 1.6 mrg unsupported_languages="$unsupported_languages go"
3589 1.6 mrg ;;
3590 1.6 mrg esac
3591 1.6 mrg
3592 1.13 mrg # Only allow gdbserver on some systems.
3593 1.13 mrg if test -d ${srcdir}/gdbserver; then
3594 1.13 mrg if test x$enable_gdbserver = x; then
3595 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3596 1.13 mrg $as_echo_n "checking for gdbserver support... " >&6; }
3597 1.13 mrg if (srcdir=${srcdir}/gdbserver; \
3598 1.13 mrg . ${srcdir}/configure.srv; \
3599 1.13 mrg test -n "$UNSUPPORTED")
3600 1.13 mrg then
3601 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 1.13 mrg $as_echo "no" >&6; }
3603 1.13 mrg noconfigdirs="$noconfigdirs gdbserver"
3604 1.13 mrg else
3605 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3606 1.13 mrg $as_echo "yes" >&6; }
3607 1.13 mrg fi
3608 1.13 mrg fi
3609 1.13 mrg fi
3610 1.13 mrg
3611 1.4 mrg # Disable libgo for some systems where it is known to not work.
3612 1.4 mrg # For testing, you can easily override this with --enable-libgo.
3613 1.4 mrg if test x$enable_libgo = x; then
3614 1.4 mrg case "${target}" in
3615 1.4 mrg *-*-darwin*)
3616 1.4 mrg # PR 46986
3617 1.4 mrg noconfigdirs="$noconfigdirs target-libgo"
3618 1.4 mrg ;;
3619 1.4 mrg *-*-cygwin* | *-*-mingw*)
3620 1.4 mrg noconfigdirs="$noconfigdirs target-libgo"
3621 1.4 mrg ;;
3622 1.13 mrg bpf-*-*)
3623 1.13 mrg noconfigdirs="$noconfigdirs target-libgo"
3624 1.13 mrg ;;
3625 1.1 mrg esac
3626 1.4 mrg fi
3627 1.4 mrg
3628 1.4 mrg # Default libgloss CPU subdirectory.
3629 1.4 mrg libgloss_dir="$target_cpu"
3630 1.4 mrg
3631 1.4 mrg case "${target}" in
3632 1.4 mrg sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3633 1.4 mrg libgloss_dir=wince
3634 1.4 mrg ;;
3635 1.4 mrg aarch64*-*-* )
3636 1.4 mrg libgloss_dir=aarch64
3637 1.4 mrg ;;
3638 1.4 mrg arm*-*-*)
3639 1.1 mrg libgloss_dir=arm
3640 1.1 mrg ;;
3641 1.4 mrg cris-*-* | crisv32-*-*)
3642 1.4 mrg libgloss_dir=cris
3643 1.4 mrg ;;
3644 1.4 mrg hppa*-*-*)
3645 1.4 mrg libgloss_dir=pa
3646 1.4 mrg ;;
3647 1.4 mrg i[3456789]86-*-*)
3648 1.4 mrg libgloss_dir=i386
3649 1.1 mrg ;;
3650 1.4 mrg m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3651 1.4 mrg libgloss_dir=m68hc11
3652 1.1 mrg ;;
3653 1.4 mrg m68*-*-* | fido-*-*)
3654 1.4 mrg libgloss_dir=m68k
3655 1.1 mrg ;;
3656 1.4 mrg mips*-*-*)
3657 1.4 mrg libgloss_dir=mips
3658 1.1 mrg ;;
3659 1.4 mrg powerpc*-*-*)
3660 1.4 mrg libgloss_dir=rs6000
3661 1.1 mrg ;;
3662 1.13 mrg pru-*-*)
3663 1.13 mrg libgloss_dir=pru
3664 1.13 mrg ;;
3665 1.4 mrg sparc*-*-*)
3666 1.4 mrg libgloss_dir=sparc
3667 1.1 mrg ;;
3668 1.4 mrg esac
3669 1.4 mrg
3670 1.4 mrg # Disable newlib and libgloss for various target OSes.
3671 1.4 mrg case "${target}" in
3672 1.4 mrg alpha*-dec-osf*)
3673 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 1.1 mrg ;;
3675 1.4 mrg i[3456789]86-*-linux*)
3676 1.4 mrg # This section makes it possible to build newlib natively on linux.
3677 1.4 mrg # If we are using a cross compiler then don't configure newlib.
3678 1.1 mrg if test x${is_cross_compiler} != xno ; then
3679 1.4 mrg noconfigdirs="$noconfigdirs target-newlib"
3680 1.4 mrg fi
3681 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3682 1.4 mrg # If we are not using a cross compiler, do configure newlib.
3683 1.4 mrg # Note however, that newlib will only be configured in this situation
3684 1.4 mrg # if the --with-newlib option has been given, because otherwise
3685 1.4 mrg # 'target-newlib' will appear in skipdirs.
3686 1.4 mrg ;;
3687 1.4 mrg i[3456789]86-*-rdos*)
3688 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 1.4 mrg ;;
3690 1.4 mrg sh*-*-pe|mips*-*-pe|arm-wince-pe)
3691 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 1.4 mrg ;;
3693 1.4 mrg sparc-*-sunos4*)
3694 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 1.4 mrg ;;
3696 1.13 mrg bpf-*-*)
3697 1.13 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 1.13 mrg ;;
3699 1.4 mrg *-*-aix*)
3700 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 1.4 mrg ;;
3702 1.4 mrg *-*-beos*)
3703 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 1.4 mrg ;;
3705 1.4 mrg *-*-chorusos)
3706 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 1.4 mrg ;;
3708 1.4 mrg *-*-dragonfly*)
3709 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 1.4 mrg ;;
3711 1.4 mrg *-*-freebsd*)
3712 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 1.4 mrg ;;
3714 1.4 mrg *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3715 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 1.4 mrg ;;
3717 1.4 mrg *-*-lynxos*)
3718 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 1.4 mrg ;;
3720 1.4 mrg *-*-mingw*)
3721 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 1.4 mrg ;;
3723 1.4 mrg *-*-netbsd*)
3724 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 1.4 mrg ;;
3726 1.4 mrg *-*-netware*)
3727 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 1.4 mrg ;;
3729 1.4 mrg *-*-tpf*)
3730 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 1.4 mrg ;;
3732 1.4 mrg *-*-uclinux*)
3733 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 1.4 mrg ;;
3735 1.4 mrg *-*-vxworks*)
3736 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 1.4 mrg ;;
3738 1.4 mrg esac
3739 1.4 mrg
3740 1.4 mrg case "${target}" in
3741 1.4 mrg *-*-chorusos)
3742 1.4 mrg ;;
3743 1.8 mrg aarch64-*-darwin*)
3744 1.8 mrg noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 1.8 mrg noconfigdirs="$noconfigdirs sim target-rda"
3746 1.8 mrg ;;
3747 1.12 mrg amdgcn*-*-*)
3748 1.12 mrg ;;
3749 1.8 mrg arm-*-darwin*)
3750 1.8 mrg noconfigdirs="$noconfigdirs ld gas gdb gprof"
3751 1.8 mrg noconfigdirs="$noconfigdirs sim target-rda"
3752 1.8 mrg ;;
3753 1.4 mrg powerpc-*-darwin*)
3754 1.4 mrg noconfigdirs="$noconfigdirs ld gas gdb gprof"
3755 1.4 mrg noconfigdirs="$noconfigdirs sim target-rda"
3756 1.4 mrg ;;
3757 1.4 mrg i[3456789]86-*-darwin*)
3758 1.4 mrg noconfigdirs="$noconfigdirs ld gprof"
3759 1.4 mrg noconfigdirs="$noconfigdirs sim target-rda"
3760 1.4 mrg ;;
3761 1.4 mrg x86_64-*-darwin[912]*)
3762 1.4 mrg noconfigdirs="$noconfigdirs ld gas gprof"
3763 1.4 mrg noconfigdirs="$noconfigdirs sim target-rda"
3764 1.4 mrg ;;
3765 1.4 mrg *-*-darwin*)
3766 1.4 mrg noconfigdirs="$noconfigdirs ld gas gdb gprof"
3767 1.4 mrg noconfigdirs="$noconfigdirs sim target-rda"
3768 1.4 mrg ;;
3769 1.4 mrg *-*-dragonfly*)
3770 1.4 mrg ;;
3771 1.4 mrg *-*-freebsd*)
3772 1.4 mrg if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3773 1.13 mrg && ! test -d ${srcdir}/gmp \
3774 1.4 mrg && test -f /usr/local/include/gmp.h; then
3775 1.4 mrg with_gmp=/usr/local
3776 1.1 mrg fi
3777 1.1 mrg ;;
3778 1.4 mrg *-*-kaos*)
3779 1.4 mrg # Remove unsupported stuff on all kaOS configurations.
3780 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3781 1.4 mrg ;;
3782 1.4 mrg *-*-netbsd*)
3783 1.4 mrg ;;
3784 1.4 mrg *-*-netware*)
3785 1.4 mrg ;;
3786 1.10 mrg *-*-phoenix*)
3787 1.10 mrg noconfigdirs="$noconfigdirs target-libgloss"
3788 1.10 mrg ;;
3789 1.4 mrg *-*-rtems*)
3790 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3791 1.4 mrg ;;
3792 1.4 mrg # The tpf target doesn't support gdb yet.
3793 1.4 mrg *-*-tpf*)
3794 1.4 mrg noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3795 1.4 mrg ;;
3796 1.4 mrg *-*-uclinux*)
3797 1.4 mrg noconfigdirs="$noconfigdirs target-rda"
3798 1.4 mrg ;;
3799 1.4 mrg *-*-vxworks*)
3800 1.4 mrg ;;
3801 1.4 mrg alpha*-dec-osf*)
3802 1.4 mrg # ld works, but does not support shared libraries.
3803 1.4 mrg # gas doesn't generate exception information.
3804 1.4 mrg noconfigdirs="$noconfigdirs gas ld"
3805 1.4 mrg ;;
3806 1.4 mrg alpha*-*-*vms*)
3807 1.4 mrg noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3808 1.4 mrg ;;
3809 1.4 mrg alpha*-*-*)
3810 1.4 mrg # newlib is not 64 bit ready
3811 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3812 1.4 mrg ;;
3813 1.13 mrg bpf-*-*)
3814 1.13 mrg noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3815 1.13 mrg ;;
3816 1.4 mrg sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3817 1.4 mrg noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3818 1.4 mrg ;;
3819 1.10 mrg arc*-*-*)
3820 1.10 mrg noconfigdirs="$noconfigdirs sim"
3821 1.4 mrg ;;
3822 1.4 mrg arm-*-pe*)
3823 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3824 1.4 mrg ;;
3825 1.4 mrg arm-*-riscix*)
3826 1.4 mrg noconfigdirs="$noconfigdirs ld target-libgloss"
3827 1.1 mrg ;;
3828 1.4 mrg avr-*-*)
3829 1.4 mrg if test x${with_avrlibc} != xno; then
3830 1.4 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3831 1.4 mrg fi
3832 1.1 mrg ;;
3833 1.4 mrg c4x-*-* | tic4x-*-*)
3834 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3835 1.1 mrg ;;
3836 1.4 mrg tic54x-*-*)
3837 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss gdb"
3838 1.1 mrg ;;
3839 1.1 mrg d10v-*-*)
3840 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3841 1.1 mrg ;;
3842 1.1 mrg d30v-*-*)
3843 1.4 mrg noconfigdirs="$noconfigdirs gdb"
3844 1.1 mrg ;;
3845 1.1 mrg fr30-*-elf*)
3846 1.4 mrg noconfigdirs="$noconfigdirs gdb"
3847 1.1 mrg ;;
3848 1.8 mrg ft32-*-*)
3849 1.8 mrg noconfigdirs="$noconfigdirs target-rda gprof"
3850 1.8 mrg ;;
3851 1.1 mrg moxie-*-*)
3852 1.8 mrg noconfigdirs="$noconfigdirs"
3853 1.1 mrg ;;
3854 1.1 mrg h8300*-*-*)
3855 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3856 1.1 mrg ;;
3857 1.1 mrg h8500-*-*)
3858 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3859 1.1 mrg ;;
3860 1.1 mrg hppa1.1-*-osf* | hppa1.1-*-bsd* )
3861 1.1 mrg ;;
3862 1.8 mrg hppa*64*-*-hpux*)
3863 1.8 mrg noconfigdirs="$noconfigdirs gdb"
3864 1.8 mrg ;;
3865 1.8 mrg hppa*-*-hpux11*)
3866 1.8 mrg noconfigdirs="$noconfigdirs gdb ld"
3867 1.8 mrg ;;
3868 1.4 mrg hppa*64*-*-linux*)
3869 1.1 mrg ;;
3870 1.4 mrg hppa*-*-linux*)
3871 1.1 mrg ;;
3872 1.1 mrg hppa*-*-*elf* | \
3873 1.1 mrg hppa*-*-lites* | \
3874 1.1 mrg hppa*-*-openbsd* | \
3875 1.1 mrg hppa*64*-*-*)
3876 1.1 mrg ;;
3877 1.1 mrg hppa*-*-pro*)
3878 1.1 mrg ;;
3879 1.1 mrg hppa*-*-*)
3880 1.4 mrg noconfigdirs="$noconfigdirs ld"
3881 1.1 mrg ;;
3882 1.1 mrg i960-*-*)
3883 1.4 mrg noconfigdirs="$noconfigdirs gdb"
3884 1.1 mrg ;;
3885 1.1 mrg ia64*-*-elf*)
3886 1.1 mrg # No gdb support yet.
3887 1.4 mrg noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3888 1.1 mrg ;;
3889 1.1 mrg ia64*-**-hpux*)
3890 1.4 mrg # No ld support yet.
3891 1.8 mrg noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3892 1.1 mrg ;;
3893 1.1 mrg ia64*-*-*vms*)
3894 1.4 mrg # No ld support yet.
3895 1.4 mrg noconfigdirs="$noconfigdirs libgui itcl ld"
3896 1.1 mrg ;;
3897 1.1 mrg i[3456789]86-w64-mingw*)
3898 1.1 mrg ;;
3899 1.1 mrg i[3456789]86-*-mingw*)
3900 1.1 mrg target_configdirs="$target_configdirs target-winsup"
3901 1.1 mrg ;;
3902 1.1 mrg *-*-cygwin*)
3903 1.1 mrg target_configdirs="$target_configdirs target-libtermcap target-winsup"
3904 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3905 1.1 mrg # always build newlib if winsup directory is present.
3906 1.1 mrg if test -d "$srcdir/winsup/cygwin"; then
3907 1.1 mrg skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3908 1.1 mrg elif test -d "$srcdir/newlib"; then
3909 1.1 mrg echo "Warning: winsup/cygwin is missing so newlib can't be built."
3910 1.1 mrg fi
3911 1.1 mrg ;;
3912 1.1 mrg i[3456789]86-*-pe)
3913 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3914 1.1 mrg ;;
3915 1.1 mrg i[3456789]86-*-sco3.2v5*)
3916 1.1 mrg # The linker does not yet know about weak symbols in COFF,
3917 1.1 mrg # and is not configured to handle mixed ELF and COFF.
3918 1.4 mrg noconfigdirs="$noconfigdirs ld target-libgloss"
3919 1.1 mrg ;;
3920 1.1 mrg i[3456789]86-*-sco*)
3921 1.4 mrg noconfigdirs="$noconfigdirs gprof target-libgloss"
3922 1.1 mrg ;;
3923 1.4 mrg i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3924 1.1 mrg noconfigdirs="$noconfigdirs target-libgloss"
3925 1.1 mrg ;;
3926 1.1 mrg i[3456789]86-*-sysv4*)
3927 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss"
3928 1.1 mrg ;;
3929 1.1 mrg i[3456789]86-*-beos*)
3930 1.4 mrg noconfigdirs="$noconfigdirs gdb"
3931 1.1 mrg ;;
3932 1.1 mrg i[3456789]86-*-rdos*)
3933 1.4 mrg noconfigdirs="$noconfigdirs gdb"
3934 1.1 mrg ;;
3935 1.1 mrg mmix-*-*)
3936 1.4 mrg noconfigdirs="$noconfigdirs gdb"
3937 1.1 mrg ;;
3938 1.1 mrg mt-*-*)
3939 1.1 mrg noconfigdirs="$noconfigdirs sim"
3940 1.1 mrg ;;
3941 1.12 mrg nfp-*-*)
3942 1.12 mrg noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3943 1.12 mrg noconfigdirs="$noconfigdirs $target_libraries"
3944 1.12 mrg ;;
3945 1.13 mrg pdp11-*-*)
3946 1.13 mrg noconfigdirs="$noconfigdirs gdb gprof"
3947 1.13 mrg ;;
3948 1.1 mrg powerpc-*-aix*)
3949 1.1 mrg # copied from rs6000-*-* entry
3950 1.4 mrg noconfigdirs="$noconfigdirs gprof"
3951 1.1 mrg ;;
3952 1.4 mrg powerpc*-*-winnt* | powerpc*-*-pe*)
3953 1.1 mrg target_configdirs="$target_configdirs target-winsup"
3954 1.4 mrg noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3955 1.1 mrg # always build newlib.
3956 1.1 mrg skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3957 1.1 mrg ;;
3958 1.1 mrg # This is temporary until we can link against shared libraries
3959 1.1 mrg powerpcle-*-solaris*)
3960 1.4 mrg noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3961 1.1 mrg ;;
3962 1.1 mrg powerpc-*-beos*)
3963 1.4 mrg noconfigdirs="$noconfigdirs gdb"
3964 1.1 mrg ;;
3965 1.1 mrg rs6000-*-lynxos*)
3966 1.4 mrg noconfigdirs="$noconfigdirs gprof"
3967 1.1 mrg ;;
3968 1.1 mrg rs6000-*-aix*)
3969 1.4 mrg noconfigdirs="$noconfigdirs gprof"
3970 1.1 mrg ;;
3971 1.1 mrg rs6000-*-*)
3972 1.4 mrg noconfigdirs="$noconfigdirs gprof"
3973 1.1 mrg ;;
3974 1.1 mrg m68k-apollo-*)
3975 1.4 mrg noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3976 1.1 mrg ;;
3977 1.1 mrg microblaze*)
3978 1.4 mrg noconfigdirs="$noconfigdirs gprof"
3979 1.1 mrg ;;
3980 1.6 mrg mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3981 1.1 mrg if test x$with_newlib = xyes; then
3982 1.1 mrg noconfigdirs="$noconfigdirs gprof"
3983 1.1 mrg fi
3984 1.1 mrg ;;
3985 1.1 mrg mips*-*-irix5*)
3986 1.4 mrg noconfigdirs="$noconfigdirs gprof target-libgloss"
3987 1.1 mrg ;;
3988 1.1 mrg mips*-*-irix6*)
3989 1.4 mrg noconfigdirs="$noconfigdirs gprof target-libgloss"
3990 1.1 mrg ;;
3991 1.1 mrg mips*-*-bsd*)
3992 1.6 mrg noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3993 1.1 mrg ;;
3994 1.1 mrg mips*-*-linux*)
3995 1.1 mrg ;;
3996 1.6 mrg mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3997 1.6 mrg | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3998 1.6 mrg noconfigdirs="$noconfigdirs ld gas gprof"
3999 1.6 mrg ;;
4000 1.1 mrg mips*-*-*)
4001 1.4 mrg noconfigdirs="$noconfigdirs gprof"
4002 1.1 mrg ;;
4003 1.6 mrg nvptx*-*-*)
4004 1.6 mrg noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4005 1.6 mrg ;;
4006 1.10 mrg sh-*-*)
4007 1.1 mrg case "${target}" in
4008 1.1 mrg sh*-*-elf)
4009 1.4 mrg ;;
4010 1.1 mrg *)
4011 1.4 mrg noconfigdirs="$noconfigdirs target-libgloss" ;;
4012 1.1 mrg esac
4013 1.1 mrg ;;
4014 1.1 mrg sparc-*-sunos4*)
4015 1.4 mrg if test x${is_cross_compiler} = xno ; then
4016 1.1 mrg use_gnu_ld=no
4017 1.1 mrg fi
4018 1.1 mrg ;;
4019 1.4 mrg tic6x-*-*)
4020 1.4 mrg noconfigdirs="$noconfigdirs sim"
4021 1.1 mrg ;;
4022 1.6 mrg tilepro*-*-* | tilegx*-*-*)
4023 1.4 mrg noconfigdirs="$noconfigdirs sim"
4024 1.1 mrg ;;
4025 1.1 mrg v810-*-*)
4026 1.4 mrg noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4027 1.1 mrg ;;
4028 1.1 mrg vax-*-*)
4029 1.1 mrg noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4030 1.1 mrg ;;
4031 1.11 mrg wasm32-*-*)
4032 1.11 mrg noconfigdirs="$noconfigdirs ld"
4033 1.11 mrg ;;
4034 1.1 mrg esac
4035 1.1 mrg
4036 1.1 mrg # If we aren't building newlib, then don't build libgloss, since libgloss
4037 1.1 mrg # depends upon some newlib header files.
4038 1.1 mrg case "${noconfigdirs}" in
4039 1.1 mrg *target-libgloss*) ;;
4040 1.1 mrg *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4041 1.1 mrg esac
4042 1.1 mrg
4043 1.1 mrg # Work in distributions that contain no compiler tools, like Autoconf.
4044 1.1 mrg host_makefile_frag=/dev/null
4045 1.1 mrg if test -d ${srcdir}/config ; then
4046 1.1 mrg case "${host}" in
4047 1.1 mrg i[3456789]86-*-msdosdjgpp*)
4048 1.1 mrg host_makefile_frag="config/mh-djgpp"
4049 1.1 mrg ;;
4050 1.1 mrg *-cygwin*)
4051 1.1 mrg
4052 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4053 1.1 mrg $as_echo_n "checking to see if cat works as expected... " >&6; }
4054 1.1 mrg echo a >cygwin-cat-check
4055 1.1 mrg if test `cat cygwin-cat-check` = a ; then
4056 1.1 mrg rm cygwin-cat-check
4057 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 1.1 mrg $as_echo "yes" >&6; }
4059 1.1 mrg else
4060 1.1 mrg rm cygwin-cat-check
4061 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 1.1 mrg $as_echo "no" >&6; }
4063 1.12 mrg as_fn_error $? "The cat command does not ignore carriage return characters.
4064 1.1 mrg Please either mount the build directory in binary mode or run the following
4065 1.1 mrg commands before running any configure script:
4066 1.1 mrg set -o igncr
4067 1.1 mrg export SHELLOPTS
4068 1.1 mrg " "$LINENO" 5
4069 1.1 mrg fi
4070 1.1 mrg
4071 1.1 mrg host_makefile_frag="config/mh-cygwin"
4072 1.1 mrg ;;
4073 1.1 mrg *-mingw*)
4074 1.1 mrg host_makefile_frag="config/mh-mingw"
4075 1.1 mrg ;;
4076 1.4 mrg alpha*-linux*)
4077 1.4 mrg host_makefile_frag="config/mh-alpha-linux"
4078 1.1 mrg ;;
4079 1.1 mrg hppa*-hp-hpux10*)
4080 1.1 mrg host_makefile_frag="config/mh-pa-hpux10"
4081 1.1 mrg ;;
4082 1.4 mrg hppa*-hp-hpux*)
4083 1.1 mrg host_makefile_frag="config/mh-pa"
4084 1.1 mrg ;;
4085 1.1 mrg hppa*-*)
4086 1.1 mrg host_makefile_frag="config/mh-pa"
4087 1.1 mrg ;;
4088 1.13 mrg i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4089 1.4 mrg host_makefile_frag="config/mh-darwin"
4090 1.1 mrg ;;
4091 1.1 mrg powerpc-*-aix*)
4092 1.1 mrg host_makefile_frag="config/mh-ppc-aix"
4093 1.1 mrg ;;
4094 1.4 mrg rs6000-*-aix*)
4095 1.4 mrg host_makefile_frag="config/mh-ppc-aix"
4096 1.1 mrg ;;
4097 1.1 mrg esac
4098 1.1 mrg fi
4099 1.1 mrg
4100 1.1 mrg if test "${build}" != "${host}" ; then
4101 1.1 mrg AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4102 1.1 mrg AS_FOR_BUILD=${AS_FOR_BUILD-as}
4103 1.1 mrg CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4104 1.1 mrg CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4105 1.13 mrg DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4106 1.1 mrg GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4107 1.4 mrg GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4108 1.12 mrg GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4109 1.1 mrg DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4110 1.1 mrg LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4111 1.1 mrg NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4112 1.1 mrg RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4113 1.1 mrg WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4114 1.1 mrg WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4115 1.1 mrg else
4116 1.1 mrg AR_FOR_BUILD="\$(AR)"
4117 1.1 mrg AS_FOR_BUILD="\$(AS)"
4118 1.1 mrg CC_FOR_BUILD="\$(CC)"
4119 1.1 mrg CXX_FOR_BUILD="\$(CXX)"
4120 1.13 mrg DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4121 1.1 mrg GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4122 1.4 mrg GOC_FOR_BUILD="\$(GOC)"
4123 1.12 mrg GDC_FOR_BUILD="\$(GDC)"
4124 1.1 mrg DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4125 1.1 mrg LD_FOR_BUILD="\$(LD)"
4126 1.1 mrg NM_FOR_BUILD="\$(NM)"
4127 1.1 mrg RANLIB_FOR_BUILD="\$(RANLIB)"
4128 1.1 mrg WINDRES_FOR_BUILD="\$(WINDRES)"
4129 1.1 mrg WINDMC_FOR_BUILD="\$(WINDMC)"
4130 1.1 mrg fi
4131 1.1 mrg
4132 1.1 mrg ac_ext=c
4133 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
4134 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 1.1 mrg if test -n "$ac_tool_prefix"; then
4138 1.1 mrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139 1.1 mrg set dummy ${ac_tool_prefix}gcc; ac_word=$2
4140 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4142 1.12 mrg if ${ac_cv_prog_CC+:} false; then :
4143 1.1 mrg $as_echo_n "(cached) " >&6
4144 1.1 mrg else
4145 1.1 mrg if test -n "$CC"; then
4146 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
4147 1.1 mrg else
4148 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 1.1 mrg for as_dir in $PATH
4150 1.1 mrg do
4151 1.1 mrg IFS=$as_save_IFS
4152 1.1 mrg test -z "$as_dir" && as_dir=.
4153 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4154 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 1.1 mrg ac_cv_prog_CC="${ac_tool_prefix}gcc"
4156 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 1.1 mrg break 2
4158 1.1 mrg fi
4159 1.1 mrg done
4160 1.1 mrg done
4161 1.1 mrg IFS=$as_save_IFS
4162 1.1 mrg
4163 1.1 mrg fi
4164 1.1 mrg fi
4165 1.1 mrg CC=$ac_cv_prog_CC
4166 1.1 mrg if test -n "$CC"; then
4167 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 1.1 mrg $as_echo "$CC" >&6; }
4169 1.1 mrg else
4170 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 1.1 mrg $as_echo "no" >&6; }
4172 1.1 mrg fi
4173 1.1 mrg
4174 1.1 mrg
4175 1.1 mrg fi
4176 1.1 mrg if test -z "$ac_cv_prog_CC"; then
4177 1.1 mrg ac_ct_CC=$CC
4178 1.1 mrg # Extract the first word of "gcc", so it can be a program name with args.
4179 1.1 mrg set dummy gcc; ac_word=$2
4180 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4182 1.12 mrg if ${ac_cv_prog_ac_ct_CC+:} false; then :
4183 1.1 mrg $as_echo_n "(cached) " >&6
4184 1.1 mrg else
4185 1.1 mrg if test -n "$ac_ct_CC"; then
4186 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 1.1 mrg else
4188 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 1.1 mrg for as_dir in $PATH
4190 1.1 mrg do
4191 1.1 mrg IFS=$as_save_IFS
4192 1.1 mrg test -z "$as_dir" && as_dir=.
4193 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4194 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 1.1 mrg ac_cv_prog_ac_ct_CC="gcc"
4196 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 1.1 mrg break 2
4198 1.1 mrg fi
4199 1.1 mrg done
4200 1.1 mrg done
4201 1.1 mrg IFS=$as_save_IFS
4202 1.1 mrg
4203 1.1 mrg fi
4204 1.1 mrg fi
4205 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 1.1 mrg if test -n "$ac_ct_CC"; then
4207 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 1.1 mrg $as_echo "$ac_ct_CC" >&6; }
4209 1.1 mrg else
4210 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 1.1 mrg $as_echo "no" >&6; }
4212 1.1 mrg fi
4213 1.1 mrg
4214 1.1 mrg if test "x$ac_ct_CC" = x; then
4215 1.1 mrg CC=""
4216 1.1 mrg else
4217 1.1 mrg case $cross_compiling:$ac_tool_warned in
4218 1.1 mrg yes:)
4219 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 1.1 mrg $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 1.1 mrg ac_tool_warned=yes ;;
4222 1.1 mrg esac
4223 1.1 mrg CC=$ac_ct_CC
4224 1.1 mrg fi
4225 1.1 mrg else
4226 1.1 mrg CC="$ac_cv_prog_CC"
4227 1.1 mrg fi
4228 1.1 mrg
4229 1.1 mrg if test -z "$CC"; then
4230 1.1 mrg if test -n "$ac_tool_prefix"; then
4231 1.1 mrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4232 1.1 mrg set dummy ${ac_tool_prefix}cc; ac_word=$2
4233 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4235 1.12 mrg if ${ac_cv_prog_CC+:} false; then :
4236 1.1 mrg $as_echo_n "(cached) " >&6
4237 1.1 mrg else
4238 1.1 mrg if test -n "$CC"; then
4239 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
4240 1.1 mrg else
4241 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 1.1 mrg for as_dir in $PATH
4243 1.1 mrg do
4244 1.1 mrg IFS=$as_save_IFS
4245 1.1 mrg test -z "$as_dir" && as_dir=.
4246 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4247 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 1.1 mrg ac_cv_prog_CC="${ac_tool_prefix}cc"
4249 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 1.1 mrg break 2
4251 1.1 mrg fi
4252 1.1 mrg done
4253 1.1 mrg done
4254 1.1 mrg IFS=$as_save_IFS
4255 1.1 mrg
4256 1.1 mrg fi
4257 1.1 mrg fi
4258 1.1 mrg CC=$ac_cv_prog_CC
4259 1.1 mrg if test -n "$CC"; then
4260 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 1.1 mrg $as_echo "$CC" >&6; }
4262 1.1 mrg else
4263 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 1.1 mrg $as_echo "no" >&6; }
4265 1.1 mrg fi
4266 1.1 mrg
4267 1.1 mrg
4268 1.1 mrg fi
4269 1.1 mrg fi
4270 1.1 mrg if test -z "$CC"; then
4271 1.1 mrg # Extract the first word of "cc", so it can be a program name with args.
4272 1.1 mrg set dummy cc; ac_word=$2
4273 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4275 1.12 mrg if ${ac_cv_prog_CC+:} false; then :
4276 1.1 mrg $as_echo_n "(cached) " >&6
4277 1.1 mrg else
4278 1.1 mrg if test -n "$CC"; then
4279 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
4280 1.1 mrg else
4281 1.1 mrg ac_prog_rejected=no
4282 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 1.1 mrg for as_dir in $PATH
4284 1.1 mrg do
4285 1.1 mrg IFS=$as_save_IFS
4286 1.1 mrg test -z "$as_dir" && as_dir=.
4287 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4288 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 1.1 mrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290 1.1 mrg ac_prog_rejected=yes
4291 1.1 mrg continue
4292 1.1 mrg fi
4293 1.1 mrg ac_cv_prog_CC="cc"
4294 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 1.1 mrg break 2
4296 1.1 mrg fi
4297 1.1 mrg done
4298 1.1 mrg done
4299 1.1 mrg IFS=$as_save_IFS
4300 1.1 mrg
4301 1.1 mrg if test $ac_prog_rejected = yes; then
4302 1.1 mrg # We found a bogon in the path, so make sure we never use it.
4303 1.1 mrg set dummy $ac_cv_prog_CC
4304 1.1 mrg shift
4305 1.1 mrg if test $# != 0; then
4306 1.1 mrg # We chose a different compiler from the bogus one.
4307 1.1 mrg # However, it has the same basename, so the bogon will be chosen
4308 1.1 mrg # first if we set CC to just the basename; use the full file name.
4309 1.1 mrg shift
4310 1.1 mrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4311 1.1 mrg fi
4312 1.1 mrg fi
4313 1.1 mrg fi
4314 1.1 mrg fi
4315 1.1 mrg CC=$ac_cv_prog_CC
4316 1.1 mrg if test -n "$CC"; then
4317 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 1.1 mrg $as_echo "$CC" >&6; }
4319 1.1 mrg else
4320 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 1.1 mrg $as_echo "no" >&6; }
4322 1.1 mrg fi
4323 1.1 mrg
4324 1.1 mrg
4325 1.1 mrg fi
4326 1.1 mrg if test -z "$CC"; then
4327 1.1 mrg if test -n "$ac_tool_prefix"; then
4328 1.1 mrg for ac_prog in cl.exe
4329 1.1 mrg do
4330 1.1 mrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 1.1 mrg set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4334 1.12 mrg if ${ac_cv_prog_CC+:} false; then :
4335 1.1 mrg $as_echo_n "(cached) " >&6
4336 1.1 mrg else
4337 1.1 mrg if test -n "$CC"; then
4338 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
4339 1.1 mrg else
4340 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 1.1 mrg for as_dir in $PATH
4342 1.1 mrg do
4343 1.1 mrg IFS=$as_save_IFS
4344 1.1 mrg test -z "$as_dir" && as_dir=.
4345 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4346 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 1.1 mrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 1.1 mrg break 2
4350 1.1 mrg fi
4351 1.1 mrg done
4352 1.1 mrg done
4353 1.1 mrg IFS=$as_save_IFS
4354 1.1 mrg
4355 1.1 mrg fi
4356 1.1 mrg fi
4357 1.1 mrg CC=$ac_cv_prog_CC
4358 1.1 mrg if test -n "$CC"; then
4359 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 1.1 mrg $as_echo "$CC" >&6; }
4361 1.1 mrg else
4362 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 1.1 mrg $as_echo "no" >&6; }
4364 1.1 mrg fi
4365 1.1 mrg
4366 1.1 mrg
4367 1.1 mrg test -n "$CC" && break
4368 1.1 mrg done
4369 1.1 mrg fi
4370 1.1 mrg if test -z "$CC"; then
4371 1.1 mrg ac_ct_CC=$CC
4372 1.1 mrg for ac_prog in cl.exe
4373 1.1 mrg do
4374 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 1.1 mrg set dummy $ac_prog; ac_word=$2
4376 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4378 1.12 mrg if ${ac_cv_prog_ac_ct_CC+:} false; then :
4379 1.1 mrg $as_echo_n "(cached) " >&6
4380 1.1 mrg else
4381 1.1 mrg if test -n "$ac_ct_CC"; then
4382 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4383 1.1 mrg else
4384 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 1.1 mrg for as_dir in $PATH
4386 1.1 mrg do
4387 1.1 mrg IFS=$as_save_IFS
4388 1.1 mrg test -z "$as_dir" && as_dir=.
4389 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4390 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_prog"
4392 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 1.1 mrg break 2
4394 1.1 mrg fi
4395 1.1 mrg done
4396 1.1 mrg done
4397 1.1 mrg IFS=$as_save_IFS
4398 1.1 mrg
4399 1.1 mrg fi
4400 1.1 mrg fi
4401 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402 1.1 mrg if test -n "$ac_ct_CC"; then
4403 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404 1.1 mrg $as_echo "$ac_ct_CC" >&6; }
4405 1.1 mrg else
4406 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 1.1 mrg $as_echo "no" >&6; }
4408 1.1 mrg fi
4409 1.1 mrg
4410 1.1 mrg
4411 1.1 mrg test -n "$ac_ct_CC" && break
4412 1.1 mrg done
4413 1.1 mrg
4414 1.1 mrg if test "x$ac_ct_CC" = x; then
4415 1.1 mrg CC=""
4416 1.1 mrg else
4417 1.1 mrg case $cross_compiling:$ac_tool_warned in
4418 1.1 mrg yes:)
4419 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420 1.1 mrg $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421 1.1 mrg ac_tool_warned=yes ;;
4422 1.1 mrg esac
4423 1.1 mrg CC=$ac_ct_CC
4424 1.1 mrg fi
4425 1.1 mrg fi
4426 1.1 mrg
4427 1.1 mrg fi
4428 1.1 mrg
4429 1.1 mrg
4430 1.1 mrg test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 1.1 mrg $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 1.12 mrg as_fn_error $? "no acceptable C compiler found in \$PATH
4433 1.12 mrg See \`config.log' for more details" "$LINENO" 5; }
4434 1.1 mrg
4435 1.1 mrg # Provide some information about the compiler.
4436 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4437 1.1 mrg set X $ac_compile
4438 1.1 mrg ac_compiler=$2
4439 1.1 mrg for ac_option in --version -v -V -qversion; do
4440 1.1 mrg { { ac_try="$ac_compiler $ac_option >&5"
4441 1.1 mrg case "(($ac_try" in
4442 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 1.1 mrg *) ac_try_echo=$ac_try;;
4444 1.1 mrg esac
4445 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 1.1 mrg $as_echo "$ac_try_echo"; } >&5
4447 1.1 mrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4448 1.1 mrg ac_status=$?
4449 1.1 mrg if test -s conftest.err; then
4450 1.1 mrg sed '10a\
4451 1.1 mrg ... rest of stderr output deleted ...
4452 1.1 mrg 10q' conftest.err >conftest.er1
4453 1.1 mrg cat conftest.er1 >&5
4454 1.1 mrg fi
4455 1.12 mrg rm -f conftest.er1 conftest.err
4456 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 1.1 mrg test $ac_status = 0; }
4458 1.1 mrg done
4459 1.1 mrg
4460 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 1.1 mrg /* end confdefs.h. */
4462 1.1 mrg
4463 1.1 mrg int
4464 1.1 mrg main ()
4465 1.1 mrg {
4466 1.1 mrg
4467 1.1 mrg ;
4468 1.1 mrg return 0;
4469 1.1 mrg }
4470 1.1 mrg _ACEOF
4471 1.1 mrg ac_clean_files_save=$ac_clean_files
4472 1.12 mrg ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4473 1.1 mrg # Try to create an executable without -o first, disregard a.out.
4474 1.1 mrg # It will help us diagnose broken compilers, and finding out an intuition
4475 1.1 mrg # of exeext.
4476 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477 1.12 mrg $as_echo_n "checking whether the C compiler works... " >&6; }
4478 1.1 mrg ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4479 1.1 mrg
4480 1.1 mrg # The possible output files:
4481 1.1 mrg ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4482 1.1 mrg
4483 1.1 mrg ac_rmfiles=
4484 1.1 mrg for ac_file in $ac_files
4485 1.1 mrg do
4486 1.1 mrg case $ac_file in
4487 1.1 mrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 1.1 mrg * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4489 1.1 mrg esac
4490 1.1 mrg done
4491 1.1 mrg rm -f $ac_rmfiles
4492 1.1 mrg
4493 1.1 mrg if { { ac_try="$ac_link_default"
4494 1.1 mrg case "(($ac_try" in
4495 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 1.1 mrg *) ac_try_echo=$ac_try;;
4497 1.1 mrg esac
4498 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 1.1 mrg $as_echo "$ac_try_echo"; } >&5
4500 1.1 mrg (eval "$ac_link_default") 2>&5
4501 1.1 mrg ac_status=$?
4502 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 1.1 mrg test $ac_status = 0; }; then :
4504 1.1 mrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4505 1.1 mrg # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4506 1.1 mrg # in a Makefile. We should not override ac_cv_exeext if it was cached,
4507 1.1 mrg # so that the user can short-circuit this test for compilers unknown to
4508 1.1 mrg # Autoconf.
4509 1.1 mrg for ac_file in $ac_files ''
4510 1.1 mrg do
4511 1.1 mrg test -f "$ac_file" || continue
4512 1.1 mrg case $ac_file in
4513 1.1 mrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4514 1.1 mrg ;;
4515 1.1 mrg [ab].out )
4516 1.1 mrg # We found the default executable, but exeext='' is most
4517 1.1 mrg # certainly right.
4518 1.1 mrg break;;
4519 1.1 mrg *.* )
4520 1.1 mrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4521 1.1 mrg then :; else
4522 1.1 mrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 1.1 mrg fi
4524 1.1 mrg # We set ac_cv_exeext here because the later test for it is not
4525 1.1 mrg # safe: cross compilers may not add the suffix if given an `-o'
4526 1.1 mrg # argument, so we may need to know it at that point already.
4527 1.1 mrg # Even if this section looks crufty: it has the advantage of
4528 1.1 mrg # actually working.
4529 1.1 mrg break;;
4530 1.1 mrg * )
4531 1.1 mrg break;;
4532 1.1 mrg esac
4533 1.1 mrg done
4534 1.1 mrg test "$ac_cv_exeext" = no && ac_cv_exeext=
4535 1.1 mrg
4536 1.1 mrg else
4537 1.1 mrg ac_file=''
4538 1.1 mrg fi
4539 1.1 mrg if test -z "$ac_file"; then :
4540 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 1.12 mrg $as_echo "no" >&6; }
4542 1.12 mrg $as_echo "$as_me: failed program was:" >&5
4543 1.1 mrg sed 's/^/| /' conftest.$ac_ext >&5
4544 1.1 mrg
4545 1.1 mrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 1.1 mrg $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 1.12 mrg as_fn_error 77 "C compiler cannot create executables
4548 1.12 mrg See \`config.log' for more details" "$LINENO" 5; }
4549 1.12 mrg else
4550 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 1.12 mrg $as_echo "yes" >&6; }
4552 1.1 mrg fi
4553 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4554 1.12 mrg $as_echo_n "checking for C compiler default output file name... " >&6; }
4555 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4556 1.12 mrg $as_echo "$ac_file" >&6; }
4557 1.1 mrg ac_exeext=$ac_cv_exeext
4558 1.1 mrg
4559 1.12 mrg rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4560 1.1 mrg ac_clean_files=$ac_clean_files_save
4561 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4562 1.1 mrg $as_echo_n "checking for suffix of executables... " >&6; }
4563 1.1 mrg if { { ac_try="$ac_link"
4564 1.1 mrg case "(($ac_try" in
4565 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 1.1 mrg *) ac_try_echo=$ac_try;;
4567 1.1 mrg esac
4568 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 1.1 mrg $as_echo "$ac_try_echo"; } >&5
4570 1.1 mrg (eval "$ac_link") 2>&5
4571 1.1 mrg ac_status=$?
4572 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 1.1 mrg test $ac_status = 0; }; then :
4574 1.1 mrg # If both `conftest.exe' and `conftest' are `present' (well, observable)
4575 1.1 mrg # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4576 1.1 mrg # work properly (i.e., refer to `conftest.exe'), while it won't with
4577 1.1 mrg # `rm'.
4578 1.1 mrg for ac_file in conftest.exe conftest conftest.*; do
4579 1.1 mrg test -f "$ac_file" || continue
4580 1.1 mrg case $ac_file in
4581 1.1 mrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4582 1.1 mrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583 1.1 mrg break;;
4584 1.1 mrg * ) break;;
4585 1.1 mrg esac
4586 1.1 mrg done
4587 1.1 mrg else
4588 1.1 mrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 1.1 mrg $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 1.12 mrg as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4591 1.12 mrg See \`config.log' for more details" "$LINENO" 5; }
4592 1.1 mrg fi
4593 1.12 mrg rm -f conftest conftest$ac_cv_exeext
4594 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4595 1.1 mrg $as_echo "$ac_cv_exeext" >&6; }
4596 1.1 mrg
4597 1.1 mrg rm -f conftest.$ac_ext
4598 1.1 mrg EXEEXT=$ac_cv_exeext
4599 1.1 mrg ac_exeext=$EXEEXT
4600 1.12 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 1.12 mrg /* end confdefs.h. */
4602 1.12 mrg #include <stdio.h>
4603 1.12 mrg int
4604 1.12 mrg main ()
4605 1.12 mrg {
4606 1.12 mrg FILE *f = fopen ("conftest.out", "w");
4607 1.12 mrg return ferror (f) || fclose (f) != 0;
4608 1.12 mrg
4609 1.12 mrg ;
4610 1.12 mrg return 0;
4611 1.12 mrg }
4612 1.12 mrg _ACEOF
4613 1.12 mrg ac_clean_files="$ac_clean_files conftest.out"
4614 1.12 mrg # Check that the compiler produces executables we can run. If not, either
4615 1.12 mrg # the compiler is broken, or we cross compile.
4616 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4617 1.12 mrg $as_echo_n "checking whether we are cross compiling... " >&6; }
4618 1.12 mrg if test "$cross_compiling" != yes; then
4619 1.12 mrg { { ac_try="$ac_link"
4620 1.12 mrg case "(($ac_try" in
4621 1.12 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 1.12 mrg *) ac_try_echo=$ac_try;;
4623 1.12 mrg esac
4624 1.12 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 1.12 mrg $as_echo "$ac_try_echo"; } >&5
4626 1.12 mrg (eval "$ac_link") 2>&5
4627 1.12 mrg ac_status=$?
4628 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 1.12 mrg test $ac_status = 0; }
4630 1.12 mrg if { ac_try='./conftest$ac_cv_exeext'
4631 1.12 mrg { { case "(($ac_try" in
4632 1.12 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 1.12 mrg *) ac_try_echo=$ac_try;;
4634 1.12 mrg esac
4635 1.12 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 1.12 mrg $as_echo "$ac_try_echo"; } >&5
4637 1.12 mrg (eval "$ac_try") 2>&5
4638 1.12 mrg ac_status=$?
4639 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 1.12 mrg test $ac_status = 0; }; }; then
4641 1.12 mrg cross_compiling=no
4642 1.12 mrg else
4643 1.12 mrg if test "$cross_compiling" = maybe; then
4644 1.12 mrg cross_compiling=yes
4645 1.12 mrg else
4646 1.12 mrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 1.12 mrg $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 1.12 mrg as_fn_error $? "cannot run C compiled programs.
4649 1.12 mrg If you meant to cross compile, use \`--host'.
4650 1.12 mrg See \`config.log' for more details" "$LINENO" 5; }
4651 1.12 mrg fi
4652 1.12 mrg fi
4653 1.12 mrg fi
4654 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4655 1.12 mrg $as_echo "$cross_compiling" >&6; }
4656 1.12 mrg
4657 1.12 mrg rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4658 1.12 mrg ac_clean_files=$ac_clean_files_save
4659 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4660 1.1 mrg $as_echo_n "checking for suffix of object files... " >&6; }
4661 1.12 mrg if ${ac_cv_objext+:} false; then :
4662 1.1 mrg $as_echo_n "(cached) " >&6
4663 1.1 mrg else
4664 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 1.1 mrg /* end confdefs.h. */
4666 1.1 mrg
4667 1.1 mrg int
4668 1.1 mrg main ()
4669 1.1 mrg {
4670 1.1 mrg
4671 1.1 mrg ;
4672 1.1 mrg return 0;
4673 1.1 mrg }
4674 1.1 mrg _ACEOF
4675 1.1 mrg rm -f conftest.o conftest.obj
4676 1.1 mrg if { { ac_try="$ac_compile"
4677 1.1 mrg case "(($ac_try" in
4678 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 1.1 mrg *) ac_try_echo=$ac_try;;
4680 1.1 mrg esac
4681 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 1.1 mrg $as_echo "$ac_try_echo"; } >&5
4683 1.1 mrg (eval "$ac_compile") 2>&5
4684 1.1 mrg ac_status=$?
4685 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 1.1 mrg test $ac_status = 0; }; then :
4687 1.1 mrg for ac_file in conftest.o conftest.obj conftest.*; do
4688 1.1 mrg test -f "$ac_file" || continue;
4689 1.1 mrg case $ac_file in
4690 1.1 mrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4691 1.1 mrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 1.1 mrg break;;
4693 1.1 mrg esac
4694 1.1 mrg done
4695 1.1 mrg else
4696 1.1 mrg $as_echo "$as_me: failed program was:" >&5
4697 1.1 mrg sed 's/^/| /' conftest.$ac_ext >&5
4698 1.1 mrg
4699 1.1 mrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 1.1 mrg $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 1.12 mrg as_fn_error $? "cannot compute suffix of object files: cannot compile
4702 1.12 mrg See \`config.log' for more details" "$LINENO" 5; }
4703 1.1 mrg fi
4704 1.1 mrg rm -f conftest.$ac_cv_objext conftest.$ac_ext
4705 1.1 mrg fi
4706 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4707 1.1 mrg $as_echo "$ac_cv_objext" >&6; }
4708 1.1 mrg OBJEXT=$ac_cv_objext
4709 1.1 mrg ac_objext=$OBJEXT
4710 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711 1.1 mrg $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4712 1.12 mrg if ${ac_cv_c_compiler_gnu+:} false; then :
4713 1.1 mrg $as_echo_n "(cached) " >&6
4714 1.1 mrg else
4715 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 1.1 mrg /* end confdefs.h. */
4717 1.1 mrg
4718 1.1 mrg int
4719 1.1 mrg main ()
4720 1.1 mrg {
4721 1.1 mrg #ifndef __GNUC__
4722 1.1 mrg choke me
4723 1.1 mrg #endif
4724 1.1 mrg
4725 1.1 mrg ;
4726 1.1 mrg return 0;
4727 1.1 mrg }
4728 1.1 mrg _ACEOF
4729 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
4730 1.1 mrg ac_compiler_gnu=yes
4731 1.1 mrg else
4732 1.1 mrg ac_compiler_gnu=no
4733 1.1 mrg fi
4734 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 1.1 mrg ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736 1.1 mrg
4737 1.1 mrg fi
4738 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739 1.1 mrg $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740 1.1 mrg if test $ac_compiler_gnu = yes; then
4741 1.1 mrg GCC=yes
4742 1.1 mrg else
4743 1.1 mrg GCC=
4744 1.1 mrg fi
4745 1.1 mrg ac_test_CFLAGS=${CFLAGS+set}
4746 1.1 mrg ac_save_CFLAGS=$CFLAGS
4747 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748 1.1 mrg $as_echo_n "checking whether $CC accepts -g... " >&6; }
4749 1.12 mrg if ${ac_cv_prog_cc_g+:} false; then :
4750 1.1 mrg $as_echo_n "(cached) " >&6
4751 1.1 mrg else
4752 1.1 mrg ac_save_c_werror_flag=$ac_c_werror_flag
4753 1.1 mrg ac_c_werror_flag=yes
4754 1.1 mrg ac_cv_prog_cc_g=no
4755 1.1 mrg CFLAGS="-g"
4756 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 1.1 mrg /* end confdefs.h. */
4758 1.1 mrg
4759 1.1 mrg int
4760 1.1 mrg main ()
4761 1.1 mrg {
4762 1.1 mrg
4763 1.1 mrg ;
4764 1.1 mrg return 0;
4765 1.1 mrg }
4766 1.1 mrg _ACEOF
4767 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
4768 1.1 mrg ac_cv_prog_cc_g=yes
4769 1.1 mrg else
4770 1.1 mrg CFLAGS=""
4771 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 1.1 mrg /* end confdefs.h. */
4773 1.1 mrg
4774 1.1 mrg int
4775 1.1 mrg main ()
4776 1.1 mrg {
4777 1.1 mrg
4778 1.1 mrg ;
4779 1.1 mrg return 0;
4780 1.1 mrg }
4781 1.1 mrg _ACEOF
4782 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
4783 1.1 mrg
4784 1.1 mrg else
4785 1.1 mrg ac_c_werror_flag=$ac_save_c_werror_flag
4786 1.1 mrg CFLAGS="-g"
4787 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 1.1 mrg /* end confdefs.h. */
4789 1.1 mrg
4790 1.1 mrg int
4791 1.1 mrg main ()
4792 1.1 mrg {
4793 1.1 mrg
4794 1.1 mrg ;
4795 1.1 mrg return 0;
4796 1.1 mrg }
4797 1.1 mrg _ACEOF
4798 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
4799 1.1 mrg ac_cv_prog_cc_g=yes
4800 1.1 mrg fi
4801 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 1.1 mrg fi
4803 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 1.1 mrg fi
4805 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 1.1 mrg ac_c_werror_flag=$ac_save_c_werror_flag
4807 1.1 mrg fi
4808 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809 1.1 mrg $as_echo "$ac_cv_prog_cc_g" >&6; }
4810 1.1 mrg if test "$ac_test_CFLAGS" = set; then
4811 1.1 mrg CFLAGS=$ac_save_CFLAGS
4812 1.1 mrg elif test $ac_cv_prog_cc_g = yes; then
4813 1.1 mrg if test "$GCC" = yes; then
4814 1.1 mrg CFLAGS="-g -O2"
4815 1.1 mrg else
4816 1.1 mrg CFLAGS="-g"
4817 1.1 mrg fi
4818 1.1 mrg else
4819 1.1 mrg if test "$GCC" = yes; then
4820 1.1 mrg CFLAGS="-O2"
4821 1.1 mrg else
4822 1.1 mrg CFLAGS=
4823 1.1 mrg fi
4824 1.1 mrg fi
4825 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826 1.1 mrg $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4827 1.12 mrg if ${ac_cv_prog_cc_c89+:} false; then :
4828 1.1 mrg $as_echo_n "(cached) " >&6
4829 1.1 mrg else
4830 1.1 mrg ac_cv_prog_cc_c89=no
4831 1.1 mrg ac_save_CC=$CC
4832 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 1.1 mrg /* end confdefs.h. */
4834 1.1 mrg #include <stdarg.h>
4835 1.1 mrg #include <stdio.h>
4836 1.12 mrg struct stat;
4837 1.1 mrg /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838 1.1 mrg struct buf { int x; };
4839 1.1 mrg FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840 1.1 mrg static char *e (p, i)
4841 1.1 mrg char **p;
4842 1.1 mrg int i;
4843 1.1 mrg {
4844 1.1 mrg return p[i];
4845 1.1 mrg }
4846 1.1 mrg static char *f (char * (*g) (char **, int), char **p, ...)
4847 1.1 mrg {
4848 1.1 mrg char *s;
4849 1.1 mrg va_list v;
4850 1.1 mrg va_start (v,p);
4851 1.1 mrg s = g (p, va_arg (v,int));
4852 1.1 mrg va_end (v);
4853 1.1 mrg return s;
4854 1.1 mrg }
4855 1.1 mrg
4856 1.1 mrg /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 1.1 mrg function prototypes and stuff, but not '\xHH' hex character constants.
4858 1.1 mrg These don't provoke an error unfortunately, instead are silently treated
4859 1.1 mrg as 'x'. The following induces an error, until -std is added to get
4860 1.1 mrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 1.1 mrg array size at least. It's necessary to write '\x00'==0 to get something
4862 1.1 mrg that's true only with -std. */
4863 1.1 mrg int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4864 1.1 mrg
4865 1.1 mrg /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 1.1 mrg inside strings and character constants. */
4867 1.1 mrg #define FOO(x) 'x'
4868 1.1 mrg int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4869 1.1 mrg
4870 1.1 mrg int test (int i, double x);
4871 1.1 mrg struct s1 {int (*f) (int a);};
4872 1.1 mrg struct s2 {int (*f) (double a);};
4873 1.1 mrg int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4874 1.1 mrg int argc;
4875 1.1 mrg char **argv;
4876 1.1 mrg int
4877 1.1 mrg main ()
4878 1.1 mrg {
4879 1.1 mrg return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 1.1 mrg ;
4881 1.1 mrg return 0;
4882 1.1 mrg }
4883 1.1 mrg _ACEOF
4884 1.1 mrg for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 1.1 mrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4886 1.1 mrg do
4887 1.1 mrg CC="$ac_save_CC $ac_arg"
4888 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
4889 1.1 mrg ac_cv_prog_cc_c89=$ac_arg
4890 1.1 mrg fi
4891 1.1 mrg rm -f core conftest.err conftest.$ac_objext
4892 1.1 mrg test "x$ac_cv_prog_cc_c89" != "xno" && break
4893 1.1 mrg done
4894 1.1 mrg rm -f conftest.$ac_ext
4895 1.1 mrg CC=$ac_save_CC
4896 1.1 mrg
4897 1.1 mrg fi
4898 1.1 mrg # AC_CACHE_VAL
4899 1.1 mrg case "x$ac_cv_prog_cc_c89" in
4900 1.1 mrg x)
4901 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 1.1 mrg $as_echo "none needed" >&6; } ;;
4903 1.1 mrg xno)
4904 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 1.1 mrg $as_echo "unsupported" >&6; } ;;
4906 1.1 mrg *)
4907 1.1 mrg CC="$CC $ac_cv_prog_cc_c89"
4908 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 1.1 mrg $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4910 1.1 mrg esac
4911 1.1 mrg if test "x$ac_cv_prog_cc_c89" != xno; then :
4912 1.1 mrg
4913 1.1 mrg fi
4914 1.1 mrg
4915 1.1 mrg ac_ext=c
4916 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
4917 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 1.1 mrg
4921 1.1 mrg ac_ext=cpp
4922 1.1 mrg ac_cpp='$CXXCPP $CPPFLAGS'
4923 1.1 mrg ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 1.1 mrg ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 1.1 mrg ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4926 1.1 mrg if test -z "$CXX"; then
4927 1.1 mrg if test -n "$CCC"; then
4928 1.1 mrg CXX=$CCC
4929 1.1 mrg else
4930 1.1 mrg if test -n "$ac_tool_prefix"; then
4931 1.1 mrg for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4932 1.1 mrg do
4933 1.1 mrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 1.1 mrg set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4935 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4937 1.12 mrg if ${ac_cv_prog_CXX+:} false; then :
4938 1.1 mrg $as_echo_n "(cached) " >&6
4939 1.1 mrg else
4940 1.1 mrg if test -n "$CXX"; then
4941 1.1 mrg ac_cv_prog_CXX="$CXX" # Let the user override the test.
4942 1.1 mrg else
4943 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 1.1 mrg for as_dir in $PATH
4945 1.1 mrg do
4946 1.1 mrg IFS=$as_save_IFS
4947 1.1 mrg test -z "$as_dir" && as_dir=.
4948 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4949 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 1.1 mrg ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4951 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 1.1 mrg break 2
4953 1.1 mrg fi
4954 1.1 mrg done
4955 1.1 mrg done
4956 1.1 mrg IFS=$as_save_IFS
4957 1.1 mrg
4958 1.1 mrg fi
4959 1.1 mrg fi
4960 1.1 mrg CXX=$ac_cv_prog_CXX
4961 1.1 mrg if test -n "$CXX"; then
4962 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4963 1.1 mrg $as_echo "$CXX" >&6; }
4964 1.1 mrg else
4965 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 1.1 mrg $as_echo "no" >&6; }
4967 1.1 mrg fi
4968 1.1 mrg
4969 1.1 mrg
4970 1.1 mrg test -n "$CXX" && break
4971 1.1 mrg done
4972 1.1 mrg fi
4973 1.1 mrg if test -z "$CXX"; then
4974 1.1 mrg ac_ct_CXX=$CXX
4975 1.1 mrg for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4976 1.1 mrg do
4977 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 1.1 mrg set dummy $ac_prog; ac_word=$2
4979 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
4981 1.12 mrg if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4982 1.1 mrg $as_echo_n "(cached) " >&6
4983 1.1 mrg else
4984 1.1 mrg if test -n "$ac_ct_CXX"; then
4985 1.1 mrg ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4986 1.1 mrg else
4987 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 1.1 mrg for as_dir in $PATH
4989 1.1 mrg do
4990 1.1 mrg IFS=$as_save_IFS
4991 1.1 mrg test -z "$as_dir" && as_dir=.
4992 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
4993 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 1.1 mrg ac_cv_prog_ac_ct_CXX="$ac_prog"
4995 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 1.1 mrg break 2
4997 1.1 mrg fi
4998 1.1 mrg done
4999 1.1 mrg done
5000 1.1 mrg IFS=$as_save_IFS
5001 1.1 mrg
5002 1.1 mrg fi
5003 1.1 mrg fi
5004 1.1 mrg ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5005 1.1 mrg if test -n "$ac_ct_CXX"; then
5006 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5007 1.1 mrg $as_echo "$ac_ct_CXX" >&6; }
5008 1.1 mrg else
5009 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 1.1 mrg $as_echo "no" >&6; }
5011 1.1 mrg fi
5012 1.1 mrg
5013 1.1 mrg
5014 1.1 mrg test -n "$ac_ct_CXX" && break
5015 1.1 mrg done
5016 1.1 mrg
5017 1.1 mrg if test "x$ac_ct_CXX" = x; then
5018 1.1 mrg CXX="g++"
5019 1.1 mrg else
5020 1.1 mrg case $cross_compiling:$ac_tool_warned in
5021 1.1 mrg yes:)
5022 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 1.1 mrg $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 1.1 mrg ac_tool_warned=yes ;;
5025 1.1 mrg esac
5026 1.1 mrg CXX=$ac_ct_CXX
5027 1.1 mrg fi
5028 1.1 mrg fi
5029 1.1 mrg
5030 1.1 mrg fi
5031 1.1 mrg fi
5032 1.1 mrg # Provide some information about the compiler.
5033 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5034 1.1 mrg set X $ac_compile
5035 1.1 mrg ac_compiler=$2
5036 1.1 mrg for ac_option in --version -v -V -qversion; do
5037 1.1 mrg { { ac_try="$ac_compiler $ac_option >&5"
5038 1.1 mrg case "(($ac_try" in
5039 1.1 mrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 1.1 mrg *) ac_try_echo=$ac_try;;
5041 1.1 mrg esac
5042 1.1 mrg eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043 1.1 mrg $as_echo "$ac_try_echo"; } >&5
5044 1.1 mrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5045 1.1 mrg ac_status=$?
5046 1.1 mrg if test -s conftest.err; then
5047 1.1 mrg sed '10a\
5048 1.1 mrg ... rest of stderr output deleted ...
5049 1.1 mrg 10q' conftest.err >conftest.er1
5050 1.1 mrg cat conftest.er1 >&5
5051 1.1 mrg fi
5052 1.12 mrg rm -f conftest.er1 conftest.err
5053 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 1.1 mrg test $ac_status = 0; }
5055 1.1 mrg done
5056 1.1 mrg
5057 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5058 1.1 mrg $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5059 1.12 mrg if ${ac_cv_cxx_compiler_gnu+:} false; then :
5060 1.1 mrg $as_echo_n "(cached) " >&6
5061 1.1 mrg else
5062 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 1.1 mrg /* end confdefs.h. */
5064 1.1 mrg
5065 1.1 mrg int
5066 1.1 mrg main ()
5067 1.1 mrg {
5068 1.1 mrg #ifndef __GNUC__
5069 1.1 mrg choke me
5070 1.1 mrg #endif
5071 1.1 mrg
5072 1.1 mrg ;
5073 1.1 mrg return 0;
5074 1.1 mrg }
5075 1.1 mrg _ACEOF
5076 1.1 mrg if ac_fn_cxx_try_compile "$LINENO"; then :
5077 1.1 mrg ac_compiler_gnu=yes
5078 1.1 mrg else
5079 1.1 mrg ac_compiler_gnu=no
5080 1.1 mrg fi
5081 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 1.1 mrg ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5083 1.1 mrg
5084 1.1 mrg fi
5085 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5086 1.1 mrg $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5087 1.1 mrg if test $ac_compiler_gnu = yes; then
5088 1.1 mrg GXX=yes
5089 1.1 mrg else
5090 1.1 mrg GXX=
5091 1.1 mrg fi
5092 1.1 mrg ac_test_CXXFLAGS=${CXXFLAGS+set}
5093 1.1 mrg ac_save_CXXFLAGS=$CXXFLAGS
5094 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5095 1.1 mrg $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5096 1.12 mrg if ${ac_cv_prog_cxx_g+:} false; then :
5097 1.1 mrg $as_echo_n "(cached) " >&6
5098 1.1 mrg else
5099 1.1 mrg ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5100 1.1 mrg ac_cxx_werror_flag=yes
5101 1.1 mrg ac_cv_prog_cxx_g=no
5102 1.1 mrg CXXFLAGS="-g"
5103 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 1.1 mrg /* end confdefs.h. */
5105 1.1 mrg
5106 1.1 mrg int
5107 1.1 mrg main ()
5108 1.1 mrg {
5109 1.1 mrg
5110 1.1 mrg ;
5111 1.1 mrg return 0;
5112 1.1 mrg }
5113 1.1 mrg _ACEOF
5114 1.1 mrg if ac_fn_cxx_try_compile "$LINENO"; then :
5115 1.1 mrg ac_cv_prog_cxx_g=yes
5116 1.1 mrg else
5117 1.1 mrg CXXFLAGS=""
5118 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 1.1 mrg /* end confdefs.h. */
5120 1.1 mrg
5121 1.1 mrg int
5122 1.1 mrg main ()
5123 1.1 mrg {
5124 1.1 mrg
5125 1.1 mrg ;
5126 1.1 mrg return 0;
5127 1.1 mrg }
5128 1.1 mrg _ACEOF
5129 1.1 mrg if ac_fn_cxx_try_compile "$LINENO"; then :
5130 1.1 mrg
5131 1.1 mrg else
5132 1.1 mrg ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5133 1.1 mrg CXXFLAGS="-g"
5134 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 1.1 mrg /* end confdefs.h. */
5136 1.1 mrg
5137 1.1 mrg int
5138 1.1 mrg main ()
5139 1.1 mrg {
5140 1.1 mrg
5141 1.1 mrg ;
5142 1.1 mrg return 0;
5143 1.1 mrg }
5144 1.1 mrg _ACEOF
5145 1.1 mrg if ac_fn_cxx_try_compile "$LINENO"; then :
5146 1.1 mrg ac_cv_prog_cxx_g=yes
5147 1.1 mrg fi
5148 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 1.1 mrg fi
5150 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 1.1 mrg fi
5152 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 1.1 mrg ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5154 1.1 mrg fi
5155 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5156 1.1 mrg $as_echo "$ac_cv_prog_cxx_g" >&6; }
5157 1.1 mrg if test "$ac_test_CXXFLAGS" = set; then
5158 1.1 mrg CXXFLAGS=$ac_save_CXXFLAGS
5159 1.1 mrg elif test $ac_cv_prog_cxx_g = yes; then
5160 1.1 mrg if test "$GXX" = yes; then
5161 1.1 mrg CXXFLAGS="-g -O2"
5162 1.1 mrg else
5163 1.1 mrg CXXFLAGS="-g"
5164 1.1 mrg fi
5165 1.1 mrg else
5166 1.1 mrg if test "$GXX" = yes; then
5167 1.1 mrg CXXFLAGS="-O2"
5168 1.1 mrg else
5169 1.1 mrg CXXFLAGS=
5170 1.1 mrg fi
5171 1.1 mrg fi
5172 1.1 mrg ac_ext=c
5173 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
5174 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177 1.1 mrg
5178 1.1 mrg
5179 1.1 mrg # We must set the default linker to the linker used by gcc for the correct
5180 1.1 mrg # operation of libtool. If LD is not defined and we are using gcc, try to
5181 1.1 mrg # set the LD default to the ld used by gcc.
5182 1.1 mrg if test -z "$LD"; then
5183 1.1 mrg if test "$GCC" = yes; then
5184 1.1 mrg case $build in
5185 1.1 mrg *-*-mingw*)
5186 1.1 mrg gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5187 1.1 mrg *)
5188 1.1 mrg gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5189 1.1 mrg esac
5190 1.1 mrg case $gcc_prog_ld in
5191 1.1 mrg # Accept absolute paths.
5192 1.1 mrg [\\/]* | [A-Za-z]:[\\/]*)
5193 1.1 mrg LD="$gcc_prog_ld" ;;
5194 1.1 mrg esac
5195 1.1 mrg fi
5196 1.1 mrg fi
5197 1.1 mrg
5198 1.4 mrg # Check whether -static-libstdc++ -static-libgcc is supported.
5199 1.4 mrg have_static_libs=no
5200 1.4 mrg if test "$GCC" = yes; then
5201 1.4 mrg saved_LDFLAGS="$LDFLAGS"
5202 1.4 mrg
5203 1.4 mrg LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5204 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5205 1.4 mrg $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5206 1.4 mrg ac_ext=cpp
5207 1.4 mrg ac_cpp='$CXXCPP $CPPFLAGS'
5208 1.4 mrg ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 1.4 mrg ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 1.4 mrg ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211 1.4 mrg
5212 1.4 mrg
5213 1.4 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 1.4 mrg /* end confdefs.h. */
5215 1.4 mrg
5216 1.4 mrg #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5217 1.4 mrg #error -static-libstdc++ not implemented
5218 1.4 mrg #endif
5219 1.4 mrg int main() {}
5220 1.4 mrg _ACEOF
5221 1.4 mrg if ac_fn_cxx_try_link "$LINENO"; then :
5222 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 1.4 mrg $as_echo "yes" >&6; }; have_static_libs=yes
5224 1.4 mrg else
5225 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 1.4 mrg $as_echo "no" >&6; }
5227 1.4 mrg fi
5228 1.4 mrg rm -f core conftest.err conftest.$ac_objext \
5229 1.4 mrg conftest$ac_exeext conftest.$ac_ext
5230 1.4 mrg ac_ext=c
5231 1.4 mrg ac_cpp='$CPP $CPPFLAGS'
5232 1.4 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 1.4 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 1.4 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235 1.4 mrg
5236 1.4 mrg
5237 1.4 mrg LDFLAGS="$saved_LDFLAGS"
5238 1.4 mrg fi
5239 1.4 mrg
5240 1.1 mrg
5241 1.1 mrg
5242 1.1 mrg
5243 1.1 mrg if test -n "$ac_tool_prefix"; then
5244 1.1 mrg # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5245 1.1 mrg set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5246 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
5248 1.12 mrg if ${ac_cv_prog_GNATBIND+:} false; then :
5249 1.1 mrg $as_echo_n "(cached) " >&6
5250 1.1 mrg else
5251 1.1 mrg if test -n "$GNATBIND"; then
5252 1.1 mrg ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5253 1.1 mrg else
5254 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 1.1 mrg for as_dir in $PATH
5256 1.1 mrg do
5257 1.1 mrg IFS=$as_save_IFS
5258 1.1 mrg test -z "$as_dir" && as_dir=.
5259 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
5260 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 1.1 mrg ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5262 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 1.1 mrg break 2
5264 1.1 mrg fi
5265 1.1 mrg done
5266 1.1 mrg done
5267 1.1 mrg IFS=$as_save_IFS
5268 1.1 mrg
5269 1.1 mrg fi
5270 1.1 mrg fi
5271 1.1 mrg GNATBIND=$ac_cv_prog_GNATBIND
5272 1.1 mrg if test -n "$GNATBIND"; then
5273 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5274 1.1 mrg $as_echo "$GNATBIND" >&6; }
5275 1.1 mrg else
5276 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 1.1 mrg $as_echo "no" >&6; }
5278 1.1 mrg fi
5279 1.1 mrg
5280 1.1 mrg
5281 1.1 mrg fi
5282 1.1 mrg if test -z "$ac_cv_prog_GNATBIND"; then
5283 1.1 mrg ac_ct_GNATBIND=$GNATBIND
5284 1.1 mrg # Extract the first word of "gnatbind", so it can be a program name with args.
5285 1.1 mrg set dummy gnatbind; ac_word=$2
5286 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
5288 1.12 mrg if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5289 1.1 mrg $as_echo_n "(cached) " >&6
5290 1.1 mrg else
5291 1.1 mrg if test -n "$ac_ct_GNATBIND"; then
5292 1.1 mrg ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5293 1.1 mrg else
5294 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 1.1 mrg for as_dir in $PATH
5296 1.1 mrg do
5297 1.1 mrg IFS=$as_save_IFS
5298 1.1 mrg test -z "$as_dir" && as_dir=.
5299 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
5300 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 1.1 mrg ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5302 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 1.1 mrg break 2
5304 1.1 mrg fi
5305 1.1 mrg done
5306 1.1 mrg done
5307 1.1 mrg IFS=$as_save_IFS
5308 1.1 mrg
5309 1.1 mrg fi
5310 1.1 mrg fi
5311 1.1 mrg ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5312 1.1 mrg if test -n "$ac_ct_GNATBIND"; then
5313 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5314 1.1 mrg $as_echo "$ac_ct_GNATBIND" >&6; }
5315 1.1 mrg else
5316 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 1.1 mrg $as_echo "no" >&6; }
5318 1.1 mrg fi
5319 1.1 mrg
5320 1.1 mrg if test "x$ac_ct_GNATBIND" = x; then
5321 1.1 mrg GNATBIND="no"
5322 1.1 mrg else
5323 1.1 mrg case $cross_compiling:$ac_tool_warned in
5324 1.1 mrg yes:)
5325 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5326 1.1 mrg $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327 1.1 mrg ac_tool_warned=yes ;;
5328 1.1 mrg esac
5329 1.1 mrg GNATBIND=$ac_ct_GNATBIND
5330 1.1 mrg fi
5331 1.1 mrg else
5332 1.1 mrg GNATBIND="$ac_cv_prog_GNATBIND"
5333 1.1 mrg fi
5334 1.1 mrg
5335 1.1 mrg if test -n "$ac_tool_prefix"; then
5336 1.1 mrg # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5337 1.1 mrg set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5338 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
5340 1.12 mrg if ${ac_cv_prog_GNATMAKE+:} false; then :
5341 1.1 mrg $as_echo_n "(cached) " >&6
5342 1.1 mrg else
5343 1.1 mrg if test -n "$GNATMAKE"; then
5344 1.1 mrg ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5345 1.1 mrg else
5346 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 1.1 mrg for as_dir in $PATH
5348 1.1 mrg do
5349 1.1 mrg IFS=$as_save_IFS
5350 1.1 mrg test -z "$as_dir" && as_dir=.
5351 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
5352 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 1.1 mrg ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5354 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 1.1 mrg break 2
5356 1.1 mrg fi
5357 1.1 mrg done
5358 1.1 mrg done
5359 1.1 mrg IFS=$as_save_IFS
5360 1.1 mrg
5361 1.1 mrg fi
5362 1.1 mrg fi
5363 1.1 mrg GNATMAKE=$ac_cv_prog_GNATMAKE
5364 1.1 mrg if test -n "$GNATMAKE"; then
5365 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5366 1.1 mrg $as_echo "$GNATMAKE" >&6; }
5367 1.1 mrg else
5368 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 1.1 mrg $as_echo "no" >&6; }
5370 1.1 mrg fi
5371 1.1 mrg
5372 1.1 mrg
5373 1.1 mrg fi
5374 1.1 mrg if test -z "$ac_cv_prog_GNATMAKE"; then
5375 1.1 mrg ac_ct_GNATMAKE=$GNATMAKE
5376 1.1 mrg # Extract the first word of "gnatmake", so it can be a program name with args.
5377 1.1 mrg set dummy gnatmake; ac_word=$2
5378 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
5380 1.12 mrg if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5381 1.1 mrg $as_echo_n "(cached) " >&6
5382 1.1 mrg else
5383 1.1 mrg if test -n "$ac_ct_GNATMAKE"; then
5384 1.1 mrg ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5385 1.1 mrg else
5386 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 1.1 mrg for as_dir in $PATH
5388 1.1 mrg do
5389 1.1 mrg IFS=$as_save_IFS
5390 1.1 mrg test -z "$as_dir" && as_dir=.
5391 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
5392 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 1.1 mrg ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5394 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 1.1 mrg break 2
5396 1.1 mrg fi
5397 1.1 mrg done
5398 1.1 mrg done
5399 1.1 mrg IFS=$as_save_IFS
5400 1.1 mrg
5401 1.1 mrg fi
5402 1.1 mrg fi
5403 1.1 mrg ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5404 1.1 mrg if test -n "$ac_ct_GNATMAKE"; then
5405 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5406 1.1 mrg $as_echo "$ac_ct_GNATMAKE" >&6; }
5407 1.1 mrg else
5408 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 1.1 mrg $as_echo "no" >&6; }
5410 1.1 mrg fi
5411 1.1 mrg
5412 1.1 mrg if test "x$ac_ct_GNATMAKE" = x; then
5413 1.1 mrg GNATMAKE="no"
5414 1.1 mrg else
5415 1.1 mrg case $cross_compiling:$ac_tool_warned in
5416 1.1 mrg yes:)
5417 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5418 1.1 mrg $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5419 1.1 mrg ac_tool_warned=yes ;;
5420 1.1 mrg esac
5421 1.1 mrg GNATMAKE=$ac_ct_GNATMAKE
5422 1.1 mrg fi
5423 1.1 mrg else
5424 1.1 mrg GNATMAKE="$ac_cv_prog_GNATMAKE"
5425 1.1 mrg fi
5426 1.1 mrg
5427 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5428 1.1 mrg $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5429 1.12 mrg if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5430 1.1 mrg $as_echo_n "(cached) " >&6
5431 1.1 mrg else
5432 1.1 mrg cat >conftest.adb <<EOF
5433 1.1 mrg procedure conftest is begin null; end conftest;
5434 1.1 mrg EOF
5435 1.1 mrg acx_cv_cc_gcc_supports_ada=no
5436 1.1 mrg # There is a bug in old released versions of GCC which causes the
5437 1.1 mrg # driver to exit successfully when the appropriate language module
5438 1.1 mrg # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5439 1.1 mrg # Therefore we must check for the error message as well as an
5440 1.1 mrg # unsuccessful exit.
5441 1.1 mrg # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5442 1.1 mrg # given a .adb file, but produce no object file. So we must check
5443 1.1 mrg # if an object file was really produced to guard against this.
5444 1.1 mrg errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5445 1.1 mrg if test x"$errors" = x && test -f conftest.$ac_objext; then
5446 1.1 mrg acx_cv_cc_gcc_supports_ada=yes
5447 1.1 mrg fi
5448 1.1 mrg rm -f conftest.*
5449 1.1 mrg fi
5450 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5451 1.1 mrg $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5452 1.1 mrg
5453 1.1 mrg if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5454 1.1 mrg have_gnat=yes
5455 1.1 mrg else
5456 1.1 mrg have_gnat=no
5457 1.1 mrg fi
5458 1.1 mrg
5459 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5460 1.1 mrg $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5461 1.12 mrg if ${gcc_cv_prog_cmp_skip+:} false; then :
5462 1.1 mrg $as_echo_n "(cached) " >&6
5463 1.1 mrg else
5464 1.1 mrg echo abfoo >t1
5465 1.1 mrg echo cdfoo >t2
5466 1.10 mrg gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5467 1.1 mrg if cmp t1 t2 2 2 > /dev/null 2>&1; then
5468 1.1 mrg if cmp t1 t2 1 1 > /dev/null 2>&1; then
5469 1.1 mrg :
5470 1.1 mrg else
5471 1.1 mrg gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5472 1.1 mrg fi
5473 1.1 mrg fi
5474 1.1 mrg if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5475 1.1 mrg if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5476 1.1 mrg :
5477 1.1 mrg else
5478 1.1 mrg gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5479 1.1 mrg fi
5480 1.1 mrg fi
5481 1.1 mrg rm t1 t2
5482 1.1 mrg
5483 1.1 mrg fi
5484 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5485 1.1 mrg $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5486 1.1 mrg do_compare="$gcc_cv_prog_cmp_skip"
5487 1.1 mrg
5488 1.1 mrg
5489 1.1 mrg
5490 1.4 mrg # Check whether --enable-bootstrap was given.
5491 1.4 mrg if test "${enable_bootstrap+set}" = set; then :
5492 1.4 mrg enableval=$enable_bootstrap;
5493 1.4 mrg else
5494 1.4 mrg enable_bootstrap=default
5495 1.4 mrg fi
5496 1.4 mrg
5497 1.4 mrg
5498 1.4 mrg # Issue errors and warnings for invalid/strange bootstrap combinations.
5499 1.4 mrg if test -r $srcdir/gcc/configure; then
5500 1.4 mrg have_compiler=yes
5501 1.1 mrg else
5502 1.4 mrg have_compiler=no
5503 1.1 mrg fi
5504 1.1 mrg
5505 1.4 mrg case "$have_compiler:$host:$target:$enable_bootstrap" in
5506 1.4 mrg *:*:*:no) ;;
5507 1.4 mrg
5508 1.4 mrg # Default behavior. Enable bootstrap if we have a compiler
5509 1.4 mrg # and we are in a native configuration.
5510 1.4 mrg yes:$build:$build:default)
5511 1.4 mrg enable_bootstrap=yes ;;
5512 1.4 mrg
5513 1.4 mrg *:*:*:default)
5514 1.4 mrg enable_bootstrap=no ;;
5515 1.4 mrg
5516 1.4 mrg # We have a compiler and we are in a native configuration, bootstrap is ok
5517 1.4 mrg yes:$build:$build:yes)
5518 1.4 mrg ;;
5519 1.4 mrg
5520 1.4 mrg # Other configurations, but we have a compiler. Assume the user knows
5521 1.4 mrg # what he's doing.
5522 1.4 mrg yes:*:*:yes)
5523 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5524 1.4 mrg $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5525 1.4 mrg ;;
5526 1.4 mrg
5527 1.4 mrg # No compiler: if they passed --enable-bootstrap explicitly, fail
5528 1.4 mrg no:*:*:yes)
5529 1.12 mrg as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5530 1.4 mrg
5531 1.4 mrg # Fail if wrong command line
5532 1.4 mrg *)
5533 1.12 mrg as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5534 1.4 mrg ;;
5535 1.4 mrg esac
5536 1.1 mrg
5537 1.8 mrg # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5538 1.8 mrg # C++98 compiler can still start the bootstrap.
5539 1.8 mrg if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5540 1.8 mrg CXX="$CXX -std=gnu++98"
5541 1.8 mrg fi
5542 1.8 mrg
5543 1.1 mrg # Used for setting $lt_cv_objdir
5544 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5545 1.1 mrg $as_echo_n "checking for objdir... " >&6; }
5546 1.12 mrg if ${lt_cv_objdir+:} false; then :
5547 1.1 mrg $as_echo_n "(cached) " >&6
5548 1.1 mrg else
5549 1.1 mrg rm -f .libs 2>/dev/null
5550 1.1 mrg mkdir .libs 2>/dev/null
5551 1.1 mrg if test -d .libs; then
5552 1.1 mrg lt_cv_objdir=.libs
5553 1.1 mrg else
5554 1.1 mrg # MS-DOS does not allow filenames that begin with a dot.
5555 1.1 mrg lt_cv_objdir=_libs
5556 1.1 mrg fi
5557 1.1 mrg rmdir .libs 2>/dev/null
5558 1.1 mrg fi
5559 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5560 1.1 mrg $as_echo "$lt_cv_objdir" >&6; }
5561 1.1 mrg objdir=$lt_cv_objdir
5562 1.1 mrg
5563 1.1 mrg
5564 1.1 mrg
5565 1.1 mrg
5566 1.1 mrg
5567 1.1 mrg cat >>confdefs.h <<_ACEOF
5568 1.1 mrg #define LT_OBJDIR "$lt_cv_objdir/"
5569 1.1 mrg _ACEOF
5570 1.1 mrg
5571 1.1 mrg
5572 1.1 mrg
5573 1.1 mrg # Check for GMP, MPFR and MPC
5574 1.1 mrg gmplibs="-lmpc -lmpfr -lgmp"
5575 1.1 mrg gmpinc=
5576 1.1 mrg have_gmp=no
5577 1.1 mrg
5578 1.1 mrg # Specify a location for mpc
5579 1.1 mrg # check for this first so it ends up on the link line before mpfr.
5580 1.1 mrg
5581 1.1 mrg # Check whether --with-mpc was given.
5582 1.1 mrg if test "${with_mpc+set}" = set; then :
5583 1.1 mrg withval=$with_mpc;
5584 1.1 mrg fi
5585 1.1 mrg
5586 1.1 mrg
5587 1.4 mrg # Check whether --with-mpc-include was given.
5588 1.1 mrg if test "${with_mpc_include+set}" = set; then :
5589 1.1 mrg withval=$with_mpc_include;
5590 1.1 mrg fi
5591 1.1 mrg
5592 1.1 mrg
5593 1.4 mrg # Check whether --with-mpc-lib was given.
5594 1.1 mrg if test "${with_mpc_lib+set}" = set; then :
5595 1.1 mrg withval=$with_mpc_lib;
5596 1.1 mrg fi
5597 1.1 mrg
5598 1.1 mrg
5599 1.1 mrg if test "x$with_mpc" != x; then
5600 1.1 mrg gmplibs="-L$with_mpc/lib $gmplibs"
5601 1.1 mrg gmpinc="-I$with_mpc/include $gmpinc"
5602 1.1 mrg fi
5603 1.1 mrg if test "x$with_mpc_include" != x; then
5604 1.1 mrg gmpinc="-I$with_mpc_include $gmpinc"
5605 1.1 mrg fi
5606 1.1 mrg if test "x$with_mpc_lib" != x; then
5607 1.1 mrg gmplibs="-L$with_mpc_lib $gmplibs"
5608 1.1 mrg fi
5609 1.1 mrg if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5610 1.1 mrg gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5611 1.1 mrg gmpinc='-I$$s/mpc/src '"$gmpinc"
5612 1.1 mrg # Do not test the mpc version. Assume that it is sufficient, since
5613 1.1 mrg # it is in the source tree, and the library has not been built yet
5614 1.1 mrg # but it would be included on the link line in the version check below
5615 1.1 mrg # hence making the test fail.
5616 1.1 mrg have_gmp=yes
5617 1.1 mrg fi
5618 1.1 mrg
5619 1.1 mrg # Specify a location for mpfr
5620 1.1 mrg # check for this first so it ends up on the link line before gmp.
5621 1.1 mrg
5622 1.1 mrg # Check whether --with-mpfr-dir was given.
5623 1.1 mrg if test "${with_mpfr_dir+set}" = set; then :
5624 1.12 mrg withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5625 1.1 mrg Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5626 1.1 mrg fi
5627 1.1 mrg
5628 1.1 mrg
5629 1.1 mrg
5630 1.1 mrg # Check whether --with-mpfr was given.
5631 1.1 mrg if test "${with_mpfr+set}" = set; then :
5632 1.1 mrg withval=$with_mpfr;
5633 1.1 mrg fi
5634 1.1 mrg
5635 1.1 mrg
5636 1.4 mrg # Check whether --with-mpfr-include was given.
5637 1.1 mrg if test "${with_mpfr_include+set}" = set; then :
5638 1.1 mrg withval=$with_mpfr_include;
5639 1.1 mrg fi
5640 1.1 mrg
5641 1.1 mrg
5642 1.4 mrg # Check whether --with-mpfr-lib was given.
5643 1.1 mrg if test "${with_mpfr_lib+set}" = set; then :
5644 1.1 mrg withval=$with_mpfr_lib;
5645 1.1 mrg fi
5646 1.1 mrg
5647 1.1 mrg
5648 1.1 mrg if test "x$with_mpfr" != x; then
5649 1.1 mrg gmplibs="-L$with_mpfr/lib $gmplibs"
5650 1.1 mrg gmpinc="-I$with_mpfr/include $gmpinc"
5651 1.1 mrg fi
5652 1.1 mrg if test "x$with_mpfr_include" != x; then
5653 1.1 mrg gmpinc="-I$with_mpfr_include $gmpinc"
5654 1.1 mrg fi
5655 1.1 mrg if test "x$with_mpfr_lib" != x; then
5656 1.1 mrg gmplibs="-L$with_mpfr_lib $gmplibs"
5657 1.1 mrg fi
5658 1.1 mrg if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5659 1.4 mrg # MPFR v3.1.0 moved the sources into a src sub-directory.
5660 1.10 mrg if ! test -d ${srcdir}/mpfr/src; then
5661 1.12 mrg as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5662 1.4 mrg fi
5663 1.10 mrg gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5664 1.10 mrg gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5665 1.10 mrg extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5666 1.1 mrg # Do not test the mpfr version. Assume that it is sufficient, since
5667 1.1 mrg # it is in the source tree, and the library has not been built yet
5668 1.1 mrg # but it would be included on the link line in the version check below
5669 1.1 mrg # hence making the test fail.
5670 1.1 mrg have_gmp=yes
5671 1.1 mrg fi
5672 1.1 mrg
5673 1.1 mrg # Specify a location for gmp
5674 1.1 mrg
5675 1.1 mrg # Check whether --with-gmp-dir was given.
5676 1.1 mrg if test "${with_gmp_dir+set}" = set; then :
5677 1.12 mrg withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5678 1.1 mrg Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5679 1.1 mrg fi
5680 1.1 mrg
5681 1.1 mrg
5682 1.1 mrg
5683 1.1 mrg # Check whether --with-gmp was given.
5684 1.1 mrg if test "${with_gmp+set}" = set; then :
5685 1.1 mrg withval=$with_gmp;
5686 1.1 mrg fi
5687 1.1 mrg
5688 1.1 mrg
5689 1.4 mrg # Check whether --with-gmp-include was given.
5690 1.1 mrg if test "${with_gmp_include+set}" = set; then :
5691 1.1 mrg withval=$with_gmp_include;
5692 1.1 mrg fi
5693 1.1 mrg
5694 1.1 mrg
5695 1.4 mrg # Check whether --with-gmp-lib was given.
5696 1.1 mrg if test "${with_gmp_lib+set}" = set; then :
5697 1.1 mrg withval=$with_gmp_lib;
5698 1.1 mrg fi
5699 1.1 mrg
5700 1.1 mrg
5701 1.1 mrg
5702 1.1 mrg if test "x$with_gmp" != x; then
5703 1.1 mrg gmplibs="-L$with_gmp/lib $gmplibs"
5704 1.1 mrg gmpinc="-I$with_gmp/include $gmpinc"
5705 1.1 mrg fi
5706 1.1 mrg if test "x$with_gmp_include" != x; then
5707 1.1 mrg gmpinc="-I$with_gmp_include $gmpinc"
5708 1.1 mrg fi
5709 1.1 mrg if test "x$with_gmp_lib" != x; then
5710 1.1 mrg gmplibs="-L$with_gmp_lib $gmplibs"
5711 1.1 mrg fi
5712 1.1 mrg if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5713 1.1 mrg gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5714 1.1 mrg gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5715 1.1 mrg extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5716 1.1 mrg extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5717 1.4 mrg extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5718 1.1 mrg # Do not test the gmp version. Assume that it is sufficient, since
5719 1.1 mrg # it is in the source tree, and the library has not been built yet
5720 1.1 mrg # but it would be included on the link line in the version check below
5721 1.1 mrg # hence making the test fail.
5722 1.1 mrg have_gmp=yes
5723 1.1 mrg fi
5724 1.1 mrg
5725 1.1 mrg if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5726 1.1 mrg have_gmp=yes
5727 1.1 mrg saved_CFLAGS="$CFLAGS"
5728 1.1 mrg CFLAGS="$CFLAGS $gmpinc"
5729 1.1 mrg # Check for the recommended and required versions of GMP.
5730 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5731 1.1 mrg $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5732 1.1 mrg
5733 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 1.1 mrg /* end confdefs.h. */
5735 1.1 mrg #include "gmp.h"
5736 1.1 mrg int
5737 1.1 mrg main ()
5738 1.1 mrg {
5739 1.1 mrg
5740 1.1 mrg #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5741 1.1 mrg #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5742 1.4 mrg #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5743 1.1 mrg choke me
5744 1.1 mrg #endif
5745 1.1 mrg
5746 1.1 mrg ;
5747 1.1 mrg return 0;
5748 1.1 mrg }
5749 1.1 mrg _ACEOF
5750 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
5751 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 1.1 mrg /* end confdefs.h. */
5753 1.1 mrg #include <gmp.h>
5754 1.1 mrg int
5755 1.1 mrg main ()
5756 1.1 mrg {
5757 1.1 mrg
5758 1.1 mrg #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5759 1.1 mrg #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5760 1.1 mrg #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5761 1.1 mrg choke me
5762 1.1 mrg #endif
5763 1.1 mrg
5764 1.1 mrg ;
5765 1.1 mrg return 0;
5766 1.1 mrg }
5767 1.1 mrg _ACEOF
5768 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
5769 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770 1.1 mrg $as_echo "yes" >&6; }
5771 1.1 mrg else
5772 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5773 1.1 mrg $as_echo "buggy but acceptable" >&6; }
5774 1.1 mrg fi
5775 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 1.1 mrg else
5777 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 1.1 mrg $as_echo "no" >&6; }; have_gmp=no
5779 1.1 mrg fi
5780 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 1.1 mrg
5782 1.1 mrg # If we have GMP, check the MPFR version.
5783 1.1 mrg if test x"$have_gmp" = xyes; then
5784 1.1 mrg # Check for the recommended and required versions of MPFR.
5785 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5786 1.1 mrg $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5787 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 1.1 mrg /* end confdefs.h. */
5789 1.1 mrg #include <gmp.h>
5790 1.1 mrg #include <mpfr.h>
5791 1.1 mrg int
5792 1.1 mrg main ()
5793 1.1 mrg {
5794 1.1 mrg
5795 1.13 mrg #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
5796 1.1 mrg choke me
5797 1.1 mrg #endif
5798 1.1 mrg
5799 1.1 mrg ;
5800 1.1 mrg return 0;
5801 1.1 mrg }
5802 1.1 mrg _ACEOF
5803 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
5804 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 1.1 mrg /* end confdefs.h. */
5806 1.1 mrg #include <gmp.h>
5807 1.1 mrg #include <mpfr.h>
5808 1.1 mrg int
5809 1.1 mrg main ()
5810 1.1 mrg {
5811 1.1 mrg
5812 1.13 mrg #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
5813 1.1 mrg choke me
5814 1.1 mrg #endif
5815 1.1 mrg
5816 1.1 mrg ;
5817 1.1 mrg return 0;
5818 1.1 mrg }
5819 1.1 mrg _ACEOF
5820 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
5821 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5822 1.1 mrg $as_echo "yes" >&6; }
5823 1.1 mrg else
5824 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5825 1.1 mrg $as_echo "buggy but acceptable" >&6; }
5826 1.1 mrg fi
5827 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 1.1 mrg else
5829 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 1.1 mrg $as_echo "no" >&6; }; have_gmp=no
5831 1.1 mrg fi
5832 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 1.1 mrg fi
5834 1.1 mrg
5835 1.1 mrg # Check for the MPC header version.
5836 1.1 mrg if test x"$have_gmp" = xyes ; then
5837 1.1 mrg # Check for the recommended and required versions of MPC.
5838 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5839 1.1 mrg $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5840 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 1.1 mrg /* end confdefs.h. */
5842 1.1 mrg #include <mpc.h>
5843 1.1 mrg int
5844 1.1 mrg main ()
5845 1.1 mrg {
5846 1.1 mrg
5847 1.1 mrg #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5848 1.1 mrg choke me
5849 1.1 mrg #endif
5850 1.1 mrg
5851 1.1 mrg ;
5852 1.1 mrg return 0;
5853 1.1 mrg }
5854 1.1 mrg _ACEOF
5855 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
5856 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 1.1 mrg /* end confdefs.h. */
5858 1.1 mrg #include <mpc.h>
5859 1.1 mrg int
5860 1.1 mrg main ()
5861 1.1 mrg {
5862 1.1 mrg
5863 1.1 mrg #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5864 1.1 mrg choke me
5865 1.1 mrg #endif
5866 1.1 mrg
5867 1.1 mrg ;
5868 1.1 mrg return 0;
5869 1.1 mrg }
5870 1.1 mrg _ACEOF
5871 1.1 mrg if ac_fn_c_try_compile "$LINENO"; then :
5872 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873 1.1 mrg $as_echo "yes" >&6; }
5874 1.1 mrg else
5875 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5876 1.1 mrg $as_echo "buggy but acceptable" >&6; }
5877 1.1 mrg fi
5878 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 1.1 mrg else
5880 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 1.1 mrg $as_echo "no" >&6; }; have_gmp=no
5882 1.1 mrg fi
5883 1.1 mrg rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 1.1 mrg fi
5885 1.1 mrg
5886 1.1 mrg # Now check the MPFR library.
5887 1.1 mrg if test x"$have_gmp" = xyes; then
5888 1.1 mrg saved_LIBS="$LIBS"
5889 1.1 mrg LIBS="$LIBS $gmplibs"
5890 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5891 1.1 mrg $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5892 1.1 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 1.1 mrg /* end confdefs.h. */
5894 1.1 mrg #include <mpc.h>
5895 1.1 mrg int
5896 1.1 mrg main ()
5897 1.1 mrg {
5898 1.1 mrg
5899 1.1 mrg mpfr_t n;
5900 1.1 mrg mpfr_t x;
5901 1.1 mrg mpc_t c;
5902 1.1 mrg int t;
5903 1.1 mrg mpfr_init (n);
5904 1.1 mrg mpfr_init (x);
5905 1.13 mrg mpfr_atan2 (n, n, x, MPFR_RNDN);
5906 1.13 mrg mpfr_erfc (n, x, MPFR_RNDN);
5907 1.13 mrg mpfr_subnormalize (x, t, MPFR_RNDN);
5908 1.1 mrg mpfr_clear(n);
5909 1.1 mrg mpfr_clear(x);
5910 1.1 mrg mpc_init2 (c, 53);
5911 1.1 mrg mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5912 1.1 mrg mpc_cosh (c, c, MPC_RNDNN);
5913 1.1 mrg mpc_pow (c, c, c, MPC_RNDNN);
5914 1.1 mrg mpc_acosh (c, c, MPC_RNDNN);
5915 1.1 mrg mpc_clear (c);
5916 1.1 mrg
5917 1.1 mrg ;
5918 1.1 mrg return 0;
5919 1.1 mrg }
5920 1.1 mrg _ACEOF
5921 1.1 mrg if ac_fn_c_try_link "$LINENO"; then :
5922 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5923 1.1 mrg $as_echo "yes" >&6; }
5924 1.1 mrg else
5925 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 1.1 mrg $as_echo "no" >&6; }; have_gmp=no
5927 1.1 mrg fi
5928 1.1 mrg rm -f core conftest.err conftest.$ac_objext \
5929 1.1 mrg conftest$ac_exeext conftest.$ac_ext
5930 1.1 mrg LIBS="$saved_LIBS"
5931 1.1 mrg fi
5932 1.1 mrg
5933 1.1 mrg CFLAGS="$saved_CFLAGS"
5934 1.1 mrg
5935 1.1 mrg # The library versions listed in the error message below should match
5936 1.1 mrg # the HARD-minimums enforced above.
5937 1.1 mrg if test x$have_gmp != xyes; then
5938 1.13 mrg as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
5939 1.1 mrg Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5940 1.1 mrg their locations. Source code for these libraries can be found at
5941 1.1 mrg their respective hosting sites as well as at
5942 1.13 mrg https://gcc.gnu.org/pub/gcc/infrastructure/. See also
5943 1.1 mrg http://gcc.gnu.org/install/prerequisites.html for additional info. If
5944 1.1 mrg you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5945 1.1 mrg make sure that you have installed both the libraries and the header
5946 1.1 mrg files. They may be located in separate packages." "$LINENO" 5
5947 1.1 mrg fi
5948 1.1 mrg fi
5949 1.1 mrg
5950 1.1 mrg # Flags needed for both GMP, MPFR and/or MPC.
5951 1.1 mrg
5952 1.1 mrg
5953 1.1 mrg
5954 1.1 mrg
5955 1.1 mrg
5956 1.1 mrg
5957 1.4 mrg
5958 1.1 mrg # Libraries to use for stage1 or when not bootstrapping.
5959 1.1 mrg
5960 1.1 mrg # Check whether --with-stage1-libs was given.
5961 1.1 mrg if test "${with_stage1_libs+set}" = set; then :
5962 1.1 mrg withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5963 1.1 mrg stage1_libs=
5964 1.1 mrg else
5965 1.1 mrg stage1_libs=$withval
5966 1.1 mrg fi
5967 1.1 mrg else
5968 1.8 mrg stage1_libs=
5969 1.1 mrg fi
5970 1.1 mrg
5971 1.1 mrg
5972 1.1 mrg
5973 1.13 mrg # Whether or not to use -static-libstdc++ and -static-libgcc. The
5974 1.13 mrg # default is yes if gcc is being built; no otherwise. The reason for
5975 1.13 mrg # this default is that gdb is sometimes linked against GNU Source
5976 1.13 mrg # Highlight, which is a shared library that uses C++ exceptions. In
5977 1.13 mrg # this case, -static-libstdc++ will cause crashes.
5978 1.13 mrg
5979 1.13 mrg # Check whether --with-static-standard-libraries was given.
5980 1.13 mrg if test "${with_static_standard_libraries+set}" = set; then :
5981 1.13 mrg withval=$with_static_standard_libraries;
5982 1.13 mrg else
5983 1.13 mrg with_static_standard_libraries=auto
5984 1.13 mrg fi
5985 1.13 mrg
5986 1.13 mrg if test "$with_static_standard_libraries" = auto; then
5987 1.13 mrg with_static_standard_libraries=$have_compiler
5988 1.13 mrg fi
5989 1.13 mrg
5990 1.4 mrg # Linker flags to use for stage1 or when not bootstrapping.
5991 1.1 mrg
5992 1.4 mrg # Check whether --with-stage1-ldflags was given.
5993 1.4 mrg if test "${with_stage1_ldflags+set}" = set; then :
5994 1.4 mrg withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5995 1.4 mrg stage1_ldflags=
5996 1.1 mrg else
5997 1.4 mrg stage1_ldflags=$withval
5998 1.1 mrg fi
5999 1.1 mrg else
6000 1.4 mrg stage1_ldflags=
6001 1.4 mrg # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6002 1.4 mrg # if supported. But if the user explicitly specified the libraries to use,
6003 1.4 mrg # trust that they are doing what they want.
6004 1.13 mrg if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6005 1.13 mrg -a "$have_static_libs" = yes; then
6006 1.4 mrg stage1_ldflags="-static-libstdc++ -static-libgcc"
6007 1.1 mrg fi
6008 1.1 mrg fi
6009 1.1 mrg
6010 1.1 mrg
6011 1.1 mrg
6012 1.8 mrg # Libraries to use for stage2 and later builds.
6013 1.1 mrg
6014 1.4 mrg # Check whether --with-boot-libs was given.
6015 1.4 mrg if test "${with_boot_libs+set}" = set; then :
6016 1.4 mrg withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6017 1.4 mrg poststage1_libs=
6018 1.4 mrg else
6019 1.4 mrg poststage1_libs=$withval
6020 1.4 mrg fi
6021 1.1 mrg else
6022 1.8 mrg poststage1_libs=
6023 1.1 mrg fi
6024 1.1 mrg
6025 1.1 mrg
6026 1.1 mrg
6027 1.4 mrg # Linker flags to use for stage2 and later builds.
6028 1.1 mrg
6029 1.4 mrg # Check whether --with-boot-ldflags was given.
6030 1.4 mrg if test "${with_boot_ldflags+set}" = set; then :
6031 1.4 mrg withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6032 1.4 mrg poststage1_ldflags=
6033 1.4 mrg else
6034 1.4 mrg poststage1_ldflags=$withval
6035 1.4 mrg fi
6036 1.1 mrg else
6037 1.4 mrg poststage1_ldflags=
6038 1.4 mrg # In stages 2 and 3, default to linking libstdc++ and libgcc
6039 1.4 mrg # statically. But if the user explicitly specified the libraries to
6040 1.4 mrg # use, trust that they are doing what they want.
6041 1.4 mrg if test "$poststage1_libs" = ""; then
6042 1.4 mrg poststage1_ldflags="-static-libstdc++ -static-libgcc"
6043 1.4 mrg fi
6044 1.1 mrg fi
6045 1.1 mrg
6046 1.4 mrg
6047 1.4 mrg
6048 1.8 mrg # GCC GRAPHITE dependency isl.
6049 1.6 mrg # Basic setup is inlined here, actual checks are in config/isl.m4
6050 1.1 mrg
6051 1.4 mrg
6052 1.4 mrg # Check whether --with-isl was given.
6053 1.4 mrg if test "${with_isl+set}" = set; then :
6054 1.4 mrg withval=$with_isl;
6055 1.1 mrg fi
6056 1.1 mrg
6057 1.1 mrg
6058 1.6 mrg # Treat --without-isl as a request to disable
6059 1.4 mrg # GRAPHITE support and skip all following checks.
6060 1.6 mrg if test "x$with_isl" != "xno"; then
6061 1.8 mrg # Check for isl
6062 1.4 mrg
6063 1.4 mrg
6064 1.4 mrg # Check whether --with-isl-include was given.
6065 1.4 mrg if test "${with_isl_include+set}" = set; then :
6066 1.4 mrg withval=$with_isl_include;
6067 1.1 mrg fi
6068 1.4 mrg
6069 1.4 mrg
6070 1.4 mrg # Check whether --with-isl-lib was given.
6071 1.4 mrg if test "${with_isl_lib+set}" = set; then :
6072 1.4 mrg withval=$with_isl_lib;
6073 1.1 mrg fi
6074 1.1 mrg
6075 1.4 mrg
6076 1.4 mrg # Check whether --enable-isl-version-check was given.
6077 1.4 mrg if test "${enable_isl_version_check+set}" = set; then :
6078 1.4 mrg enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6079 1.1 mrg else
6080 1.4 mrg ENABLE_ISL_CHECK=yes
6081 1.1 mrg fi
6082 1.1 mrg
6083 1.1 mrg
6084 1.4 mrg # Initialize isllibs and islinc.
6085 1.4 mrg case $with_isl in
6086 1.4 mrg no)
6087 1.4 mrg isllibs=
6088 1.4 mrg islinc=
6089 1.4 mrg ;;
6090 1.4 mrg "" | yes)
6091 1.4 mrg ;;
6092 1.4 mrg *)
6093 1.4 mrg isllibs="-L$with_isl/lib"
6094 1.4 mrg islinc="-I$with_isl/include"
6095 1.4 mrg ;;
6096 1.4 mrg esac
6097 1.4 mrg if test "x${with_isl_include}" != x ; then
6098 1.4 mrg islinc="-I$with_isl_include"
6099 1.4 mrg fi
6100 1.4 mrg if test "x${with_isl_lib}" != x; then
6101 1.4 mrg isllibs="-L$with_isl_lib"
6102 1.4 mrg fi
6103 1.4 mrg if test "x${islinc}" = x && test "x${isllibs}" = x \
6104 1.4 mrg && test -d ${srcdir}/isl; then
6105 1.4 mrg isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6106 1.4 mrg islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6107 1.4 mrg ENABLE_ISL_CHECK=no
6108 1.8 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6109 1.8 mrg $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6110 1.4 mrg fi
6111 1.4 mrg
6112 1.6 mrg isllibs="${isllibs} -lisl"
6113 1.6 mrg
6114 1.1 mrg
6115 1.1 mrg
6116 1.4 mrg if test "${ENABLE_ISL_CHECK}" = yes ; then
6117 1.4 mrg _isl_saved_CFLAGS=$CFLAGS
6118 1.4 mrg _isl_saved_LDFLAGS=$LDFLAGS
6119 1.4 mrg _isl_saved_LIBS=$LIBS
6120 1.1 mrg
6121 1.4 mrg CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6122 1.8 mrg LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6123 1.8 mrg LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6124 1.1 mrg
6125 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6126 1.10 mrg $as_echo_n "checking for isl 0.15 or later... " >&6; }
6127 1.6 mrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 1.4 mrg /* end confdefs.h. */
6129 1.10 mrg #include <isl/schedule.h>
6130 1.4 mrg int
6131 1.4 mrg main ()
6132 1.4 mrg {
6133 1.10 mrg isl_options_set_schedule_serialize_sccs (NULL, 0);
6134 1.4 mrg ;
6135 1.4 mrg return 0;
6136 1.4 mrg }
6137 1.4 mrg _ACEOF
6138 1.6 mrg if ac_fn_c_try_link "$LINENO"; then :
6139 1.4 mrg gcc_cv_isl=yes
6140 1.1 mrg else
6141 1.4 mrg gcc_cv_isl=no
6142 1.4 mrg fi
6143 1.6 mrg rm -f core conftest.err conftest.$ac_objext \
6144 1.6 mrg conftest$ac_exeext conftest.$ac_ext
6145 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6146 1.4 mrg $as_echo "$gcc_cv_isl" >&6; }
6147 1.1 mrg
6148 1.8 mrg if test "${gcc_cv_isl}" = no ; then
6149 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6150 1.10 mrg $as_echo "required isl version is 0.15 or later" >&6; }
6151 1.8 mrg fi
6152 1.8 mrg
6153 1.4 mrg CFLAGS=$_isl_saved_CFLAGS
6154 1.4 mrg LDFLAGS=$_isl_saved_LDFLAGS
6155 1.4 mrg LIBS=$_isl_saved_LIBS
6156 1.4 mrg fi
6157 1.1 mrg
6158 1.1 mrg
6159 1.1 mrg
6160 1.1 mrg
6161 1.1 mrg
6162 1.1 mrg
6163 1.6 mrg if test "x${with_isl}" = xno; then
6164 1.6 mrg graphite_requested=no
6165 1.6 mrg elif test "x${with_isl}" != x \
6166 1.6 mrg || test "x${with_isl_include}" != x \
6167 1.6 mrg || test "x${with_isl_lib}" != x ; then
6168 1.6 mrg graphite_requested=yes
6169 1.6 mrg else
6170 1.6 mrg graphite_requested=no
6171 1.6 mrg fi
6172 1.6 mrg
6173 1.6 mrg
6174 1.6 mrg
6175 1.6 mrg if test "${gcc_cv_isl}" = no ; then
6176 1.6 mrg isllibs=
6177 1.6 mrg islinc=
6178 1.6 mrg fi
6179 1.1 mrg
6180 1.6 mrg if test "${graphite_requested}" = yes \
6181 1.6 mrg && test "x${isllibs}" = x \
6182 1.6 mrg && test "x${islinc}" = x ; then
6183 1.4 mrg
6184 1.12 mrg as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6185 1.4 mrg fi
6186 1.4 mrg
6187 1.4 mrg
6188 1.6 mrg fi
6189 1.6 mrg
6190 1.8 mrg # If the isl check failed, disable builds of in-tree variant of isl
6191 1.6 mrg if test "x$with_isl" = xno ||
6192 1.6 mrg test "x$gcc_cv_isl" = xno; then
6193 1.6 mrg noconfigdirs="$noconfigdirs isl"
6194 1.6 mrg islinc=
6195 1.6 mrg fi
6196 1.4 mrg
6197 1.4 mrg
6198 1.4 mrg
6199 1.1 mrg
6200 1.6 mrg # Check for LTO support.
6201 1.6 mrg # Check whether --enable-lto was given.
6202 1.6 mrg if test "${enable_lto+set}" = set; then :
6203 1.6 mrg enableval=$enable_lto; enable_lto=$enableval
6204 1.1 mrg else
6205 1.6 mrg enable_lto=yes; default_enable_lto=yes
6206 1.1 mrg fi
6207 1.1 mrg
6208 1.4 mrg
6209 1.1 mrg
6210 1.1 mrg
6211 1.1 mrg
6212 1.6 mrg target_elf=no
6213 1.6 mrg case $target in
6214 1.6 mrg *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6215 1.6 mrg *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6216 1.6 mrg alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6217 1.6 mrg nvptx-*-none)
6218 1.6 mrg target_elf=no
6219 1.6 mrg ;;
6220 1.6 mrg *)
6221 1.6 mrg target_elf=yes
6222 1.6 mrg ;;
6223 1.6 mrg esac
6224 1.1 mrg
6225 1.6 mrg if test $target_elf = yes; then :
6226 1.6 mrg # ELF platforms build the lto-plugin always.
6227 1.6 mrg case $target in
6228 1.6 mrg m68010-*)
6229 1.6 mrg build_lto_plugin=no;;
6230 1.4 mrg *)
6231 1.4 mrg build_lto_plugin=yes;;
6232 1.4 mrg esac
6233 1.6 mrg
6234 1.1 mrg else
6235 1.1 mrg if test x"$default_enable_lto" = x"yes" ; then
6236 1.4 mrg case $target in
6237 1.10 mrg *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6238 1.4 mrg # On other non-ELF platforms, LTO has yet to be validated.
6239 1.4 mrg *) enable_lto=no ;;
6240 1.4 mrg esac
6241 1.1 mrg else
6242 1.4 mrg # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6243 1.4 mrg # It would also be nice to check the binutils support, but we don't
6244 1.1 mrg # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6245 1.1 mrg # warn during gcc/ subconfigure; unless you're bootstrapping with
6246 1.1 mrg # -flto it won't be needed until after installation anyway.
6247 1.1 mrg case $target in
6248 1.8 mrg *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6249 1.1 mrg *) if test x"$enable_lto" = x"yes"; then
6250 1.12 mrg as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6251 1.1 mrg fi
6252 1.1 mrg ;;
6253 1.1 mrg esac
6254 1.1 mrg fi
6255 1.4 mrg # Among non-ELF, only Windows platforms support the lto-plugin so far.
6256 1.4 mrg # Build it unless LTO was explicitly disabled.
6257 1.4 mrg case $target in
6258 1.4 mrg *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6259 1.4 mrg *) ;;
6260 1.4 mrg esac
6261 1.4 mrg
6262 1.1 mrg fi
6263 1.1 mrg
6264 1.1 mrg
6265 1.6 mrg # Check whether --enable-linker-plugin-configure-flags was given.
6266 1.6 mrg if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6267 1.6 mrg enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6268 1.6 mrg else
6269 1.6 mrg extra_linker_plugin_configure_flags=
6270 1.6 mrg fi
6271 1.6 mrg
6272 1.6 mrg
6273 1.6 mrg # Check whether --enable-linker-plugin-flags was given.
6274 1.6 mrg if test "${enable_linker_plugin_flags+set}" = set; then :
6275 1.6 mrg enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6276 1.6 mrg else
6277 1.6 mrg extra_linker_plugin_flags=
6278 1.6 mrg fi
6279 1.6 mrg
6280 1.6 mrg
6281 1.6 mrg
6282 1.11 mrg # Enable --enable-host-shared.
6283 1.11 mrg # Checked early to determine whether jit is an 'all' language
6284 1.11 mrg # Check whether --enable-host-shared was given.
6285 1.11 mrg if test "${enable_host_shared+set}" = set; then :
6286 1.11 mrg enableval=$enable_host_shared; host_shared=$enableval
6287 1.11 mrg else
6288 1.11 mrg host_shared=no
6289 1.11 mrg fi
6290 1.11 mrg
6291 1.11 mrg
6292 1.1 mrg
6293 1.4 mrg # By default, C and C++ are the only stage 1 languages.
6294 1.1 mrg stage1_languages=,c,
6295 1.1 mrg
6296 1.1 mrg # Target libraries that we bootstrap.
6297 1.1 mrg bootstrap_target_libs=,target-libgcc,
6298 1.1 mrg
6299 1.1 mrg # Figure out what language subdirectories are present.
6300 1.1 mrg # Look if the user specified --enable-languages="..."; if not, use
6301 1.1 mrg # the environment variable $LANGUAGES if defined. $LANGUAGES might
6302 1.1 mrg # go away some day.
6303 1.1 mrg # NB: embedded tabs in this IF block -- do not untabify
6304 1.1 mrg if test -d ${srcdir}/gcc; then
6305 1.1 mrg if test x"${enable_languages+set}" != xset; then
6306 1.1 mrg if test x"${LANGUAGES+set}" = xset; then
6307 1.1 mrg enable_languages="${LANGUAGES}"
6308 1.8 mrg echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6309 1.1 mrg else
6310 1.11 mrg enable_languages=default
6311 1.1 mrg fi
6312 1.1 mrg else
6313 1.1 mrg if test x"${enable_languages}" = x ||
6314 1.1 mrg test x"${enable_languages}" = xyes;
6315 1.1 mrg then
6316 1.8 mrg echo configure.ac: --enable-languages needs at least one language argument 1>&2
6317 1.1 mrg exit 1
6318 1.1 mrg fi
6319 1.1 mrg fi
6320 1.1 mrg enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6321 1.1 mrg
6322 1.1 mrg # 'f95' is the old name for the 'fortran' language. We issue a warning
6323 1.1 mrg # and make the substitution.
6324 1.1 mrg case ,${enable_languages}, in
6325 1.1 mrg *,f95,*)
6326 1.8 mrg echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6327 1.1 mrg enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6328 1.1 mrg ;;
6329 1.1 mrg esac
6330 1.1 mrg
6331 1.4 mrg # If bootstrapping, C++ must be enabled.
6332 1.4 mrg case ",$enable_languages,:$enable_bootstrap" in
6333 1.4 mrg *,c++,*:*) ;;
6334 1.4 mrg *:yes)
6335 1.4 mrg if test -f ${srcdir}/gcc/cp/config-lang.in; then
6336 1.4 mrg enable_languages="${enable_languages},c++"
6337 1.4 mrg else
6338 1.12 mrg as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6339 1.4 mrg fi
6340 1.4 mrg ;;
6341 1.4 mrg esac
6342 1.4 mrg
6343 1.1 mrg # First scan to see if an enabled language requires some other language.
6344 1.1 mrg # We assume that a given config-lang.in will list all the language
6345 1.1 mrg # front ends it requires, even if some are required indirectly.
6346 1.1 mrg for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6347 1.1 mrg case ${lang_frag} in
6348 1.1 mrg ..) ;;
6349 1.1 mrg # The odd quoting in the next line works around
6350 1.1 mrg # an apparent bug in bash 1.12 on linux.
6351 1.1 mrg ${srcdir}/gcc/[*]/config-lang.in) ;;
6352 1.1 mrg *)
6353 1.4 mrg # From the config-lang.in, get $language, $lang_requires, and
6354 1.4 mrg # $lang_requires_boot_languages.
6355 1.1 mrg language=
6356 1.1 mrg lang_requires=
6357 1.4 mrg lang_requires_boot_languages=
6358 1.11 mrg # set srcdir during sourcing lang_frag to the gcc dir.
6359 1.11 mrg # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6360 1.11 mrg # polutes this shell
6361 1.11 mrg saved_srcdir=${srcdir}
6362 1.11 mrg srcdir=${srcdir}/gcc . ${lang_frag}
6363 1.11 mrg srcdir=${saved_srcdir}
6364 1.4 mrg for other in ${lang_requires} ${lang_requires_boot_languages}; do
6365 1.1 mrg case ,${enable_languages}, in
6366 1.1 mrg *,$other,*) ;;
6367 1.11 mrg *,default,*) ;;
6368 1.1 mrg *,all,*) ;;
6369 1.1 mrg *,$language,*)
6370 1.1 mrg echo " \`$other' language required by \`$language'; enabling" 1>&2
6371 1.1 mrg enable_languages="${enable_languages},${other}"
6372 1.1 mrg ;;
6373 1.1 mrg esac
6374 1.1 mrg done
6375 1.4 mrg for other in ${lang_requires_boot_languages} ; do
6376 1.4 mrg if test "$other" != "c"; then
6377 1.4 mrg case ,${enable_stage1_languages}, in
6378 1.4 mrg *,$other,*) ;;
6379 1.11 mrg *,default,*) ;;
6380 1.4 mrg *,all,*) ;;
6381 1.4 mrg *)
6382 1.4 mrg case ,${enable_languages}, in
6383 1.4 mrg *,$language,*)
6384 1.4 mrg echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6385 1.4 mrg enable_stage1_languages="$enable_stage1_languages,${other}"
6386 1.4 mrg ;;
6387 1.4 mrg esac
6388 1.4 mrg ;;
6389 1.4 mrg esac
6390 1.4 mrg fi
6391 1.4 mrg done
6392 1.1 mrg ;;
6393 1.1 mrg esac
6394 1.1 mrg done
6395 1.1 mrg
6396 1.1 mrg new_enable_languages=,c,
6397 1.1 mrg
6398 1.1 mrg # If LTO is enabled, add the LTO front end.
6399 1.1 mrg if test "$enable_lto" = "yes" ; then
6400 1.1 mrg case ,${enable_languages}, in
6401 1.1 mrg *,lto,*) ;;
6402 1.1 mrg *) enable_languages="${enable_languages},lto" ;;
6403 1.1 mrg esac
6404 1.4 mrg if test "${build_lto_plugin}" = "yes" ; then
6405 1.1 mrg configdirs="$configdirs lto-plugin"
6406 1.1 mrg fi
6407 1.1 mrg fi
6408 1.1 mrg
6409 1.6 mrg # If we're building an offloading compiler, add the LTO front end.
6410 1.6 mrg if test x"$enable_as_accelerator_for" != x ; then
6411 1.6 mrg case ,${enable_languages}, in
6412 1.6 mrg *,lto,*) ;;
6413 1.6 mrg *) enable_languages="${enable_languages},lto" ;;
6414 1.6 mrg esac
6415 1.6 mrg fi
6416 1.1 mrg
6417 1.11 mrg missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6418 1.1 mrg potential_languages=,c,
6419 1.1 mrg
6420 1.4 mrg enabled_target_libs=
6421 1.4 mrg disabled_target_libs=
6422 1.4 mrg
6423 1.1 mrg for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6424 1.1 mrg case ${lang_frag} in
6425 1.1 mrg ..) ;;
6426 1.1 mrg # The odd quoting in the next line works around
6427 1.1 mrg # an apparent bug in bash 1.12 on linux.
6428 1.1 mrg ${srcdir}/gcc/[*]/config-lang.in) ;;
6429 1.1 mrg *)
6430 1.1 mrg # From the config-lang.in, get $language, $target_libs,
6431 1.1 mrg # $lang_dirs, $boot_language, and $build_by_default
6432 1.1 mrg language=
6433 1.1 mrg target_libs=
6434 1.1 mrg lang_dirs=
6435 1.1 mrg subdir_requires=
6436 1.1 mrg boot_language=no
6437 1.1 mrg build_by_default=yes
6438 1.11 mrg # set srcdir during sourcing. See above about save & restore
6439 1.11 mrg saved_srcdir=${srcdir}
6440 1.11 mrg srcdir=${srcdir}/gcc . ${lang_frag}
6441 1.11 mrg srcdir=${saved_srcdir}
6442 1.1 mrg if test x${language} = x; then
6443 1.1 mrg echo "${lang_frag} doesn't set \$language." 1>&2
6444 1.1 mrg exit 1
6445 1.1 mrg fi
6446 1.1 mrg
6447 1.4 mrg if test "$language" = "c++"; then
6448 1.1 mrg boot_language=yes
6449 1.1 mrg fi
6450 1.1 mrg
6451 1.4 mrg add_this_lang=no
6452 1.11 mrg # C is always enabled, so no need to add it again
6453 1.11 mrg if test "$language" != "c"; then
6454 1.11 mrg case ,${enable_languages}, in
6455 1.11 mrg *,${language},*)
6456 1.11 mrg # Language was explicitly selected; include it
6457 1.4 mrg add_this_lang=yes
6458 1.11 mrg ;;
6459 1.11 mrg *,all,*)
6460 1.11 mrg # All languages are enabled
6461 1.11 mrg add_this_lang=all
6462 1.11 mrg ;;
6463 1.11 mrg *,default,*)
6464 1.11 mrg # 'default' was selected, select it if it is a default language
6465 1.4 mrg add_this_lang=${build_by_default}
6466 1.11 mrg ;;
6467 1.11 mrg esac
6468 1.11 mrg fi
6469 1.1 mrg
6470 1.1 mrg # Disable languages that need other directories if these aren't available.
6471 1.1 mrg for i in $subdir_requires; do
6472 1.1 mrg test -f "$srcdir/gcc/$i/config-lang.in" && continue
6473 1.11 mrg case ${add_this_lang} in
6474 1.11 mrg yes)
6475 1.1 mrg # Specifically requested language; tell them.
6476 1.12 mrg as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6477 1.1 mrg ;;
6478 1.11 mrg all)
6479 1.11 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6480 1.11 mrg $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6481 1.11 mrg add_this_lang=unsupported
6482 1.11 mrg ;;
6483 1.1 mrg *)
6484 1.1 mrg # Silently disable.
6485 1.1 mrg add_this_lang=unsupported
6486 1.1 mrg ;;
6487 1.1 mrg esac
6488 1.1 mrg done
6489 1.1 mrg
6490 1.1 mrg # Disable Ada if no preexisting GNAT is available.
6491 1.11 mrg case ${add_this_lang}:${language}:${have_gnat} in
6492 1.11 mrg yes:ada:no)
6493 1.1 mrg # Specifically requested language; tell them.
6494 1.12 mrg as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6495 1.1 mrg ;;
6496 1.11 mrg all:ada:no)
6497 1.11 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6498 1.11 mrg $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6499 1.11 mrg add_this_lang=unsupported
6500 1.11 mrg ;;
6501 1.1 mrg *:ada:no)
6502 1.1 mrg # Silently disable.
6503 1.1 mrg add_this_lang=unsupported
6504 1.1 mrg ;;
6505 1.1 mrg esac
6506 1.1 mrg
6507 1.11 mrg # Disable jit if -enable-host-shared not specified
6508 1.11 mrg case ${add_this_lang}:${language}:${host_shared} in
6509 1.11 mrg yes:jit:no)
6510 1.11 mrg # PR jit/64780: explicitly specify --enable-host-shared
6511 1.12 mrg as_fn_error $? "
6512 1.11 mrg Enabling language \"jit\" requires --enable-host-shared.
6513 1.11 mrg
6514 1.11 mrg --enable-host-shared typically slows the rest of the compiler down by
6515 1.11 mrg a few %, so you must explicitly enable it.
6516 1.11 mrg
6517 1.11 mrg If you want to build both the jit and the regular compiler, it is often
6518 1.11 mrg best to do this via two separate configure/builds, in separate
6519 1.11 mrg directories, to avoid imposing the performance cost of
6520 1.11 mrg --enable-host-shared on the regular compiler." "$LINENO" 5
6521 1.11 mrg ;;
6522 1.11 mrg all:jit:no)
6523 1.11 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6524 1.11 mrg $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6525 1.11 mrg add_this_lang=unsupported
6526 1.11 mrg ;;
6527 1.11 mrg *:jit:no)
6528 1.11 mrg # Silently disable.
6529 1.11 mrg add_this_lang=unsupported
6530 1.11 mrg ;;
6531 1.11 mrg esac
6532 1.11 mrg
6533 1.11 mrg # Disable a language that is unsupported by the target.
6534 1.11 mrg case "${add_this_lang}: $unsupported_languages " in
6535 1.11 mrg no:*) ;;
6536 1.11 mrg unsupported:*) ;;
6537 1.11 mrg *:*" $language "*)
6538 1.11 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6539 1.11 mrg $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6540 1.1 mrg add_this_lang=unsupported
6541 1.1 mrg ;;
6542 1.1 mrg esac
6543 1.1 mrg
6544 1.1 mrg case $add_this_lang in
6545 1.1 mrg unsupported)
6546 1.1 mrg # Remove language-dependent dirs.
6547 1.4 mrg disabled_target_libs="$disabled_target_libs $target_libs"
6548 1.4 mrg noconfigdirs="$noconfigdirs $lang_dirs"
6549 1.1 mrg ;;
6550 1.1 mrg no)
6551 1.1 mrg # Remove language-dependent dirs; still show language as supported.
6552 1.4 mrg disabled_target_libs="$disabled_target_libs $target_libs"
6553 1.4 mrg noconfigdirs="$noconfigdirs $lang_dirs"
6554 1.1 mrg potential_languages="${potential_languages}${language},"
6555 1.1 mrg ;;
6556 1.11 mrg all|yes)
6557 1.1 mrg new_enable_languages="${new_enable_languages}${language},"
6558 1.1 mrg potential_languages="${potential_languages}${language},"
6559 1.1 mrg missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6560 1.4 mrg enabled_target_libs="$enabled_target_libs $target_libs"
6561 1.1 mrg case "${boot_language}:,$enable_stage1_languages," in
6562 1.1 mrg yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6563 1.1 mrg # Add to (comma-separated) list of stage 1 languages.
6564 1.1 mrg case ",$stage1_languages," in
6565 1.1 mrg *,$language,* | ,yes, | ,all,) ;;
6566 1.1 mrg *) stage1_languages="${stage1_languages}${language}," ;;
6567 1.1 mrg esac
6568 1.1 mrg # We need to bootstrap any supporting libraries.
6569 1.1 mrg bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6570 1.1 mrg ;;
6571 1.1 mrg esac
6572 1.1 mrg ;;
6573 1.1 mrg esac
6574 1.1 mrg ;;
6575 1.1 mrg esac
6576 1.1 mrg done
6577 1.1 mrg
6578 1.4 mrg # Add target libraries which are only needed for disabled languages
6579 1.4 mrg # to noconfigdirs.
6580 1.4 mrg if test -n "$disabled_target_libs"; then
6581 1.4 mrg for dir in $disabled_target_libs; do
6582 1.4 mrg case " $enabled_target_libs " in
6583 1.4 mrg *" ${dir} "*) ;;
6584 1.4 mrg *) noconfigdirs="$noconfigdirs $dir" ;;
6585 1.4 mrg esac
6586 1.4 mrg done
6587 1.4 mrg fi
6588 1.4 mrg
6589 1.1 mrg # Check whether --enable-stage1-languages was given.
6590 1.1 mrg if test "${enable_stage1_languages+set}" = set; then :
6591 1.1 mrg enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6592 1.1 mrg ,no,|,,)
6593 1.1 mrg # Set it to something that will have no effect in the loop below
6594 1.1 mrg enable_stage1_languages=c ;;
6595 1.1 mrg ,yes,)
6596 1.1 mrg enable_stage1_languages=`echo $new_enable_languages | \
6597 1.1 mrg sed -e "s/^,//" -e "s/,$//" ` ;;
6598 1.1 mrg *,all,*)
6599 1.1 mrg enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6600 1.1 mrg sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6601 1.1 mrg esac
6602 1.1 mrg
6603 1.1 mrg # Add "good" languages from enable_stage1_languages to stage1_languages,
6604 1.1 mrg # while "bad" languages go in missing_languages. Leave no duplicates.
6605 1.1 mrg for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6606 1.1 mrg case $potential_languages in
6607 1.1 mrg *,$i,*)
6608 1.1 mrg case $stage1_languages in
6609 1.1 mrg *,$i,*) ;;
6610 1.1 mrg *) stage1_languages="$stage1_languages$i," ;;
6611 1.1 mrg esac ;;
6612 1.1 mrg *)
6613 1.1 mrg case $missing_languages in
6614 1.1 mrg *,$i,*) ;;
6615 1.1 mrg *) missing_languages="$missing_languages$i," ;;
6616 1.1 mrg esac ;;
6617 1.1 mrg esac
6618 1.1 mrg done
6619 1.1 mrg fi
6620 1.1 mrg
6621 1.1 mrg
6622 1.1 mrg # Remove leading/trailing commas that were added for simplicity
6623 1.1 mrg potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6624 1.1 mrg missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6625 1.1 mrg stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6626 1.1 mrg new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6627 1.1 mrg
6628 1.1 mrg if test "x$missing_languages" != x; then
6629 1.12 mrg as_fn_error $? "
6630 1.1 mrg The following requested languages could not be built: ${missing_languages}
6631 1.1 mrg Supported languages are: ${potential_languages}" "$LINENO" 5
6632 1.1 mrg fi
6633 1.1 mrg if test "x$new_enable_languages" != "x$enable_languages"; then
6634 1.1 mrg echo The following languages will be built: ${new_enable_languages}
6635 1.1 mrg enable_languages="$new_enable_languages"
6636 1.1 mrg fi
6637 1.1 mrg
6638 1.1 mrg
6639 1.1 mrg ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6640 1.1 mrg fi
6641 1.1 mrg
6642 1.1 mrg # Handle --disable-<component> generically.
6643 1.1 mrg for dir in $configdirs $build_configdirs $target_configdirs ; do
6644 1.1 mrg dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6645 1.1 mrg varname=`echo $dirname | sed -e s/+/_/g`
6646 1.1 mrg if eval test x\${enable_${varname}} "=" xno ; then
6647 1.1 mrg noconfigdirs="$noconfigdirs $dir"
6648 1.1 mrg fi
6649 1.1 mrg done
6650 1.1 mrg
6651 1.1 mrg # Check for Boehm's garbage collector
6652 1.1 mrg # Check whether --enable-objc-gc was given.
6653 1.1 mrg if test "${enable_objc_gc+set}" = set; then :
6654 1.10 mrg enableval=$enable_objc_gc;
6655 1.10 mrg fi
6656 1.10 mrg
6657 1.10 mrg
6658 1.10 mrg # Check whether --with-target-bdw-gc was given.
6659 1.10 mrg if test "${with_target_bdw_gc+set}" = set; then :
6660 1.10 mrg withval=$with_target_bdw_gc;
6661 1.10 mrg fi
6662 1.10 mrg
6663 1.10 mrg
6664 1.10 mrg # Check whether --with-target-bdw-gc-include was given.
6665 1.10 mrg if test "${with_target_bdw_gc_include+set}" = set; then :
6666 1.10 mrg withval=$with_target_bdw_gc_include;
6667 1.10 mrg fi
6668 1.10 mrg
6669 1.10 mrg
6670 1.10 mrg # Check whether --with-target-bdw-gc-lib was given.
6671 1.10 mrg if test "${with_target_bdw_gc_lib+set}" = set; then :
6672 1.10 mrg withval=$with_target_bdw_gc_lib;
6673 1.1 mrg fi
6674 1.1 mrg
6675 1.1 mrg
6676 1.10 mrg case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6677 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6678 1.10 mrg $as_echo_n "checking for bdw garbage collector... " >&6; }
6679 1.10 mrg if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6680 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6681 1.10 mrg $as_echo "using bdw-gc in default locations" >&6; }
6682 1.10 mrg else
6683 1.10 mrg if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6684 1.12 mrg as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6685 1.10 mrg elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6686 1.12 mrg as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6687 1.10 mrg else
6688 1.10 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6689 1.10 mrg $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6690 1.1 mrg fi
6691 1.10 mrg fi
6692 1.1 mrg esac
6693 1.1 mrg
6694 1.11 mrg # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6695 1.4 mrg case ,${enable_languages}, in
6696 1.6 mrg *,c++,*)
6697 1.11 mrg # Disable libitm, libsanitizer if we're not building libstdc++
6698 1.6 mrg case "${noconfigdirs}" in
6699 1.6 mrg *target-libstdc++-v3*)
6700 1.11 mrg noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6701 1.6 mrg ;;
6702 1.6 mrg *) ;;
6703 1.6 mrg esac
6704 1.6 mrg ;;
6705 1.4 mrg *)
6706 1.11 mrg noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6707 1.4 mrg ;;
6708 1.4 mrg esac
6709 1.4 mrg
6710 1.1 mrg # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6711 1.1 mrg # $build_configdirs and $target_configdirs.
6712 1.1 mrg # If we have the source for $noconfigdirs entries, add them to $notsupp.
6713 1.1 mrg
6714 1.1 mrg notsupp=""
6715 1.1 mrg for dir in . $skipdirs $noconfigdirs ; do
6716 1.1 mrg dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6717 1.1 mrg if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6718 1.1 mrg configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6719 1.1 mrg if test -r $srcdir/$dirname/configure ; then
6720 1.1 mrg if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6721 1.1 mrg true
6722 1.1 mrg else
6723 1.1 mrg notsupp="$notsupp $dir"
6724 1.1 mrg fi
6725 1.1 mrg fi
6726 1.1 mrg fi
6727 1.1 mrg if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6728 1.1 mrg build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6729 1.1 mrg if test -r $srcdir/$dirname/configure ; then
6730 1.1 mrg if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6731 1.1 mrg true
6732 1.1 mrg else
6733 1.1 mrg notsupp="$notsupp $dir"
6734 1.1 mrg fi
6735 1.1 mrg fi
6736 1.1 mrg fi
6737 1.1 mrg if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6738 1.1 mrg target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6739 1.1 mrg if test -r $srcdir/$dirname/configure ; then
6740 1.1 mrg if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6741 1.1 mrg true
6742 1.1 mrg else
6743 1.1 mrg notsupp="$notsupp $dir"
6744 1.1 mrg fi
6745 1.1 mrg fi
6746 1.1 mrg fi
6747 1.1 mrg done
6748 1.1 mrg
6749 1.1 mrg # Quietly strip out all directories which aren't configurable in this tree.
6750 1.1 mrg # This relies on all configurable subdirectories being autoconfiscated, which
6751 1.1 mrg # is now the case.
6752 1.1 mrg build_configdirs_all="$build_configdirs"
6753 1.1 mrg build_configdirs=
6754 1.1 mrg for i in ${build_configdirs_all} ; do
6755 1.1 mrg j=`echo $i | sed -e s/build-//g`
6756 1.1 mrg if test -f ${srcdir}/$j/configure ; then
6757 1.1 mrg build_configdirs="${build_configdirs} $i"
6758 1.1 mrg fi
6759 1.1 mrg done
6760 1.1 mrg
6761 1.1 mrg configdirs_all="$configdirs"
6762 1.1 mrg configdirs=
6763 1.1 mrg for i in ${configdirs_all} ; do
6764 1.1 mrg if test -f ${srcdir}/$i/configure ; then
6765 1.1 mrg configdirs="${configdirs} $i"
6766 1.1 mrg fi
6767 1.1 mrg done
6768 1.1 mrg
6769 1.1 mrg target_configdirs_all="$target_configdirs"
6770 1.1 mrg target_configdirs=
6771 1.1 mrg for i in ${target_configdirs_all} ; do
6772 1.1 mrg j=`echo $i | sed -e s/target-//g`
6773 1.1 mrg if test -f ${srcdir}/$j/configure ; then
6774 1.1 mrg target_configdirs="${target_configdirs} $i"
6775 1.1 mrg fi
6776 1.1 mrg done
6777 1.1 mrg
6778 1.6 mrg # libiberty-linker-plugin is special: it doesn't have its own source directory,
6779 1.6 mrg # so we have to add it after the preceding checks.
6780 1.6 mrg if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6781 1.6 mrg then
6782 1.6 mrg case " $configdirs " in
6783 1.6 mrg *" libiberty "*)
6784 1.6 mrg # If we can build libiberty, we can also build libiberty-linker-plugin.
6785 1.6 mrg configdirs="$configdirs libiberty-linker-plugin"
6786 1.6 mrg extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6787 1.6 mrg --with-libiberty=../libiberty-linker-plugin";;
6788 1.6 mrg *)
6789 1.12 mrg as_fn_error $? "libiberty missing" "$LINENO" 5;;
6790 1.6 mrg esac
6791 1.6 mrg fi
6792 1.6 mrg
6793 1.6 mrg # Sometimes we have special requirements for the host libiberty.
6794 1.6 mrg extra_host_libiberty_configure_flags=
6795 1.8 mrg extra_host_zlib_configure_flags=
6796 1.6 mrg case " $configdirs " in
6797 1.6 mrg *" lto-plugin "* | *" libcc1 "*)
6798 1.6 mrg # When these are to be built as shared libraries, the same applies to
6799 1.6 mrg # libiberty.
6800 1.6 mrg extra_host_libiberty_configure_flags=--enable-shared
6801 1.6 mrg ;;
6802 1.8 mrg *" bfd "*)
6803 1.8 mrg # When bfd is to be built as a shared library, the same applies to
6804 1.8 mrg # zlib.
6805 1.8 mrg if test "$enable_shared" = "yes"; then
6806 1.8 mrg extra_host_zlib_configure_flags=--enable-host-shared
6807 1.8 mrg fi
6808 1.8 mrg ;;
6809 1.6 mrg esac
6810 1.6 mrg
6811 1.6 mrg
6812 1.8 mrg
6813 1.1 mrg # Produce a warning message for the subdirs we can't configure.
6814 1.1 mrg # This isn't especially interesting in the Cygnus tree, but in the individual
6815 1.1 mrg # FSF releases, it's important to let people know when their machine isn't
6816 1.1 mrg # supported by the one or two programs in a package.
6817 1.1 mrg
6818 1.1 mrg if test -n "${notsupp}" && test -z "${norecursion}" ; then
6819 1.1 mrg # If $appdirs is non-empty, at least one of those directories must still
6820 1.1 mrg # be configured, or we error out. (E.g., if the gas release supports a
6821 1.1 mrg # specified target in some subdirs but not the gas subdir, we shouldn't
6822 1.1 mrg # pretend that all is well.)
6823 1.1 mrg if test -n "$appdirs" ; then
6824 1.1 mrg for dir in $appdirs ; do
6825 1.1 mrg if test -r $dir/Makefile.in ; then
6826 1.1 mrg if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6827 1.1 mrg appdirs=""
6828 1.1 mrg break
6829 1.1 mrg fi
6830 1.1 mrg if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6831 1.1 mrg appdirs=""
6832 1.1 mrg break
6833 1.1 mrg fi
6834 1.1 mrg fi
6835 1.1 mrg done
6836 1.1 mrg if test -n "$appdirs" ; then
6837 1.1 mrg echo "*** This configuration is not supported by this package." 1>&2
6838 1.1 mrg exit 1
6839 1.1 mrg fi
6840 1.1 mrg fi
6841 1.1 mrg # Okay, some application will build, or we don't care to check. Still
6842 1.1 mrg # notify of subdirs not getting built.
6843 1.1 mrg echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6844 1.1 mrg echo " ${notsupp}" 1>&2
6845 1.1 mrg echo " (Any other directories should still work fine.)" 1>&2
6846 1.1 mrg fi
6847 1.1 mrg
6848 1.1 mrg case "$host" in
6849 1.1 mrg *msdosdjgpp*)
6850 1.1 mrg enable_gdbtk=no ;;
6851 1.1 mrg esac
6852 1.1 mrg
6853 1.1 mrg # To find our prefix, in gcc_cv_tool_prefix.
6854 1.1 mrg
6855 1.1 mrg # The user is always right.
6856 1.1 mrg if test "${PATH_SEPARATOR+set}" != set; then
6857 1.1 mrg echo "#! /bin/sh" >conf$$.sh
6858 1.1 mrg echo "exit 0" >>conf$$.sh
6859 1.1 mrg chmod +x conf$$.sh
6860 1.1 mrg if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6861 1.1 mrg PATH_SEPARATOR=';'
6862 1.1 mrg else
6863 1.1 mrg PATH_SEPARATOR=:
6864 1.1 mrg fi
6865 1.1 mrg rm -f conf$$.sh
6866 1.1 mrg fi
6867 1.1 mrg
6868 1.1 mrg
6869 1.10 mrg get_gcc_base_ver="cat"
6870 1.10 mrg
6871 1.10 mrg # Check whether --with-gcc-major-version-only was given.
6872 1.10 mrg if test "${with_gcc_major_version_only+set}" = set; then :
6873 1.10 mrg withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6874 1.12 mrg get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6875 1.10 mrg fi
6876 1.10 mrg
6877 1.10 mrg fi
6878 1.10 mrg
6879 1.10 mrg
6880 1.10 mrg
6881 1.10 mrg
6882 1.10 mrg
6883 1.1 mrg
6884 1.1 mrg if test "x$exec_prefix" = xNONE; then
6885 1.1 mrg if test "x$prefix" = xNONE; then
6886 1.1 mrg gcc_cv_tool_prefix=$ac_default_prefix
6887 1.1 mrg else
6888 1.1 mrg gcc_cv_tool_prefix=$prefix
6889 1.1 mrg fi
6890 1.1 mrg else
6891 1.1 mrg gcc_cv_tool_prefix=$exec_prefix
6892 1.1 mrg fi
6893 1.1 mrg
6894 1.1 mrg # If there is no compiler in the tree, use the PATH only. In any
6895 1.1 mrg # case, if there is no compiler in the tree nobody should use
6896 1.1 mrg # AS_FOR_TARGET and LD_FOR_TARGET.
6897 1.1 mrg if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6898 1.10 mrg if test x$with_gcc_major_version_only = xyes ; then
6899 1.10 mrg gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6900 1.10 mrg else
6901 1.10 mrg gcc_version=`cat $srcdir/gcc/BASE-VER`
6902 1.10 mrg fi
6903 1.1 mrg gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6904 1.1 mrg gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6905 1.1 mrg gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6906 1.1 mrg gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6907 1.1 mrg gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6908 1.1 mrg gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6909 1.1 mrg else
6910 1.1 mrg gcc_cv_tool_dirs=
6911 1.1 mrg fi
6912 1.1 mrg
6913 1.1 mrg if test x$build = x$target && test -n "$md_exec_prefix"; then
6914 1.1 mrg gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6915 1.1 mrg fi
6916 1.1 mrg
6917 1.1 mrg
6918 1.1 mrg
6919 1.1 mrg copy_dirs=
6920 1.1 mrg
6921 1.1 mrg
6922 1.1 mrg # Check whether --with-build-sysroot was given.
6923 1.1 mrg if test "${with_build_sysroot+set}" = set; then :
6924 1.1 mrg withval=$with_build_sysroot; if test x"$withval" != x ; then
6925 1.1 mrg SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6926 1.1 mrg fi
6927 1.1 mrg else
6928 1.1 mrg SYSROOT_CFLAGS_FOR_TARGET=
6929 1.1 mrg fi
6930 1.1 mrg
6931 1.1 mrg
6932 1.1 mrg
6933 1.1 mrg
6934 1.1 mrg # Check whether --with-debug-prefix-map was given.
6935 1.1 mrg if test "${with_debug_prefix_map+set}" = set; then :
6936 1.1 mrg withval=$with_debug_prefix_map; if test x"$withval" != x; then
6937 1.1 mrg DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6938 1.1 mrg for debug_map in $withval; do
6939 1.1 mrg DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6940 1.1 mrg done
6941 1.1 mrg fi
6942 1.1 mrg else
6943 1.1 mrg DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6944 1.1 mrg fi
6945 1.1 mrg
6946 1.1 mrg
6947 1.1 mrg
6948 1.1 mrg # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6949 1.1 mrg # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6950 1.1 mrg # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6951 1.1 mrg # We want to ensure that TARGET libraries (which we know are built with
6952 1.1 mrg # gcc) are built with "-O2 -g", so include those options when setting
6953 1.1 mrg # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6954 1.1 mrg if test "x$CFLAGS_FOR_TARGET" = x; then
6955 1.6 mrg if test "x${is_cross_compiler}" = xyes; then
6956 1.6 mrg CFLAGS_FOR_TARGET="-g -O2"
6957 1.6 mrg else
6958 1.6 mrg CFLAGS_FOR_TARGET=$CFLAGS
6959 1.6 mrg case " $CFLAGS " in
6960 1.6 mrg *" -O2 "*) ;;
6961 1.6 mrg *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6962 1.6 mrg esac
6963 1.6 mrg case " $CFLAGS " in
6964 1.6 mrg *" -g "* | *" -g3 "*) ;;
6965 1.6 mrg *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6966 1.6 mrg esac
6967 1.6 mrg fi
6968 1.1 mrg fi
6969 1.1 mrg
6970 1.1 mrg
6971 1.1 mrg if test "x$CXXFLAGS_FOR_TARGET" = x; then
6972 1.6 mrg if test "x${is_cross_compiler}" = xyes; then
6973 1.6 mrg CXXFLAGS_FOR_TARGET="-g -O2"
6974 1.6 mrg else
6975 1.6 mrg CXXFLAGS_FOR_TARGET=$CXXFLAGS
6976 1.6 mrg case " $CXXFLAGS " in
6977 1.6 mrg *" -O2 "*) ;;
6978 1.6 mrg *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6979 1.6 mrg esac
6980 1.6 mrg case " $CXXFLAGS " in
6981 1.6 mrg *" -g "* | *" -g3 "*) ;;
6982 1.6 mrg *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6983 1.6 mrg esac
6984 1.6 mrg fi
6985 1.1 mrg fi
6986 1.1 mrg
6987 1.1 mrg
6988 1.4 mrg
6989 1.4 mrg
6990 1.1 mrg # Handle --with-headers=XXX. If the value is not "yes", the contents of
6991 1.1 mrg # the named directory are copied to $(tooldir)/sys-include.
6992 1.1 mrg if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6993 1.1 mrg if test x${is_cross_compiler} = xno ; then
6994 1.1 mrg echo 1>&2 '***' --with-headers is only supported when cross compiling
6995 1.1 mrg exit 1
6996 1.1 mrg fi
6997 1.1 mrg if test x"${with_headers}" != xyes ; then
6998 1.1 mrg x=${gcc_cv_tool_prefix}
6999 1.1 mrg copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7000 1.1 mrg fi
7001 1.1 mrg fi
7002 1.1 mrg
7003 1.1 mrg # Handle --with-libs=XXX. If the value is not "yes", the contents of
7004 1.1 mrg # the name directories are copied to $(tooldir)/lib. Multiple directories
7005 1.1 mrg # are permitted.
7006 1.1 mrg if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7007 1.1 mrg if test x${is_cross_compiler} = xno ; then
7008 1.1 mrg echo 1>&2 '***' --with-libs is only supported when cross compiling
7009 1.1 mrg exit 1
7010 1.1 mrg fi
7011 1.1 mrg if test x"${with_libs}" != xyes ; then
7012 1.1 mrg # Copy the libraries in reverse order, so that files in the first named
7013 1.1 mrg # library override files in subsequent libraries.
7014 1.1 mrg x=${gcc_cv_tool_prefix}
7015 1.1 mrg for l in ${with_libs}; do
7016 1.1 mrg copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7017 1.1 mrg done
7018 1.1 mrg fi
7019 1.1 mrg fi
7020 1.1 mrg
7021 1.1 mrg # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7022 1.1 mrg #
7023 1.1 mrg # This is done by determining whether or not the appropriate directory
7024 1.1 mrg # is available, and by checking whether or not specific configurations
7025 1.1 mrg # have requested that this magic not happen.
7026 1.1 mrg #
7027 1.1 mrg # The command line options always override the explicit settings in
7028 1.8 mrg # configure.ac, and the settings in configure.ac override this magic.
7029 1.1 mrg #
7030 1.1 mrg # If the default for a toolchain is to use GNU as and ld, and you don't
7031 1.1 mrg # want to do that, then you should use the --without-gnu-as and
7032 1.1 mrg # --without-gnu-ld options for the configure script. Similarly, if
7033 1.1 mrg # the default is to use the included zlib and you don't want to do that,
7034 1.1 mrg # you should use the --with-system-zlib option for the configure script.
7035 1.1 mrg
7036 1.1 mrg if test x${use_gnu_as} = x &&
7037 1.1 mrg echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7038 1.1 mrg with_gnu_as=yes
7039 1.1 mrg extra_host_args="$extra_host_args --with-gnu-as"
7040 1.1 mrg fi
7041 1.1 mrg
7042 1.1 mrg if test x${use_gnu_ld} = x &&
7043 1.1 mrg echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7044 1.1 mrg with_gnu_ld=yes
7045 1.1 mrg extra_host_args="$extra_host_args --with-gnu-ld"
7046 1.1 mrg fi
7047 1.1 mrg
7048 1.1 mrg if test x${use_included_zlib} = x &&
7049 1.1 mrg echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7050 1.1 mrg :
7051 1.1 mrg else
7052 1.1 mrg with_system_zlib=yes
7053 1.1 mrg extra_host_args="$extra_host_args --with-system-zlib"
7054 1.1 mrg fi
7055 1.1 mrg
7056 1.1 mrg # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7057 1.1 mrg # can detect this case.
7058 1.1 mrg
7059 1.1 mrg if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7060 1.1 mrg with_newlib=yes
7061 1.1 mrg extra_host_args="$extra_host_args --with-newlib"
7062 1.1 mrg fi
7063 1.1 mrg
7064 1.1 mrg # Handle ${copy_dirs}
7065 1.1 mrg set fnord ${copy_dirs}
7066 1.1 mrg shift
7067 1.1 mrg while test $# != 0 ; do
7068 1.1 mrg if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7069 1.1 mrg :
7070 1.1 mrg else
7071 1.1 mrg echo Copying $1 to $2
7072 1.1 mrg
7073 1.1 mrg # Use the install script to create the directory and all required
7074 1.1 mrg # parent directories.
7075 1.1 mrg if test -d $2 ; then
7076 1.1 mrg :
7077 1.1 mrg else
7078 1.1 mrg echo >config.temp
7079 1.1 mrg ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7080 1.1 mrg fi
7081 1.1 mrg
7082 1.1 mrg # Copy the directory, assuming we have tar.
7083 1.1 mrg # FIXME: Should we use B in the second tar? Not all systems support it.
7084 1.1 mrg (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7085 1.1 mrg
7086 1.1 mrg # It is the responsibility of the user to correctly adjust all
7087 1.1 mrg # symlinks. If somebody can figure out how to handle them correctly
7088 1.1 mrg # here, feel free to add the code.
7089 1.1 mrg
7090 1.1 mrg echo $1 > $2/COPIED
7091 1.1 mrg fi
7092 1.1 mrg shift; shift
7093 1.1 mrg done
7094 1.1 mrg
7095 1.1 mrg # Determine a target-dependent exec_prefix that the installed
7096 1.1 mrg # gcc will search in. Keep this list sorted by triplet, with
7097 1.1 mrg # the *-*-osname triplets last.
7098 1.1 mrg md_exec_prefix=
7099 1.1 mrg case "${target}" in
7100 1.1 mrg i[34567]86-pc-msdosdjgpp*)
7101 1.1 mrg md_exec_prefix=/dev/env/DJDIR/bin
7102 1.1 mrg ;;
7103 1.1 mrg *-*-hpux* | \
7104 1.1 mrg *-*-nto-qnx* | \
7105 1.4 mrg *-*-solaris2*)
7106 1.1 mrg md_exec_prefix=/usr/ccs/bin
7107 1.1 mrg ;;
7108 1.1 mrg esac
7109 1.1 mrg
7110 1.1 mrg extra_arflags_for_target=
7111 1.1 mrg extra_nmflags_for_target=
7112 1.1 mrg extra_ranlibflags_for_target=
7113 1.1 mrg target_makefile_frag=/dev/null
7114 1.1 mrg case "${target}" in
7115 1.1 mrg spu-*-*)
7116 1.1 mrg target_makefile_frag="config/mt-spu"
7117 1.1 mrg ;;
7118 1.6 mrg mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7119 1.1 mrg target_makefile_frag="config/mt-sde"
7120 1.1 mrg ;;
7121 1.1 mrg mipsisa*-*-elfoabi*)
7122 1.1 mrg target_makefile_frag="config/mt-mips-elfoabi"
7123 1.1 mrg ;;
7124 1.1 mrg mips*-*-*linux* | mips*-*-gnu*)
7125 1.1 mrg target_makefile_frag="config/mt-mips-gnu"
7126 1.1 mrg ;;
7127 1.6 mrg nios2-*-elf*)
7128 1.6 mrg target_makefile_frag="config/mt-nios2-elf"
7129 1.6 mrg ;;
7130 1.11 mrg *-*-linux-android*)
7131 1.11 mrg target_makefile_frag="config/mt-android"
7132 1.11 mrg ;;
7133 1.1 mrg *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7134 1.1 mrg target_makefile_frag="config/mt-gnu"
7135 1.1 mrg ;;
7136 1.1 mrg *-*-aix4.[3456789]* | *-*-aix[56789].*)
7137 1.1 mrg # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7138 1.1 mrg # commands to handle both 32-bit and 64-bit objects. These flags are
7139 1.1 mrg # harmless if we're using GNU nm or ar.
7140 1.1 mrg extra_arflags_for_target=" -X32_64"
7141 1.1 mrg extra_nmflags_for_target=" -B -X32_64"
7142 1.1 mrg ;;
7143 1.1 mrg esac
7144 1.1 mrg
7145 1.1 mrg alphaieee_frag=/dev/null
7146 1.1 mrg case $target in
7147 1.1 mrg alpha*-*-*)
7148 1.1 mrg # This just makes sure to use the -mieee option to build target libs.
7149 1.1 mrg # This should probably be set individually by each library.
7150 1.1 mrg alphaieee_frag="config/mt-alphaieee"
7151 1.1 mrg ;;
7152 1.1 mrg esac
7153 1.1 mrg
7154 1.1 mrg # If --enable-target-optspace always use -Os instead of -O2 to build
7155 1.1 mrg # the target libraries, similarly if it is not specified, use -Os
7156 1.1 mrg # on selected platforms.
7157 1.1 mrg ospace_frag=/dev/null
7158 1.1 mrg case "${enable_target_optspace}:${target}" in
7159 1.1 mrg yes:*)
7160 1.1 mrg ospace_frag="config/mt-ospace"
7161 1.1 mrg ;;
7162 1.1 mrg :d30v-*)
7163 1.1 mrg ospace_frag="config/mt-d30v"
7164 1.1 mrg ;;
7165 1.8 mrg :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7166 1.1 mrg ospace_frag="config/mt-ospace"
7167 1.1 mrg ;;
7168 1.1 mrg no:* | :*)
7169 1.1 mrg ;;
7170 1.1 mrg *)
7171 1.1 mrg echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7172 1.1 mrg ;;
7173 1.1 mrg esac
7174 1.1 mrg
7175 1.1 mrg # Some systems (e.g., one of the i386-aix systems the gas testers are
7176 1.1 mrg # using) don't handle "\$" correctly, so don't use it here.
7177 1.1 mrg tooldir='${exec_prefix}'/${target_noncanonical}
7178 1.1 mrg build_tooldir=${tooldir}
7179 1.1 mrg
7180 1.1 mrg # Create a .gdbinit file which runs the one in srcdir
7181 1.1 mrg # and tells GDB to look there for source files.
7182 1.1 mrg
7183 1.1 mrg if test -r ${srcdir}/.gdbinit ; then
7184 1.1 mrg case ${srcdir} in
7185 1.1 mrg .) ;;
7186 1.1 mrg *) cat > ./.gdbinit <<EOF
7187 1.1 mrg # ${NO_EDIT}
7188 1.1 mrg dir ${srcdir}
7189 1.1 mrg dir .
7190 1.1 mrg source ${srcdir}/.gdbinit
7191 1.1 mrg EOF
7192 1.1 mrg ;;
7193 1.1 mrg esac
7194 1.1 mrg fi
7195 1.1 mrg
7196 1.1 mrg # Make sure that the compiler is able to generate an executable. If it
7197 1.1 mrg # can't, we are probably in trouble. We don't care whether we can run the
7198 1.1 mrg # executable--we might be using a cross compiler--we only care whether it
7199 1.1 mrg # can be created. At this point the main configure script has set CC.
7200 1.1 mrg we_are_ok=no
7201 1.1 mrg echo "int main () { return 0; }" > conftest.c
7202 1.1 mrg ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7203 1.1 mrg if test $? = 0 ; then
7204 1.1 mrg if test -s conftest || test -s conftest.exe ; then
7205 1.1 mrg we_are_ok=yes
7206 1.1 mrg fi
7207 1.1 mrg fi
7208 1.1 mrg case $we_are_ok in
7209 1.1 mrg no)
7210 1.1 mrg echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7211 1.1 mrg echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7212 1.1 mrg rm -f conftest*
7213 1.1 mrg exit 1
7214 1.1 mrg ;;
7215 1.1 mrg esac
7216 1.1 mrg rm -f conftest*
7217 1.1 mrg
7218 1.1 mrg # Decide which environment variable is used to find dynamic libraries.
7219 1.1 mrg case "${host}" in
7220 1.1 mrg *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7221 1.4 mrg *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7222 1.1 mrg *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7223 1.1 mrg *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7224 1.1 mrg esac
7225 1.1 mrg
7226 1.1 mrg # On systems where the dynamic library environment variable is PATH,
7227 1.1 mrg # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7228 1.1 mrg # built executables to PATH.
7229 1.1 mrg if test "$RPATH_ENVVAR" = PATH; then
7230 1.1 mrg GCC_SHLIB_SUBDIR=/shlib
7231 1.1 mrg else
7232 1.1 mrg GCC_SHLIB_SUBDIR=
7233 1.1 mrg fi
7234 1.1 mrg
7235 1.1 mrg # Adjust the toplevel makefile according to whether bootstrap was selected.
7236 1.1 mrg case $enable_bootstrap in
7237 1.1 mrg yes)
7238 1.1 mrg bootstrap_suffix=bootstrap
7239 1.1 mrg BUILD_CONFIG=bootstrap-debug
7240 1.1 mrg ;;
7241 1.1 mrg no)
7242 1.1 mrg bootstrap_suffix=no-bootstrap
7243 1.1 mrg BUILD_CONFIG=
7244 1.1 mrg ;;
7245 1.1 mrg esac
7246 1.1 mrg
7247 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7248 1.1 mrg $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7249 1.1 mrg
7250 1.1 mrg
7251 1.1 mrg # Check whether --with-build-config was given.
7252 1.1 mrg if test "${with_build_config+set}" = set; then :
7253 1.1 mrg withval=$with_build_config; case $with_build_config in
7254 1.1 mrg yes) with_build_config= ;;
7255 1.1 mrg no) with_build_config= BUILD_CONFIG= ;;
7256 1.1 mrg esac
7257 1.1 mrg fi
7258 1.1 mrg
7259 1.1 mrg
7260 1.1 mrg if test "x${with_build_config}" != x; then
7261 1.1 mrg BUILD_CONFIG=$with_build_config
7262 1.1 mrg else
7263 1.1 mrg case $BUILD_CONFIG in
7264 1.1 mrg bootstrap-debug)
7265 1.1 mrg if echo "int f (void) { return 0; }" > conftest.c &&
7266 1.1 mrg ${CC} -c conftest.c &&
7267 1.1 mrg mv conftest.o conftest.o.g0 &&
7268 1.1 mrg ${CC} -c -g conftest.c &&
7269 1.6 mrg mv conftest.o conftest.o.g &&
7270 1.6 mrg ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7271 1.6 mrg :
7272 1.6 mrg else
7273 1.6 mrg BUILD_CONFIG=
7274 1.6 mrg fi
7275 1.6 mrg rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7276 1.6 mrg ;;
7277 1.6 mrg esac
7278 1.6 mrg fi
7279 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7280 1.6 mrg $as_echo "$BUILD_CONFIG" >&6; }
7281 1.6 mrg
7282 1.6 mrg
7283 1.6 mrg # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7284 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7285 1.6 mrg $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7286 1.6 mrg # Check whether --enable-vtable-verify was given.
7287 1.6 mrg if test "${enable_vtable_verify+set}" = set; then :
7288 1.6 mrg enableval=$enable_vtable_verify; case "$enableval" in
7289 1.6 mrg yes) enable_vtable_verify=yes ;;
7290 1.6 mrg no) enable_vtable_verify=no ;;
7291 1.6 mrg *) enable_vtable_verify=no;;
7292 1.6 mrg esac
7293 1.6 mrg else
7294 1.6 mrg enable_vtable_verify=no
7295 1.6 mrg fi
7296 1.6 mrg
7297 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7298 1.6 mrg $as_echo "$enable_vtable_verify" >&6; }
7299 1.6 mrg
7300 1.6 mrg # Record target_configdirs and the configure arguments for target and
7301 1.6 mrg # build configuration in Makefile.
7302 1.6 mrg target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7303 1.6 mrg build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7304 1.6 mrg bootstrap_fixincludes=no
7305 1.6 mrg
7306 1.6 mrg # If we are building libgomp, bootstrap it.
7307 1.6 mrg if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7308 1.6 mrg bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7309 1.6 mrg fi
7310 1.6 mrg
7311 1.6 mrg # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7312 1.6 mrg # or bootstrap-ubsan, bootstrap it.
7313 1.6 mrg if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7314 1.6 mrg case "$BUILD_CONFIG" in
7315 1.6 mrg *bootstrap-asan* | *bootstrap-ubsan* )
7316 1.6 mrg bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7317 1.6 mrg bootstrap_fixincludes=yes
7318 1.6 mrg ;;
7319 1.6 mrg esac
7320 1.6 mrg fi
7321 1.6 mrg
7322 1.6 mrg # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7323 1.6 mrg if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7324 1.6 mrg test "$enable_vtable_verify" != no; then
7325 1.6 mrg bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7326 1.6 mrg fi
7327 1.6 mrg
7328 1.6 mrg # Determine whether gdb needs tk/tcl or not.
7329 1.6 mrg # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7330 1.6 mrg # and in that case we want gdb to be built without tk. Ugh!
7331 1.6 mrg # In fact I believe gdb is the *only* package directly dependent on tk,
7332 1.6 mrg # so we should be able to put the 'maybe's in unconditionally and
7333 1.6 mrg # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7334 1.6 mrg # 100% sure that that's safe though.
7335 1.6 mrg
7336 1.6 mrg gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7337 1.6 mrg case "$enable_gdbtk" in
7338 1.6 mrg no)
7339 1.6 mrg GDB_TK="" ;;
7340 1.6 mrg yes)
7341 1.6 mrg GDB_TK="${gdb_tk}" ;;
7342 1.6 mrg *)
7343 1.6 mrg # Only add the dependency on gdbtk when GDBtk is part of the gdb
7344 1.6 mrg # distro. Eventually someone will fix this and move Insight, nee
7345 1.6 mrg # gdbtk to a separate directory.
7346 1.6 mrg if test -d ${srcdir}/gdb/gdbtk ; then
7347 1.6 mrg GDB_TK="${gdb_tk}"
7348 1.1 mrg else
7349 1.6 mrg GDB_TK=""
7350 1.1 mrg fi
7351 1.1 mrg ;;
7352 1.6 mrg esac
7353 1.6 mrg CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7354 1.6 mrg INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7355 1.6 mrg
7356 1.13 mrg # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7357 1.13 mrg # else does, only include them if one of these is built. The Makefile
7358 1.13 mrg # provides the ordering, so it's enough here to add to the list.
7359 1.13 mrg case " ${configdirs} " in
7360 1.13 mrg *\ gdb\ *)
7361 1.13 mrg configdirs="${configdirs} gnulib gdbsupport"
7362 1.13 mrg ;;
7363 1.13 mrg *\ gdbserver\ *)
7364 1.13 mrg configdirs="${configdirs} gnulib gdbsupport"
7365 1.13 mrg ;;
7366 1.13 mrg esac
7367 1.13 mrg
7368 1.6 mrg # Strip out unwanted targets.
7369 1.6 mrg
7370 1.6 mrg # While at that, we remove Makefiles if we were started for recursive
7371 1.6 mrg # configuration, so that the top-level Makefile reconfigures them,
7372 1.6 mrg # like we used to do when configure itself was recursive.
7373 1.6 mrg
7374 1.6 mrg # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7375 1.6 mrg # but now we're fixing up the Makefile ourselves with the additional
7376 1.6 mrg # commands passed to AC_CONFIG_FILES. Use separate variables
7377 1.6 mrg # extrasub-{build,host,target} not because there is any reason to split
7378 1.6 mrg # the substitutions up that way, but only to remain below the limit of
7379 1.6 mrg # 99 commands in a script, for HP-UX sed.
7380 1.12 mrg
7381 1.12 mrg # Do not nest @if/@endif or @unless/@endunless pairs, because
7382 1.12 mrg # configure will not warn you at all.
7383 1.1 mrg
7384 1.6 mrg case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7385 1.6 mrg yes:yes:*\ gold\ *:*,c++,*) ;;
7386 1.6 mrg yes:yes:*\ gold\ *:*)
7387 1.12 mrg as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7388 1.6 mrg ;;
7389 1.6 mrg esac
7390 1.1 mrg
7391 1.1 mrg extrasub_build=
7392 1.1 mrg for module in ${build_configdirs} ; do
7393 1.1 mrg if test -z "${no_recursion}" \
7394 1.1 mrg && test -f ${build_subdir}/${module}/Makefile; then
7395 1.1 mrg echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7396 1.1 mrg rm -f ${build_subdir}/${module}/Makefile
7397 1.1 mrg fi
7398 1.1 mrg extrasub_build="$extrasub_build
7399 1.1 mrg /^@if build-$module\$/d
7400 1.1 mrg /^@endif build-$module\$/d
7401 1.12 mrg /^@unless build-$module\$/,/^@endunless build-$module\$/d
7402 1.1 mrg /^@if build-$module-$bootstrap_suffix\$/d
7403 1.12 mrg /^@endif build-$module-$bootstrap_suffix\$/d
7404 1.12 mrg /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7405 1.1 mrg done
7406 1.1 mrg extrasub_host=
7407 1.1 mrg for module in ${configdirs} ; do
7408 1.1 mrg if test -z "${no_recursion}"; then
7409 1.1 mrg for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7410 1.1 mrg if test -f ${file}; then
7411 1.1 mrg echo 1>&2 "*** removing ${file} to force reconfigure"
7412 1.1 mrg rm -f ${file}
7413 1.1 mrg fi
7414 1.1 mrg done
7415 1.1 mrg fi
7416 1.6 mrg case ${module},${bootstrap_fixincludes} in
7417 1.6 mrg fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7418 1.6 mrg *) host_bootstrap_suffix=$bootstrap_suffix ;;
7419 1.6 mrg esac
7420 1.1 mrg extrasub_host="$extrasub_host
7421 1.1 mrg /^@if $module\$/d
7422 1.1 mrg /^@endif $module\$/d
7423 1.12 mrg /^@unless $module\$/,/^@endunless $module\$/d
7424 1.6 mrg /^@if $module-$host_bootstrap_suffix\$/d
7425 1.12 mrg /^@endif $module-$host_bootstrap_suffix\$/d
7426 1.12 mrg /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7427 1.1 mrg done
7428 1.1 mrg extrasub_target=
7429 1.1 mrg for module in ${target_configdirs} ; do
7430 1.1 mrg if test -z "${no_recursion}" \
7431 1.1 mrg && test -f ${target_subdir}/${module}/Makefile; then
7432 1.1 mrg echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7433 1.1 mrg rm -f ${target_subdir}/${module}/Makefile
7434 1.1 mrg fi
7435 1.1 mrg
7436 1.1 mrg # We only bootstrap target libraries listed in bootstrap_target_libs.
7437 1.1 mrg case $bootstrap_target_libs in
7438 1.1 mrg *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7439 1.1 mrg *) target_bootstrap_suffix=no-bootstrap ;;
7440 1.1 mrg esac
7441 1.1 mrg
7442 1.1 mrg extrasub_target="$extrasub_target
7443 1.1 mrg /^@if target-$module\$/d
7444 1.1 mrg /^@endif target-$module\$/d
7445 1.12 mrg /^@unless target-$module\$/,/^@endunless target-$module\$/d
7446 1.1 mrg /^@if target-$module-$target_bootstrap_suffix\$/d
7447 1.12 mrg /^@endif target-$module-$target_bootstrap_suffix\$/d
7448 1.12 mrg /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7449 1.1 mrg done
7450 1.1 mrg
7451 1.1 mrg # Do the final fixup along with target modules.
7452 1.1 mrg extrasub_target="$extrasub_target
7453 1.12 mrg /^@if /,/^@endif /d
7454 1.12 mrg /^@unless /d
7455 1.12 mrg /^@endunless /d"
7456 1.1 mrg
7457 1.1 mrg # Create the serialization dependencies. This uses a temporary file.
7458 1.1 mrg
7459 1.1 mrg # Check whether --enable-serial-configure was given.
7460 1.1 mrg if test "${enable_serial_configure+set}" = set; then :
7461 1.1 mrg enableval=$enable_serial_configure;
7462 1.1 mrg fi
7463 1.1 mrg
7464 1.1 mrg
7465 1.1 mrg case ${enable_serial_configure} in
7466 1.1 mrg yes)
7467 1.1 mrg enable_serial_build_configure=yes
7468 1.1 mrg enable_serial_host_configure=yes
7469 1.1 mrg enable_serial_target_configure=yes
7470 1.1 mrg ;;
7471 1.1 mrg esac
7472 1.1 mrg
7473 1.1 mrg # These force 'configure's to be done one at a time, to avoid problems
7474 1.1 mrg # with contention over a shared config.cache.
7475 1.1 mrg rm -f serdep.tmp
7476 1.1 mrg echo '# serdep.tmp' > serdep.tmp
7477 1.1 mrg olditem=
7478 1.1 mrg test "x${enable_serial_build_configure}" = xyes &&
7479 1.1 mrg for item in ${build_configdirs} ; do
7480 1.1 mrg case ${olditem} in
7481 1.1 mrg "") ;;
7482 1.1 mrg *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7483 1.1 mrg esac
7484 1.1 mrg olditem=${item}
7485 1.1 mrg done
7486 1.1 mrg olditem=
7487 1.1 mrg test "x${enable_serial_host_configure}" = xyes &&
7488 1.1 mrg for item in ${configdirs} ; do
7489 1.1 mrg case ${olditem} in
7490 1.1 mrg "") ;;
7491 1.1 mrg *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7492 1.1 mrg esac
7493 1.1 mrg olditem=${item}
7494 1.1 mrg done
7495 1.1 mrg olditem=
7496 1.1 mrg test "x${enable_serial_target_configure}" = xyes &&
7497 1.1 mrg for item in ${target_configdirs} ; do
7498 1.1 mrg case ${olditem} in
7499 1.1 mrg "") ;;
7500 1.1 mrg *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7501 1.1 mrg esac
7502 1.1 mrg olditem=${item}
7503 1.1 mrg done
7504 1.1 mrg serialization_dependencies=serdep.tmp
7505 1.1 mrg
7506 1.1 mrg
7507 1.1 mrg # Base args. Strip norecursion, cache-file, srcdir, host, build,
7508 1.1 mrg # target, nonopt, and variable assignments. These are the ones we
7509 1.1 mrg # might not want to pass down to subconfigures. The exception being
7510 1.1 mrg # --cache-file=/dev/null, which is used to turn off the use of cache
7511 1.1 mrg # files altogether, and which should be passed on to subconfigures.
7512 1.1 mrg # Also strip program-prefix, program-suffix, and program-transform-name,
7513 1.1 mrg # so that we can pass down a consistent program-transform-name.
7514 1.1 mrg baseargs=
7515 1.4 mrg tbaseargs=
7516 1.1 mrg keep_next=no
7517 1.1 mrg skip_next=no
7518 1.1 mrg eval "set -- $ac_configure_args"
7519 1.1 mrg for ac_arg
7520 1.1 mrg do
7521 1.1 mrg if test X"$skip_next" = X"yes"; then
7522 1.1 mrg skip_next=no
7523 1.1 mrg continue
7524 1.1 mrg fi
7525 1.1 mrg if test X"$keep_next" = X"yes"; then
7526 1.1 mrg case $ac_arg in
7527 1.1 mrg *\'*)
7528 1.1 mrg ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7529 1.1 mrg esac
7530 1.1 mrg baseargs="$baseargs '$ac_arg'"
7531 1.4 mrg tbaseargs="$tbaseargs '$ac_arg'"
7532 1.1 mrg keep_next=no
7533 1.1 mrg continue
7534 1.1 mrg fi
7535 1.1 mrg
7536 1.1 mrg # Handle separated arguments. Based on the logic generated by
7537 1.1 mrg # autoconf 2.59.
7538 1.1 mrg case $ac_arg in
7539 1.1 mrg *=* | --config-cache | -C | -disable-* | --disable-* \
7540 1.1 mrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7541 1.1 mrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7542 1.1 mrg | -with-* | --with-* | -without-* | --without-* | --x)
7543 1.1 mrg separate_arg=no
7544 1.1 mrg ;;
7545 1.1 mrg -*)
7546 1.4 mrg separate_arg=yes
7547 1.4 mrg ;;
7548 1.4 mrg *)
7549 1.4 mrg separate_arg=no
7550 1.4 mrg ;;
7551 1.4 mrg esac
7552 1.4 mrg
7553 1.4 mrg skip_targ=no
7554 1.4 mrg case $ac_arg in
7555 1.4 mrg
7556 1.4 mrg --with-* | --without-*)
7557 1.4 mrg libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7558 1.4 mrg
7559 1.4 mrg case $libopt in
7560 1.4 mrg *[-_]include)
7561 1.4 mrg lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7562 1.4 mrg ;;
7563 1.4 mrg *[-_]lib)
7564 1.4 mrg lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7565 1.4 mrg ;;
7566 1.4 mrg *)
7567 1.4 mrg lib=$libopt
7568 1.4 mrg ;;
7569 1.4 mrg esac
7570 1.4 mrg
7571 1.4 mrg
7572 1.4 mrg case $lib in
7573 1.6 mrg mpc | mpfr | gmp | isl)
7574 1.4 mrg # If we're processing --with-$lib, --with-$lib-include or
7575 1.4 mrg # --with-$lib-lib, for one of the libs above, and target is
7576 1.4 mrg # different from host, don't pass the current argument to any
7577 1.4 mrg # target library's configure.
7578 1.4 mrg if test x$is_cross_compiler = xyes; then
7579 1.4 mrg skip_targ=yes
7580 1.4 mrg fi
7581 1.1 mrg ;;
7582 1.4 mrg esac
7583 1.4 mrg ;;
7584 1.1 mrg esac
7585 1.1 mrg
7586 1.1 mrg case "$ac_arg" in
7587 1.1 mrg --cache-file=/dev/null | \
7588 1.1 mrg -cache-file=/dev/null )
7589 1.1 mrg # Handled here to avoid the test to skip args below.
7590 1.1 mrg baseargs="$baseargs '$ac_arg'"
7591 1.4 mrg tbaseargs="$tbaseargs '$ac_arg'"
7592 1.1 mrg # Assert: $separate_arg should always be no.
7593 1.1 mrg keep_next=$separate_arg
7594 1.1 mrg ;;
7595 1.1 mrg --no*)
7596 1.1 mrg continue
7597 1.1 mrg ;;
7598 1.1 mrg --c* | \
7599 1.1 mrg --sr* | \
7600 1.1 mrg --ho* | \
7601 1.1 mrg --bu* | \
7602 1.1 mrg --t* | \
7603 1.1 mrg --program-* | \
7604 1.1 mrg -cache_file* | \
7605 1.1 mrg -srcdir* | \
7606 1.1 mrg -host* | \
7607 1.1 mrg -build* | \
7608 1.1 mrg -target* | \
7609 1.1 mrg -program-prefix* | \
7610 1.1 mrg -program-suffix* | \
7611 1.1 mrg -program-transform-name* )
7612 1.1 mrg skip_next=$separate_arg
7613 1.1 mrg continue
7614 1.1 mrg ;;
7615 1.1 mrg -*)
7616 1.1 mrg # An option. Add it.
7617 1.1 mrg case $ac_arg in
7618 1.1 mrg *\'*)
7619 1.1 mrg ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7620 1.1 mrg esac
7621 1.1 mrg baseargs="$baseargs '$ac_arg'"
7622 1.4 mrg if test X"$skip_targ" = Xno; then
7623 1.4 mrg tbaseargs="$tbaseargs '$ac_arg'"
7624 1.4 mrg fi
7625 1.1 mrg keep_next=$separate_arg
7626 1.1 mrg ;;
7627 1.1 mrg *)
7628 1.1 mrg # Either a variable assignment, or a nonopt (triplet). Don't
7629 1.1 mrg # pass it down; let the Makefile handle this.
7630 1.1 mrg continue
7631 1.1 mrg ;;
7632 1.1 mrg esac
7633 1.1 mrg done
7634 1.1 mrg # Remove the initial space we just introduced and, as these will be
7635 1.1 mrg # expanded by make, quote '$'.
7636 1.1 mrg baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7637 1.1 mrg
7638 1.1 mrg # Add in --program-transform-name, after --program-prefix and
7639 1.1 mrg # --program-suffix have been applied to it. Autoconf has already
7640 1.1 mrg # doubled dollar signs and backslashes in program_transform_name; we want
7641 1.1 mrg # the backslashes un-doubled, and then the entire thing wrapped in single
7642 1.1 mrg # quotes, because this will be expanded first by make and then by the shell.
7643 1.1 mrg # Also, because we want to override the logic in subdir configure scripts to
7644 1.1 mrg # choose program_transform_name, replace any s,x,x, with s,y,y,.
7645 1.1 mrg sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7646 1.1 mrg ${program_transform_name}
7647 1.1 mrg EOF_SED
7648 1.1 mrg gcc_transform_name=`cat conftestsed.out`
7649 1.1 mrg rm -f conftestsed.out
7650 1.1 mrg baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7651 1.4 mrg tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7652 1.1 mrg if test "$silent" = yes; then
7653 1.1 mrg baseargs="$baseargs --silent"
7654 1.4 mrg tbaseargs="$tbaseargs --silent"
7655 1.1 mrg fi
7656 1.1 mrg baseargs="$baseargs --disable-option-checking"
7657 1.4 mrg tbaseargs="$tbaseargs --disable-option-checking"
7658 1.4 mrg
7659 1.4 mrg # Record and document user additions to sub configure arguments.
7660 1.4 mrg
7661 1.4 mrg
7662 1.4 mrg
7663 1.1 mrg
7664 1.1 mrg # For the build-side libraries, we just need to pretend we're native,
7665 1.1 mrg # and not use the same cache file. Multilibs are neither needed nor
7666 1.6 mrg # desired. We can't even use the same cache file for all build-side
7667 1.6 mrg # libraries, as they're compiled differently; some with C, some with
7668 1.6 mrg # C++ or with different feature-enabling options.
7669 1.6 mrg build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7670 1.1 mrg
7671 1.1 mrg # For host modules, accept cache file option, or specification as blank.
7672 1.1 mrg case "${cache_file}" in
7673 1.1 mrg "") # empty
7674 1.1 mrg cache_file_option="" ;;
7675 1.1 mrg /* | [A-Za-z]:[\\/]* ) # absolute path
7676 1.1 mrg cache_file_option="--cache-file=${cache_file}" ;;
7677 1.1 mrg *) # relative path
7678 1.1 mrg cache_file_option="--cache-file=../${cache_file}" ;;
7679 1.1 mrg esac
7680 1.1 mrg
7681 1.1 mrg # Host dirs don't like to share a cache file either, horribly enough.
7682 1.1 mrg # This seems to be due to autoconf 2.5x stupidity.
7683 1.4 mrg host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7684 1.1 mrg
7685 1.4 mrg target_configargs="$target_configargs ${tbaseargs}"
7686 1.1 mrg
7687 1.1 mrg # Passing a --with-cross-host argument lets the target libraries know
7688 1.1 mrg # whether they are being built with a cross-compiler or being built
7689 1.1 mrg # native. However, it would be better to use other mechanisms to make the
7690 1.1 mrg # sorts of decisions they want to make on this basis. Please consider
7691 1.1 mrg # this option to be deprecated. FIXME.
7692 1.1 mrg if test x${is_cross_compiler} = xyes ; then
7693 1.1 mrg target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7694 1.1 mrg fi
7695 1.1 mrg
7696 1.6 mrg # Special user-friendly check for native x86_64-linux build, if
7697 1.6 mrg # multilib is not explicitly enabled.
7698 1.6 mrg case "$target:$have_compiler:$host:$target:$enable_multilib" in
7699 1.6 mrg x86_64-*linux*:yes:$build:$build:)
7700 1.8 mrg # Make sure we have a development environment that handles 32-bit
7701 1.6 mrg dev64=no
7702 1.6 mrg echo "int main () { return 0; }" > conftest.c
7703 1.6 mrg ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7704 1.6 mrg if test $? = 0 ; then
7705 1.6 mrg if test -s conftest || test -s conftest.exe ; then
7706 1.6 mrg dev64=yes
7707 1.6 mrg fi
7708 1.6 mrg fi
7709 1.6 mrg rm -f conftest*
7710 1.6 mrg if test x${dev64} != xyes ; then
7711 1.12 mrg 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
7712 1.6 mrg fi
7713 1.6 mrg ;;
7714 1.6 mrg esac
7715 1.6 mrg
7716 1.1 mrg # Default to --enable-multilib.
7717 1.1 mrg if test x${enable_multilib} = x ; then
7718 1.1 mrg target_configargs="--enable-multilib ${target_configargs}"
7719 1.1 mrg fi
7720 1.1 mrg
7721 1.1 mrg # Pass --with-newlib if appropriate. Note that target_configdirs has
7722 1.1 mrg # changed from the earlier setting of with_newlib.
7723 1.1 mrg if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7724 1.1 mrg target_configargs="--with-newlib ${target_configargs}"
7725 1.1 mrg fi
7726 1.1 mrg
7727 1.1 mrg # Different target subdirs use different values of certain variables
7728 1.1 mrg # (notably CXX). Worse, multilibs use *lots* of different values.
7729 1.1 mrg # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7730 1.1 mrg # it doesn't automatically accept command-line overrides of them.
7731 1.1 mrg # This means it's not safe for target subdirs to share a cache file,
7732 1.1 mrg # which is disgusting, but there you have it. Hopefully this can be
7733 1.1 mrg # fixed in future. It's still worthwhile to use a cache file for each
7734 1.1 mrg # directory. I think.
7735 1.1 mrg
7736 1.1 mrg # Pass the appropriate --build, --host, --target and --cache-file arguments.
7737 1.1 mrg # We need to pass --target, as newer autoconf's requires consistency
7738 1.1 mrg # for target_alias and gcc doesn't manage it consistently.
7739 1.1 mrg target_configargs="--cache-file=./config.cache ${target_configargs}"
7740 1.1 mrg
7741 1.1 mrg FLAGS_FOR_TARGET=
7742 1.1 mrg case " $target_configdirs " in
7743 1.1 mrg *" newlib "*)
7744 1.1 mrg case " $target_configargs " in
7745 1.1 mrg *" --with-newlib "*)
7746 1.1 mrg case "$target" in
7747 1.1 mrg *-cygwin*)
7748 1.4 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7749 1.1 mrg ;;
7750 1.1 mrg esac
7751 1.1 mrg
7752 1.1 mrg # If we're not building GCC, don't discard standard headers.
7753 1.1 mrg if test -d ${srcdir}/gcc; then
7754 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7755 1.1 mrg
7756 1.1 mrg if test "${build}" != "${host}"; then
7757 1.1 mrg # On Canadian crosses, CC_FOR_TARGET will have already been set
7758 1.1 mrg # by `configure', so we won't have an opportunity to add -Bgcc/
7759 1.1 mrg # to it. This is right: we don't want to search that directory
7760 1.1 mrg # for binaries, but we want the header files in there, so add
7761 1.1 mrg # them explicitly.
7762 1.4 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7763 1.1 mrg
7764 1.1 mrg # Someone might think of using the pre-installed headers on
7765 1.1 mrg # Canadian crosses, in case the installed compiler is not fully
7766 1.1 mrg # compatible with the compiler being built. In this case, it
7767 1.1 mrg # would be better to flag an error than risking having
7768 1.1 mrg # incompatible object files being constructed. We can't
7769 1.1 mrg # guarantee that an error will be flagged, but let's hope the
7770 1.1 mrg # compiler will do it, when presented with incompatible header
7771 1.1 mrg # files.
7772 1.1 mrg fi
7773 1.1 mrg fi
7774 1.1 mrg
7775 1.1 mrg case "${target}-${is_cross_compiler}" in
7776 1.1 mrg i[3456789]86-*-linux*-no)
7777 1.1 mrg # Here host == target, so we don't need to build gcc,
7778 1.1 mrg # so we don't want to discard standard headers.
7779 1.1 mrg FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7780 1.1 mrg ;;
7781 1.1 mrg *)
7782 1.1 mrg # If we're building newlib, use its generic headers last, but search
7783 1.1 mrg # for any libc-related directories first (so make it the last -B
7784 1.1 mrg # switch).
7785 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7786 1.1 mrg
7787 1.1 mrg # If we're building libgloss, find the startup file, simulator library
7788 1.1 mrg # and linker script.
7789 1.1 mrg case " $target_configdirs " in
7790 1.1 mrg *" libgloss "*)
7791 1.1 mrg # Look for startup file, simulator library and maybe linker script.
7792 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7793 1.1 mrg # Look for libnosys.a in case the target needs it.
7794 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7795 1.1 mrg # Most targets have the linker script in the source directory.
7796 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7797 1.1 mrg ;;
7798 1.1 mrg esac
7799 1.1 mrg ;;
7800 1.1 mrg esac
7801 1.1 mrg ;;
7802 1.1 mrg esac
7803 1.1 mrg ;;
7804 1.1 mrg esac
7805 1.1 mrg
7806 1.1 mrg case "$target" in
7807 1.1 mrg x86_64-*mingw* | *-w64-mingw*)
7808 1.1 mrg # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7809 1.1 mrg # however, use a symlink named 'mingw' in ${prefix} .
7810 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7811 1.1 mrg ;;
7812 1.1 mrg *-mingw*)
7813 1.1 mrg # MinGW can't be handled as Cygwin above since it does not use newlib.
7814 1.1 mrg 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'
7815 1.1 mrg ;;
7816 1.1 mrg esac
7817 1.1 mrg
7818 1.1 mrg # Allow the user to override the flags for
7819 1.1 mrg # our build compiler if desired.
7820 1.1 mrg if test x"${build}" = x"${host}" ; then
7821 1.1 mrg CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7822 1.1 mrg CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7823 1.1 mrg LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7824 1.1 mrg fi
7825 1.1 mrg
7826 1.1 mrg # On Canadian crosses, we'll be searching the right directories for
7827 1.1 mrg # the previously-installed cross compiler, so don't bother to add
7828 1.1 mrg # flags for directories within the install tree of the compiler
7829 1.1 mrg # being built; programs in there won't even run.
7830 1.1 mrg if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7831 1.1 mrg # Search for pre-installed headers if nothing else fits.
7832 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7833 1.1 mrg fi
7834 1.1 mrg
7835 1.1 mrg if test "x${use_gnu_ld}" = x &&
7836 1.1 mrg echo " ${configdirs} " | grep " ld " > /dev/null ; then
7837 1.1 mrg # Arrange for us to find uninstalled linker scripts.
7838 1.1 mrg FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7839 1.1 mrg fi
7840 1.1 mrg
7841 1.1 mrg # Search for other target-specific linker scripts and such.
7842 1.1 mrg case "${target}" in
7843 1.1 mrg mep*)
7844 1.1 mrg FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7845 1.1 mrg ;;
7846 1.1 mrg esac
7847 1.1 mrg
7848 1.1 mrg # Makefile fragments.
7849 1.1 mrg for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7850 1.1 mrg do
7851 1.1 mrg eval fragval=\$$frag
7852 1.1 mrg if test $fragval != /dev/null; then
7853 1.1 mrg eval $frag=${srcdir}/$fragval
7854 1.1 mrg fi
7855 1.1 mrg done
7856 1.1 mrg
7857 1.1 mrg
7858 1.1 mrg
7859 1.1 mrg
7860 1.1 mrg
7861 1.1 mrg # Miscellanea: directories, flags, etc.
7862 1.1 mrg
7863 1.1 mrg
7864 1.1 mrg
7865 1.1 mrg
7866 1.1 mrg
7867 1.1 mrg
7868 1.1 mrg
7869 1.1 mrg
7870 1.1 mrg # Build module lists & subconfigure args.
7871 1.1 mrg
7872 1.1 mrg
7873 1.1 mrg
7874 1.1 mrg # Host module lists & subconfigure args.
7875 1.1 mrg
7876 1.1 mrg
7877 1.1 mrg
7878 1.1 mrg
7879 1.1 mrg # Target module lists & subconfigure args.
7880 1.1 mrg
7881 1.1 mrg
7882 1.1 mrg
7883 1.1 mrg # Build tools.
7884 1.1 mrg
7885 1.1 mrg
7886 1.1 mrg
7887 1.1 mrg
7888 1.1 mrg
7889 1.1 mrg
7890 1.1 mrg
7891 1.1 mrg
7892 1.1 mrg
7893 1.1 mrg
7894 1.1 mrg
7895 1.1 mrg
7896 1.1 mrg
7897 1.1 mrg
7898 1.1 mrg
7899 1.1 mrg
7900 1.12 mrg
7901 1.13 mrg
7902 1.1 mrg # Generate default definitions for YACC, M4, LEX and other programs that run
7903 1.1 mrg # on the build machine. These are used if the Makefile can't locate these
7904 1.1 mrg # programs in objdir.
7905 1.1 mrg MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7906 1.1 mrg
7907 1.1 mrg for ac_prog in 'bison -y' byacc yacc
7908 1.1 mrg do
7909 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
7910 1.1 mrg set dummy $ac_prog; ac_word=$2
7911 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
7913 1.12 mrg if ${ac_cv_prog_YACC+:} false; then :
7914 1.1 mrg $as_echo_n "(cached) " >&6
7915 1.1 mrg else
7916 1.1 mrg if test -n "$YACC"; then
7917 1.1 mrg ac_cv_prog_YACC="$YACC" # Let the user override the test.
7918 1.1 mrg else
7919 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 1.1 mrg for as_dir in $PATH
7921 1.1 mrg do
7922 1.1 mrg IFS=$as_save_IFS
7923 1.1 mrg test -z "$as_dir" && as_dir=.
7924 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
7925 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 1.1 mrg ac_cv_prog_YACC="$ac_prog"
7927 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 1.1 mrg break 2
7929 1.1 mrg fi
7930 1.1 mrg done
7931 1.1 mrg done
7932 1.1 mrg IFS=$as_save_IFS
7933 1.1 mrg
7934 1.1 mrg fi
7935 1.1 mrg fi
7936 1.1 mrg YACC=$ac_cv_prog_YACC
7937 1.1 mrg if test -n "$YACC"; then
7938 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7939 1.1 mrg $as_echo "$YACC" >&6; }
7940 1.1 mrg else
7941 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 1.1 mrg $as_echo "no" >&6; }
7943 1.1 mrg fi
7944 1.1 mrg
7945 1.1 mrg
7946 1.1 mrg test -n "$YACC" && break
7947 1.1 mrg done
7948 1.1 mrg test -n "$YACC" || YACC="$MISSING bison -y"
7949 1.1 mrg
7950 1.1 mrg case " $build_configdirs " in
7951 1.1 mrg *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7952 1.1 mrg esac
7953 1.1 mrg
7954 1.1 mrg for ac_prog in bison
7955 1.1 mrg do
7956 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
7957 1.1 mrg set dummy $ac_prog; ac_word=$2
7958 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
7960 1.12 mrg if ${ac_cv_prog_BISON+:} false; then :
7961 1.1 mrg $as_echo_n "(cached) " >&6
7962 1.1 mrg else
7963 1.1 mrg if test -n "$BISON"; then
7964 1.1 mrg ac_cv_prog_BISON="$BISON" # Let the user override the test.
7965 1.1 mrg else
7966 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 1.1 mrg for as_dir in $PATH
7968 1.1 mrg do
7969 1.1 mrg IFS=$as_save_IFS
7970 1.1 mrg test -z "$as_dir" && as_dir=.
7971 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
7972 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 1.1 mrg ac_cv_prog_BISON="$ac_prog"
7974 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 1.1 mrg break 2
7976 1.1 mrg fi
7977 1.1 mrg done
7978 1.1 mrg done
7979 1.1 mrg IFS=$as_save_IFS
7980 1.1 mrg
7981 1.1 mrg fi
7982 1.1 mrg fi
7983 1.1 mrg BISON=$ac_cv_prog_BISON
7984 1.1 mrg if test -n "$BISON"; then
7985 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7986 1.1 mrg $as_echo "$BISON" >&6; }
7987 1.1 mrg else
7988 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 1.1 mrg $as_echo "no" >&6; }
7990 1.1 mrg fi
7991 1.1 mrg
7992 1.1 mrg
7993 1.1 mrg test -n "$BISON" && break
7994 1.1 mrg done
7995 1.1 mrg test -n "$BISON" || BISON="$MISSING bison"
7996 1.1 mrg
7997 1.1 mrg case " $build_configdirs " in
7998 1.1 mrg *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7999 1.1 mrg esac
8000 1.1 mrg
8001 1.1 mrg for ac_prog in gm4 gnum4 m4
8002 1.1 mrg do
8003 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
8004 1.1 mrg set dummy $ac_prog; ac_word=$2
8005 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8007 1.12 mrg if ${ac_cv_prog_M4+:} false; then :
8008 1.1 mrg $as_echo_n "(cached) " >&6
8009 1.1 mrg else
8010 1.1 mrg if test -n "$M4"; then
8011 1.1 mrg ac_cv_prog_M4="$M4" # Let the user override the test.
8012 1.1 mrg else
8013 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 1.1 mrg for as_dir in $PATH
8015 1.1 mrg do
8016 1.1 mrg IFS=$as_save_IFS
8017 1.1 mrg test -z "$as_dir" && as_dir=.
8018 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8019 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 1.1 mrg ac_cv_prog_M4="$ac_prog"
8021 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 1.1 mrg break 2
8023 1.1 mrg fi
8024 1.1 mrg done
8025 1.1 mrg done
8026 1.1 mrg IFS=$as_save_IFS
8027 1.1 mrg
8028 1.1 mrg fi
8029 1.1 mrg fi
8030 1.1 mrg M4=$ac_cv_prog_M4
8031 1.1 mrg if test -n "$M4"; then
8032 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8033 1.1 mrg $as_echo "$M4" >&6; }
8034 1.1 mrg else
8035 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 1.1 mrg $as_echo "no" >&6; }
8037 1.1 mrg fi
8038 1.1 mrg
8039 1.1 mrg
8040 1.1 mrg test -n "$M4" && break
8041 1.1 mrg done
8042 1.1 mrg test -n "$M4" || M4="$MISSING m4"
8043 1.1 mrg
8044 1.1 mrg case " $build_configdirs " in
8045 1.1 mrg *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8046 1.1 mrg esac
8047 1.1 mrg
8048 1.1 mrg for ac_prog in flex lex
8049 1.1 mrg do
8050 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
8051 1.1 mrg set dummy $ac_prog; ac_word=$2
8052 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8054 1.12 mrg if ${ac_cv_prog_LEX+:} false; then :
8055 1.1 mrg $as_echo_n "(cached) " >&6
8056 1.1 mrg else
8057 1.1 mrg if test -n "$LEX"; then
8058 1.1 mrg ac_cv_prog_LEX="$LEX" # Let the user override the test.
8059 1.1 mrg else
8060 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 1.1 mrg for as_dir in $PATH
8062 1.1 mrg do
8063 1.1 mrg IFS=$as_save_IFS
8064 1.1 mrg test -z "$as_dir" && as_dir=.
8065 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8066 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 1.1 mrg ac_cv_prog_LEX="$ac_prog"
8068 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 1.1 mrg break 2
8070 1.1 mrg fi
8071 1.1 mrg done
8072 1.1 mrg done
8073 1.1 mrg IFS=$as_save_IFS
8074 1.1 mrg
8075 1.1 mrg fi
8076 1.1 mrg fi
8077 1.1 mrg LEX=$ac_cv_prog_LEX
8078 1.1 mrg if test -n "$LEX"; then
8079 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8080 1.1 mrg $as_echo "$LEX" >&6; }
8081 1.1 mrg else
8082 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 1.1 mrg $as_echo "no" >&6; }
8084 1.1 mrg fi
8085 1.1 mrg
8086 1.1 mrg
8087 1.1 mrg test -n "$LEX" && break
8088 1.1 mrg done
8089 1.1 mrg test -n "$LEX" || LEX="$MISSING flex"
8090 1.1 mrg
8091 1.1 mrg case " $build_configdirs " in
8092 1.1 mrg *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8093 1.1 mrg *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8094 1.1 mrg esac
8095 1.1 mrg
8096 1.1 mrg for ac_prog in flex
8097 1.1 mrg do
8098 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
8099 1.1 mrg set dummy $ac_prog; ac_word=$2
8100 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8102 1.12 mrg if ${ac_cv_prog_FLEX+:} false; then :
8103 1.1 mrg $as_echo_n "(cached) " >&6
8104 1.1 mrg else
8105 1.1 mrg if test -n "$FLEX"; then
8106 1.1 mrg ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8107 1.1 mrg else
8108 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 1.1 mrg for as_dir in $PATH
8110 1.1 mrg do
8111 1.1 mrg IFS=$as_save_IFS
8112 1.1 mrg test -z "$as_dir" && as_dir=.
8113 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8114 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 1.1 mrg ac_cv_prog_FLEX="$ac_prog"
8116 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 1.1 mrg break 2
8118 1.1 mrg fi
8119 1.1 mrg done
8120 1.1 mrg done
8121 1.1 mrg IFS=$as_save_IFS
8122 1.1 mrg
8123 1.1 mrg fi
8124 1.1 mrg fi
8125 1.1 mrg FLEX=$ac_cv_prog_FLEX
8126 1.1 mrg if test -n "$FLEX"; then
8127 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8128 1.1 mrg $as_echo "$FLEX" >&6; }
8129 1.1 mrg else
8130 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 1.1 mrg $as_echo "no" >&6; }
8132 1.1 mrg fi
8133 1.1 mrg
8134 1.1 mrg
8135 1.1 mrg test -n "$FLEX" && break
8136 1.1 mrg done
8137 1.1 mrg test -n "$FLEX" || FLEX="$MISSING flex"
8138 1.1 mrg
8139 1.1 mrg case " $build_configdirs " in
8140 1.1 mrg *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8141 1.1 mrg esac
8142 1.1 mrg
8143 1.1 mrg for ac_prog in makeinfo
8144 1.1 mrg do
8145 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 1.1 mrg set dummy $ac_prog; ac_word=$2
8147 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8149 1.12 mrg if ${ac_cv_prog_MAKEINFO+:} false; then :
8150 1.1 mrg $as_echo_n "(cached) " >&6
8151 1.1 mrg else
8152 1.1 mrg if test -n "$MAKEINFO"; then
8153 1.1 mrg ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8154 1.1 mrg else
8155 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 1.1 mrg for as_dir in $PATH
8157 1.1 mrg do
8158 1.1 mrg IFS=$as_save_IFS
8159 1.1 mrg test -z "$as_dir" && as_dir=.
8160 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8161 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8162 1.1 mrg ac_cv_prog_MAKEINFO="$ac_prog"
8163 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 1.1 mrg break 2
8165 1.1 mrg fi
8166 1.1 mrg done
8167 1.1 mrg done
8168 1.1 mrg IFS=$as_save_IFS
8169 1.1 mrg
8170 1.1 mrg fi
8171 1.1 mrg fi
8172 1.1 mrg MAKEINFO=$ac_cv_prog_MAKEINFO
8173 1.1 mrg if test -n "$MAKEINFO"; then
8174 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8175 1.1 mrg $as_echo "$MAKEINFO" >&6; }
8176 1.1 mrg else
8177 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 1.1 mrg $as_echo "no" >&6; }
8179 1.1 mrg fi
8180 1.1 mrg
8181 1.1 mrg
8182 1.1 mrg test -n "$MAKEINFO" && break
8183 1.1 mrg done
8184 1.1 mrg test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8185 1.1 mrg
8186 1.1 mrg case " $build_configdirs " in
8187 1.1 mrg *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8188 1.1 mrg *)
8189 1.1 mrg
8190 1.1 mrg # For an installed makeinfo, we require it to be from texinfo 4.7 or
8191 1.1 mrg # higher, else we use the "missing" dummy.
8192 1.1 mrg if ${MAKEINFO} --version \
8193 1.1 mrg | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8194 1.1 mrg :
8195 1.1 mrg else
8196 1.1 mrg MAKEINFO="$MISSING makeinfo"
8197 1.1 mrg fi
8198 1.1 mrg ;;
8199 1.1 mrg
8200 1.1 mrg esac
8201 1.1 mrg
8202 1.1 mrg # FIXME: expect and dejagnu may become build tools?
8203 1.1 mrg
8204 1.1 mrg for ac_prog in expect
8205 1.1 mrg do
8206 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
8207 1.1 mrg set dummy $ac_prog; ac_word=$2
8208 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8210 1.12 mrg if ${ac_cv_prog_EXPECT+:} false; then :
8211 1.1 mrg $as_echo_n "(cached) " >&6
8212 1.1 mrg else
8213 1.1 mrg if test -n "$EXPECT"; then
8214 1.1 mrg ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8215 1.1 mrg else
8216 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 1.1 mrg for as_dir in $PATH
8218 1.1 mrg do
8219 1.1 mrg IFS=$as_save_IFS
8220 1.1 mrg test -z "$as_dir" && as_dir=.
8221 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8222 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 1.1 mrg ac_cv_prog_EXPECT="$ac_prog"
8224 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 1.1 mrg break 2
8226 1.1 mrg fi
8227 1.1 mrg done
8228 1.1 mrg done
8229 1.1 mrg IFS=$as_save_IFS
8230 1.1 mrg
8231 1.1 mrg fi
8232 1.1 mrg fi
8233 1.1 mrg EXPECT=$ac_cv_prog_EXPECT
8234 1.1 mrg if test -n "$EXPECT"; then
8235 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8236 1.1 mrg $as_echo "$EXPECT" >&6; }
8237 1.1 mrg else
8238 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 1.1 mrg $as_echo "no" >&6; }
8240 1.1 mrg fi
8241 1.1 mrg
8242 1.1 mrg
8243 1.1 mrg test -n "$EXPECT" && break
8244 1.1 mrg done
8245 1.1 mrg test -n "$EXPECT" || EXPECT="expect"
8246 1.1 mrg
8247 1.1 mrg case " $configdirs " in
8248 1.1 mrg *" expect "*)
8249 1.1 mrg test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8250 1.1 mrg ;;
8251 1.1 mrg esac
8252 1.1 mrg
8253 1.1 mrg for ac_prog in runtest
8254 1.1 mrg do
8255 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
8256 1.1 mrg set dummy $ac_prog; ac_word=$2
8257 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8259 1.12 mrg if ${ac_cv_prog_RUNTEST+:} false; then :
8260 1.1 mrg $as_echo_n "(cached) " >&6
8261 1.1 mrg else
8262 1.1 mrg if test -n "$RUNTEST"; then
8263 1.1 mrg ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8264 1.1 mrg else
8265 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 1.1 mrg for as_dir in $PATH
8267 1.1 mrg do
8268 1.1 mrg IFS=$as_save_IFS
8269 1.1 mrg test -z "$as_dir" && as_dir=.
8270 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8271 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 1.1 mrg ac_cv_prog_RUNTEST="$ac_prog"
8273 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 1.1 mrg break 2
8275 1.1 mrg fi
8276 1.1 mrg done
8277 1.1 mrg done
8278 1.1 mrg IFS=$as_save_IFS
8279 1.1 mrg
8280 1.1 mrg fi
8281 1.1 mrg fi
8282 1.1 mrg RUNTEST=$ac_cv_prog_RUNTEST
8283 1.1 mrg if test -n "$RUNTEST"; then
8284 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8285 1.1 mrg $as_echo "$RUNTEST" >&6; }
8286 1.1 mrg else
8287 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 1.1 mrg $as_echo "no" >&6; }
8289 1.1 mrg fi
8290 1.1 mrg
8291 1.1 mrg
8292 1.1 mrg test -n "$RUNTEST" && break
8293 1.1 mrg done
8294 1.1 mrg test -n "$RUNTEST" || RUNTEST="runtest"
8295 1.1 mrg
8296 1.1 mrg case " $configdirs " in
8297 1.1 mrg *" dejagnu "*)
8298 1.1 mrg test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8299 1.1 mrg ;;
8300 1.1 mrg esac
8301 1.1 mrg
8302 1.1 mrg
8303 1.1 mrg # Host tools.
8304 1.1 mrg ncn_tool_prefix=
8305 1.1 mrg test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8306 1.1 mrg ncn_target_tool_prefix=
8307 1.1 mrg test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8308 1.1 mrg
8309 1.1 mrg
8310 1.1 mrg
8311 1.1 mrg if test -n "$AR"; then
8312 1.1 mrg ac_cv_prog_AR=$AR
8313 1.1 mrg elif test -n "$ac_cv_prog_AR"; then
8314 1.1 mrg AR=$ac_cv_prog_AR
8315 1.1 mrg fi
8316 1.1 mrg
8317 1.1 mrg if test -n "$ac_cv_prog_AR"; then
8318 1.1 mrg for ncn_progname in ar; do
8319 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8321 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8323 1.12 mrg if ${ac_cv_prog_AR+:} false; then :
8324 1.1 mrg $as_echo_n "(cached) " >&6
8325 1.1 mrg else
8326 1.1 mrg if test -n "$AR"; then
8327 1.1 mrg ac_cv_prog_AR="$AR" # Let the user override the test.
8328 1.1 mrg else
8329 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 1.1 mrg for as_dir in $PATH
8331 1.1 mrg do
8332 1.1 mrg IFS=$as_save_IFS
8333 1.1 mrg test -z "$as_dir" && as_dir=.
8334 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8335 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8336 1.1 mrg ac_cv_prog_AR="${ncn_progname}"
8337 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 1.1 mrg break 2
8339 1.1 mrg fi
8340 1.1 mrg done
8341 1.1 mrg done
8342 1.1 mrg IFS=$as_save_IFS
8343 1.1 mrg
8344 1.1 mrg fi
8345 1.1 mrg fi
8346 1.1 mrg AR=$ac_cv_prog_AR
8347 1.1 mrg if test -n "$AR"; then
8348 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8349 1.1 mrg $as_echo "$AR" >&6; }
8350 1.1 mrg else
8351 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 1.1 mrg $as_echo "no" >&6; }
8353 1.1 mrg fi
8354 1.1 mrg
8355 1.1 mrg
8356 1.1 mrg done
8357 1.1 mrg fi
8358 1.1 mrg
8359 1.1 mrg for ncn_progname in ar; do
8360 1.1 mrg if test -n "$ncn_tool_prefix"; then
8361 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8362 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8363 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8365 1.12 mrg if ${ac_cv_prog_AR+:} false; then :
8366 1.1 mrg $as_echo_n "(cached) " >&6
8367 1.1 mrg else
8368 1.1 mrg if test -n "$AR"; then
8369 1.1 mrg ac_cv_prog_AR="$AR" # Let the user override the test.
8370 1.1 mrg else
8371 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 1.1 mrg for as_dir in $PATH
8373 1.1 mrg do
8374 1.1 mrg IFS=$as_save_IFS
8375 1.1 mrg test -z "$as_dir" && as_dir=.
8376 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8377 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 1.1 mrg ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8379 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 1.1 mrg break 2
8381 1.1 mrg fi
8382 1.1 mrg done
8383 1.1 mrg done
8384 1.1 mrg IFS=$as_save_IFS
8385 1.1 mrg
8386 1.1 mrg fi
8387 1.1 mrg fi
8388 1.1 mrg AR=$ac_cv_prog_AR
8389 1.1 mrg if test -n "$AR"; then
8390 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8391 1.1 mrg $as_echo "$AR" >&6; }
8392 1.1 mrg else
8393 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 1.1 mrg $as_echo "no" >&6; }
8395 1.1 mrg fi
8396 1.1 mrg
8397 1.1 mrg
8398 1.1 mrg fi
8399 1.1 mrg if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8400 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8402 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8404 1.12 mrg if ${ac_cv_prog_AR+:} false; then :
8405 1.1 mrg $as_echo_n "(cached) " >&6
8406 1.1 mrg else
8407 1.1 mrg if test -n "$AR"; then
8408 1.1 mrg ac_cv_prog_AR="$AR" # Let the user override the test.
8409 1.1 mrg else
8410 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 1.1 mrg for as_dir in $PATH
8412 1.1 mrg do
8413 1.1 mrg IFS=$as_save_IFS
8414 1.1 mrg test -z "$as_dir" && as_dir=.
8415 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8416 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 1.1 mrg ac_cv_prog_AR="${ncn_progname}"
8418 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 1.1 mrg break 2
8420 1.1 mrg fi
8421 1.1 mrg done
8422 1.1 mrg done
8423 1.1 mrg IFS=$as_save_IFS
8424 1.1 mrg
8425 1.1 mrg fi
8426 1.1 mrg fi
8427 1.1 mrg AR=$ac_cv_prog_AR
8428 1.1 mrg if test -n "$AR"; then
8429 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8430 1.1 mrg $as_echo "$AR" >&6; }
8431 1.1 mrg else
8432 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 1.1 mrg $as_echo "no" >&6; }
8434 1.1 mrg fi
8435 1.1 mrg
8436 1.1 mrg
8437 1.1 mrg fi
8438 1.1 mrg test -n "$ac_cv_prog_AR" && break
8439 1.1 mrg done
8440 1.1 mrg
8441 1.1 mrg if test -z "$ac_cv_prog_AR" ; then
8442 1.1 mrg set dummy ar
8443 1.1 mrg if test $build = $host ; then
8444 1.1 mrg AR="$2"
8445 1.1 mrg else
8446 1.1 mrg AR="${ncn_tool_prefix}$2"
8447 1.1 mrg fi
8448 1.1 mrg fi
8449 1.1 mrg
8450 1.1 mrg
8451 1.1 mrg
8452 1.1 mrg if test -n "$AS"; then
8453 1.1 mrg ac_cv_prog_AS=$AS
8454 1.1 mrg elif test -n "$ac_cv_prog_AS"; then
8455 1.1 mrg AS=$ac_cv_prog_AS
8456 1.1 mrg fi
8457 1.1 mrg
8458 1.1 mrg if test -n "$ac_cv_prog_AS"; then
8459 1.1 mrg for ncn_progname in as; do
8460 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8462 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8464 1.12 mrg if ${ac_cv_prog_AS+:} false; then :
8465 1.1 mrg $as_echo_n "(cached) " >&6
8466 1.1 mrg else
8467 1.1 mrg if test -n "$AS"; then
8468 1.1 mrg ac_cv_prog_AS="$AS" # Let the user override the test.
8469 1.1 mrg else
8470 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 1.1 mrg for as_dir in $PATH
8472 1.1 mrg do
8473 1.1 mrg IFS=$as_save_IFS
8474 1.1 mrg test -z "$as_dir" && as_dir=.
8475 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8476 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 1.1 mrg ac_cv_prog_AS="${ncn_progname}"
8478 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 1.1 mrg break 2
8480 1.1 mrg fi
8481 1.1 mrg done
8482 1.1 mrg done
8483 1.1 mrg IFS=$as_save_IFS
8484 1.1 mrg
8485 1.1 mrg fi
8486 1.1 mrg fi
8487 1.1 mrg AS=$ac_cv_prog_AS
8488 1.1 mrg if test -n "$AS"; then
8489 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8490 1.1 mrg $as_echo "$AS" >&6; }
8491 1.1 mrg else
8492 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 1.1 mrg $as_echo "no" >&6; }
8494 1.1 mrg fi
8495 1.1 mrg
8496 1.1 mrg
8497 1.1 mrg done
8498 1.1 mrg fi
8499 1.1 mrg
8500 1.1 mrg for ncn_progname in as; do
8501 1.1 mrg if test -n "$ncn_tool_prefix"; then
8502 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8503 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8504 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8506 1.12 mrg if ${ac_cv_prog_AS+:} false; then :
8507 1.1 mrg $as_echo_n "(cached) " >&6
8508 1.1 mrg else
8509 1.1 mrg if test -n "$AS"; then
8510 1.1 mrg ac_cv_prog_AS="$AS" # Let the user override the test.
8511 1.1 mrg else
8512 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 1.1 mrg for as_dir in $PATH
8514 1.1 mrg do
8515 1.1 mrg IFS=$as_save_IFS
8516 1.1 mrg test -z "$as_dir" && as_dir=.
8517 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8518 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 1.1 mrg ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8520 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 1.1 mrg break 2
8522 1.1 mrg fi
8523 1.1 mrg done
8524 1.1 mrg done
8525 1.1 mrg IFS=$as_save_IFS
8526 1.1 mrg
8527 1.1 mrg fi
8528 1.1 mrg fi
8529 1.1 mrg AS=$ac_cv_prog_AS
8530 1.1 mrg if test -n "$AS"; then
8531 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8532 1.1 mrg $as_echo "$AS" >&6; }
8533 1.1 mrg else
8534 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 1.1 mrg $as_echo "no" >&6; }
8536 1.1 mrg fi
8537 1.1 mrg
8538 1.1 mrg
8539 1.1 mrg fi
8540 1.1 mrg if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8541 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8542 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8543 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8545 1.12 mrg if ${ac_cv_prog_AS+:} false; then :
8546 1.1 mrg $as_echo_n "(cached) " >&6
8547 1.1 mrg else
8548 1.1 mrg if test -n "$AS"; then
8549 1.1 mrg ac_cv_prog_AS="$AS" # Let the user override the test.
8550 1.1 mrg else
8551 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 1.1 mrg for as_dir in $PATH
8553 1.1 mrg do
8554 1.1 mrg IFS=$as_save_IFS
8555 1.1 mrg test -z "$as_dir" && as_dir=.
8556 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8557 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558 1.1 mrg ac_cv_prog_AS="${ncn_progname}"
8559 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 1.1 mrg break 2
8561 1.1 mrg fi
8562 1.1 mrg done
8563 1.1 mrg done
8564 1.1 mrg IFS=$as_save_IFS
8565 1.1 mrg
8566 1.1 mrg fi
8567 1.1 mrg fi
8568 1.1 mrg AS=$ac_cv_prog_AS
8569 1.1 mrg if test -n "$AS"; then
8570 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8571 1.1 mrg $as_echo "$AS" >&6; }
8572 1.1 mrg else
8573 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 1.1 mrg $as_echo "no" >&6; }
8575 1.1 mrg fi
8576 1.1 mrg
8577 1.1 mrg
8578 1.1 mrg fi
8579 1.1 mrg test -n "$ac_cv_prog_AS" && break
8580 1.1 mrg done
8581 1.1 mrg
8582 1.1 mrg if test -z "$ac_cv_prog_AS" ; then
8583 1.1 mrg set dummy as
8584 1.1 mrg if test $build = $host ; then
8585 1.1 mrg AS="$2"
8586 1.1 mrg else
8587 1.1 mrg AS="${ncn_tool_prefix}$2"
8588 1.1 mrg fi
8589 1.1 mrg fi
8590 1.1 mrg
8591 1.1 mrg
8592 1.1 mrg
8593 1.1 mrg if test -n "$DLLTOOL"; then
8594 1.1 mrg ac_cv_prog_DLLTOOL=$DLLTOOL
8595 1.1 mrg elif test -n "$ac_cv_prog_DLLTOOL"; then
8596 1.1 mrg DLLTOOL=$ac_cv_prog_DLLTOOL
8597 1.1 mrg fi
8598 1.1 mrg
8599 1.1 mrg if test -n "$ac_cv_prog_DLLTOOL"; then
8600 1.1 mrg for ncn_progname in dlltool; do
8601 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8603 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8605 1.12 mrg if ${ac_cv_prog_DLLTOOL+:} false; then :
8606 1.1 mrg $as_echo_n "(cached) " >&6
8607 1.1 mrg else
8608 1.1 mrg if test -n "$DLLTOOL"; then
8609 1.1 mrg ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8610 1.1 mrg else
8611 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 1.1 mrg for as_dir in $PATH
8613 1.1 mrg do
8614 1.1 mrg IFS=$as_save_IFS
8615 1.1 mrg test -z "$as_dir" && as_dir=.
8616 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8617 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 1.1 mrg ac_cv_prog_DLLTOOL="${ncn_progname}"
8619 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 1.1 mrg break 2
8621 1.1 mrg fi
8622 1.1 mrg done
8623 1.1 mrg done
8624 1.1 mrg IFS=$as_save_IFS
8625 1.1 mrg
8626 1.1 mrg fi
8627 1.1 mrg fi
8628 1.1 mrg DLLTOOL=$ac_cv_prog_DLLTOOL
8629 1.1 mrg if test -n "$DLLTOOL"; then
8630 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8631 1.1 mrg $as_echo "$DLLTOOL" >&6; }
8632 1.1 mrg else
8633 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 1.1 mrg $as_echo "no" >&6; }
8635 1.1 mrg fi
8636 1.1 mrg
8637 1.1 mrg
8638 1.1 mrg done
8639 1.1 mrg fi
8640 1.1 mrg
8641 1.1 mrg for ncn_progname in dlltool; do
8642 1.1 mrg if test -n "$ncn_tool_prefix"; then
8643 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8644 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8645 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8647 1.12 mrg if ${ac_cv_prog_DLLTOOL+:} false; then :
8648 1.1 mrg $as_echo_n "(cached) " >&6
8649 1.1 mrg else
8650 1.1 mrg if test -n "$DLLTOOL"; then
8651 1.1 mrg ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8652 1.1 mrg else
8653 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 1.1 mrg for as_dir in $PATH
8655 1.1 mrg do
8656 1.1 mrg IFS=$as_save_IFS
8657 1.1 mrg test -z "$as_dir" && as_dir=.
8658 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8659 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 1.1 mrg ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8661 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 1.1 mrg break 2
8663 1.1 mrg fi
8664 1.1 mrg done
8665 1.1 mrg done
8666 1.1 mrg IFS=$as_save_IFS
8667 1.1 mrg
8668 1.1 mrg fi
8669 1.1 mrg fi
8670 1.1 mrg DLLTOOL=$ac_cv_prog_DLLTOOL
8671 1.1 mrg if test -n "$DLLTOOL"; then
8672 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8673 1.1 mrg $as_echo "$DLLTOOL" >&6; }
8674 1.1 mrg else
8675 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 1.1 mrg $as_echo "no" >&6; }
8677 1.1 mrg fi
8678 1.1 mrg
8679 1.1 mrg
8680 1.1 mrg fi
8681 1.1 mrg if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8682 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8684 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8686 1.12 mrg if ${ac_cv_prog_DLLTOOL+:} false; then :
8687 1.1 mrg $as_echo_n "(cached) " >&6
8688 1.1 mrg else
8689 1.1 mrg if test -n "$DLLTOOL"; then
8690 1.1 mrg ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8691 1.1 mrg else
8692 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 1.1 mrg for as_dir in $PATH
8694 1.1 mrg do
8695 1.1 mrg IFS=$as_save_IFS
8696 1.1 mrg test -z "$as_dir" && as_dir=.
8697 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8698 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 1.1 mrg ac_cv_prog_DLLTOOL="${ncn_progname}"
8700 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 1.1 mrg break 2
8702 1.1 mrg fi
8703 1.1 mrg done
8704 1.1 mrg done
8705 1.1 mrg IFS=$as_save_IFS
8706 1.1 mrg
8707 1.1 mrg fi
8708 1.1 mrg fi
8709 1.1 mrg DLLTOOL=$ac_cv_prog_DLLTOOL
8710 1.1 mrg if test -n "$DLLTOOL"; then
8711 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8712 1.1 mrg $as_echo "$DLLTOOL" >&6; }
8713 1.1 mrg else
8714 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 1.1 mrg $as_echo "no" >&6; }
8716 1.1 mrg fi
8717 1.1 mrg
8718 1.1 mrg
8719 1.1 mrg fi
8720 1.1 mrg test -n "$ac_cv_prog_DLLTOOL" && break
8721 1.1 mrg done
8722 1.1 mrg
8723 1.1 mrg if test -z "$ac_cv_prog_DLLTOOL" ; then
8724 1.1 mrg set dummy dlltool
8725 1.1 mrg if test $build = $host ; then
8726 1.1 mrg DLLTOOL="$2"
8727 1.1 mrg else
8728 1.1 mrg DLLTOOL="${ncn_tool_prefix}$2"
8729 1.1 mrg fi
8730 1.1 mrg fi
8731 1.1 mrg
8732 1.1 mrg
8733 1.1 mrg
8734 1.13 mrg if test -n "$DSYMUTIL"; then
8735 1.13 mrg ac_cv_prog_DSYMUTIL=$DSYMUTIL
8736 1.13 mrg elif test -n "$ac_cv_prog_DSYMUTIL"; then
8737 1.13 mrg DSYMUTIL=$ac_cv_prog_DSYMUTIL
8738 1.13 mrg fi
8739 1.13 mrg
8740 1.13 mrg if test -n "$ac_cv_prog_DSYMUTIL"; then
8741 1.13 mrg for ncn_progname in dsymutil; do
8742 1.13 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743 1.13 mrg set dummy ${ncn_progname}; ac_word=$2
8744 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 1.13 mrg $as_echo_n "checking for $ac_word... " >&6; }
8746 1.13 mrg if ${ac_cv_prog_DSYMUTIL+:} false; then :
8747 1.13 mrg $as_echo_n "(cached) " >&6
8748 1.13 mrg else
8749 1.13 mrg if test -n "$DSYMUTIL"; then
8750 1.13 mrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8751 1.13 mrg else
8752 1.13 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 1.13 mrg for as_dir in $PATH
8754 1.13 mrg do
8755 1.13 mrg IFS=$as_save_IFS
8756 1.13 mrg test -z "$as_dir" && as_dir=.
8757 1.13 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8758 1.13 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 1.13 mrg ac_cv_prog_DSYMUTIL="${ncn_progname}"
8760 1.13 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 1.13 mrg break 2
8762 1.13 mrg fi
8763 1.13 mrg done
8764 1.13 mrg done
8765 1.13 mrg IFS=$as_save_IFS
8766 1.13 mrg
8767 1.13 mrg fi
8768 1.13 mrg fi
8769 1.13 mrg DSYMUTIL=$ac_cv_prog_DSYMUTIL
8770 1.13 mrg if test -n "$DSYMUTIL"; then
8771 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8772 1.13 mrg $as_echo "$DSYMUTIL" >&6; }
8773 1.13 mrg else
8774 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 1.13 mrg $as_echo "no" >&6; }
8776 1.13 mrg fi
8777 1.13 mrg
8778 1.13 mrg
8779 1.13 mrg done
8780 1.13 mrg fi
8781 1.13 mrg
8782 1.13 mrg for ncn_progname in dsymutil; do
8783 1.13 mrg if test -n "$ncn_tool_prefix"; then
8784 1.13 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785 1.13 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8786 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 1.13 mrg $as_echo_n "checking for $ac_word... " >&6; }
8788 1.13 mrg if ${ac_cv_prog_DSYMUTIL+:} false; then :
8789 1.13 mrg $as_echo_n "(cached) " >&6
8790 1.13 mrg else
8791 1.13 mrg if test -n "$DSYMUTIL"; then
8792 1.13 mrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8793 1.13 mrg else
8794 1.13 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 1.13 mrg for as_dir in $PATH
8796 1.13 mrg do
8797 1.13 mrg IFS=$as_save_IFS
8798 1.13 mrg test -z "$as_dir" && as_dir=.
8799 1.13 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8800 1.13 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8801 1.13 mrg ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
8802 1.13 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 1.13 mrg break 2
8804 1.13 mrg fi
8805 1.13 mrg done
8806 1.13 mrg done
8807 1.13 mrg IFS=$as_save_IFS
8808 1.13 mrg
8809 1.13 mrg fi
8810 1.13 mrg fi
8811 1.13 mrg DSYMUTIL=$ac_cv_prog_DSYMUTIL
8812 1.13 mrg if test -n "$DSYMUTIL"; then
8813 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8814 1.13 mrg $as_echo "$DSYMUTIL" >&6; }
8815 1.13 mrg else
8816 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 1.13 mrg $as_echo "no" >&6; }
8818 1.13 mrg fi
8819 1.13 mrg
8820 1.13 mrg
8821 1.13 mrg fi
8822 1.13 mrg if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
8823 1.13 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824 1.13 mrg set dummy ${ncn_progname}; ac_word=$2
8825 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 1.13 mrg $as_echo_n "checking for $ac_word... " >&6; }
8827 1.13 mrg if ${ac_cv_prog_DSYMUTIL+:} false; then :
8828 1.13 mrg $as_echo_n "(cached) " >&6
8829 1.13 mrg else
8830 1.13 mrg if test -n "$DSYMUTIL"; then
8831 1.13 mrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8832 1.13 mrg else
8833 1.13 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 1.13 mrg for as_dir in $PATH
8835 1.13 mrg do
8836 1.13 mrg IFS=$as_save_IFS
8837 1.13 mrg test -z "$as_dir" && as_dir=.
8838 1.13 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8839 1.13 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8840 1.13 mrg ac_cv_prog_DSYMUTIL="${ncn_progname}"
8841 1.13 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 1.13 mrg break 2
8843 1.13 mrg fi
8844 1.13 mrg done
8845 1.13 mrg done
8846 1.13 mrg IFS=$as_save_IFS
8847 1.13 mrg
8848 1.13 mrg fi
8849 1.13 mrg fi
8850 1.13 mrg DSYMUTIL=$ac_cv_prog_DSYMUTIL
8851 1.13 mrg if test -n "$DSYMUTIL"; then
8852 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8853 1.13 mrg $as_echo "$DSYMUTIL" >&6; }
8854 1.13 mrg else
8855 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 1.13 mrg $as_echo "no" >&6; }
8857 1.13 mrg fi
8858 1.13 mrg
8859 1.13 mrg
8860 1.13 mrg fi
8861 1.13 mrg test -n "$ac_cv_prog_DSYMUTIL" && break
8862 1.13 mrg done
8863 1.13 mrg
8864 1.13 mrg if test -z "$ac_cv_prog_DSYMUTIL" ; then
8865 1.13 mrg set dummy dsymutil
8866 1.13 mrg if test $build = $host ; then
8867 1.13 mrg DSYMUTIL="$2"
8868 1.13 mrg else
8869 1.13 mrg DSYMUTIL="${ncn_tool_prefix}$2"
8870 1.13 mrg fi
8871 1.13 mrg fi
8872 1.13 mrg
8873 1.13 mrg
8874 1.13 mrg
8875 1.1 mrg if test -n "$LD"; then
8876 1.1 mrg ac_cv_prog_LD=$LD
8877 1.1 mrg elif test -n "$ac_cv_prog_LD"; then
8878 1.1 mrg LD=$ac_cv_prog_LD
8879 1.1 mrg fi
8880 1.1 mrg
8881 1.1 mrg if test -n "$ac_cv_prog_LD"; then
8882 1.1 mrg for ncn_progname in ld; do
8883 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8885 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8887 1.12 mrg if ${ac_cv_prog_LD+:} false; then :
8888 1.1 mrg $as_echo_n "(cached) " >&6
8889 1.1 mrg else
8890 1.1 mrg if test -n "$LD"; then
8891 1.1 mrg ac_cv_prog_LD="$LD" # Let the user override the test.
8892 1.1 mrg else
8893 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 1.1 mrg for as_dir in $PATH
8895 1.1 mrg do
8896 1.1 mrg IFS=$as_save_IFS
8897 1.1 mrg test -z "$as_dir" && as_dir=.
8898 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8899 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8900 1.1 mrg ac_cv_prog_LD="${ncn_progname}"
8901 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 1.1 mrg break 2
8903 1.1 mrg fi
8904 1.1 mrg done
8905 1.1 mrg done
8906 1.1 mrg IFS=$as_save_IFS
8907 1.1 mrg
8908 1.1 mrg fi
8909 1.1 mrg fi
8910 1.1 mrg LD=$ac_cv_prog_LD
8911 1.1 mrg if test -n "$LD"; then
8912 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8913 1.1 mrg $as_echo "$LD" >&6; }
8914 1.1 mrg else
8915 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 1.1 mrg $as_echo "no" >&6; }
8917 1.1 mrg fi
8918 1.1 mrg
8919 1.1 mrg
8920 1.1 mrg done
8921 1.1 mrg fi
8922 1.1 mrg
8923 1.1 mrg for ncn_progname in ld; do
8924 1.1 mrg if test -n "$ncn_tool_prefix"; then
8925 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8926 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8927 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8929 1.12 mrg if ${ac_cv_prog_LD+:} false; then :
8930 1.1 mrg $as_echo_n "(cached) " >&6
8931 1.1 mrg else
8932 1.1 mrg if test -n "$LD"; then
8933 1.1 mrg ac_cv_prog_LD="$LD" # Let the user override the test.
8934 1.1 mrg else
8935 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 1.1 mrg for as_dir in $PATH
8937 1.1 mrg do
8938 1.1 mrg IFS=$as_save_IFS
8939 1.1 mrg test -z "$as_dir" && as_dir=.
8940 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8941 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942 1.1 mrg ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8943 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 1.1 mrg break 2
8945 1.1 mrg fi
8946 1.1 mrg done
8947 1.1 mrg done
8948 1.1 mrg IFS=$as_save_IFS
8949 1.1 mrg
8950 1.1 mrg fi
8951 1.1 mrg fi
8952 1.1 mrg LD=$ac_cv_prog_LD
8953 1.1 mrg if test -n "$LD"; then
8954 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8955 1.1 mrg $as_echo "$LD" >&6; }
8956 1.1 mrg else
8957 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 1.1 mrg $as_echo "no" >&6; }
8959 1.1 mrg fi
8960 1.1 mrg
8961 1.1 mrg
8962 1.1 mrg fi
8963 1.1 mrg if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8964 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
8966 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
8968 1.12 mrg if ${ac_cv_prog_LD+:} false; then :
8969 1.1 mrg $as_echo_n "(cached) " >&6
8970 1.1 mrg else
8971 1.1 mrg if test -n "$LD"; then
8972 1.1 mrg ac_cv_prog_LD="$LD" # Let the user override the test.
8973 1.1 mrg else
8974 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 1.1 mrg for as_dir in $PATH
8976 1.1 mrg do
8977 1.1 mrg IFS=$as_save_IFS
8978 1.1 mrg test -z "$as_dir" && as_dir=.
8979 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
8980 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 1.1 mrg ac_cv_prog_LD="${ncn_progname}"
8982 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 1.1 mrg break 2
8984 1.1 mrg fi
8985 1.1 mrg done
8986 1.1 mrg done
8987 1.1 mrg IFS=$as_save_IFS
8988 1.1 mrg
8989 1.1 mrg fi
8990 1.1 mrg fi
8991 1.1 mrg LD=$ac_cv_prog_LD
8992 1.1 mrg if test -n "$LD"; then
8993 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8994 1.1 mrg $as_echo "$LD" >&6; }
8995 1.1 mrg else
8996 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 1.1 mrg $as_echo "no" >&6; }
8998 1.1 mrg fi
8999 1.1 mrg
9000 1.1 mrg
9001 1.1 mrg fi
9002 1.1 mrg test -n "$ac_cv_prog_LD" && break
9003 1.1 mrg done
9004 1.1 mrg
9005 1.1 mrg if test -z "$ac_cv_prog_LD" ; then
9006 1.1 mrg set dummy ld
9007 1.1 mrg if test $build = $host ; then
9008 1.1 mrg LD="$2"
9009 1.1 mrg else
9010 1.1 mrg LD="${ncn_tool_prefix}$2"
9011 1.1 mrg fi
9012 1.1 mrg fi
9013 1.1 mrg
9014 1.1 mrg
9015 1.1 mrg
9016 1.1 mrg if test -n "$LIPO"; then
9017 1.1 mrg ac_cv_prog_LIPO=$LIPO
9018 1.1 mrg elif test -n "$ac_cv_prog_LIPO"; then
9019 1.1 mrg LIPO=$ac_cv_prog_LIPO
9020 1.1 mrg fi
9021 1.1 mrg
9022 1.1 mrg if test -n "$ac_cv_prog_LIPO"; then
9023 1.1 mrg for ncn_progname in lipo; do
9024 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9025 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9026 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9028 1.12 mrg if ${ac_cv_prog_LIPO+:} false; then :
9029 1.1 mrg $as_echo_n "(cached) " >&6
9030 1.1 mrg else
9031 1.1 mrg if test -n "$LIPO"; then
9032 1.1 mrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9033 1.1 mrg else
9034 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035 1.1 mrg for as_dir in $PATH
9036 1.1 mrg do
9037 1.1 mrg IFS=$as_save_IFS
9038 1.1 mrg test -z "$as_dir" && as_dir=.
9039 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9040 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9041 1.1 mrg ac_cv_prog_LIPO="${ncn_progname}"
9042 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 1.1 mrg break 2
9044 1.1 mrg fi
9045 1.1 mrg done
9046 1.1 mrg done
9047 1.1 mrg IFS=$as_save_IFS
9048 1.1 mrg
9049 1.1 mrg fi
9050 1.1 mrg fi
9051 1.1 mrg LIPO=$ac_cv_prog_LIPO
9052 1.1 mrg if test -n "$LIPO"; then
9053 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9054 1.1 mrg $as_echo "$LIPO" >&6; }
9055 1.1 mrg else
9056 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 1.1 mrg $as_echo "no" >&6; }
9058 1.1 mrg fi
9059 1.1 mrg
9060 1.1 mrg
9061 1.1 mrg done
9062 1.1 mrg fi
9063 1.1 mrg
9064 1.1 mrg for ncn_progname in lipo; do
9065 1.1 mrg if test -n "$ncn_tool_prefix"; then
9066 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9067 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9068 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9070 1.12 mrg if ${ac_cv_prog_LIPO+:} false; then :
9071 1.1 mrg $as_echo_n "(cached) " >&6
9072 1.1 mrg else
9073 1.1 mrg if test -n "$LIPO"; then
9074 1.1 mrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9075 1.1 mrg else
9076 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 1.1 mrg for as_dir in $PATH
9078 1.1 mrg do
9079 1.1 mrg IFS=$as_save_IFS
9080 1.1 mrg test -z "$as_dir" && as_dir=.
9081 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9082 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 1.1 mrg ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9084 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 1.1 mrg break 2
9086 1.1 mrg fi
9087 1.1 mrg done
9088 1.1 mrg done
9089 1.1 mrg IFS=$as_save_IFS
9090 1.1 mrg
9091 1.1 mrg fi
9092 1.1 mrg fi
9093 1.1 mrg LIPO=$ac_cv_prog_LIPO
9094 1.1 mrg if test -n "$LIPO"; then
9095 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9096 1.1 mrg $as_echo "$LIPO" >&6; }
9097 1.1 mrg else
9098 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 1.1 mrg $as_echo "no" >&6; }
9100 1.1 mrg fi
9101 1.1 mrg
9102 1.1 mrg
9103 1.1 mrg fi
9104 1.1 mrg if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9105 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9106 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9107 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9109 1.12 mrg if ${ac_cv_prog_LIPO+:} false; then :
9110 1.1 mrg $as_echo_n "(cached) " >&6
9111 1.1 mrg else
9112 1.1 mrg if test -n "$LIPO"; then
9113 1.1 mrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9114 1.1 mrg else
9115 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 1.1 mrg for as_dir in $PATH
9117 1.1 mrg do
9118 1.1 mrg IFS=$as_save_IFS
9119 1.1 mrg test -z "$as_dir" && as_dir=.
9120 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9121 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 1.1 mrg ac_cv_prog_LIPO="${ncn_progname}"
9123 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 1.1 mrg break 2
9125 1.1 mrg fi
9126 1.1 mrg done
9127 1.1 mrg done
9128 1.1 mrg IFS=$as_save_IFS
9129 1.1 mrg
9130 1.1 mrg fi
9131 1.1 mrg fi
9132 1.1 mrg LIPO=$ac_cv_prog_LIPO
9133 1.1 mrg if test -n "$LIPO"; then
9134 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9135 1.1 mrg $as_echo "$LIPO" >&6; }
9136 1.1 mrg else
9137 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 1.1 mrg $as_echo "no" >&6; }
9139 1.1 mrg fi
9140 1.1 mrg
9141 1.1 mrg
9142 1.1 mrg fi
9143 1.1 mrg test -n "$ac_cv_prog_LIPO" && break
9144 1.1 mrg done
9145 1.1 mrg
9146 1.1 mrg if test -z "$ac_cv_prog_LIPO" ; then
9147 1.1 mrg set dummy lipo
9148 1.1 mrg if test $build = $host ; then
9149 1.1 mrg LIPO="$2"
9150 1.1 mrg else
9151 1.1 mrg LIPO="${ncn_tool_prefix}$2"
9152 1.1 mrg fi
9153 1.1 mrg fi
9154 1.1 mrg
9155 1.1 mrg
9156 1.1 mrg
9157 1.1 mrg if test -n "$NM"; then
9158 1.1 mrg ac_cv_prog_NM=$NM
9159 1.1 mrg elif test -n "$ac_cv_prog_NM"; then
9160 1.1 mrg NM=$ac_cv_prog_NM
9161 1.1 mrg fi
9162 1.1 mrg
9163 1.1 mrg if test -n "$ac_cv_prog_NM"; then
9164 1.1 mrg for ncn_progname in nm; do
9165 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9167 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9169 1.12 mrg if ${ac_cv_prog_NM+:} false; then :
9170 1.1 mrg $as_echo_n "(cached) " >&6
9171 1.1 mrg else
9172 1.1 mrg if test -n "$NM"; then
9173 1.1 mrg ac_cv_prog_NM="$NM" # Let the user override the test.
9174 1.1 mrg else
9175 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 1.1 mrg for as_dir in $PATH
9177 1.1 mrg do
9178 1.1 mrg IFS=$as_save_IFS
9179 1.1 mrg test -z "$as_dir" && as_dir=.
9180 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9181 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 1.1 mrg ac_cv_prog_NM="${ncn_progname}"
9183 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 1.1 mrg break 2
9185 1.1 mrg fi
9186 1.1 mrg done
9187 1.1 mrg done
9188 1.1 mrg IFS=$as_save_IFS
9189 1.1 mrg
9190 1.1 mrg fi
9191 1.1 mrg fi
9192 1.1 mrg NM=$ac_cv_prog_NM
9193 1.1 mrg if test -n "$NM"; then
9194 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9195 1.1 mrg $as_echo "$NM" >&6; }
9196 1.1 mrg else
9197 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 1.1 mrg $as_echo "no" >&6; }
9199 1.1 mrg fi
9200 1.1 mrg
9201 1.1 mrg
9202 1.1 mrg done
9203 1.1 mrg fi
9204 1.1 mrg
9205 1.1 mrg for ncn_progname in nm; do
9206 1.1 mrg if test -n "$ncn_tool_prefix"; then
9207 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9209 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9211 1.12 mrg if ${ac_cv_prog_NM+:} false; then :
9212 1.1 mrg $as_echo_n "(cached) " >&6
9213 1.1 mrg else
9214 1.1 mrg if test -n "$NM"; then
9215 1.1 mrg ac_cv_prog_NM="$NM" # Let the user override the test.
9216 1.1 mrg else
9217 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 1.1 mrg for as_dir in $PATH
9219 1.1 mrg do
9220 1.1 mrg IFS=$as_save_IFS
9221 1.1 mrg test -z "$as_dir" && as_dir=.
9222 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9223 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 1.1 mrg ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9225 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 1.1 mrg break 2
9227 1.1 mrg fi
9228 1.1 mrg done
9229 1.1 mrg done
9230 1.1 mrg IFS=$as_save_IFS
9231 1.1 mrg
9232 1.1 mrg fi
9233 1.1 mrg fi
9234 1.1 mrg NM=$ac_cv_prog_NM
9235 1.1 mrg if test -n "$NM"; then
9236 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9237 1.1 mrg $as_echo "$NM" >&6; }
9238 1.1 mrg else
9239 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 1.1 mrg $as_echo "no" >&6; }
9241 1.1 mrg fi
9242 1.1 mrg
9243 1.1 mrg
9244 1.1 mrg fi
9245 1.1 mrg if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9246 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9248 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9250 1.12 mrg if ${ac_cv_prog_NM+:} false; then :
9251 1.1 mrg $as_echo_n "(cached) " >&6
9252 1.1 mrg else
9253 1.1 mrg if test -n "$NM"; then
9254 1.1 mrg ac_cv_prog_NM="$NM" # Let the user override the test.
9255 1.1 mrg else
9256 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 1.1 mrg for as_dir in $PATH
9258 1.1 mrg do
9259 1.1 mrg IFS=$as_save_IFS
9260 1.1 mrg test -z "$as_dir" && as_dir=.
9261 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9262 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 1.1 mrg ac_cv_prog_NM="${ncn_progname}"
9264 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 1.1 mrg break 2
9266 1.1 mrg fi
9267 1.1 mrg done
9268 1.1 mrg done
9269 1.1 mrg IFS=$as_save_IFS
9270 1.1 mrg
9271 1.1 mrg fi
9272 1.1 mrg fi
9273 1.1 mrg NM=$ac_cv_prog_NM
9274 1.1 mrg if test -n "$NM"; then
9275 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9276 1.1 mrg $as_echo "$NM" >&6; }
9277 1.1 mrg else
9278 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 1.1 mrg $as_echo "no" >&6; }
9280 1.1 mrg fi
9281 1.1 mrg
9282 1.1 mrg
9283 1.1 mrg fi
9284 1.1 mrg test -n "$ac_cv_prog_NM" && break
9285 1.1 mrg done
9286 1.1 mrg
9287 1.1 mrg if test -z "$ac_cv_prog_NM" ; then
9288 1.1 mrg set dummy nm
9289 1.1 mrg if test $build = $host ; then
9290 1.1 mrg NM="$2"
9291 1.1 mrg else
9292 1.1 mrg NM="${ncn_tool_prefix}$2"
9293 1.1 mrg fi
9294 1.1 mrg fi
9295 1.1 mrg
9296 1.1 mrg
9297 1.1 mrg
9298 1.1 mrg if test -n "$RANLIB"; then
9299 1.1 mrg ac_cv_prog_RANLIB=$RANLIB
9300 1.1 mrg elif test -n "$ac_cv_prog_RANLIB"; then
9301 1.1 mrg RANLIB=$ac_cv_prog_RANLIB
9302 1.1 mrg fi
9303 1.1 mrg
9304 1.1 mrg if test -n "$ac_cv_prog_RANLIB"; then
9305 1.1 mrg for ncn_progname in ranlib; do
9306 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9307 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9308 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9310 1.12 mrg if ${ac_cv_prog_RANLIB+:} false; then :
9311 1.1 mrg $as_echo_n "(cached) " >&6
9312 1.1 mrg else
9313 1.1 mrg if test -n "$RANLIB"; then
9314 1.1 mrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9315 1.1 mrg else
9316 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 1.1 mrg for as_dir in $PATH
9318 1.1 mrg do
9319 1.1 mrg IFS=$as_save_IFS
9320 1.1 mrg test -z "$as_dir" && as_dir=.
9321 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9322 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323 1.1 mrg ac_cv_prog_RANLIB="${ncn_progname}"
9324 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 1.1 mrg break 2
9326 1.1 mrg fi
9327 1.1 mrg done
9328 1.1 mrg done
9329 1.1 mrg IFS=$as_save_IFS
9330 1.1 mrg
9331 1.1 mrg fi
9332 1.1 mrg fi
9333 1.1 mrg RANLIB=$ac_cv_prog_RANLIB
9334 1.1 mrg if test -n "$RANLIB"; then
9335 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9336 1.1 mrg $as_echo "$RANLIB" >&6; }
9337 1.1 mrg else
9338 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 1.1 mrg $as_echo "no" >&6; }
9340 1.1 mrg fi
9341 1.1 mrg
9342 1.1 mrg
9343 1.1 mrg done
9344 1.1 mrg fi
9345 1.1 mrg
9346 1.1 mrg for ncn_progname in ranlib; do
9347 1.1 mrg if test -n "$ncn_tool_prefix"; then
9348 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9349 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9350 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9352 1.12 mrg if ${ac_cv_prog_RANLIB+:} false; then :
9353 1.1 mrg $as_echo_n "(cached) " >&6
9354 1.1 mrg else
9355 1.1 mrg if test -n "$RANLIB"; then
9356 1.1 mrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9357 1.1 mrg else
9358 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 1.1 mrg for as_dir in $PATH
9360 1.1 mrg do
9361 1.1 mrg IFS=$as_save_IFS
9362 1.1 mrg test -z "$as_dir" && as_dir=.
9363 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9364 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9365 1.1 mrg ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9366 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 1.1 mrg break 2
9368 1.1 mrg fi
9369 1.1 mrg done
9370 1.1 mrg done
9371 1.1 mrg IFS=$as_save_IFS
9372 1.1 mrg
9373 1.1 mrg fi
9374 1.1 mrg fi
9375 1.1 mrg RANLIB=$ac_cv_prog_RANLIB
9376 1.1 mrg if test -n "$RANLIB"; then
9377 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9378 1.1 mrg $as_echo "$RANLIB" >&6; }
9379 1.1 mrg else
9380 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 1.1 mrg $as_echo "no" >&6; }
9382 1.1 mrg fi
9383 1.1 mrg
9384 1.1 mrg
9385 1.1 mrg fi
9386 1.1 mrg if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9387 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9388 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9389 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9391 1.12 mrg if ${ac_cv_prog_RANLIB+:} false; then :
9392 1.1 mrg $as_echo_n "(cached) " >&6
9393 1.1 mrg else
9394 1.1 mrg if test -n "$RANLIB"; then
9395 1.1 mrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9396 1.1 mrg else
9397 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 1.1 mrg for as_dir in $PATH
9399 1.1 mrg do
9400 1.1 mrg IFS=$as_save_IFS
9401 1.1 mrg test -z "$as_dir" && as_dir=.
9402 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9403 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404 1.1 mrg ac_cv_prog_RANLIB="${ncn_progname}"
9405 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406 1.1 mrg break 2
9407 1.1 mrg fi
9408 1.1 mrg done
9409 1.1 mrg done
9410 1.1 mrg IFS=$as_save_IFS
9411 1.1 mrg
9412 1.1 mrg fi
9413 1.1 mrg fi
9414 1.1 mrg RANLIB=$ac_cv_prog_RANLIB
9415 1.1 mrg if test -n "$RANLIB"; then
9416 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9417 1.1 mrg $as_echo "$RANLIB" >&6; }
9418 1.1 mrg else
9419 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 1.1 mrg $as_echo "no" >&6; }
9421 1.1 mrg fi
9422 1.1 mrg
9423 1.1 mrg
9424 1.1 mrg fi
9425 1.1 mrg test -n "$ac_cv_prog_RANLIB" && break
9426 1.1 mrg done
9427 1.1 mrg
9428 1.1 mrg if test -z "$ac_cv_prog_RANLIB" ; then
9429 1.1 mrg RANLIB="true"
9430 1.1 mrg fi
9431 1.1 mrg
9432 1.1 mrg
9433 1.1 mrg
9434 1.1 mrg if test -n "$STRIP"; then
9435 1.1 mrg ac_cv_prog_STRIP=$STRIP
9436 1.1 mrg elif test -n "$ac_cv_prog_STRIP"; then
9437 1.1 mrg STRIP=$ac_cv_prog_STRIP
9438 1.1 mrg fi
9439 1.1 mrg
9440 1.1 mrg if test -n "$ac_cv_prog_STRIP"; then
9441 1.1 mrg for ncn_progname in strip; do
9442 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9444 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9446 1.12 mrg if ${ac_cv_prog_STRIP+:} false; then :
9447 1.1 mrg $as_echo_n "(cached) " >&6
9448 1.1 mrg else
9449 1.1 mrg if test -n "$STRIP"; then
9450 1.1 mrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9451 1.1 mrg else
9452 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 1.1 mrg for as_dir in $PATH
9454 1.1 mrg do
9455 1.1 mrg IFS=$as_save_IFS
9456 1.1 mrg test -z "$as_dir" && as_dir=.
9457 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9458 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 1.1 mrg ac_cv_prog_STRIP="${ncn_progname}"
9460 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 1.1 mrg break 2
9462 1.1 mrg fi
9463 1.1 mrg done
9464 1.1 mrg done
9465 1.1 mrg IFS=$as_save_IFS
9466 1.1 mrg
9467 1.1 mrg fi
9468 1.1 mrg fi
9469 1.1 mrg STRIP=$ac_cv_prog_STRIP
9470 1.1 mrg if test -n "$STRIP"; then
9471 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9472 1.1 mrg $as_echo "$STRIP" >&6; }
9473 1.1 mrg else
9474 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 1.1 mrg $as_echo "no" >&6; }
9476 1.1 mrg fi
9477 1.1 mrg
9478 1.1 mrg
9479 1.1 mrg done
9480 1.1 mrg fi
9481 1.1 mrg
9482 1.1 mrg for ncn_progname in strip; do
9483 1.1 mrg if test -n "$ncn_tool_prefix"; then
9484 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9486 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9488 1.12 mrg if ${ac_cv_prog_STRIP+:} false; then :
9489 1.1 mrg $as_echo_n "(cached) " >&6
9490 1.1 mrg else
9491 1.1 mrg if test -n "$STRIP"; then
9492 1.1 mrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9493 1.1 mrg else
9494 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 1.1 mrg for as_dir in $PATH
9496 1.1 mrg do
9497 1.1 mrg IFS=$as_save_IFS
9498 1.1 mrg test -z "$as_dir" && as_dir=.
9499 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9500 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501 1.1 mrg ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9502 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 1.1 mrg break 2
9504 1.1 mrg fi
9505 1.1 mrg done
9506 1.1 mrg done
9507 1.1 mrg IFS=$as_save_IFS
9508 1.1 mrg
9509 1.1 mrg fi
9510 1.1 mrg fi
9511 1.1 mrg STRIP=$ac_cv_prog_STRIP
9512 1.1 mrg if test -n "$STRIP"; then
9513 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9514 1.1 mrg $as_echo "$STRIP" >&6; }
9515 1.1 mrg else
9516 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 1.1 mrg $as_echo "no" >&6; }
9518 1.1 mrg fi
9519 1.1 mrg
9520 1.1 mrg
9521 1.1 mrg fi
9522 1.1 mrg if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9523 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9525 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9527 1.12 mrg if ${ac_cv_prog_STRIP+:} false; then :
9528 1.1 mrg $as_echo_n "(cached) " >&6
9529 1.1 mrg else
9530 1.1 mrg if test -n "$STRIP"; then
9531 1.1 mrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9532 1.1 mrg else
9533 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 1.1 mrg for as_dir in $PATH
9535 1.1 mrg do
9536 1.1 mrg IFS=$as_save_IFS
9537 1.1 mrg test -z "$as_dir" && as_dir=.
9538 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9539 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 1.1 mrg ac_cv_prog_STRIP="${ncn_progname}"
9541 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 1.1 mrg break 2
9543 1.1 mrg fi
9544 1.1 mrg done
9545 1.1 mrg done
9546 1.1 mrg IFS=$as_save_IFS
9547 1.1 mrg
9548 1.1 mrg fi
9549 1.1 mrg fi
9550 1.1 mrg STRIP=$ac_cv_prog_STRIP
9551 1.1 mrg if test -n "$STRIP"; then
9552 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9553 1.1 mrg $as_echo "$STRIP" >&6; }
9554 1.1 mrg else
9555 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 1.1 mrg $as_echo "no" >&6; }
9557 1.1 mrg fi
9558 1.1 mrg
9559 1.1 mrg
9560 1.1 mrg fi
9561 1.1 mrg test -n "$ac_cv_prog_STRIP" && break
9562 1.1 mrg done
9563 1.1 mrg
9564 1.1 mrg if test -z "$ac_cv_prog_STRIP" ; then
9565 1.1 mrg STRIP="true"
9566 1.1 mrg fi
9567 1.1 mrg
9568 1.1 mrg
9569 1.1 mrg
9570 1.1 mrg if test -n "$WINDRES"; then
9571 1.1 mrg ac_cv_prog_WINDRES=$WINDRES
9572 1.1 mrg elif test -n "$ac_cv_prog_WINDRES"; then
9573 1.1 mrg WINDRES=$ac_cv_prog_WINDRES
9574 1.1 mrg fi
9575 1.1 mrg
9576 1.1 mrg if test -n "$ac_cv_prog_WINDRES"; then
9577 1.1 mrg for ncn_progname in windres; do
9578 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9580 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9582 1.12 mrg if ${ac_cv_prog_WINDRES+:} false; then :
9583 1.1 mrg $as_echo_n "(cached) " >&6
9584 1.1 mrg else
9585 1.1 mrg if test -n "$WINDRES"; then
9586 1.1 mrg ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9587 1.1 mrg else
9588 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 1.1 mrg for as_dir in $PATH
9590 1.1 mrg do
9591 1.1 mrg IFS=$as_save_IFS
9592 1.1 mrg test -z "$as_dir" && as_dir=.
9593 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9594 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 1.1 mrg ac_cv_prog_WINDRES="${ncn_progname}"
9596 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 1.1 mrg break 2
9598 1.1 mrg fi
9599 1.1 mrg done
9600 1.1 mrg done
9601 1.1 mrg IFS=$as_save_IFS
9602 1.1 mrg
9603 1.1 mrg fi
9604 1.1 mrg fi
9605 1.1 mrg WINDRES=$ac_cv_prog_WINDRES
9606 1.1 mrg if test -n "$WINDRES"; then
9607 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9608 1.1 mrg $as_echo "$WINDRES" >&6; }
9609 1.1 mrg else
9610 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 1.1 mrg $as_echo "no" >&6; }
9612 1.1 mrg fi
9613 1.1 mrg
9614 1.1 mrg
9615 1.1 mrg done
9616 1.1 mrg fi
9617 1.1 mrg
9618 1.1 mrg for ncn_progname in windres; do
9619 1.1 mrg if test -n "$ncn_tool_prefix"; then
9620 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9621 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9622 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9624 1.12 mrg if ${ac_cv_prog_WINDRES+:} false; then :
9625 1.1 mrg $as_echo_n "(cached) " >&6
9626 1.1 mrg else
9627 1.1 mrg if test -n "$WINDRES"; then
9628 1.1 mrg ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9629 1.1 mrg else
9630 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 1.1 mrg for as_dir in $PATH
9632 1.1 mrg do
9633 1.1 mrg IFS=$as_save_IFS
9634 1.1 mrg test -z "$as_dir" && as_dir=.
9635 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9636 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9637 1.1 mrg ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9638 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 1.1 mrg break 2
9640 1.1 mrg fi
9641 1.1 mrg done
9642 1.1 mrg done
9643 1.1 mrg IFS=$as_save_IFS
9644 1.1 mrg
9645 1.1 mrg fi
9646 1.1 mrg fi
9647 1.1 mrg WINDRES=$ac_cv_prog_WINDRES
9648 1.1 mrg if test -n "$WINDRES"; then
9649 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9650 1.1 mrg $as_echo "$WINDRES" >&6; }
9651 1.1 mrg else
9652 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 1.1 mrg $as_echo "no" >&6; }
9654 1.1 mrg fi
9655 1.1 mrg
9656 1.1 mrg
9657 1.1 mrg fi
9658 1.1 mrg if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9659 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9660 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9661 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9663 1.12 mrg if ${ac_cv_prog_WINDRES+:} false; then :
9664 1.1 mrg $as_echo_n "(cached) " >&6
9665 1.1 mrg else
9666 1.1 mrg if test -n "$WINDRES"; then
9667 1.1 mrg ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9668 1.1 mrg else
9669 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 1.1 mrg for as_dir in $PATH
9671 1.1 mrg do
9672 1.1 mrg IFS=$as_save_IFS
9673 1.1 mrg test -z "$as_dir" && as_dir=.
9674 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9675 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 1.1 mrg ac_cv_prog_WINDRES="${ncn_progname}"
9677 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 1.1 mrg break 2
9679 1.1 mrg fi
9680 1.1 mrg done
9681 1.1 mrg done
9682 1.1 mrg IFS=$as_save_IFS
9683 1.1 mrg
9684 1.1 mrg fi
9685 1.1 mrg fi
9686 1.1 mrg WINDRES=$ac_cv_prog_WINDRES
9687 1.1 mrg if test -n "$WINDRES"; then
9688 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9689 1.1 mrg $as_echo "$WINDRES" >&6; }
9690 1.1 mrg else
9691 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 1.1 mrg $as_echo "no" >&6; }
9693 1.1 mrg fi
9694 1.1 mrg
9695 1.1 mrg
9696 1.1 mrg fi
9697 1.1 mrg test -n "$ac_cv_prog_WINDRES" && break
9698 1.1 mrg done
9699 1.1 mrg
9700 1.1 mrg if test -z "$ac_cv_prog_WINDRES" ; then
9701 1.1 mrg set dummy windres
9702 1.1 mrg if test $build = $host ; then
9703 1.1 mrg WINDRES="$2"
9704 1.1 mrg else
9705 1.1 mrg WINDRES="${ncn_tool_prefix}$2"
9706 1.1 mrg fi
9707 1.1 mrg fi
9708 1.1 mrg
9709 1.1 mrg
9710 1.1 mrg
9711 1.1 mrg if test -n "$WINDMC"; then
9712 1.1 mrg ac_cv_prog_WINDMC=$WINDMC
9713 1.1 mrg elif test -n "$ac_cv_prog_WINDMC"; then
9714 1.1 mrg WINDMC=$ac_cv_prog_WINDMC
9715 1.1 mrg fi
9716 1.1 mrg
9717 1.1 mrg if test -n "$ac_cv_prog_WINDMC"; then
9718 1.1 mrg for ncn_progname in windmc; do
9719 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9720 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9721 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9723 1.12 mrg if ${ac_cv_prog_WINDMC+:} false; then :
9724 1.1 mrg $as_echo_n "(cached) " >&6
9725 1.1 mrg else
9726 1.1 mrg if test -n "$WINDMC"; then
9727 1.1 mrg ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9728 1.1 mrg else
9729 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 1.1 mrg for as_dir in $PATH
9731 1.1 mrg do
9732 1.1 mrg IFS=$as_save_IFS
9733 1.1 mrg test -z "$as_dir" && as_dir=.
9734 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9735 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 1.1 mrg ac_cv_prog_WINDMC="${ncn_progname}"
9737 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 1.1 mrg break 2
9739 1.1 mrg fi
9740 1.1 mrg done
9741 1.1 mrg done
9742 1.1 mrg IFS=$as_save_IFS
9743 1.1 mrg
9744 1.1 mrg fi
9745 1.1 mrg fi
9746 1.1 mrg WINDMC=$ac_cv_prog_WINDMC
9747 1.1 mrg if test -n "$WINDMC"; then
9748 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9749 1.1 mrg $as_echo "$WINDMC" >&6; }
9750 1.1 mrg else
9751 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 1.1 mrg $as_echo "no" >&6; }
9753 1.1 mrg fi
9754 1.1 mrg
9755 1.1 mrg
9756 1.1 mrg done
9757 1.1 mrg fi
9758 1.1 mrg
9759 1.1 mrg for ncn_progname in windmc; do
9760 1.1 mrg if test -n "$ncn_tool_prefix"; then
9761 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9763 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9765 1.12 mrg if ${ac_cv_prog_WINDMC+:} false; then :
9766 1.1 mrg $as_echo_n "(cached) " >&6
9767 1.1 mrg else
9768 1.1 mrg if test -n "$WINDMC"; then
9769 1.1 mrg ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9770 1.1 mrg else
9771 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 1.1 mrg for as_dir in $PATH
9773 1.1 mrg do
9774 1.1 mrg IFS=$as_save_IFS
9775 1.1 mrg test -z "$as_dir" && as_dir=.
9776 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9777 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 1.1 mrg ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9779 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 1.1 mrg break 2
9781 1.1 mrg fi
9782 1.1 mrg done
9783 1.1 mrg done
9784 1.1 mrg IFS=$as_save_IFS
9785 1.1 mrg
9786 1.1 mrg fi
9787 1.1 mrg fi
9788 1.1 mrg WINDMC=$ac_cv_prog_WINDMC
9789 1.1 mrg if test -n "$WINDMC"; then
9790 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9791 1.1 mrg $as_echo "$WINDMC" >&6; }
9792 1.1 mrg else
9793 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 1.1 mrg $as_echo "no" >&6; }
9795 1.1 mrg fi
9796 1.1 mrg
9797 1.1 mrg
9798 1.1 mrg fi
9799 1.1 mrg if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9800 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9801 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9802 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9804 1.12 mrg if ${ac_cv_prog_WINDMC+:} false; then :
9805 1.1 mrg $as_echo_n "(cached) " >&6
9806 1.1 mrg else
9807 1.1 mrg if test -n "$WINDMC"; then
9808 1.1 mrg ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9809 1.1 mrg else
9810 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 1.1 mrg for as_dir in $PATH
9812 1.1 mrg do
9813 1.1 mrg IFS=$as_save_IFS
9814 1.1 mrg test -z "$as_dir" && as_dir=.
9815 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9816 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9817 1.1 mrg ac_cv_prog_WINDMC="${ncn_progname}"
9818 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 1.1 mrg break 2
9820 1.1 mrg fi
9821 1.1 mrg done
9822 1.1 mrg done
9823 1.1 mrg IFS=$as_save_IFS
9824 1.1 mrg
9825 1.1 mrg fi
9826 1.1 mrg fi
9827 1.1 mrg WINDMC=$ac_cv_prog_WINDMC
9828 1.1 mrg if test -n "$WINDMC"; then
9829 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9830 1.1 mrg $as_echo "$WINDMC" >&6; }
9831 1.1 mrg else
9832 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 1.1 mrg $as_echo "no" >&6; }
9834 1.1 mrg fi
9835 1.1 mrg
9836 1.1 mrg
9837 1.1 mrg fi
9838 1.1 mrg test -n "$ac_cv_prog_WINDMC" && break
9839 1.1 mrg done
9840 1.1 mrg
9841 1.1 mrg if test -z "$ac_cv_prog_WINDMC" ; then
9842 1.1 mrg set dummy windmc
9843 1.1 mrg if test $build = $host ; then
9844 1.1 mrg WINDMC="$2"
9845 1.1 mrg else
9846 1.1 mrg WINDMC="${ncn_tool_prefix}$2"
9847 1.1 mrg fi
9848 1.1 mrg fi
9849 1.1 mrg
9850 1.1 mrg
9851 1.1 mrg
9852 1.1 mrg if test -n "$OBJCOPY"; then
9853 1.1 mrg ac_cv_prog_OBJCOPY=$OBJCOPY
9854 1.1 mrg elif test -n "$ac_cv_prog_OBJCOPY"; then
9855 1.1 mrg OBJCOPY=$ac_cv_prog_OBJCOPY
9856 1.1 mrg fi
9857 1.1 mrg
9858 1.1 mrg if test -n "$ac_cv_prog_OBJCOPY"; then
9859 1.1 mrg for ncn_progname in objcopy; do
9860 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9861 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9862 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9864 1.12 mrg if ${ac_cv_prog_OBJCOPY+:} false; then :
9865 1.1 mrg $as_echo_n "(cached) " >&6
9866 1.1 mrg else
9867 1.1 mrg if test -n "$OBJCOPY"; then
9868 1.1 mrg ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9869 1.1 mrg else
9870 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 1.1 mrg for as_dir in $PATH
9872 1.1 mrg do
9873 1.1 mrg IFS=$as_save_IFS
9874 1.1 mrg test -z "$as_dir" && as_dir=.
9875 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9876 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 1.1 mrg ac_cv_prog_OBJCOPY="${ncn_progname}"
9878 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 1.1 mrg break 2
9880 1.1 mrg fi
9881 1.1 mrg done
9882 1.1 mrg done
9883 1.1 mrg IFS=$as_save_IFS
9884 1.1 mrg
9885 1.1 mrg fi
9886 1.1 mrg fi
9887 1.1 mrg OBJCOPY=$ac_cv_prog_OBJCOPY
9888 1.1 mrg if test -n "$OBJCOPY"; then
9889 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9890 1.1 mrg $as_echo "$OBJCOPY" >&6; }
9891 1.1 mrg else
9892 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 1.1 mrg $as_echo "no" >&6; }
9894 1.1 mrg fi
9895 1.1 mrg
9896 1.1 mrg
9897 1.1 mrg done
9898 1.1 mrg fi
9899 1.1 mrg
9900 1.1 mrg for ncn_progname in objcopy; do
9901 1.1 mrg if test -n "$ncn_tool_prefix"; then
9902 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9903 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9904 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9906 1.12 mrg if ${ac_cv_prog_OBJCOPY+:} false; then :
9907 1.1 mrg $as_echo_n "(cached) " >&6
9908 1.1 mrg else
9909 1.1 mrg if test -n "$OBJCOPY"; then
9910 1.1 mrg ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9911 1.1 mrg else
9912 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 1.1 mrg for as_dir in $PATH
9914 1.1 mrg do
9915 1.1 mrg IFS=$as_save_IFS
9916 1.1 mrg test -z "$as_dir" && as_dir=.
9917 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9918 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 1.1 mrg ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9920 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 1.1 mrg break 2
9922 1.1 mrg fi
9923 1.1 mrg done
9924 1.1 mrg done
9925 1.1 mrg IFS=$as_save_IFS
9926 1.1 mrg
9927 1.1 mrg fi
9928 1.1 mrg fi
9929 1.1 mrg OBJCOPY=$ac_cv_prog_OBJCOPY
9930 1.1 mrg if test -n "$OBJCOPY"; then
9931 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9932 1.1 mrg $as_echo "$OBJCOPY" >&6; }
9933 1.1 mrg else
9934 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 1.1 mrg $as_echo "no" >&6; }
9936 1.1 mrg fi
9937 1.1 mrg
9938 1.1 mrg
9939 1.1 mrg fi
9940 1.1 mrg if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9941 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9942 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
9943 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
9945 1.12 mrg if ${ac_cv_prog_OBJCOPY+:} false; then :
9946 1.1 mrg $as_echo_n "(cached) " >&6
9947 1.1 mrg else
9948 1.1 mrg if test -n "$OBJCOPY"; then
9949 1.1 mrg ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9950 1.1 mrg else
9951 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 1.1 mrg for as_dir in $PATH
9953 1.1 mrg do
9954 1.1 mrg IFS=$as_save_IFS
9955 1.1 mrg test -z "$as_dir" && as_dir=.
9956 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
9957 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9958 1.1 mrg ac_cv_prog_OBJCOPY="${ncn_progname}"
9959 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 1.1 mrg break 2
9961 1.1 mrg fi
9962 1.1 mrg done
9963 1.1 mrg done
9964 1.1 mrg IFS=$as_save_IFS
9965 1.1 mrg
9966 1.1 mrg fi
9967 1.1 mrg fi
9968 1.1 mrg OBJCOPY=$ac_cv_prog_OBJCOPY
9969 1.1 mrg if test -n "$OBJCOPY"; then
9970 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9971 1.1 mrg $as_echo "$OBJCOPY" >&6; }
9972 1.1 mrg else
9973 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 1.1 mrg $as_echo "no" >&6; }
9975 1.1 mrg fi
9976 1.1 mrg
9977 1.1 mrg
9978 1.1 mrg fi
9979 1.1 mrg test -n "$ac_cv_prog_OBJCOPY" && break
9980 1.1 mrg done
9981 1.1 mrg
9982 1.1 mrg if test -z "$ac_cv_prog_OBJCOPY" ; then
9983 1.1 mrg set dummy objcopy
9984 1.1 mrg if test $build = $host ; then
9985 1.1 mrg OBJCOPY="$2"
9986 1.1 mrg else
9987 1.1 mrg OBJCOPY="${ncn_tool_prefix}$2"
9988 1.1 mrg fi
9989 1.1 mrg fi
9990 1.1 mrg
9991 1.1 mrg
9992 1.1 mrg
9993 1.1 mrg if test -n "$OBJDUMP"; then
9994 1.1 mrg ac_cv_prog_OBJDUMP=$OBJDUMP
9995 1.1 mrg elif test -n "$ac_cv_prog_OBJDUMP"; then
9996 1.1 mrg OBJDUMP=$ac_cv_prog_OBJDUMP
9997 1.1 mrg fi
9998 1.1 mrg
9999 1.1 mrg if test -n "$ac_cv_prog_OBJDUMP"; then
10000 1.1 mrg for ncn_progname in objdump; do
10001 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10002 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10003 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10005 1.12 mrg if ${ac_cv_prog_OBJDUMP+:} false; then :
10006 1.1 mrg $as_echo_n "(cached) " >&6
10007 1.1 mrg else
10008 1.1 mrg if test -n "$OBJDUMP"; then
10009 1.1 mrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10010 1.1 mrg else
10011 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 1.1 mrg for as_dir in $PATH
10013 1.1 mrg do
10014 1.1 mrg IFS=$as_save_IFS
10015 1.1 mrg test -z "$as_dir" && as_dir=.
10016 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10017 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10018 1.1 mrg ac_cv_prog_OBJDUMP="${ncn_progname}"
10019 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 1.1 mrg break 2
10021 1.1 mrg fi
10022 1.1 mrg done
10023 1.1 mrg done
10024 1.1 mrg IFS=$as_save_IFS
10025 1.1 mrg
10026 1.1 mrg fi
10027 1.1 mrg fi
10028 1.1 mrg OBJDUMP=$ac_cv_prog_OBJDUMP
10029 1.1 mrg if test -n "$OBJDUMP"; then
10030 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10031 1.1 mrg $as_echo "$OBJDUMP" >&6; }
10032 1.1 mrg else
10033 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 1.1 mrg $as_echo "no" >&6; }
10035 1.1 mrg fi
10036 1.1 mrg
10037 1.1 mrg
10038 1.1 mrg done
10039 1.1 mrg fi
10040 1.1 mrg
10041 1.1 mrg for ncn_progname in objdump; do
10042 1.1 mrg if test -n "$ncn_tool_prefix"; then
10043 1.1 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10044 1.1 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10045 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10047 1.12 mrg if ${ac_cv_prog_OBJDUMP+:} false; then :
10048 1.1 mrg $as_echo_n "(cached) " >&6
10049 1.1 mrg else
10050 1.1 mrg if test -n "$OBJDUMP"; then
10051 1.1 mrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10052 1.1 mrg else
10053 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 1.1 mrg for as_dir in $PATH
10055 1.1 mrg do
10056 1.1 mrg IFS=$as_save_IFS
10057 1.1 mrg test -z "$as_dir" && as_dir=.
10058 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10059 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 1.1 mrg ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10061 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 1.1 mrg break 2
10063 1.1 mrg fi
10064 1.1 mrg done
10065 1.1 mrg done
10066 1.1 mrg IFS=$as_save_IFS
10067 1.1 mrg
10068 1.1 mrg fi
10069 1.1 mrg fi
10070 1.1 mrg OBJDUMP=$ac_cv_prog_OBJDUMP
10071 1.1 mrg if test -n "$OBJDUMP"; then
10072 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10073 1.1 mrg $as_echo "$OBJDUMP" >&6; }
10074 1.1 mrg else
10075 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 1.1 mrg $as_echo "no" >&6; }
10077 1.1 mrg fi
10078 1.1 mrg
10079 1.1 mrg
10080 1.1 mrg fi
10081 1.1 mrg if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10082 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10083 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10084 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10086 1.12 mrg if ${ac_cv_prog_OBJDUMP+:} false; then :
10087 1.1 mrg $as_echo_n "(cached) " >&6
10088 1.1 mrg else
10089 1.1 mrg if test -n "$OBJDUMP"; then
10090 1.1 mrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10091 1.1 mrg else
10092 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 1.1 mrg for as_dir in $PATH
10094 1.1 mrg do
10095 1.1 mrg IFS=$as_save_IFS
10096 1.1 mrg test -z "$as_dir" && as_dir=.
10097 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10098 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099 1.1 mrg ac_cv_prog_OBJDUMP="${ncn_progname}"
10100 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 1.1 mrg break 2
10102 1.1 mrg fi
10103 1.1 mrg done
10104 1.1 mrg done
10105 1.1 mrg IFS=$as_save_IFS
10106 1.1 mrg
10107 1.1 mrg fi
10108 1.1 mrg fi
10109 1.1 mrg OBJDUMP=$ac_cv_prog_OBJDUMP
10110 1.1 mrg if test -n "$OBJDUMP"; then
10111 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10112 1.1 mrg $as_echo "$OBJDUMP" >&6; }
10113 1.1 mrg else
10114 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 1.1 mrg $as_echo "no" >&6; }
10116 1.1 mrg fi
10117 1.1 mrg
10118 1.1 mrg
10119 1.1 mrg fi
10120 1.1 mrg test -n "$ac_cv_prog_OBJDUMP" && break
10121 1.1 mrg done
10122 1.1 mrg
10123 1.1 mrg if test -z "$ac_cv_prog_OBJDUMP" ; then
10124 1.1 mrg set dummy objdump
10125 1.1 mrg if test $build = $host ; then
10126 1.1 mrg OBJDUMP="$2"
10127 1.1 mrg else
10128 1.1 mrg OBJDUMP="${ncn_tool_prefix}$2"
10129 1.1 mrg fi
10130 1.1 mrg fi
10131 1.1 mrg
10132 1.1 mrg
10133 1.1 mrg
10134 1.12 mrg if test -n "$OTOOL"; then
10135 1.12 mrg ac_cv_prog_OTOOL=$OTOOL
10136 1.12 mrg elif test -n "$ac_cv_prog_OTOOL"; then
10137 1.12 mrg OTOOL=$ac_cv_prog_OTOOL
10138 1.4 mrg fi
10139 1.4 mrg
10140 1.12 mrg if test -n "$ac_cv_prog_OTOOL"; then
10141 1.12 mrg for ncn_progname in otool; do
10142 1.4 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10143 1.4 mrg set dummy ${ncn_progname}; ac_word=$2
10144 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
10146 1.12 mrg if ${ac_cv_prog_OTOOL+:} false; then :
10147 1.4 mrg $as_echo_n "(cached) " >&6
10148 1.4 mrg else
10149 1.12 mrg if test -n "$OTOOL"; then
10150 1.12 mrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10151 1.4 mrg else
10152 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 1.4 mrg for as_dir in $PATH
10154 1.4 mrg do
10155 1.4 mrg IFS=$as_save_IFS
10156 1.4 mrg test -z "$as_dir" && as_dir=.
10157 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10158 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 1.12 mrg ac_cv_prog_OTOOL="${ncn_progname}"
10160 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 1.4 mrg break 2
10162 1.4 mrg fi
10163 1.4 mrg done
10164 1.4 mrg done
10165 1.4 mrg IFS=$as_save_IFS
10166 1.4 mrg
10167 1.4 mrg fi
10168 1.4 mrg fi
10169 1.12 mrg OTOOL=$ac_cv_prog_OTOOL
10170 1.12 mrg if test -n "$OTOOL"; then
10171 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10172 1.12 mrg $as_echo "$OTOOL" >&6; }
10173 1.4 mrg else
10174 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 1.4 mrg $as_echo "no" >&6; }
10176 1.4 mrg fi
10177 1.4 mrg
10178 1.4 mrg
10179 1.4 mrg done
10180 1.4 mrg fi
10181 1.4 mrg
10182 1.12 mrg for ncn_progname in otool; do
10183 1.4 mrg if test -n "$ncn_tool_prefix"; then
10184 1.4 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10185 1.4 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10186 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
10188 1.12 mrg if ${ac_cv_prog_OTOOL+:} false; then :
10189 1.4 mrg $as_echo_n "(cached) " >&6
10190 1.4 mrg else
10191 1.12 mrg if test -n "$OTOOL"; then
10192 1.12 mrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10193 1.4 mrg else
10194 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 1.4 mrg for as_dir in $PATH
10196 1.4 mrg do
10197 1.4 mrg IFS=$as_save_IFS
10198 1.4 mrg test -z "$as_dir" && as_dir=.
10199 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10200 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 1.12 mrg ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10202 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 1.4 mrg break 2
10204 1.4 mrg fi
10205 1.4 mrg done
10206 1.4 mrg done
10207 1.4 mrg IFS=$as_save_IFS
10208 1.4 mrg
10209 1.4 mrg fi
10210 1.4 mrg fi
10211 1.12 mrg OTOOL=$ac_cv_prog_OTOOL
10212 1.12 mrg if test -n "$OTOOL"; then
10213 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10214 1.12 mrg $as_echo "$OTOOL" >&6; }
10215 1.4 mrg else
10216 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 1.4 mrg $as_echo "no" >&6; }
10218 1.4 mrg fi
10219 1.4 mrg
10220 1.4 mrg
10221 1.4 mrg fi
10222 1.12 mrg if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10223 1.4 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10224 1.4 mrg set dummy ${ncn_progname}; ac_word=$2
10225 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
10227 1.12 mrg if ${ac_cv_prog_OTOOL+:} false; then :
10228 1.4 mrg $as_echo_n "(cached) " >&6
10229 1.4 mrg else
10230 1.12 mrg if test -n "$OTOOL"; then
10231 1.12 mrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10232 1.4 mrg else
10233 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 1.4 mrg for as_dir in $PATH
10235 1.4 mrg do
10236 1.4 mrg IFS=$as_save_IFS
10237 1.4 mrg test -z "$as_dir" && as_dir=.
10238 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10239 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240 1.12 mrg ac_cv_prog_OTOOL="${ncn_progname}"
10241 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 1.4 mrg break 2
10243 1.4 mrg fi
10244 1.4 mrg done
10245 1.4 mrg done
10246 1.4 mrg IFS=$as_save_IFS
10247 1.4 mrg
10248 1.4 mrg fi
10249 1.4 mrg fi
10250 1.12 mrg OTOOL=$ac_cv_prog_OTOOL
10251 1.12 mrg if test -n "$OTOOL"; then
10252 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10253 1.12 mrg $as_echo "$OTOOL" >&6; }
10254 1.4 mrg else
10255 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 1.4 mrg $as_echo "no" >&6; }
10257 1.4 mrg fi
10258 1.4 mrg
10259 1.4 mrg
10260 1.4 mrg fi
10261 1.12 mrg test -n "$ac_cv_prog_OTOOL" && break
10262 1.4 mrg done
10263 1.4 mrg
10264 1.12 mrg if test -z "$ac_cv_prog_OTOOL" ; then
10265 1.12 mrg set dummy otool
10266 1.4 mrg if test $build = $host ; then
10267 1.12 mrg OTOOL="$2"
10268 1.4 mrg else
10269 1.12 mrg OTOOL="${ncn_tool_prefix}$2"
10270 1.4 mrg fi
10271 1.4 mrg fi
10272 1.4 mrg
10273 1.4 mrg
10274 1.4 mrg
10275 1.12 mrg if test -n "$READELF"; then
10276 1.12 mrg ac_cv_prog_READELF=$READELF
10277 1.12 mrg elif test -n "$ac_cv_prog_READELF"; then
10278 1.12 mrg READELF=$ac_cv_prog_READELF
10279 1.1 mrg fi
10280 1.1 mrg
10281 1.12 mrg if test -n "$ac_cv_prog_READELF"; then
10282 1.12 mrg for ncn_progname in readelf; do
10283 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10284 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10285 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10287 1.12 mrg if ${ac_cv_prog_READELF+:} false; then :
10288 1.1 mrg $as_echo_n "(cached) " >&6
10289 1.1 mrg else
10290 1.12 mrg if test -n "$READELF"; then
10291 1.12 mrg ac_cv_prog_READELF="$READELF" # Let the user override the test.
10292 1.1 mrg else
10293 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 1.1 mrg for as_dir in $PATH
10295 1.1 mrg do
10296 1.1 mrg IFS=$as_save_IFS
10297 1.1 mrg test -z "$as_dir" && as_dir=.
10298 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10299 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 1.12 mrg ac_cv_prog_READELF="${ncn_progname}"
10301 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 1.1 mrg break 2
10303 1.1 mrg fi
10304 1.1 mrg done
10305 1.1 mrg done
10306 1.1 mrg IFS=$as_save_IFS
10307 1.1 mrg
10308 1.1 mrg fi
10309 1.1 mrg fi
10310 1.12 mrg READELF=$ac_cv_prog_READELF
10311 1.12 mrg if test -n "$READELF"; then
10312 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10313 1.12 mrg $as_echo "$READELF" >&6; }
10314 1.12 mrg else
10315 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 1.12 mrg $as_echo "no" >&6; }
10317 1.12 mrg fi
10318 1.12 mrg
10319 1.12 mrg
10320 1.12 mrg done
10321 1.12 mrg fi
10322 1.12 mrg
10323 1.12 mrg for ncn_progname in readelf; do
10324 1.12 mrg if test -n "$ncn_tool_prefix"; then
10325 1.12 mrg # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10326 1.12 mrg set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10327 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
10329 1.12 mrg if ${ac_cv_prog_READELF+:} false; then :
10330 1.12 mrg $as_echo_n "(cached) " >&6
10331 1.12 mrg else
10332 1.12 mrg if test -n "$READELF"; then
10333 1.12 mrg ac_cv_prog_READELF="$READELF" # Let the user override the test.
10334 1.12 mrg else
10335 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 1.12 mrg for as_dir in $PATH
10337 1.12 mrg do
10338 1.12 mrg IFS=$as_save_IFS
10339 1.12 mrg test -z "$as_dir" && as_dir=.
10340 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10341 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342 1.12 mrg ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10343 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 1.12 mrg break 2
10345 1.12 mrg fi
10346 1.12 mrg done
10347 1.12 mrg done
10348 1.12 mrg IFS=$as_save_IFS
10349 1.12 mrg
10350 1.12 mrg fi
10351 1.12 mrg fi
10352 1.12 mrg READELF=$ac_cv_prog_READELF
10353 1.12 mrg if test -n "$READELF"; then
10354 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10355 1.12 mrg $as_echo "$READELF" >&6; }
10356 1.12 mrg else
10357 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 1.12 mrg $as_echo "no" >&6; }
10359 1.12 mrg fi
10360 1.12 mrg
10361 1.12 mrg
10362 1.12 mrg fi
10363 1.12 mrg if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10364 1.12 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10365 1.12 mrg set dummy ${ncn_progname}; ac_word=$2
10366 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
10368 1.12 mrg if ${ac_cv_prog_READELF+:} false; then :
10369 1.12 mrg $as_echo_n "(cached) " >&6
10370 1.12 mrg else
10371 1.12 mrg if test -n "$READELF"; then
10372 1.12 mrg ac_cv_prog_READELF="$READELF" # Let the user override the test.
10373 1.12 mrg else
10374 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 1.12 mrg for as_dir in $PATH
10376 1.12 mrg do
10377 1.12 mrg IFS=$as_save_IFS
10378 1.12 mrg test -z "$as_dir" && as_dir=.
10379 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10380 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 1.12 mrg ac_cv_prog_READELF="${ncn_progname}"
10382 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 1.12 mrg break 2
10384 1.12 mrg fi
10385 1.12 mrg done
10386 1.12 mrg done
10387 1.12 mrg IFS=$as_save_IFS
10388 1.12 mrg
10389 1.12 mrg fi
10390 1.12 mrg fi
10391 1.12 mrg READELF=$ac_cv_prog_READELF
10392 1.12 mrg if test -n "$READELF"; then
10393 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10394 1.12 mrg $as_echo "$READELF" >&6; }
10395 1.12 mrg else
10396 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 1.12 mrg $as_echo "no" >&6; }
10398 1.12 mrg fi
10399 1.12 mrg
10400 1.12 mrg
10401 1.12 mrg fi
10402 1.12 mrg test -n "$ac_cv_prog_READELF" && break
10403 1.12 mrg done
10404 1.12 mrg
10405 1.12 mrg if test -z "$ac_cv_prog_READELF" ; then
10406 1.12 mrg set dummy readelf
10407 1.12 mrg if test $build = $host ; then
10408 1.12 mrg READELF="$2"
10409 1.12 mrg else
10410 1.12 mrg READELF="${ncn_tool_prefix}$2"
10411 1.12 mrg fi
10412 1.12 mrg fi
10413 1.12 mrg
10414 1.12 mrg
10415 1.12 mrg
10416 1.12 mrg
10417 1.12 mrg
10418 1.12 mrg
10419 1.12 mrg # Target tools.
10420 1.12 mrg
10421 1.12 mrg # Check whether --with-build-time-tools was given.
10422 1.12 mrg if test "${with_build_time_tools+set}" = set; then :
10423 1.12 mrg withval=$with_build_time_tools; case x"$withval" in
10424 1.12 mrg x/*) ;;
10425 1.12 mrg *)
10426 1.12 mrg with_build_time_tools=
10427 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10428 1.12 mrg $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10429 1.12 mrg ;;
10430 1.12 mrg esac
10431 1.12 mrg else
10432 1.12 mrg with_build_time_tools=
10433 1.12 mrg fi
10434 1.12 mrg
10435 1.12 mrg
10436 1.12 mrg
10437 1.12 mrg
10438 1.12 mrg if test -n "$CC_FOR_TARGET"; then
10439 1.12 mrg ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10440 1.12 mrg elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10441 1.12 mrg CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10442 1.12 mrg fi
10443 1.12 mrg
10444 1.12 mrg if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10445 1.12 mrg for ncn_progname in cc gcc; do
10446 1.12 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10447 1.12 mrg set dummy ${ncn_progname}; ac_word=$2
10448 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
10450 1.12 mrg if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10451 1.12 mrg $as_echo_n "(cached) " >&6
10452 1.12 mrg else
10453 1.12 mrg if test -n "$CC_FOR_TARGET"; then
10454 1.12 mrg ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10455 1.12 mrg else
10456 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 1.12 mrg for as_dir in $PATH
10458 1.12 mrg do
10459 1.12 mrg IFS=$as_save_IFS
10460 1.12 mrg test -z "$as_dir" && as_dir=.
10461 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10462 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463 1.12 mrg ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10464 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 1.12 mrg break 2
10466 1.12 mrg fi
10467 1.12 mrg done
10468 1.12 mrg done
10469 1.12 mrg IFS=$as_save_IFS
10470 1.12 mrg
10471 1.12 mrg fi
10472 1.12 mrg fi
10473 1.12 mrg CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10474 1.12 mrg if test -n "$CC_FOR_TARGET"; then
10475 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10476 1.12 mrg $as_echo "$CC_FOR_TARGET" >&6; }
10477 1.1 mrg else
10478 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 1.1 mrg $as_echo "no" >&6; }
10480 1.1 mrg fi
10481 1.1 mrg
10482 1.1 mrg
10483 1.1 mrg done
10484 1.1 mrg fi
10485 1.1 mrg
10486 1.1 mrg if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10487 1.1 mrg for ncn_progname in cc gcc; do
10488 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10489 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10490 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
10491 1.1 mrg ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10492 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10493 1.1 mrg $as_echo "yes" >&6; }
10494 1.1 mrg break
10495 1.1 mrg else
10496 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 1.1 mrg $as_echo "no" >&6; }
10498 1.1 mrg fi
10499 1.1 mrg done
10500 1.1 mrg fi
10501 1.1 mrg
10502 1.1 mrg if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10503 1.1 mrg for ncn_progname in cc gcc; do
10504 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
10505 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10506 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10507 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10509 1.12 mrg if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10510 1.1 mrg $as_echo_n "(cached) " >&6
10511 1.1 mrg else
10512 1.1 mrg if test -n "$CC_FOR_TARGET"; then
10513 1.1 mrg ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10514 1.1 mrg else
10515 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 1.1 mrg for as_dir in $PATH
10517 1.1 mrg do
10518 1.1 mrg IFS=$as_save_IFS
10519 1.1 mrg test -z "$as_dir" && as_dir=.
10520 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10521 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522 1.1 mrg ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10523 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 1.1 mrg break 2
10525 1.1 mrg fi
10526 1.1 mrg done
10527 1.1 mrg done
10528 1.1 mrg IFS=$as_save_IFS
10529 1.1 mrg
10530 1.1 mrg fi
10531 1.1 mrg fi
10532 1.1 mrg CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10533 1.1 mrg if test -n "$CC_FOR_TARGET"; then
10534 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10535 1.1 mrg $as_echo "$CC_FOR_TARGET" >&6; }
10536 1.1 mrg else
10537 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 1.1 mrg $as_echo "no" >&6; }
10539 1.1 mrg fi
10540 1.1 mrg
10541 1.1 mrg
10542 1.1 mrg fi
10543 1.1 mrg if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10544 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10545 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10546 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10547 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10548 1.12 mrg if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10549 1.1 mrg $as_echo_n "(cached) " >&6
10550 1.1 mrg else
10551 1.1 mrg if test -n "$CC_FOR_TARGET"; then
10552 1.1 mrg ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10553 1.1 mrg else
10554 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 1.1 mrg for as_dir in $PATH
10556 1.1 mrg do
10557 1.1 mrg IFS=$as_save_IFS
10558 1.1 mrg test -z "$as_dir" && as_dir=.
10559 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10560 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 1.1 mrg ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10562 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 1.1 mrg break 2
10564 1.1 mrg fi
10565 1.1 mrg done
10566 1.1 mrg done
10567 1.1 mrg IFS=$as_save_IFS
10568 1.1 mrg
10569 1.1 mrg fi
10570 1.1 mrg fi
10571 1.1 mrg CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10572 1.1 mrg if test -n "$CC_FOR_TARGET"; then
10573 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10574 1.1 mrg $as_echo "$CC_FOR_TARGET" >&6; }
10575 1.1 mrg else
10576 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 1.1 mrg $as_echo "no" >&6; }
10578 1.1 mrg fi
10579 1.1 mrg
10580 1.1 mrg
10581 1.1 mrg fi
10582 1.1 mrg test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10583 1.1 mrg done
10584 1.1 mrg fi
10585 1.1 mrg
10586 1.1 mrg if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10587 1.1 mrg set dummy cc gcc
10588 1.1 mrg if test $build = $target ; then
10589 1.1 mrg CC_FOR_TARGET="$2"
10590 1.1 mrg else
10591 1.1 mrg CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10592 1.1 mrg fi
10593 1.1 mrg else
10594 1.1 mrg CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10595 1.1 mrg fi
10596 1.1 mrg
10597 1.1 mrg
10598 1.1 mrg
10599 1.1 mrg if test -n "$CXX_FOR_TARGET"; then
10600 1.1 mrg ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10601 1.1 mrg elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10602 1.1 mrg CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10603 1.1 mrg fi
10604 1.1 mrg
10605 1.1 mrg if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10606 1.1 mrg for ncn_progname in c++ g++ cxx gxx; do
10607 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10608 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10609 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10611 1.12 mrg if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10612 1.1 mrg $as_echo_n "(cached) " >&6
10613 1.1 mrg else
10614 1.1 mrg if test -n "$CXX_FOR_TARGET"; then
10615 1.1 mrg ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10616 1.1 mrg else
10617 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 1.1 mrg for as_dir in $PATH
10619 1.1 mrg do
10620 1.1 mrg IFS=$as_save_IFS
10621 1.1 mrg test -z "$as_dir" && as_dir=.
10622 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10623 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 1.1 mrg ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10625 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 1.1 mrg break 2
10627 1.1 mrg fi
10628 1.1 mrg done
10629 1.1 mrg done
10630 1.1 mrg IFS=$as_save_IFS
10631 1.1 mrg
10632 1.1 mrg fi
10633 1.1 mrg fi
10634 1.1 mrg CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10635 1.1 mrg if test -n "$CXX_FOR_TARGET"; then
10636 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10637 1.1 mrg $as_echo "$CXX_FOR_TARGET" >&6; }
10638 1.1 mrg else
10639 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 1.1 mrg $as_echo "no" >&6; }
10641 1.1 mrg fi
10642 1.1 mrg
10643 1.1 mrg
10644 1.1 mrg done
10645 1.1 mrg fi
10646 1.1 mrg
10647 1.1 mrg if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10648 1.1 mrg for ncn_progname in c++ g++ cxx gxx; do
10649 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10650 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10651 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
10652 1.1 mrg ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10653 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654 1.1 mrg $as_echo "yes" >&6; }
10655 1.1 mrg break
10656 1.1 mrg else
10657 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 1.1 mrg $as_echo "no" >&6; }
10659 1.1 mrg fi
10660 1.1 mrg done
10661 1.1 mrg fi
10662 1.1 mrg
10663 1.1 mrg if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10664 1.1 mrg for ncn_progname in c++ g++ cxx gxx; do
10665 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
10666 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10667 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10668 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10670 1.12 mrg if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10671 1.1 mrg $as_echo_n "(cached) " >&6
10672 1.1 mrg else
10673 1.1 mrg if test -n "$CXX_FOR_TARGET"; then
10674 1.1 mrg ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10675 1.1 mrg else
10676 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 1.1 mrg for as_dir in $PATH
10678 1.1 mrg do
10679 1.1 mrg IFS=$as_save_IFS
10680 1.1 mrg test -z "$as_dir" && as_dir=.
10681 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10682 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683 1.1 mrg ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10684 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 1.1 mrg break 2
10686 1.1 mrg fi
10687 1.1 mrg done
10688 1.1 mrg done
10689 1.1 mrg IFS=$as_save_IFS
10690 1.1 mrg
10691 1.1 mrg fi
10692 1.1 mrg fi
10693 1.1 mrg CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10694 1.1 mrg if test -n "$CXX_FOR_TARGET"; then
10695 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10696 1.1 mrg $as_echo "$CXX_FOR_TARGET" >&6; }
10697 1.1 mrg else
10698 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 1.1 mrg $as_echo "no" >&6; }
10700 1.1 mrg fi
10701 1.1 mrg
10702 1.1 mrg
10703 1.1 mrg fi
10704 1.1 mrg if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10705 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10706 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10707 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10709 1.12 mrg if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10710 1.1 mrg $as_echo_n "(cached) " >&6
10711 1.1 mrg else
10712 1.1 mrg if test -n "$CXX_FOR_TARGET"; then
10713 1.1 mrg ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10714 1.1 mrg else
10715 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 1.1 mrg for as_dir in $PATH
10717 1.1 mrg do
10718 1.1 mrg IFS=$as_save_IFS
10719 1.1 mrg test -z "$as_dir" && as_dir=.
10720 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10721 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10722 1.1 mrg ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10723 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 1.1 mrg break 2
10725 1.1 mrg fi
10726 1.1 mrg done
10727 1.1 mrg done
10728 1.1 mrg IFS=$as_save_IFS
10729 1.1 mrg
10730 1.1 mrg fi
10731 1.1 mrg fi
10732 1.1 mrg CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10733 1.1 mrg if test -n "$CXX_FOR_TARGET"; then
10734 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10735 1.1 mrg $as_echo "$CXX_FOR_TARGET" >&6; }
10736 1.1 mrg else
10737 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 1.1 mrg $as_echo "no" >&6; }
10739 1.1 mrg fi
10740 1.1 mrg
10741 1.1 mrg
10742 1.1 mrg fi
10743 1.1 mrg test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10744 1.1 mrg done
10745 1.1 mrg fi
10746 1.1 mrg
10747 1.1 mrg if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10748 1.1 mrg set dummy c++ g++ cxx gxx
10749 1.1 mrg if test $build = $target ; then
10750 1.1 mrg CXX_FOR_TARGET="$2"
10751 1.1 mrg else
10752 1.1 mrg CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10753 1.1 mrg fi
10754 1.1 mrg else
10755 1.1 mrg CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10756 1.1 mrg fi
10757 1.1 mrg
10758 1.1 mrg
10759 1.1 mrg
10760 1.1 mrg if test -n "$GCC_FOR_TARGET"; then
10761 1.1 mrg ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10762 1.1 mrg elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10763 1.1 mrg GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10764 1.1 mrg fi
10765 1.1 mrg
10766 1.1 mrg if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10767 1.1 mrg for ncn_progname in gcc; do
10768 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10769 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10770 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10772 1.12 mrg if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10773 1.1 mrg $as_echo_n "(cached) " >&6
10774 1.1 mrg else
10775 1.1 mrg if test -n "$GCC_FOR_TARGET"; then
10776 1.1 mrg ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10777 1.1 mrg else
10778 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 1.1 mrg for as_dir in $PATH
10780 1.1 mrg do
10781 1.1 mrg IFS=$as_save_IFS
10782 1.1 mrg test -z "$as_dir" && as_dir=.
10783 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10784 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 1.1 mrg ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10786 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 1.1 mrg break 2
10788 1.1 mrg fi
10789 1.1 mrg done
10790 1.1 mrg done
10791 1.1 mrg IFS=$as_save_IFS
10792 1.1 mrg
10793 1.1 mrg fi
10794 1.1 mrg fi
10795 1.1 mrg GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10796 1.1 mrg if test -n "$GCC_FOR_TARGET"; then
10797 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10798 1.1 mrg $as_echo "$GCC_FOR_TARGET" >&6; }
10799 1.1 mrg else
10800 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 1.1 mrg $as_echo "no" >&6; }
10802 1.1 mrg fi
10803 1.1 mrg
10804 1.1 mrg
10805 1.1 mrg done
10806 1.1 mrg fi
10807 1.1 mrg
10808 1.1 mrg if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10809 1.1 mrg for ncn_progname in gcc; do
10810 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10811 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10812 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
10813 1.1 mrg ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10814 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10815 1.1 mrg $as_echo "yes" >&6; }
10816 1.1 mrg break
10817 1.1 mrg else
10818 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 1.1 mrg $as_echo "no" >&6; }
10820 1.1 mrg fi
10821 1.1 mrg done
10822 1.1 mrg fi
10823 1.1 mrg
10824 1.1 mrg if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10825 1.1 mrg for ncn_progname in gcc; do
10826 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
10827 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10828 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10829 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10831 1.12 mrg if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10832 1.1 mrg $as_echo_n "(cached) " >&6
10833 1.1 mrg else
10834 1.1 mrg if test -n "$GCC_FOR_TARGET"; then
10835 1.1 mrg ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10836 1.1 mrg else
10837 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 1.1 mrg for as_dir in $PATH
10839 1.1 mrg do
10840 1.1 mrg IFS=$as_save_IFS
10841 1.1 mrg test -z "$as_dir" && as_dir=.
10842 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10843 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 1.1 mrg ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10845 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 1.1 mrg break 2
10847 1.1 mrg fi
10848 1.1 mrg done
10849 1.1 mrg done
10850 1.1 mrg IFS=$as_save_IFS
10851 1.1 mrg
10852 1.1 mrg fi
10853 1.1 mrg fi
10854 1.1 mrg GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10855 1.1 mrg if test -n "$GCC_FOR_TARGET"; then
10856 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10857 1.1 mrg $as_echo "$GCC_FOR_TARGET" >&6; }
10858 1.1 mrg else
10859 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 1.1 mrg $as_echo "no" >&6; }
10861 1.1 mrg fi
10862 1.1 mrg
10863 1.1 mrg
10864 1.1 mrg fi
10865 1.1 mrg if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10866 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10868 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10870 1.12 mrg if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10871 1.1 mrg $as_echo_n "(cached) " >&6
10872 1.1 mrg else
10873 1.1 mrg if test -n "$GCC_FOR_TARGET"; then
10874 1.1 mrg ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10875 1.1 mrg else
10876 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 1.1 mrg for as_dir in $PATH
10878 1.1 mrg do
10879 1.1 mrg IFS=$as_save_IFS
10880 1.1 mrg test -z "$as_dir" && as_dir=.
10881 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10882 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 1.1 mrg ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10884 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 1.1 mrg break 2
10886 1.1 mrg fi
10887 1.1 mrg done
10888 1.1 mrg done
10889 1.1 mrg IFS=$as_save_IFS
10890 1.1 mrg
10891 1.1 mrg fi
10892 1.1 mrg fi
10893 1.1 mrg GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10894 1.1 mrg if test -n "$GCC_FOR_TARGET"; then
10895 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10896 1.1 mrg $as_echo "$GCC_FOR_TARGET" >&6; }
10897 1.1 mrg else
10898 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 1.1 mrg $as_echo "no" >&6; }
10900 1.1 mrg fi
10901 1.1 mrg
10902 1.1 mrg
10903 1.1 mrg fi
10904 1.1 mrg test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10905 1.1 mrg done
10906 1.1 mrg fi
10907 1.1 mrg
10908 1.1 mrg if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10909 1.1 mrg GCC_FOR_TARGET="${CC_FOR_TARGET}"
10910 1.1 mrg else
10911 1.1 mrg GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10912 1.1 mrg fi
10913 1.1 mrg
10914 1.1 mrg
10915 1.1 mrg
10916 1.1 mrg if test -n "$GFORTRAN_FOR_TARGET"; then
10917 1.1 mrg ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10918 1.1 mrg elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10919 1.1 mrg GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10920 1.1 mrg fi
10921 1.1 mrg
10922 1.1 mrg if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10923 1.1 mrg for ncn_progname in gfortran; do
10924 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10925 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
10926 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10928 1.12 mrg if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10929 1.1 mrg $as_echo_n "(cached) " >&6
10930 1.1 mrg else
10931 1.1 mrg if test -n "$GFORTRAN_FOR_TARGET"; then
10932 1.1 mrg ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10933 1.1 mrg else
10934 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 1.1 mrg for as_dir in $PATH
10936 1.1 mrg do
10937 1.1 mrg IFS=$as_save_IFS
10938 1.1 mrg test -z "$as_dir" && as_dir=.
10939 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10940 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 1.1 mrg ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10942 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 1.1 mrg break 2
10944 1.1 mrg fi
10945 1.1 mrg done
10946 1.1 mrg done
10947 1.1 mrg IFS=$as_save_IFS
10948 1.1 mrg
10949 1.1 mrg fi
10950 1.1 mrg fi
10951 1.1 mrg GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10952 1.1 mrg if test -n "$GFORTRAN_FOR_TARGET"; then
10953 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10954 1.1 mrg $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10955 1.1 mrg else
10956 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 1.1 mrg $as_echo "no" >&6; }
10958 1.1 mrg fi
10959 1.1 mrg
10960 1.1 mrg
10961 1.1 mrg done
10962 1.1 mrg fi
10963 1.1 mrg
10964 1.1 mrg if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10965 1.1 mrg for ncn_progname in gfortran; do
10966 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10967 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10968 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
10969 1.1 mrg ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10970 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10971 1.1 mrg $as_echo "yes" >&6; }
10972 1.1 mrg break
10973 1.1 mrg else
10974 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 1.1 mrg $as_echo "no" >&6; }
10976 1.1 mrg fi
10977 1.1 mrg done
10978 1.1 mrg fi
10979 1.1 mrg
10980 1.1 mrg if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10981 1.1 mrg for ncn_progname in gfortran; do
10982 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
10983 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10984 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10985 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
10987 1.12 mrg if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10988 1.1 mrg $as_echo_n "(cached) " >&6
10989 1.1 mrg else
10990 1.4 mrg if test -n "$GFORTRAN_FOR_TARGET"; then
10991 1.4 mrg ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10992 1.4 mrg else
10993 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 1.4 mrg for as_dir in $PATH
10995 1.4 mrg do
10996 1.4 mrg IFS=$as_save_IFS
10997 1.4 mrg test -z "$as_dir" && as_dir=.
10998 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
10999 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 1.4 mrg ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11001 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 1.4 mrg break 2
11003 1.4 mrg fi
11004 1.4 mrg done
11005 1.4 mrg done
11006 1.4 mrg IFS=$as_save_IFS
11007 1.4 mrg
11008 1.4 mrg fi
11009 1.4 mrg fi
11010 1.4 mrg GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11011 1.4 mrg if test -n "$GFORTRAN_FOR_TARGET"; then
11012 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11013 1.4 mrg $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11014 1.4 mrg else
11015 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 1.4 mrg $as_echo "no" >&6; }
11017 1.4 mrg fi
11018 1.4 mrg
11019 1.4 mrg
11020 1.4 mrg fi
11021 1.4 mrg if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11022 1.4 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11023 1.4 mrg set dummy ${ncn_progname}; ac_word=$2
11024 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
11026 1.12 mrg if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11027 1.4 mrg $as_echo_n "(cached) " >&6
11028 1.4 mrg else
11029 1.4 mrg if test -n "$GFORTRAN_FOR_TARGET"; then
11030 1.4 mrg ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11031 1.4 mrg else
11032 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 1.4 mrg for as_dir in $PATH
11034 1.4 mrg do
11035 1.4 mrg IFS=$as_save_IFS
11036 1.4 mrg test -z "$as_dir" && as_dir=.
11037 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11038 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 1.4 mrg ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11040 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 1.4 mrg break 2
11042 1.4 mrg fi
11043 1.4 mrg done
11044 1.4 mrg done
11045 1.4 mrg IFS=$as_save_IFS
11046 1.4 mrg
11047 1.4 mrg fi
11048 1.4 mrg fi
11049 1.4 mrg GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11050 1.4 mrg if test -n "$GFORTRAN_FOR_TARGET"; then
11051 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11052 1.4 mrg $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11053 1.4 mrg else
11054 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055 1.4 mrg $as_echo "no" >&6; }
11056 1.4 mrg fi
11057 1.4 mrg
11058 1.4 mrg
11059 1.4 mrg fi
11060 1.4 mrg test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11061 1.4 mrg done
11062 1.4 mrg fi
11063 1.4 mrg
11064 1.4 mrg if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11065 1.4 mrg set dummy gfortran
11066 1.4 mrg if test $build = $target ; then
11067 1.4 mrg GFORTRAN_FOR_TARGET="$2"
11068 1.4 mrg else
11069 1.4 mrg GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11070 1.4 mrg fi
11071 1.4 mrg else
11072 1.4 mrg GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11073 1.4 mrg fi
11074 1.4 mrg
11075 1.4 mrg
11076 1.4 mrg
11077 1.4 mrg if test -n "$GOC_FOR_TARGET"; then
11078 1.4 mrg ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11079 1.4 mrg elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11080 1.4 mrg GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11081 1.4 mrg fi
11082 1.4 mrg
11083 1.4 mrg if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11084 1.4 mrg for ncn_progname in gccgo; do
11085 1.4 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086 1.4 mrg set dummy ${ncn_progname}; ac_word=$2
11087 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
11089 1.12 mrg if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11090 1.4 mrg $as_echo_n "(cached) " >&6
11091 1.4 mrg else
11092 1.4 mrg if test -n "$GOC_FOR_TARGET"; then
11093 1.4 mrg ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11094 1.4 mrg else
11095 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 1.4 mrg for as_dir in $PATH
11097 1.4 mrg do
11098 1.4 mrg IFS=$as_save_IFS
11099 1.4 mrg test -z "$as_dir" && as_dir=.
11100 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11101 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 1.4 mrg ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11103 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 1.4 mrg break 2
11105 1.4 mrg fi
11106 1.4 mrg done
11107 1.4 mrg done
11108 1.4 mrg IFS=$as_save_IFS
11109 1.4 mrg
11110 1.4 mrg fi
11111 1.4 mrg fi
11112 1.4 mrg GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11113 1.4 mrg if test -n "$GOC_FOR_TARGET"; then
11114 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11115 1.4 mrg $as_echo "$GOC_FOR_TARGET" >&6; }
11116 1.4 mrg else
11117 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 1.4 mrg $as_echo "no" >&6; }
11119 1.4 mrg fi
11120 1.4 mrg
11121 1.4 mrg
11122 1.4 mrg done
11123 1.4 mrg fi
11124 1.4 mrg
11125 1.4 mrg if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11126 1.4 mrg for ncn_progname in gccgo; do
11127 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11128 1.4 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11129 1.4 mrg if test -x $with_build_time_tools/${ncn_progname}; then
11130 1.4 mrg ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11131 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11132 1.4 mrg $as_echo "yes" >&6; }
11133 1.4 mrg break
11134 1.4 mrg else
11135 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 1.4 mrg $as_echo "no" >&6; }
11137 1.4 mrg fi
11138 1.4 mrg done
11139 1.4 mrg fi
11140 1.4 mrg
11141 1.4 mrg if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11142 1.4 mrg for ncn_progname in gccgo; do
11143 1.4 mrg if test -n "$ncn_target_tool_prefix"; then
11144 1.4 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11145 1.4 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11146 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
11148 1.12 mrg if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11149 1.4 mrg $as_echo_n "(cached) " >&6
11150 1.4 mrg else
11151 1.4 mrg if test -n "$GOC_FOR_TARGET"; then
11152 1.4 mrg ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11153 1.1 mrg else
11154 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 1.1 mrg for as_dir in $PATH
11156 1.1 mrg do
11157 1.1 mrg IFS=$as_save_IFS
11158 1.1 mrg test -z "$as_dir" && as_dir=.
11159 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11160 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 1.4 mrg ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11162 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 1.1 mrg break 2
11164 1.1 mrg fi
11165 1.1 mrg done
11166 1.1 mrg done
11167 1.1 mrg IFS=$as_save_IFS
11168 1.1 mrg
11169 1.1 mrg fi
11170 1.1 mrg fi
11171 1.4 mrg GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11172 1.4 mrg if test -n "$GOC_FOR_TARGET"; then
11173 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11174 1.4 mrg $as_echo "$GOC_FOR_TARGET" >&6; }
11175 1.1 mrg else
11176 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 1.1 mrg $as_echo "no" >&6; }
11178 1.1 mrg fi
11179 1.1 mrg
11180 1.1 mrg
11181 1.1 mrg fi
11182 1.4 mrg if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11183 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11184 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
11185 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11187 1.12 mrg if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11188 1.1 mrg $as_echo_n "(cached) " >&6
11189 1.1 mrg else
11190 1.4 mrg if test -n "$GOC_FOR_TARGET"; then
11191 1.4 mrg ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11192 1.1 mrg else
11193 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 1.1 mrg for as_dir in $PATH
11195 1.1 mrg do
11196 1.1 mrg IFS=$as_save_IFS
11197 1.1 mrg test -z "$as_dir" && as_dir=.
11198 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11199 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 1.4 mrg ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11201 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 1.1 mrg break 2
11203 1.1 mrg fi
11204 1.1 mrg done
11205 1.1 mrg done
11206 1.1 mrg IFS=$as_save_IFS
11207 1.1 mrg
11208 1.1 mrg fi
11209 1.1 mrg fi
11210 1.4 mrg GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11211 1.4 mrg if test -n "$GOC_FOR_TARGET"; then
11212 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11213 1.4 mrg $as_echo "$GOC_FOR_TARGET" >&6; }
11214 1.1 mrg else
11215 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 1.1 mrg $as_echo "no" >&6; }
11217 1.1 mrg fi
11218 1.1 mrg
11219 1.1 mrg
11220 1.1 mrg fi
11221 1.4 mrg test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11222 1.1 mrg done
11223 1.1 mrg fi
11224 1.1 mrg
11225 1.4 mrg if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11226 1.4 mrg set dummy gccgo
11227 1.1 mrg if test $build = $target ; then
11228 1.4 mrg GOC_FOR_TARGET="$2"
11229 1.1 mrg else
11230 1.4 mrg GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11231 1.1 mrg fi
11232 1.1 mrg else
11233 1.4 mrg GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11234 1.1 mrg fi
11235 1.1 mrg
11236 1.1 mrg
11237 1.1 mrg
11238 1.12 mrg if test -n "$GDC_FOR_TARGET"; then
11239 1.12 mrg ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11240 1.12 mrg elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11241 1.12 mrg GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11242 1.12 mrg fi
11243 1.12 mrg
11244 1.12 mrg if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11245 1.12 mrg for ncn_progname in gdc; do
11246 1.12 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247 1.12 mrg set dummy ${ncn_progname}; ac_word=$2
11248 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
11250 1.12 mrg if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11251 1.12 mrg $as_echo_n "(cached) " >&6
11252 1.12 mrg else
11253 1.12 mrg if test -n "$GDC_FOR_TARGET"; then
11254 1.12 mrg ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11255 1.12 mrg else
11256 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 1.12 mrg for as_dir in $PATH
11258 1.12 mrg do
11259 1.12 mrg IFS=$as_save_IFS
11260 1.12 mrg test -z "$as_dir" && as_dir=.
11261 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11262 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 1.12 mrg ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11264 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 1.12 mrg break 2
11266 1.12 mrg fi
11267 1.12 mrg done
11268 1.12 mrg done
11269 1.12 mrg IFS=$as_save_IFS
11270 1.12 mrg
11271 1.12 mrg fi
11272 1.12 mrg fi
11273 1.12 mrg GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11274 1.12 mrg if test -n "$GDC_FOR_TARGET"; then
11275 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11276 1.12 mrg $as_echo "$GDC_FOR_TARGET" >&6; }
11277 1.12 mrg else
11278 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 1.12 mrg $as_echo "no" >&6; }
11280 1.12 mrg fi
11281 1.12 mrg
11282 1.12 mrg
11283 1.12 mrg done
11284 1.12 mrg fi
11285 1.12 mrg
11286 1.12 mrg if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11287 1.12 mrg for ncn_progname in gdc; do
11288 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11289 1.12 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11290 1.12 mrg if test -x $with_build_time_tools/${ncn_progname}; then
11291 1.12 mrg ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11292 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293 1.12 mrg $as_echo "yes" >&6; }
11294 1.12 mrg break
11295 1.12 mrg else
11296 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 1.12 mrg $as_echo "no" >&6; }
11298 1.12 mrg fi
11299 1.12 mrg done
11300 1.12 mrg fi
11301 1.12 mrg
11302 1.12 mrg if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11303 1.12 mrg for ncn_progname in gdc; do
11304 1.12 mrg if test -n "$ncn_target_tool_prefix"; then
11305 1.12 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11306 1.12 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11307 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
11309 1.12 mrg if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11310 1.12 mrg $as_echo_n "(cached) " >&6
11311 1.12 mrg else
11312 1.12 mrg if test -n "$GDC_FOR_TARGET"; then
11313 1.12 mrg ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11314 1.12 mrg else
11315 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 1.12 mrg for as_dir in $PATH
11317 1.12 mrg do
11318 1.12 mrg IFS=$as_save_IFS
11319 1.12 mrg test -z "$as_dir" && as_dir=.
11320 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11321 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322 1.12 mrg ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11323 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 1.12 mrg break 2
11325 1.12 mrg fi
11326 1.12 mrg done
11327 1.12 mrg done
11328 1.12 mrg IFS=$as_save_IFS
11329 1.12 mrg
11330 1.12 mrg fi
11331 1.12 mrg fi
11332 1.12 mrg GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11333 1.12 mrg if test -n "$GDC_FOR_TARGET"; then
11334 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11335 1.12 mrg $as_echo "$GDC_FOR_TARGET" >&6; }
11336 1.12 mrg else
11337 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 1.12 mrg $as_echo "no" >&6; }
11339 1.12 mrg fi
11340 1.12 mrg
11341 1.12 mrg
11342 1.12 mrg fi
11343 1.12 mrg if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11344 1.12 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11345 1.12 mrg set dummy ${ncn_progname}; ac_word=$2
11346 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
11348 1.12 mrg if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11349 1.12 mrg $as_echo_n "(cached) " >&6
11350 1.12 mrg else
11351 1.12 mrg if test -n "$GDC_FOR_TARGET"; then
11352 1.12 mrg ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11353 1.12 mrg else
11354 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 1.12 mrg for as_dir in $PATH
11356 1.12 mrg do
11357 1.12 mrg IFS=$as_save_IFS
11358 1.12 mrg test -z "$as_dir" && as_dir=.
11359 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11360 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 1.12 mrg ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11362 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 1.12 mrg break 2
11364 1.12 mrg fi
11365 1.12 mrg done
11366 1.12 mrg done
11367 1.12 mrg IFS=$as_save_IFS
11368 1.12 mrg
11369 1.12 mrg fi
11370 1.12 mrg fi
11371 1.12 mrg GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11372 1.12 mrg if test -n "$GDC_FOR_TARGET"; then
11373 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11374 1.12 mrg $as_echo "$GDC_FOR_TARGET" >&6; }
11375 1.12 mrg else
11376 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 1.12 mrg $as_echo "no" >&6; }
11378 1.12 mrg fi
11379 1.12 mrg
11380 1.12 mrg
11381 1.12 mrg fi
11382 1.12 mrg test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11383 1.12 mrg done
11384 1.12 mrg fi
11385 1.12 mrg
11386 1.12 mrg if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11387 1.12 mrg set dummy gdc
11388 1.12 mrg if test $build = $target ; then
11389 1.12 mrg GDC_FOR_TARGET="$2"
11390 1.12 mrg else
11391 1.12 mrg GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11392 1.12 mrg fi
11393 1.12 mrg else
11394 1.12 mrg GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11395 1.12 mrg fi
11396 1.12 mrg
11397 1.12 mrg
11398 1.12 mrg
11399 1.1 mrg cat > conftest.c << \EOF
11400 1.1 mrg #ifdef __GNUC__
11401 1.1 mrg gcc_yay;
11402 1.1 mrg #endif
11403 1.1 mrg EOF
11404 1.1 mrg if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11405 1.1 mrg have_gcc_for_target=yes
11406 1.1 mrg else
11407 1.1 mrg GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11408 1.1 mrg have_gcc_for_target=no
11409 1.1 mrg fi
11410 1.1 mrg rm conftest.c
11411 1.1 mrg
11412 1.1 mrg
11413 1.1 mrg
11414 1.1 mrg
11415 1.1 mrg if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11416 1.1 mrg if test -n "$with_build_time_tools"; then
11417 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11418 1.1 mrg $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11419 1.1 mrg if test -x $with_build_time_tools/ar; then
11420 1.1 mrg AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11421 1.1 mrg ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11422 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11423 1.1 mrg $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11424 1.1 mrg else
11425 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 1.1 mrg $as_echo "no" >&6; }
11427 1.1 mrg fi
11428 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
11429 1.1 mrg AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11430 1.1 mrg test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11431 1.1 mrg test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11432 1.1 mrg fi
11433 1.1 mrg fi
11434 1.1 mrg if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11435 1.1 mrg # Extract the first word of "ar", so it can be a program name with args.
11436 1.1 mrg set dummy ar; ac_word=$2
11437 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11439 1.12 mrg if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11440 1.1 mrg $as_echo_n "(cached) " >&6
11441 1.1 mrg else
11442 1.1 mrg case $AR_FOR_TARGET in
11443 1.1 mrg [\\/]* | ?:[\\/]*)
11444 1.1 mrg ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11445 1.1 mrg ;;
11446 1.1 mrg *)
11447 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 1.1 mrg for as_dir in $gcc_cv_tool_dirs
11449 1.1 mrg do
11450 1.1 mrg IFS=$as_save_IFS
11451 1.1 mrg test -z "$as_dir" && as_dir=.
11452 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11453 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 1.1 mrg ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11455 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 1.1 mrg break 2
11457 1.1 mrg fi
11458 1.1 mrg done
11459 1.1 mrg done
11460 1.1 mrg IFS=$as_save_IFS
11461 1.1 mrg
11462 1.1 mrg ;;
11463 1.1 mrg esac
11464 1.1 mrg fi
11465 1.1 mrg AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11466 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11467 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11468 1.1 mrg $as_echo "$AR_FOR_TARGET" >&6; }
11469 1.1 mrg else
11470 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 1.1 mrg $as_echo "no" >&6; }
11472 1.1 mrg fi
11473 1.1 mrg
11474 1.1 mrg
11475 1.1 mrg fi
11476 1.1 mrg if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11477 1.1 mrg
11478 1.1 mrg
11479 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11480 1.1 mrg ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11481 1.1 mrg elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11482 1.1 mrg AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11483 1.1 mrg fi
11484 1.1 mrg
11485 1.1 mrg if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11486 1.1 mrg for ncn_progname in ar; do
11487 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11488 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
11489 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11491 1.12 mrg if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11492 1.1 mrg $as_echo_n "(cached) " >&6
11493 1.1 mrg else
11494 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11495 1.1 mrg ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11496 1.1 mrg else
11497 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 1.1 mrg for as_dir in $PATH
11499 1.1 mrg do
11500 1.1 mrg IFS=$as_save_IFS
11501 1.1 mrg test -z "$as_dir" && as_dir=.
11502 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11503 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11504 1.1 mrg ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11505 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 1.1 mrg break 2
11507 1.1 mrg fi
11508 1.1 mrg done
11509 1.1 mrg done
11510 1.1 mrg IFS=$as_save_IFS
11511 1.1 mrg
11512 1.1 mrg fi
11513 1.1 mrg fi
11514 1.1 mrg AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11515 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11516 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11517 1.1 mrg $as_echo "$AR_FOR_TARGET" >&6; }
11518 1.1 mrg else
11519 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 1.1 mrg $as_echo "no" >&6; }
11521 1.1 mrg fi
11522 1.1 mrg
11523 1.1 mrg
11524 1.1 mrg done
11525 1.1 mrg fi
11526 1.1 mrg
11527 1.1 mrg if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11528 1.1 mrg for ncn_progname in ar; do
11529 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11530 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11531 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
11532 1.1 mrg ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11533 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534 1.1 mrg $as_echo "yes" >&6; }
11535 1.1 mrg break
11536 1.1 mrg else
11537 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 1.1 mrg $as_echo "no" >&6; }
11539 1.1 mrg fi
11540 1.1 mrg done
11541 1.1 mrg fi
11542 1.1 mrg
11543 1.1 mrg if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11544 1.1 mrg for ncn_progname in ar; do
11545 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
11546 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11547 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11548 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11550 1.12 mrg if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11551 1.1 mrg $as_echo_n "(cached) " >&6
11552 1.1 mrg else
11553 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11554 1.1 mrg ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11555 1.1 mrg else
11556 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 1.1 mrg for as_dir in $PATH
11558 1.1 mrg do
11559 1.1 mrg IFS=$as_save_IFS
11560 1.1 mrg test -z "$as_dir" && as_dir=.
11561 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11562 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 1.1 mrg ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11564 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 1.1 mrg break 2
11566 1.1 mrg fi
11567 1.1 mrg done
11568 1.1 mrg done
11569 1.1 mrg IFS=$as_save_IFS
11570 1.1 mrg
11571 1.1 mrg fi
11572 1.1 mrg fi
11573 1.1 mrg AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11574 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11575 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11576 1.1 mrg $as_echo "$AR_FOR_TARGET" >&6; }
11577 1.1 mrg else
11578 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 1.1 mrg $as_echo "no" >&6; }
11580 1.1 mrg fi
11581 1.1 mrg
11582 1.1 mrg
11583 1.1 mrg fi
11584 1.1 mrg if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11585 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11586 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
11587 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11589 1.12 mrg if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11590 1.1 mrg $as_echo_n "(cached) " >&6
11591 1.1 mrg else
11592 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11593 1.1 mrg ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11594 1.1 mrg else
11595 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 1.1 mrg for as_dir in $PATH
11597 1.1 mrg do
11598 1.1 mrg IFS=$as_save_IFS
11599 1.1 mrg test -z "$as_dir" && as_dir=.
11600 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11601 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 1.1 mrg ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11603 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 1.1 mrg break 2
11605 1.1 mrg fi
11606 1.1 mrg done
11607 1.1 mrg done
11608 1.1 mrg IFS=$as_save_IFS
11609 1.1 mrg
11610 1.1 mrg fi
11611 1.1 mrg fi
11612 1.1 mrg AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11613 1.1 mrg if test -n "$AR_FOR_TARGET"; then
11614 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11615 1.1 mrg $as_echo "$AR_FOR_TARGET" >&6; }
11616 1.1 mrg else
11617 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 1.1 mrg $as_echo "no" >&6; }
11619 1.1 mrg fi
11620 1.1 mrg
11621 1.1 mrg
11622 1.1 mrg fi
11623 1.1 mrg test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11624 1.1 mrg done
11625 1.1 mrg fi
11626 1.1 mrg
11627 1.1 mrg if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11628 1.1 mrg set dummy ar
11629 1.1 mrg if test $build = $target ; then
11630 1.1 mrg AR_FOR_TARGET="$2"
11631 1.1 mrg else
11632 1.1 mrg AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11633 1.1 mrg fi
11634 1.1 mrg else
11635 1.1 mrg AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11636 1.1 mrg fi
11637 1.1 mrg
11638 1.1 mrg else
11639 1.1 mrg AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11640 1.1 mrg fi
11641 1.1 mrg
11642 1.1 mrg
11643 1.1 mrg
11644 1.1 mrg
11645 1.1 mrg if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11646 1.1 mrg if test -n "$with_build_time_tools"; then
11647 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11648 1.1 mrg $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11649 1.1 mrg if test -x $with_build_time_tools/as; then
11650 1.1 mrg AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11651 1.1 mrg ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11652 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11653 1.1 mrg $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11654 1.1 mrg else
11655 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 1.1 mrg $as_echo "no" >&6; }
11657 1.1 mrg fi
11658 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
11659 1.1 mrg AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11660 1.1 mrg test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11661 1.1 mrg test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11662 1.1 mrg fi
11663 1.1 mrg fi
11664 1.1 mrg if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11665 1.1 mrg # Extract the first word of "as", so it can be a program name with args.
11666 1.1 mrg set dummy as; ac_word=$2
11667 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11669 1.12 mrg if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11670 1.1 mrg $as_echo_n "(cached) " >&6
11671 1.1 mrg else
11672 1.1 mrg case $AS_FOR_TARGET in
11673 1.1 mrg [\\/]* | ?:[\\/]*)
11674 1.1 mrg ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11675 1.1 mrg ;;
11676 1.1 mrg *)
11677 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 1.1 mrg for as_dir in $gcc_cv_tool_dirs
11679 1.1 mrg do
11680 1.1 mrg IFS=$as_save_IFS
11681 1.1 mrg test -z "$as_dir" && as_dir=.
11682 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11683 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684 1.1 mrg ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11685 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 1.1 mrg break 2
11687 1.1 mrg fi
11688 1.1 mrg done
11689 1.1 mrg done
11690 1.1 mrg IFS=$as_save_IFS
11691 1.1 mrg
11692 1.1 mrg ;;
11693 1.1 mrg esac
11694 1.1 mrg fi
11695 1.1 mrg AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11696 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11697 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11698 1.1 mrg $as_echo "$AS_FOR_TARGET" >&6; }
11699 1.1 mrg else
11700 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 1.1 mrg $as_echo "no" >&6; }
11702 1.1 mrg fi
11703 1.1 mrg
11704 1.1 mrg
11705 1.1 mrg fi
11706 1.1 mrg if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11707 1.1 mrg
11708 1.1 mrg
11709 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11710 1.1 mrg ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11711 1.1 mrg elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11712 1.1 mrg AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11713 1.1 mrg fi
11714 1.1 mrg
11715 1.1 mrg if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11716 1.1 mrg for ncn_progname in as; do
11717 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11718 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
11719 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11721 1.12 mrg if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11722 1.1 mrg $as_echo_n "(cached) " >&6
11723 1.1 mrg else
11724 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11725 1.1 mrg ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11726 1.1 mrg else
11727 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 1.1 mrg for as_dir in $PATH
11729 1.1 mrg do
11730 1.1 mrg IFS=$as_save_IFS
11731 1.1 mrg test -z "$as_dir" && as_dir=.
11732 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11733 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 1.1 mrg ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11735 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 1.1 mrg break 2
11737 1.1 mrg fi
11738 1.1 mrg done
11739 1.1 mrg done
11740 1.1 mrg IFS=$as_save_IFS
11741 1.1 mrg
11742 1.1 mrg fi
11743 1.1 mrg fi
11744 1.1 mrg AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11745 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11746 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11747 1.1 mrg $as_echo "$AS_FOR_TARGET" >&6; }
11748 1.1 mrg else
11749 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 1.1 mrg $as_echo "no" >&6; }
11751 1.1 mrg fi
11752 1.1 mrg
11753 1.1 mrg
11754 1.1 mrg done
11755 1.1 mrg fi
11756 1.1 mrg
11757 1.1 mrg if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11758 1.1 mrg for ncn_progname in as; do
11759 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11760 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11761 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
11762 1.1 mrg ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11763 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11764 1.1 mrg $as_echo "yes" >&6; }
11765 1.1 mrg break
11766 1.1 mrg else
11767 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 1.1 mrg $as_echo "no" >&6; }
11769 1.1 mrg fi
11770 1.1 mrg done
11771 1.1 mrg fi
11772 1.1 mrg
11773 1.1 mrg if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11774 1.1 mrg for ncn_progname in as; do
11775 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
11776 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11777 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11778 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11780 1.12 mrg if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11781 1.1 mrg $as_echo_n "(cached) " >&6
11782 1.1 mrg else
11783 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11784 1.1 mrg ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11785 1.1 mrg else
11786 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 1.1 mrg for as_dir in $PATH
11788 1.1 mrg do
11789 1.1 mrg IFS=$as_save_IFS
11790 1.1 mrg test -z "$as_dir" && as_dir=.
11791 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11792 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 1.1 mrg ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11794 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 1.1 mrg break 2
11796 1.1 mrg fi
11797 1.1 mrg done
11798 1.1 mrg done
11799 1.1 mrg IFS=$as_save_IFS
11800 1.1 mrg
11801 1.1 mrg fi
11802 1.1 mrg fi
11803 1.1 mrg AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11804 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11805 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11806 1.1 mrg $as_echo "$AS_FOR_TARGET" >&6; }
11807 1.1 mrg else
11808 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 1.1 mrg $as_echo "no" >&6; }
11810 1.1 mrg fi
11811 1.1 mrg
11812 1.1 mrg
11813 1.1 mrg fi
11814 1.1 mrg if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11815 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11816 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
11817 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11819 1.12 mrg if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11820 1.1 mrg $as_echo_n "(cached) " >&6
11821 1.1 mrg else
11822 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11823 1.1 mrg ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11824 1.1 mrg else
11825 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 1.1 mrg for as_dir in $PATH
11827 1.1 mrg do
11828 1.1 mrg IFS=$as_save_IFS
11829 1.1 mrg test -z "$as_dir" && as_dir=.
11830 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11831 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 1.1 mrg ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11833 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 1.1 mrg break 2
11835 1.1 mrg fi
11836 1.1 mrg done
11837 1.1 mrg done
11838 1.1 mrg IFS=$as_save_IFS
11839 1.1 mrg
11840 1.1 mrg fi
11841 1.1 mrg fi
11842 1.1 mrg AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11843 1.1 mrg if test -n "$AS_FOR_TARGET"; then
11844 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11845 1.1 mrg $as_echo "$AS_FOR_TARGET" >&6; }
11846 1.1 mrg else
11847 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 1.1 mrg $as_echo "no" >&6; }
11849 1.1 mrg fi
11850 1.1 mrg
11851 1.1 mrg
11852 1.1 mrg fi
11853 1.1 mrg test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11854 1.1 mrg done
11855 1.1 mrg fi
11856 1.1 mrg
11857 1.1 mrg if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11858 1.1 mrg set dummy as
11859 1.1 mrg if test $build = $target ; then
11860 1.1 mrg AS_FOR_TARGET="$2"
11861 1.1 mrg else
11862 1.1 mrg AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11863 1.1 mrg fi
11864 1.1 mrg else
11865 1.1 mrg AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11866 1.1 mrg fi
11867 1.1 mrg
11868 1.1 mrg else
11869 1.1 mrg AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11870 1.1 mrg fi
11871 1.1 mrg
11872 1.1 mrg
11873 1.1 mrg
11874 1.1 mrg
11875 1.1 mrg if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11876 1.1 mrg if test -n "$with_build_time_tools"; then
11877 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11878 1.1 mrg $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11879 1.1 mrg if test -x $with_build_time_tools/dlltool; then
11880 1.1 mrg DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11881 1.1 mrg ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11882 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11883 1.1 mrg $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11884 1.1 mrg else
11885 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 1.1 mrg $as_echo "no" >&6; }
11887 1.1 mrg fi
11888 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
11889 1.1 mrg DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11890 1.1 mrg test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11891 1.1 mrg test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11892 1.1 mrg fi
11893 1.1 mrg fi
11894 1.1 mrg if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11895 1.1 mrg # Extract the first word of "dlltool", so it can be a program name with args.
11896 1.1 mrg set dummy dlltool; ac_word=$2
11897 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11899 1.12 mrg if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11900 1.1 mrg $as_echo_n "(cached) " >&6
11901 1.1 mrg else
11902 1.1 mrg case $DLLTOOL_FOR_TARGET in
11903 1.1 mrg [\\/]* | ?:[\\/]*)
11904 1.1 mrg ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11905 1.1 mrg ;;
11906 1.1 mrg *)
11907 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 1.1 mrg for as_dir in $gcc_cv_tool_dirs
11909 1.1 mrg do
11910 1.1 mrg IFS=$as_save_IFS
11911 1.1 mrg test -z "$as_dir" && as_dir=.
11912 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11913 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914 1.1 mrg ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11915 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 1.1 mrg break 2
11917 1.1 mrg fi
11918 1.1 mrg done
11919 1.1 mrg done
11920 1.1 mrg IFS=$as_save_IFS
11921 1.1 mrg
11922 1.1 mrg ;;
11923 1.1 mrg esac
11924 1.1 mrg fi
11925 1.1 mrg DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11926 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
11927 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11928 1.1 mrg $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11929 1.1 mrg else
11930 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 1.1 mrg $as_echo "no" >&6; }
11932 1.1 mrg fi
11933 1.1 mrg
11934 1.1 mrg
11935 1.1 mrg fi
11936 1.1 mrg if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11937 1.1 mrg
11938 1.1 mrg
11939 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
11940 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11941 1.1 mrg elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11942 1.1 mrg DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11943 1.1 mrg fi
11944 1.1 mrg
11945 1.1 mrg if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11946 1.1 mrg for ncn_progname in dlltool; do
11947 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11948 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
11949 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
11951 1.12 mrg if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11952 1.1 mrg $as_echo_n "(cached) " >&6
11953 1.1 mrg else
11954 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
11955 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11956 1.1 mrg else
11957 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 1.1 mrg for as_dir in $PATH
11959 1.1 mrg do
11960 1.1 mrg IFS=$as_save_IFS
11961 1.1 mrg test -z "$as_dir" && as_dir=.
11962 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
11963 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11964 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11965 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 1.1 mrg break 2
11967 1.1 mrg fi
11968 1.1 mrg done
11969 1.1 mrg done
11970 1.1 mrg IFS=$as_save_IFS
11971 1.1 mrg
11972 1.1 mrg fi
11973 1.1 mrg fi
11974 1.1 mrg DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11975 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
11976 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11977 1.1 mrg $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11978 1.1 mrg else
11979 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 1.1 mrg $as_echo "no" >&6; }
11981 1.1 mrg fi
11982 1.1 mrg
11983 1.1 mrg
11984 1.1 mrg done
11985 1.1 mrg fi
11986 1.1 mrg
11987 1.1 mrg if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11988 1.1 mrg for ncn_progname in dlltool; do
11989 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11990 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11991 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
11992 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11993 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994 1.1 mrg $as_echo "yes" >&6; }
11995 1.1 mrg break
11996 1.1 mrg else
11997 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 1.1 mrg $as_echo "no" >&6; }
11999 1.1 mrg fi
12000 1.1 mrg done
12001 1.1 mrg fi
12002 1.1 mrg
12003 1.1 mrg if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
12004 1.1 mrg for ncn_progname in dlltool; do
12005 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
12006 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12007 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12008 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12010 1.12 mrg if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
12011 1.1 mrg $as_echo_n "(cached) " >&6
12012 1.1 mrg else
12013 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
12014 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
12015 1.1 mrg else
12016 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 1.1 mrg for as_dir in $PATH
12018 1.1 mrg do
12019 1.1 mrg IFS=$as_save_IFS
12020 1.1 mrg test -z "$as_dir" && as_dir=.
12021 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12022 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12024 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025 1.1 mrg break 2
12026 1.1 mrg fi
12027 1.1 mrg done
12028 1.1 mrg done
12029 1.1 mrg IFS=$as_save_IFS
12030 1.1 mrg
12031 1.1 mrg fi
12032 1.1 mrg fi
12033 1.1 mrg DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12034 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
12035 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12036 1.1 mrg $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12037 1.1 mrg else
12038 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 1.1 mrg $as_echo "no" >&6; }
12040 1.1 mrg fi
12041 1.1 mrg
12042 1.1 mrg
12043 1.1 mrg fi
12044 1.1 mrg if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
12045 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12046 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
12047 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12049 1.12 mrg if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
12050 1.1 mrg $as_echo_n "(cached) " >&6
12051 1.1 mrg else
12052 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
12053 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
12054 1.1 mrg else
12055 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 1.1 mrg for as_dir in $PATH
12057 1.1 mrg do
12058 1.1 mrg IFS=$as_save_IFS
12059 1.1 mrg test -z "$as_dir" && as_dir=.
12060 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12061 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 1.1 mrg ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
12063 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 1.1 mrg break 2
12065 1.1 mrg fi
12066 1.1 mrg done
12067 1.1 mrg done
12068 1.1 mrg IFS=$as_save_IFS
12069 1.1 mrg
12070 1.1 mrg fi
12071 1.1 mrg fi
12072 1.1 mrg DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12073 1.1 mrg if test -n "$DLLTOOL_FOR_TARGET"; then
12074 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12075 1.1 mrg $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12076 1.1 mrg else
12077 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 1.1 mrg $as_echo "no" >&6; }
12079 1.1 mrg fi
12080 1.1 mrg
12081 1.1 mrg
12082 1.1 mrg fi
12083 1.1 mrg test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
12084 1.1 mrg done
12085 1.1 mrg fi
12086 1.1 mrg
12087 1.1 mrg if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
12088 1.1 mrg set dummy dlltool
12089 1.1 mrg if test $build = $target ; then
12090 1.1 mrg DLLTOOL_FOR_TARGET="$2"
12091 1.1 mrg else
12092 1.1 mrg DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12093 1.1 mrg fi
12094 1.1 mrg else
12095 1.1 mrg DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
12096 1.1 mrg fi
12097 1.1 mrg
12098 1.1 mrg else
12099 1.1 mrg DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12100 1.1 mrg fi
12101 1.1 mrg
12102 1.1 mrg
12103 1.1 mrg
12104 1.1 mrg
12105 1.13 mrg if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
12106 1.13 mrg if test -n "$with_build_time_tools"; then
12107 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
12108 1.13 mrg $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
12109 1.13 mrg if test -x $with_build_time_tools/dsymutil; then
12110 1.13 mrg DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
12111 1.13 mrg ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12112 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
12113 1.13 mrg $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
12114 1.13 mrg else
12115 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 1.13 mrg $as_echo "no" >&6; }
12117 1.13 mrg fi
12118 1.13 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
12119 1.13 mrg DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
12120 1.13 mrg test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
12121 1.13 mrg test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12122 1.13 mrg fi
12123 1.13 mrg fi
12124 1.13 mrg if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12125 1.13 mrg # Extract the first word of "dsymutil", so it can be a program name with args.
12126 1.13 mrg set dummy dsymutil; ac_word=$2
12127 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 1.13 mrg $as_echo_n "checking for $ac_word... " >&6; }
12129 1.13 mrg if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
12130 1.13 mrg $as_echo_n "(cached) " >&6
12131 1.13 mrg else
12132 1.13 mrg case $DSYMUTIL_FOR_TARGET in
12133 1.13 mrg [\\/]* | ?:[\\/]*)
12134 1.13 mrg ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
12135 1.13 mrg ;;
12136 1.13 mrg *)
12137 1.13 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 1.13 mrg for as_dir in $gcc_cv_tool_dirs
12139 1.13 mrg do
12140 1.13 mrg IFS=$as_save_IFS
12141 1.13 mrg test -z "$as_dir" && as_dir=.
12142 1.13 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12143 1.13 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 1.13 mrg ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12145 1.13 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 1.13 mrg break 2
12147 1.13 mrg fi
12148 1.13 mrg done
12149 1.13 mrg done
12150 1.13 mrg IFS=$as_save_IFS
12151 1.13 mrg
12152 1.13 mrg ;;
12153 1.13 mrg esac
12154 1.13 mrg fi
12155 1.13 mrg DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
12156 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12157 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12158 1.13 mrg $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12159 1.13 mrg else
12160 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 1.13 mrg $as_echo "no" >&6; }
12162 1.13 mrg fi
12163 1.13 mrg
12164 1.13 mrg
12165 1.13 mrg fi
12166 1.13 mrg if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
12167 1.13 mrg
12168 1.13 mrg
12169 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12170 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12171 1.13 mrg elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12172 1.13 mrg DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12173 1.13 mrg fi
12174 1.13 mrg
12175 1.13 mrg if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12176 1.13 mrg for ncn_progname in dsymutil; do
12177 1.13 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12178 1.13 mrg set dummy ${ncn_progname}; ac_word=$2
12179 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 1.13 mrg $as_echo_n "checking for $ac_word... " >&6; }
12181 1.13 mrg if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12182 1.13 mrg $as_echo_n "(cached) " >&6
12183 1.13 mrg else
12184 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12185 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12186 1.13 mrg else
12187 1.13 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 1.13 mrg for as_dir in $PATH
12189 1.13 mrg do
12190 1.13 mrg IFS=$as_save_IFS
12191 1.13 mrg test -z "$as_dir" && as_dir=.
12192 1.13 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12193 1.13 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
12195 1.13 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 1.13 mrg break 2
12197 1.13 mrg fi
12198 1.13 mrg done
12199 1.13 mrg done
12200 1.13 mrg IFS=$as_save_IFS
12201 1.13 mrg
12202 1.13 mrg fi
12203 1.13 mrg fi
12204 1.13 mrg DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12205 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12206 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12207 1.13 mrg $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12208 1.13 mrg else
12209 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 1.13 mrg $as_echo "no" >&6; }
12211 1.13 mrg fi
12212 1.13 mrg
12213 1.13 mrg
12214 1.13 mrg done
12215 1.13 mrg fi
12216 1.13 mrg
12217 1.13 mrg if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
12218 1.13 mrg for ncn_progname in dsymutil; do
12219 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12220 1.13 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12221 1.13 mrg if test -x $with_build_time_tools/${ncn_progname}; then
12222 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12223 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12224 1.13 mrg $as_echo "yes" >&6; }
12225 1.13 mrg break
12226 1.13 mrg else
12227 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 1.13 mrg $as_echo "no" >&6; }
12229 1.13 mrg fi
12230 1.13 mrg done
12231 1.13 mrg fi
12232 1.13 mrg
12233 1.13 mrg if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12234 1.13 mrg for ncn_progname in dsymutil; do
12235 1.13 mrg if test -n "$ncn_target_tool_prefix"; then
12236 1.13 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12237 1.13 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12238 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 1.13 mrg $as_echo_n "checking for $ac_word... " >&6; }
12240 1.13 mrg if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12241 1.13 mrg $as_echo_n "(cached) " >&6
12242 1.13 mrg else
12243 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12244 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12245 1.13 mrg else
12246 1.13 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 1.13 mrg for as_dir in $PATH
12248 1.13 mrg do
12249 1.13 mrg IFS=$as_save_IFS
12250 1.13 mrg test -z "$as_dir" && as_dir=.
12251 1.13 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12252 1.13 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12254 1.13 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 1.13 mrg break 2
12256 1.13 mrg fi
12257 1.13 mrg done
12258 1.13 mrg done
12259 1.13 mrg IFS=$as_save_IFS
12260 1.13 mrg
12261 1.13 mrg fi
12262 1.13 mrg fi
12263 1.13 mrg DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12264 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12265 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12266 1.13 mrg $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12267 1.13 mrg else
12268 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 1.13 mrg $as_echo "no" >&6; }
12270 1.13 mrg fi
12271 1.13 mrg
12272 1.13 mrg
12273 1.13 mrg fi
12274 1.13 mrg if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
12275 1.13 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12276 1.13 mrg set dummy ${ncn_progname}; ac_word=$2
12277 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 1.13 mrg $as_echo_n "checking for $ac_word... " >&6; }
12279 1.13 mrg if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12280 1.13 mrg $as_echo_n "(cached) " >&6
12281 1.13 mrg else
12282 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12283 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12284 1.13 mrg else
12285 1.13 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 1.13 mrg for as_dir in $PATH
12287 1.13 mrg do
12288 1.13 mrg IFS=$as_save_IFS
12289 1.13 mrg test -z "$as_dir" && as_dir=.
12290 1.13 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12291 1.13 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 1.13 mrg ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
12293 1.13 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 1.13 mrg break 2
12295 1.13 mrg fi
12296 1.13 mrg done
12297 1.13 mrg done
12298 1.13 mrg IFS=$as_save_IFS
12299 1.13 mrg
12300 1.13 mrg fi
12301 1.13 mrg fi
12302 1.13 mrg DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12303 1.13 mrg if test -n "$DSYMUTIL_FOR_TARGET"; then
12304 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12305 1.13 mrg $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12306 1.13 mrg else
12307 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 1.13 mrg $as_echo "no" >&6; }
12309 1.13 mrg fi
12310 1.13 mrg
12311 1.13 mrg
12312 1.13 mrg fi
12313 1.13 mrg test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
12314 1.13 mrg done
12315 1.13 mrg fi
12316 1.13 mrg
12317 1.13 mrg if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
12318 1.13 mrg set dummy dsymutil
12319 1.13 mrg if test $build = $target ; then
12320 1.13 mrg DSYMUTIL_FOR_TARGET="$2"
12321 1.13 mrg else
12322 1.13 mrg DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12323 1.13 mrg fi
12324 1.13 mrg else
12325 1.13 mrg DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
12326 1.13 mrg fi
12327 1.13 mrg
12328 1.13 mrg else
12329 1.13 mrg DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
12330 1.13 mrg fi
12331 1.13 mrg
12332 1.13 mrg
12333 1.13 mrg
12334 1.13 mrg
12335 1.1 mrg if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12336 1.1 mrg if test -n "$with_build_time_tools"; then
12337 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12338 1.1 mrg $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
12339 1.1 mrg if test -x $with_build_time_tools/ld; then
12340 1.1 mrg LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12341 1.1 mrg ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12342 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12343 1.1 mrg $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
12344 1.1 mrg else
12345 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 1.1 mrg $as_echo "no" >&6; }
12347 1.1 mrg fi
12348 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
12349 1.1 mrg LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12350 1.1 mrg test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12351 1.1 mrg test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12352 1.1 mrg fi
12353 1.1 mrg fi
12354 1.1 mrg if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12355 1.1 mrg # Extract the first word of "ld", so it can be a program name with args.
12356 1.1 mrg set dummy ld; ac_word=$2
12357 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12359 1.12 mrg if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12360 1.1 mrg $as_echo_n "(cached) " >&6
12361 1.1 mrg else
12362 1.1 mrg case $LD_FOR_TARGET in
12363 1.1 mrg [\\/]* | ?:[\\/]*)
12364 1.1 mrg ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12365 1.1 mrg ;;
12366 1.1 mrg *)
12367 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 1.1 mrg for as_dir in $gcc_cv_tool_dirs
12369 1.1 mrg do
12370 1.1 mrg IFS=$as_save_IFS
12371 1.1 mrg test -z "$as_dir" && as_dir=.
12372 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12373 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374 1.1 mrg ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12375 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 1.1 mrg break 2
12377 1.1 mrg fi
12378 1.1 mrg done
12379 1.1 mrg done
12380 1.1 mrg IFS=$as_save_IFS
12381 1.1 mrg
12382 1.1 mrg ;;
12383 1.1 mrg esac
12384 1.1 mrg fi
12385 1.1 mrg LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12386 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12387 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12388 1.1 mrg $as_echo "$LD_FOR_TARGET" >&6; }
12389 1.1 mrg else
12390 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 1.1 mrg $as_echo "no" >&6; }
12392 1.1 mrg fi
12393 1.1 mrg
12394 1.1 mrg
12395 1.1 mrg fi
12396 1.1 mrg if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12397 1.1 mrg
12398 1.1 mrg
12399 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12400 1.1 mrg ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12401 1.1 mrg elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12402 1.1 mrg LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12403 1.1 mrg fi
12404 1.1 mrg
12405 1.1 mrg if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12406 1.1 mrg for ncn_progname in ld; do
12407 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12408 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
12409 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12411 1.12 mrg if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12412 1.1 mrg $as_echo_n "(cached) " >&6
12413 1.1 mrg else
12414 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12415 1.1 mrg ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12416 1.1 mrg else
12417 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418 1.1 mrg for as_dir in $PATH
12419 1.1 mrg do
12420 1.1 mrg IFS=$as_save_IFS
12421 1.1 mrg test -z "$as_dir" && as_dir=.
12422 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12423 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12424 1.1 mrg ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12425 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 1.1 mrg break 2
12427 1.1 mrg fi
12428 1.1 mrg done
12429 1.1 mrg done
12430 1.1 mrg IFS=$as_save_IFS
12431 1.1 mrg
12432 1.1 mrg fi
12433 1.1 mrg fi
12434 1.1 mrg LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12435 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12436 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12437 1.1 mrg $as_echo "$LD_FOR_TARGET" >&6; }
12438 1.1 mrg else
12439 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 1.1 mrg $as_echo "no" >&6; }
12441 1.1 mrg fi
12442 1.1 mrg
12443 1.1 mrg
12444 1.1 mrg done
12445 1.1 mrg fi
12446 1.1 mrg
12447 1.1 mrg if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12448 1.1 mrg for ncn_progname in ld; do
12449 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12450 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12451 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
12452 1.1 mrg ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12453 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12454 1.1 mrg $as_echo "yes" >&6; }
12455 1.1 mrg break
12456 1.1 mrg else
12457 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 1.1 mrg $as_echo "no" >&6; }
12459 1.1 mrg fi
12460 1.1 mrg done
12461 1.1 mrg fi
12462 1.1 mrg
12463 1.1 mrg if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12464 1.1 mrg for ncn_progname in ld; do
12465 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
12466 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12467 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12468 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12470 1.12 mrg if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12471 1.1 mrg $as_echo_n "(cached) " >&6
12472 1.1 mrg else
12473 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12474 1.1 mrg ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12475 1.1 mrg else
12476 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 1.1 mrg for as_dir in $PATH
12478 1.1 mrg do
12479 1.1 mrg IFS=$as_save_IFS
12480 1.1 mrg test -z "$as_dir" && as_dir=.
12481 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12482 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 1.1 mrg ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12484 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 1.1 mrg break 2
12486 1.1 mrg fi
12487 1.1 mrg done
12488 1.1 mrg done
12489 1.1 mrg IFS=$as_save_IFS
12490 1.1 mrg
12491 1.1 mrg fi
12492 1.1 mrg fi
12493 1.1 mrg LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12494 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12495 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12496 1.1 mrg $as_echo "$LD_FOR_TARGET" >&6; }
12497 1.1 mrg else
12498 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 1.1 mrg $as_echo "no" >&6; }
12500 1.1 mrg fi
12501 1.1 mrg
12502 1.1 mrg
12503 1.1 mrg fi
12504 1.1 mrg if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12505 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12506 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
12507 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12509 1.12 mrg if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12510 1.1 mrg $as_echo_n "(cached) " >&6
12511 1.1 mrg else
12512 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12513 1.1 mrg ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12514 1.1 mrg else
12515 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 1.1 mrg for as_dir in $PATH
12517 1.1 mrg do
12518 1.1 mrg IFS=$as_save_IFS
12519 1.1 mrg test -z "$as_dir" && as_dir=.
12520 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12521 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 1.1 mrg ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12523 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 1.1 mrg break 2
12525 1.1 mrg fi
12526 1.1 mrg done
12527 1.1 mrg done
12528 1.1 mrg IFS=$as_save_IFS
12529 1.1 mrg
12530 1.1 mrg fi
12531 1.1 mrg fi
12532 1.1 mrg LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12533 1.1 mrg if test -n "$LD_FOR_TARGET"; then
12534 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12535 1.1 mrg $as_echo "$LD_FOR_TARGET" >&6; }
12536 1.1 mrg else
12537 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 1.1 mrg $as_echo "no" >&6; }
12539 1.1 mrg fi
12540 1.1 mrg
12541 1.1 mrg
12542 1.1 mrg fi
12543 1.1 mrg test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12544 1.1 mrg done
12545 1.1 mrg fi
12546 1.1 mrg
12547 1.1 mrg if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12548 1.1 mrg set dummy ld
12549 1.1 mrg if test $build = $target ; then
12550 1.1 mrg LD_FOR_TARGET="$2"
12551 1.1 mrg else
12552 1.1 mrg LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12553 1.1 mrg fi
12554 1.1 mrg else
12555 1.1 mrg LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12556 1.1 mrg fi
12557 1.1 mrg
12558 1.1 mrg else
12559 1.1 mrg LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12560 1.1 mrg fi
12561 1.1 mrg
12562 1.1 mrg
12563 1.1 mrg
12564 1.1 mrg
12565 1.1 mrg if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12566 1.1 mrg if test -n "$with_build_time_tools"; then
12567 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12568 1.1 mrg $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12569 1.1 mrg if test -x $with_build_time_tools/lipo; then
12570 1.1 mrg LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12571 1.1 mrg ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12572 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12573 1.1 mrg $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12574 1.1 mrg else
12575 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 1.1 mrg $as_echo "no" >&6; }
12577 1.1 mrg fi
12578 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
12579 1.1 mrg LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12580 1.1 mrg test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12581 1.1 mrg test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12582 1.1 mrg fi
12583 1.1 mrg fi
12584 1.1 mrg if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12585 1.1 mrg # Extract the first word of "lipo", so it can be a program name with args.
12586 1.1 mrg set dummy lipo; ac_word=$2
12587 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12589 1.12 mrg if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12590 1.1 mrg $as_echo_n "(cached) " >&6
12591 1.1 mrg else
12592 1.1 mrg case $LIPO_FOR_TARGET in
12593 1.1 mrg [\\/]* | ?:[\\/]*)
12594 1.1 mrg ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12595 1.1 mrg ;;
12596 1.1 mrg *)
12597 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 1.1 mrg for as_dir in $gcc_cv_tool_dirs
12599 1.1 mrg do
12600 1.1 mrg IFS=$as_save_IFS
12601 1.1 mrg test -z "$as_dir" && as_dir=.
12602 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12603 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 1.1 mrg ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12605 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 1.1 mrg break 2
12607 1.1 mrg fi
12608 1.1 mrg done
12609 1.1 mrg done
12610 1.1 mrg IFS=$as_save_IFS
12611 1.1 mrg
12612 1.1 mrg ;;
12613 1.1 mrg esac
12614 1.1 mrg fi
12615 1.1 mrg LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12616 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12617 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12618 1.1 mrg $as_echo "$LIPO_FOR_TARGET" >&6; }
12619 1.1 mrg else
12620 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 1.1 mrg $as_echo "no" >&6; }
12622 1.1 mrg fi
12623 1.1 mrg
12624 1.1 mrg
12625 1.1 mrg fi
12626 1.1 mrg if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12627 1.1 mrg
12628 1.1 mrg
12629 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12630 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12631 1.1 mrg elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12632 1.1 mrg LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12633 1.1 mrg fi
12634 1.1 mrg
12635 1.1 mrg if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12636 1.1 mrg for ncn_progname in lipo; do
12637 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12638 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
12639 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12641 1.12 mrg if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12642 1.1 mrg $as_echo_n "(cached) " >&6
12643 1.1 mrg else
12644 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12645 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12646 1.1 mrg else
12647 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 1.1 mrg for as_dir in $PATH
12649 1.1 mrg do
12650 1.1 mrg IFS=$as_save_IFS
12651 1.1 mrg test -z "$as_dir" && as_dir=.
12652 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12653 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12655 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656 1.1 mrg break 2
12657 1.1 mrg fi
12658 1.1 mrg done
12659 1.1 mrg done
12660 1.1 mrg IFS=$as_save_IFS
12661 1.1 mrg
12662 1.1 mrg fi
12663 1.1 mrg fi
12664 1.1 mrg LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12665 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12666 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12667 1.1 mrg $as_echo "$LIPO_FOR_TARGET" >&6; }
12668 1.1 mrg else
12669 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 1.1 mrg $as_echo "no" >&6; }
12671 1.1 mrg fi
12672 1.1 mrg
12673 1.1 mrg
12674 1.1 mrg done
12675 1.1 mrg fi
12676 1.1 mrg
12677 1.1 mrg if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12678 1.1 mrg for ncn_progname in lipo; do
12679 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12680 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12681 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
12682 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12683 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684 1.1 mrg $as_echo "yes" >&6; }
12685 1.1 mrg break
12686 1.1 mrg else
12687 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 1.1 mrg $as_echo "no" >&6; }
12689 1.1 mrg fi
12690 1.1 mrg done
12691 1.1 mrg fi
12692 1.1 mrg
12693 1.1 mrg if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12694 1.1 mrg for ncn_progname in lipo; do
12695 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
12696 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12697 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12698 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12700 1.12 mrg if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12701 1.1 mrg $as_echo_n "(cached) " >&6
12702 1.1 mrg else
12703 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12704 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12705 1.1 mrg else
12706 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 1.1 mrg for as_dir in $PATH
12708 1.1 mrg do
12709 1.1 mrg IFS=$as_save_IFS
12710 1.1 mrg test -z "$as_dir" && as_dir=.
12711 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12712 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12713 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12714 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 1.1 mrg break 2
12716 1.1 mrg fi
12717 1.1 mrg done
12718 1.1 mrg done
12719 1.1 mrg IFS=$as_save_IFS
12720 1.1 mrg
12721 1.1 mrg fi
12722 1.1 mrg fi
12723 1.1 mrg LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12724 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12725 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12726 1.1 mrg $as_echo "$LIPO_FOR_TARGET" >&6; }
12727 1.1 mrg else
12728 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 1.1 mrg $as_echo "no" >&6; }
12730 1.1 mrg fi
12731 1.1 mrg
12732 1.1 mrg
12733 1.1 mrg fi
12734 1.1 mrg if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12735 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12736 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
12737 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12739 1.12 mrg if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12740 1.1 mrg $as_echo_n "(cached) " >&6
12741 1.1 mrg else
12742 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12743 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12744 1.1 mrg else
12745 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 1.1 mrg for as_dir in $PATH
12747 1.1 mrg do
12748 1.1 mrg IFS=$as_save_IFS
12749 1.1 mrg test -z "$as_dir" && as_dir=.
12750 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12751 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 1.1 mrg ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12753 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 1.1 mrg break 2
12755 1.1 mrg fi
12756 1.1 mrg done
12757 1.1 mrg done
12758 1.1 mrg IFS=$as_save_IFS
12759 1.1 mrg
12760 1.1 mrg fi
12761 1.1 mrg fi
12762 1.1 mrg LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12763 1.1 mrg if test -n "$LIPO_FOR_TARGET"; then
12764 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12765 1.1 mrg $as_echo "$LIPO_FOR_TARGET" >&6; }
12766 1.1 mrg else
12767 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 1.1 mrg $as_echo "no" >&6; }
12769 1.1 mrg fi
12770 1.1 mrg
12771 1.1 mrg
12772 1.1 mrg fi
12773 1.1 mrg test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12774 1.1 mrg done
12775 1.1 mrg fi
12776 1.1 mrg
12777 1.1 mrg if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12778 1.1 mrg set dummy lipo
12779 1.1 mrg if test $build = $target ; then
12780 1.1 mrg LIPO_FOR_TARGET="$2"
12781 1.1 mrg else
12782 1.1 mrg LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12783 1.1 mrg fi
12784 1.1 mrg else
12785 1.1 mrg LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12786 1.1 mrg fi
12787 1.1 mrg
12788 1.1 mrg else
12789 1.1 mrg LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12790 1.1 mrg fi
12791 1.1 mrg
12792 1.1 mrg
12793 1.1 mrg
12794 1.1 mrg
12795 1.1 mrg if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12796 1.1 mrg if test -n "$with_build_time_tools"; then
12797 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12798 1.1 mrg $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12799 1.1 mrg if test -x $with_build_time_tools/nm; then
12800 1.1 mrg NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12801 1.1 mrg ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12802 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12803 1.1 mrg $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12804 1.1 mrg else
12805 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 1.1 mrg $as_echo "no" >&6; }
12807 1.1 mrg fi
12808 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
12809 1.1 mrg NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12810 1.1 mrg test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12811 1.1 mrg test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12812 1.1 mrg fi
12813 1.1 mrg fi
12814 1.1 mrg if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12815 1.1 mrg # Extract the first word of "nm", so it can be a program name with args.
12816 1.1 mrg set dummy nm; ac_word=$2
12817 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12819 1.12 mrg if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12820 1.1 mrg $as_echo_n "(cached) " >&6
12821 1.1 mrg else
12822 1.1 mrg case $NM_FOR_TARGET in
12823 1.1 mrg [\\/]* | ?:[\\/]*)
12824 1.1 mrg ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12825 1.1 mrg ;;
12826 1.1 mrg *)
12827 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 1.1 mrg for as_dir in $gcc_cv_tool_dirs
12829 1.1 mrg do
12830 1.1 mrg IFS=$as_save_IFS
12831 1.1 mrg test -z "$as_dir" && as_dir=.
12832 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12833 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12834 1.1 mrg ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12835 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 1.1 mrg break 2
12837 1.1 mrg fi
12838 1.1 mrg done
12839 1.1 mrg done
12840 1.1 mrg IFS=$as_save_IFS
12841 1.1 mrg
12842 1.1 mrg ;;
12843 1.1 mrg esac
12844 1.1 mrg fi
12845 1.1 mrg NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12846 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12847 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12848 1.1 mrg $as_echo "$NM_FOR_TARGET" >&6; }
12849 1.1 mrg else
12850 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 1.1 mrg $as_echo "no" >&6; }
12852 1.1 mrg fi
12853 1.1 mrg
12854 1.1 mrg
12855 1.1 mrg fi
12856 1.1 mrg if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12857 1.1 mrg
12858 1.1 mrg
12859 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12860 1.1 mrg ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12861 1.1 mrg elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12862 1.1 mrg NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12863 1.1 mrg fi
12864 1.1 mrg
12865 1.1 mrg if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12866 1.1 mrg for ncn_progname in nm; do
12867 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12868 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
12869 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12871 1.12 mrg if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12872 1.1 mrg $as_echo_n "(cached) " >&6
12873 1.1 mrg else
12874 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12875 1.1 mrg ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12876 1.1 mrg else
12877 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 1.1 mrg for as_dir in $PATH
12879 1.1 mrg do
12880 1.1 mrg IFS=$as_save_IFS
12881 1.1 mrg test -z "$as_dir" && as_dir=.
12882 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12883 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12884 1.1 mrg ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12885 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 1.1 mrg break 2
12887 1.1 mrg fi
12888 1.1 mrg done
12889 1.1 mrg done
12890 1.1 mrg IFS=$as_save_IFS
12891 1.1 mrg
12892 1.1 mrg fi
12893 1.1 mrg fi
12894 1.1 mrg NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12895 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12896 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12897 1.1 mrg $as_echo "$NM_FOR_TARGET" >&6; }
12898 1.1 mrg else
12899 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 1.1 mrg $as_echo "no" >&6; }
12901 1.1 mrg fi
12902 1.1 mrg
12903 1.1 mrg
12904 1.1 mrg done
12905 1.1 mrg fi
12906 1.1 mrg
12907 1.1 mrg if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12908 1.1 mrg for ncn_progname in nm; do
12909 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12910 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12911 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
12912 1.1 mrg ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12913 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 1.1 mrg $as_echo "yes" >&6; }
12915 1.1 mrg break
12916 1.1 mrg else
12917 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 1.1 mrg $as_echo "no" >&6; }
12919 1.1 mrg fi
12920 1.1 mrg done
12921 1.1 mrg fi
12922 1.1 mrg
12923 1.1 mrg if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12924 1.1 mrg for ncn_progname in nm; do
12925 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
12926 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12927 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12928 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12930 1.12 mrg if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12931 1.1 mrg $as_echo_n "(cached) " >&6
12932 1.1 mrg else
12933 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12934 1.1 mrg ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12935 1.1 mrg else
12936 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 1.1 mrg for as_dir in $PATH
12938 1.1 mrg do
12939 1.1 mrg IFS=$as_save_IFS
12940 1.1 mrg test -z "$as_dir" && as_dir=.
12941 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12942 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 1.1 mrg ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12944 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 1.1 mrg break 2
12946 1.1 mrg fi
12947 1.1 mrg done
12948 1.1 mrg done
12949 1.1 mrg IFS=$as_save_IFS
12950 1.1 mrg
12951 1.1 mrg fi
12952 1.1 mrg fi
12953 1.1 mrg NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12954 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12955 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12956 1.1 mrg $as_echo "$NM_FOR_TARGET" >&6; }
12957 1.1 mrg else
12958 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 1.1 mrg $as_echo "no" >&6; }
12960 1.1 mrg fi
12961 1.1 mrg
12962 1.1 mrg
12963 1.1 mrg fi
12964 1.1 mrg if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12965 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12966 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
12967 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
12969 1.12 mrg if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12970 1.1 mrg $as_echo_n "(cached) " >&6
12971 1.1 mrg else
12972 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12973 1.1 mrg ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12974 1.1 mrg else
12975 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 1.1 mrg for as_dir in $PATH
12977 1.1 mrg do
12978 1.1 mrg IFS=$as_save_IFS
12979 1.1 mrg test -z "$as_dir" && as_dir=.
12980 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
12981 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982 1.1 mrg ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12983 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 1.1 mrg break 2
12985 1.1 mrg fi
12986 1.1 mrg done
12987 1.1 mrg done
12988 1.1 mrg IFS=$as_save_IFS
12989 1.1 mrg
12990 1.1 mrg fi
12991 1.1 mrg fi
12992 1.1 mrg NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12993 1.1 mrg if test -n "$NM_FOR_TARGET"; then
12994 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12995 1.1 mrg $as_echo "$NM_FOR_TARGET" >&6; }
12996 1.1 mrg else
12997 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 1.1 mrg $as_echo "no" >&6; }
12999 1.1 mrg fi
13000 1.1 mrg
13001 1.1 mrg
13002 1.1 mrg fi
13003 1.1 mrg test -n "$ac_cv_prog_NM_FOR_TARGET" && break
13004 1.1 mrg done
13005 1.1 mrg fi
13006 1.1 mrg
13007 1.1 mrg if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
13008 1.1 mrg set dummy nm
13009 1.1 mrg if test $build = $target ; then
13010 1.1 mrg NM_FOR_TARGET="$2"
13011 1.1 mrg else
13012 1.1 mrg NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
13013 1.1 mrg fi
13014 1.1 mrg else
13015 1.1 mrg NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
13016 1.1 mrg fi
13017 1.1 mrg
13018 1.1 mrg else
13019 1.1 mrg NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
13020 1.1 mrg fi
13021 1.1 mrg
13022 1.1 mrg
13023 1.1 mrg
13024 1.1 mrg
13025 1.6 mrg if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13026 1.6 mrg if test -n "$with_build_time_tools"; then
13027 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
13028 1.6 mrg $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
13029 1.6 mrg if test -x $with_build_time_tools/objcopy; then
13030 1.6 mrg OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
13031 1.6 mrg ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13032 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
13033 1.6 mrg $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
13034 1.6 mrg else
13035 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 1.6 mrg $as_echo "no" >&6; }
13037 1.6 mrg fi
13038 1.6 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
13039 1.6 mrg OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
13040 1.6 mrg test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
13041 1.6 mrg test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13042 1.6 mrg fi
13043 1.6 mrg fi
13044 1.6 mrg if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13045 1.6 mrg # Extract the first word of "objcopy", so it can be a program name with args.
13046 1.6 mrg set dummy objcopy; ac_word=$2
13047 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 1.6 mrg $as_echo_n "checking for $ac_word... " >&6; }
13049 1.12 mrg if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
13050 1.6 mrg $as_echo_n "(cached) " >&6
13051 1.6 mrg else
13052 1.6 mrg case $OBJCOPY_FOR_TARGET in
13053 1.6 mrg [\\/]* | ?:[\\/]*)
13054 1.6 mrg ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
13055 1.6 mrg ;;
13056 1.6 mrg *)
13057 1.6 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 1.6 mrg for as_dir in $gcc_cv_tool_dirs
13059 1.6 mrg do
13060 1.6 mrg IFS=$as_save_IFS
13061 1.6 mrg test -z "$as_dir" && as_dir=.
13062 1.6 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13063 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13064 1.6 mrg ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13065 1.6 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 1.6 mrg break 2
13067 1.6 mrg fi
13068 1.6 mrg done
13069 1.6 mrg done
13070 1.6 mrg IFS=$as_save_IFS
13071 1.6 mrg
13072 1.6 mrg ;;
13073 1.6 mrg esac
13074 1.6 mrg fi
13075 1.6 mrg OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13076 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13077 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13078 1.6 mrg $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13079 1.6 mrg else
13080 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 1.6 mrg $as_echo "no" >&6; }
13082 1.6 mrg fi
13083 1.6 mrg
13084 1.6 mrg
13085 1.6 mrg fi
13086 1.6 mrg if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13087 1.6 mrg
13088 1.6 mrg
13089 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13090 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13091 1.6 mrg elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13092 1.6 mrg OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13093 1.6 mrg fi
13094 1.6 mrg
13095 1.6 mrg if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13096 1.6 mrg for ncn_progname in objcopy; do
13097 1.6 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098 1.6 mrg set dummy ${ncn_progname}; ac_word=$2
13099 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 1.6 mrg $as_echo_n "checking for $ac_word... " >&6; }
13101 1.12 mrg if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13102 1.6 mrg $as_echo_n "(cached) " >&6
13103 1.6 mrg else
13104 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13105 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13106 1.6 mrg else
13107 1.6 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 1.6 mrg for as_dir in $PATH
13109 1.6 mrg do
13110 1.6 mrg IFS=$as_save_IFS
13111 1.6 mrg test -z "$as_dir" && as_dir=.
13112 1.6 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13113 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13115 1.6 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 1.6 mrg break 2
13117 1.6 mrg fi
13118 1.6 mrg done
13119 1.6 mrg done
13120 1.6 mrg IFS=$as_save_IFS
13121 1.6 mrg
13122 1.6 mrg fi
13123 1.6 mrg fi
13124 1.6 mrg OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13125 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13126 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13127 1.6 mrg $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13128 1.6 mrg else
13129 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 1.6 mrg $as_echo "no" >&6; }
13131 1.6 mrg fi
13132 1.6 mrg
13133 1.6 mrg
13134 1.6 mrg done
13135 1.6 mrg fi
13136 1.6 mrg
13137 1.6 mrg if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
13138 1.6 mrg for ncn_progname in objcopy; do
13139 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13140 1.6 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13141 1.6 mrg if test -x $with_build_time_tools/${ncn_progname}; then
13142 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13143 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 1.6 mrg $as_echo "yes" >&6; }
13145 1.6 mrg break
13146 1.6 mrg else
13147 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 1.6 mrg $as_echo "no" >&6; }
13149 1.6 mrg fi
13150 1.6 mrg done
13151 1.6 mrg fi
13152 1.6 mrg
13153 1.6 mrg if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13154 1.6 mrg for ncn_progname in objcopy; do
13155 1.6 mrg if test -n "$ncn_target_tool_prefix"; then
13156 1.6 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13157 1.6 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13158 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 1.6 mrg $as_echo_n "checking for $ac_word... " >&6; }
13160 1.12 mrg if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13161 1.6 mrg $as_echo_n "(cached) " >&6
13162 1.6 mrg else
13163 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13164 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13165 1.6 mrg else
13166 1.6 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 1.6 mrg for as_dir in $PATH
13168 1.6 mrg do
13169 1.6 mrg IFS=$as_save_IFS
13170 1.6 mrg test -z "$as_dir" && as_dir=.
13171 1.6 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13172 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13174 1.6 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 1.6 mrg break 2
13176 1.6 mrg fi
13177 1.6 mrg done
13178 1.6 mrg done
13179 1.6 mrg IFS=$as_save_IFS
13180 1.6 mrg
13181 1.6 mrg fi
13182 1.6 mrg fi
13183 1.6 mrg OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13184 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13185 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13186 1.6 mrg $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13187 1.6 mrg else
13188 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 1.6 mrg $as_echo "no" >&6; }
13190 1.6 mrg fi
13191 1.6 mrg
13192 1.6 mrg
13193 1.6 mrg fi
13194 1.6 mrg if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
13195 1.6 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13196 1.6 mrg set dummy ${ncn_progname}; ac_word=$2
13197 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 1.6 mrg $as_echo_n "checking for $ac_word... " >&6; }
13199 1.12 mrg if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13200 1.6 mrg $as_echo_n "(cached) " >&6
13201 1.6 mrg else
13202 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13203 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13204 1.6 mrg else
13205 1.6 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 1.6 mrg for as_dir in $PATH
13207 1.6 mrg do
13208 1.6 mrg IFS=$as_save_IFS
13209 1.6 mrg test -z "$as_dir" && as_dir=.
13210 1.6 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13211 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 1.6 mrg ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13213 1.6 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 1.6 mrg break 2
13215 1.6 mrg fi
13216 1.6 mrg done
13217 1.6 mrg done
13218 1.6 mrg IFS=$as_save_IFS
13219 1.6 mrg
13220 1.6 mrg fi
13221 1.6 mrg fi
13222 1.6 mrg OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13223 1.6 mrg if test -n "$OBJCOPY_FOR_TARGET"; then
13224 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13225 1.6 mrg $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13226 1.6 mrg else
13227 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 1.6 mrg $as_echo "no" >&6; }
13229 1.6 mrg fi
13230 1.6 mrg
13231 1.6 mrg
13232 1.6 mrg fi
13233 1.6 mrg test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
13234 1.6 mrg done
13235 1.6 mrg fi
13236 1.6 mrg
13237 1.6 mrg if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
13238 1.6 mrg set dummy objcopy
13239 1.6 mrg if test $build = $target ; then
13240 1.6 mrg OBJCOPY_FOR_TARGET="$2"
13241 1.6 mrg else
13242 1.6 mrg OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
13243 1.6 mrg fi
13244 1.6 mrg else
13245 1.6 mrg OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
13246 1.6 mrg fi
13247 1.6 mrg
13248 1.6 mrg else
13249 1.6 mrg OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13250 1.6 mrg fi
13251 1.6 mrg
13252 1.6 mrg
13253 1.6 mrg
13254 1.6 mrg
13255 1.1 mrg if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13256 1.1 mrg if test -n "$with_build_time_tools"; then
13257 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
13258 1.1 mrg $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
13259 1.1 mrg if test -x $with_build_time_tools/objdump; then
13260 1.1 mrg OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
13261 1.1 mrg ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13262 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
13263 1.1 mrg $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
13264 1.1 mrg else
13265 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 1.1 mrg $as_echo "no" >&6; }
13267 1.1 mrg fi
13268 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
13269 1.1 mrg OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
13270 1.1 mrg test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
13271 1.1 mrg test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13272 1.1 mrg fi
13273 1.1 mrg fi
13274 1.1 mrg if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13275 1.1 mrg # Extract the first word of "objdump", so it can be a program name with args.
13276 1.1 mrg set dummy objdump; ac_word=$2
13277 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
13279 1.12 mrg if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
13280 1.1 mrg $as_echo_n "(cached) " >&6
13281 1.1 mrg else
13282 1.1 mrg case $OBJDUMP_FOR_TARGET in
13283 1.1 mrg [\\/]* | ?:[\\/]*)
13284 1.1 mrg ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
13285 1.1 mrg ;;
13286 1.1 mrg *)
13287 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 1.1 mrg for as_dir in $gcc_cv_tool_dirs
13289 1.1 mrg do
13290 1.1 mrg IFS=$as_save_IFS
13291 1.1 mrg test -z "$as_dir" && as_dir=.
13292 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13293 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13294 1.1 mrg ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13295 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 1.1 mrg break 2
13297 1.1 mrg fi
13298 1.1 mrg done
13299 1.1 mrg done
13300 1.1 mrg IFS=$as_save_IFS
13301 1.1 mrg
13302 1.1 mrg ;;
13303 1.1 mrg esac
13304 1.1 mrg fi
13305 1.4 mrg OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13306 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13307 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13308 1.4 mrg $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13309 1.4 mrg else
13310 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 1.4 mrg $as_echo "no" >&6; }
13312 1.4 mrg fi
13313 1.4 mrg
13314 1.4 mrg
13315 1.4 mrg fi
13316 1.4 mrg if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13317 1.4 mrg
13318 1.4 mrg
13319 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13320 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13321 1.4 mrg elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13322 1.4 mrg OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13323 1.4 mrg fi
13324 1.4 mrg
13325 1.4 mrg if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13326 1.4 mrg for ncn_progname in objdump; do
13327 1.4 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13328 1.4 mrg set dummy ${ncn_progname}; ac_word=$2
13329 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
13331 1.12 mrg if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13332 1.4 mrg $as_echo_n "(cached) " >&6
13333 1.4 mrg else
13334 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13335 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13336 1.4 mrg else
13337 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 1.4 mrg for as_dir in $PATH
13339 1.4 mrg do
13340 1.4 mrg IFS=$as_save_IFS
13341 1.4 mrg test -z "$as_dir" && as_dir=.
13342 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13343 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13344 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13345 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 1.4 mrg break 2
13347 1.4 mrg fi
13348 1.4 mrg done
13349 1.4 mrg done
13350 1.4 mrg IFS=$as_save_IFS
13351 1.4 mrg
13352 1.4 mrg fi
13353 1.4 mrg fi
13354 1.4 mrg OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13355 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13356 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13357 1.4 mrg $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13358 1.4 mrg else
13359 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 1.4 mrg $as_echo "no" >&6; }
13361 1.4 mrg fi
13362 1.4 mrg
13363 1.4 mrg
13364 1.4 mrg done
13365 1.4 mrg fi
13366 1.4 mrg
13367 1.4 mrg if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13368 1.4 mrg for ncn_progname in objdump; do
13369 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13370 1.4 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13371 1.4 mrg if test -x $with_build_time_tools/${ncn_progname}; then
13372 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13373 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13374 1.4 mrg $as_echo "yes" >&6; }
13375 1.4 mrg break
13376 1.4 mrg else
13377 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 1.4 mrg $as_echo "no" >&6; }
13379 1.4 mrg fi
13380 1.4 mrg done
13381 1.4 mrg fi
13382 1.4 mrg
13383 1.4 mrg if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13384 1.4 mrg for ncn_progname in objdump; do
13385 1.4 mrg if test -n "$ncn_target_tool_prefix"; then
13386 1.4 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13387 1.4 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13388 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
13390 1.12 mrg if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13391 1.4 mrg $as_echo_n "(cached) " >&6
13392 1.4 mrg else
13393 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13394 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13395 1.4 mrg else
13396 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 1.4 mrg for as_dir in $PATH
13398 1.4 mrg do
13399 1.4 mrg IFS=$as_save_IFS
13400 1.4 mrg test -z "$as_dir" && as_dir=.
13401 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13402 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13403 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13404 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 1.4 mrg break 2
13406 1.4 mrg fi
13407 1.4 mrg done
13408 1.4 mrg done
13409 1.4 mrg IFS=$as_save_IFS
13410 1.4 mrg
13411 1.4 mrg fi
13412 1.4 mrg fi
13413 1.4 mrg OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13414 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13415 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13416 1.4 mrg $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13417 1.4 mrg else
13418 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 1.4 mrg $as_echo "no" >&6; }
13420 1.4 mrg fi
13421 1.4 mrg
13422 1.4 mrg
13423 1.4 mrg fi
13424 1.4 mrg if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13425 1.4 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13426 1.4 mrg set dummy ${ncn_progname}; ac_word=$2
13427 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
13429 1.12 mrg if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13430 1.4 mrg $as_echo_n "(cached) " >&6
13431 1.4 mrg else
13432 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13433 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13434 1.4 mrg else
13435 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 1.4 mrg for as_dir in $PATH
13437 1.4 mrg do
13438 1.4 mrg IFS=$as_save_IFS
13439 1.4 mrg test -z "$as_dir" && as_dir=.
13440 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13441 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13442 1.4 mrg ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13443 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 1.4 mrg break 2
13445 1.4 mrg fi
13446 1.4 mrg done
13447 1.4 mrg done
13448 1.4 mrg IFS=$as_save_IFS
13449 1.4 mrg
13450 1.4 mrg fi
13451 1.4 mrg fi
13452 1.4 mrg OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13453 1.4 mrg if test -n "$OBJDUMP_FOR_TARGET"; then
13454 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13455 1.4 mrg $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13456 1.4 mrg else
13457 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 1.4 mrg $as_echo "no" >&6; }
13459 1.4 mrg fi
13460 1.4 mrg
13461 1.4 mrg
13462 1.4 mrg fi
13463 1.4 mrg test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13464 1.4 mrg done
13465 1.4 mrg fi
13466 1.4 mrg
13467 1.4 mrg if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13468 1.4 mrg set dummy objdump
13469 1.4 mrg if test $build = $target ; then
13470 1.4 mrg OBJDUMP_FOR_TARGET="$2"
13471 1.4 mrg else
13472 1.4 mrg OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13473 1.4 mrg fi
13474 1.4 mrg else
13475 1.4 mrg OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13476 1.4 mrg fi
13477 1.4 mrg
13478 1.4 mrg else
13479 1.4 mrg OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13480 1.4 mrg fi
13481 1.4 mrg
13482 1.4 mrg
13483 1.4 mrg
13484 1.4 mrg
13485 1.12 mrg if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13486 1.12 mrg if test -n "$with_build_time_tools"; then
13487 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13488 1.12 mrg $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13489 1.12 mrg if test -x $with_build_time_tools/otool; then
13490 1.12 mrg OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13491 1.12 mrg ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13492 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13493 1.12 mrg $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13494 1.12 mrg else
13495 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 1.12 mrg $as_echo "no" >&6; }
13497 1.12 mrg fi
13498 1.12 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
13499 1.12 mrg OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13500 1.12 mrg test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13501 1.12 mrg test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13502 1.12 mrg fi
13503 1.12 mrg fi
13504 1.12 mrg if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13505 1.12 mrg # Extract the first word of "otool", so it can be a program name with args.
13506 1.12 mrg set dummy otool; ac_word=$2
13507 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
13509 1.12 mrg if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13510 1.12 mrg $as_echo_n "(cached) " >&6
13511 1.12 mrg else
13512 1.12 mrg case $OTOOL_FOR_TARGET in
13513 1.12 mrg [\\/]* | ?:[\\/]*)
13514 1.12 mrg ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13515 1.12 mrg ;;
13516 1.12 mrg *)
13517 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 1.12 mrg for as_dir in $gcc_cv_tool_dirs
13519 1.12 mrg do
13520 1.12 mrg IFS=$as_save_IFS
13521 1.12 mrg test -z "$as_dir" && as_dir=.
13522 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13523 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13524 1.12 mrg ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13525 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 1.12 mrg break 2
13527 1.12 mrg fi
13528 1.12 mrg done
13529 1.12 mrg done
13530 1.12 mrg IFS=$as_save_IFS
13531 1.12 mrg
13532 1.12 mrg ;;
13533 1.12 mrg esac
13534 1.12 mrg fi
13535 1.12 mrg OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13536 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13537 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13538 1.12 mrg $as_echo "$OTOOL_FOR_TARGET" >&6; }
13539 1.12 mrg else
13540 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 1.12 mrg $as_echo "no" >&6; }
13542 1.12 mrg fi
13543 1.12 mrg
13544 1.12 mrg
13545 1.12 mrg fi
13546 1.12 mrg if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13547 1.12 mrg
13548 1.12 mrg
13549 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13550 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13551 1.12 mrg elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13552 1.12 mrg OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13553 1.12 mrg fi
13554 1.12 mrg
13555 1.12 mrg if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13556 1.12 mrg for ncn_progname in otool; do
13557 1.12 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13558 1.12 mrg set dummy ${ncn_progname}; ac_word=$2
13559 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
13561 1.12 mrg if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13562 1.12 mrg $as_echo_n "(cached) " >&6
13563 1.12 mrg else
13564 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13565 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13566 1.12 mrg else
13567 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 1.12 mrg for as_dir in $PATH
13569 1.12 mrg do
13570 1.12 mrg IFS=$as_save_IFS
13571 1.12 mrg test -z "$as_dir" && as_dir=.
13572 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13573 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13574 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13575 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 1.12 mrg break 2
13577 1.12 mrg fi
13578 1.12 mrg done
13579 1.12 mrg done
13580 1.12 mrg IFS=$as_save_IFS
13581 1.12 mrg
13582 1.12 mrg fi
13583 1.12 mrg fi
13584 1.12 mrg OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13585 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13586 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13587 1.12 mrg $as_echo "$OTOOL_FOR_TARGET" >&6; }
13588 1.12 mrg else
13589 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 1.12 mrg $as_echo "no" >&6; }
13591 1.12 mrg fi
13592 1.12 mrg
13593 1.12 mrg
13594 1.12 mrg done
13595 1.12 mrg fi
13596 1.12 mrg
13597 1.12 mrg if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13598 1.12 mrg for ncn_progname in otool; do
13599 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13600 1.12 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13601 1.12 mrg if test -x $with_build_time_tools/${ncn_progname}; then
13602 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13603 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13604 1.12 mrg $as_echo "yes" >&6; }
13605 1.12 mrg break
13606 1.12 mrg else
13607 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 1.12 mrg $as_echo "no" >&6; }
13609 1.12 mrg fi
13610 1.12 mrg done
13611 1.12 mrg fi
13612 1.12 mrg
13613 1.12 mrg if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13614 1.12 mrg for ncn_progname in otool; do
13615 1.12 mrg if test -n "$ncn_target_tool_prefix"; then
13616 1.12 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13617 1.12 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13618 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
13620 1.12 mrg if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13621 1.12 mrg $as_echo_n "(cached) " >&6
13622 1.12 mrg else
13623 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13624 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13625 1.12 mrg else
13626 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 1.12 mrg for as_dir in $PATH
13628 1.12 mrg do
13629 1.12 mrg IFS=$as_save_IFS
13630 1.12 mrg test -z "$as_dir" && as_dir=.
13631 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13632 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13634 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 1.12 mrg break 2
13636 1.12 mrg fi
13637 1.12 mrg done
13638 1.12 mrg done
13639 1.12 mrg IFS=$as_save_IFS
13640 1.12 mrg
13641 1.12 mrg fi
13642 1.12 mrg fi
13643 1.12 mrg OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13644 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13645 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13646 1.12 mrg $as_echo "$OTOOL_FOR_TARGET" >&6; }
13647 1.12 mrg else
13648 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 1.12 mrg $as_echo "no" >&6; }
13650 1.12 mrg fi
13651 1.12 mrg
13652 1.12 mrg
13653 1.12 mrg fi
13654 1.12 mrg if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13655 1.12 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13656 1.12 mrg set dummy ${ncn_progname}; ac_word=$2
13657 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658 1.12 mrg $as_echo_n "checking for $ac_word... " >&6; }
13659 1.12 mrg if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13660 1.12 mrg $as_echo_n "(cached) " >&6
13661 1.12 mrg else
13662 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13663 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13664 1.12 mrg else
13665 1.12 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 1.12 mrg for as_dir in $PATH
13667 1.12 mrg do
13668 1.12 mrg IFS=$as_save_IFS
13669 1.12 mrg test -z "$as_dir" && as_dir=.
13670 1.12 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13671 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672 1.12 mrg ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13673 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 1.12 mrg break 2
13675 1.12 mrg fi
13676 1.12 mrg done
13677 1.12 mrg done
13678 1.12 mrg IFS=$as_save_IFS
13679 1.12 mrg
13680 1.12 mrg fi
13681 1.12 mrg fi
13682 1.12 mrg OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13683 1.12 mrg if test -n "$OTOOL_FOR_TARGET"; then
13684 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13685 1.12 mrg $as_echo "$OTOOL_FOR_TARGET" >&6; }
13686 1.12 mrg else
13687 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 1.12 mrg $as_echo "no" >&6; }
13689 1.12 mrg fi
13690 1.12 mrg
13691 1.12 mrg
13692 1.12 mrg fi
13693 1.12 mrg test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13694 1.12 mrg done
13695 1.12 mrg fi
13696 1.12 mrg
13697 1.12 mrg if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13698 1.12 mrg set dummy otool
13699 1.12 mrg if test $build = $target ; then
13700 1.12 mrg OTOOL_FOR_TARGET="$2"
13701 1.12 mrg else
13702 1.12 mrg OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13703 1.12 mrg fi
13704 1.12 mrg else
13705 1.12 mrg OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13706 1.12 mrg fi
13707 1.12 mrg
13708 1.12 mrg else
13709 1.12 mrg OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13710 1.12 mrg fi
13711 1.12 mrg
13712 1.12 mrg
13713 1.12 mrg
13714 1.12 mrg
13715 1.4 mrg if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13716 1.4 mrg if test -n "$with_build_time_tools"; then
13717 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13718 1.4 mrg $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13719 1.4 mrg if test -x $with_build_time_tools/ranlib; then
13720 1.4 mrg RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13721 1.4 mrg ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13722 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13723 1.4 mrg $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13724 1.4 mrg else
13725 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 1.4 mrg $as_echo "no" >&6; }
13727 1.4 mrg fi
13728 1.4 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
13729 1.4 mrg RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13730 1.4 mrg test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13731 1.4 mrg test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13732 1.4 mrg fi
13733 1.4 mrg fi
13734 1.4 mrg if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13735 1.4 mrg # Extract the first word of "ranlib", so it can be a program name with args.
13736 1.4 mrg set dummy ranlib; ac_word=$2
13737 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 1.4 mrg $as_echo_n "checking for $ac_word... " >&6; }
13739 1.12 mrg if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13740 1.4 mrg $as_echo_n "(cached) " >&6
13741 1.4 mrg else
13742 1.4 mrg case $RANLIB_FOR_TARGET in
13743 1.4 mrg [\\/]* | ?:[\\/]*)
13744 1.4 mrg ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13745 1.4 mrg ;;
13746 1.4 mrg *)
13747 1.4 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 1.4 mrg for as_dir in $gcc_cv_tool_dirs
13749 1.4 mrg do
13750 1.4 mrg IFS=$as_save_IFS
13751 1.4 mrg test -z "$as_dir" && as_dir=.
13752 1.4 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13753 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754 1.4 mrg ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13755 1.4 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 1.4 mrg break 2
13757 1.4 mrg fi
13758 1.4 mrg done
13759 1.4 mrg done
13760 1.4 mrg IFS=$as_save_IFS
13761 1.4 mrg
13762 1.4 mrg ;;
13763 1.4 mrg esac
13764 1.4 mrg fi
13765 1.4 mrg RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13766 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13767 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13768 1.4 mrg $as_echo "$RANLIB_FOR_TARGET" >&6; }
13769 1.1 mrg else
13770 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 1.1 mrg $as_echo "no" >&6; }
13772 1.1 mrg fi
13773 1.1 mrg
13774 1.1 mrg
13775 1.1 mrg fi
13776 1.4 mrg if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13777 1.1 mrg
13778 1.1 mrg
13779 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13780 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13781 1.4 mrg elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13782 1.4 mrg RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13783 1.1 mrg fi
13784 1.1 mrg
13785 1.4 mrg if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13786 1.4 mrg for ncn_progname in ranlib; do
13787 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13788 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
13789 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
13791 1.12 mrg if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13792 1.1 mrg $as_echo_n "(cached) " >&6
13793 1.1 mrg else
13794 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13795 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13796 1.1 mrg else
13797 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 1.1 mrg for as_dir in $PATH
13799 1.1 mrg do
13800 1.1 mrg IFS=$as_save_IFS
13801 1.1 mrg test -z "$as_dir" && as_dir=.
13802 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13803 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13805 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 1.1 mrg break 2
13807 1.1 mrg fi
13808 1.1 mrg done
13809 1.1 mrg done
13810 1.1 mrg IFS=$as_save_IFS
13811 1.1 mrg
13812 1.1 mrg fi
13813 1.1 mrg fi
13814 1.4 mrg RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13815 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13816 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13817 1.4 mrg $as_echo "$RANLIB_FOR_TARGET" >&6; }
13818 1.1 mrg else
13819 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 1.1 mrg $as_echo "no" >&6; }
13821 1.1 mrg fi
13822 1.1 mrg
13823 1.1 mrg
13824 1.1 mrg done
13825 1.1 mrg fi
13826 1.1 mrg
13827 1.4 mrg if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13828 1.4 mrg for ncn_progname in ranlib; do
13829 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13830 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13831 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
13832 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13833 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13834 1.1 mrg $as_echo "yes" >&6; }
13835 1.1 mrg break
13836 1.1 mrg else
13837 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 1.1 mrg $as_echo "no" >&6; }
13839 1.1 mrg fi
13840 1.1 mrg done
13841 1.1 mrg fi
13842 1.1 mrg
13843 1.4 mrg if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13844 1.4 mrg for ncn_progname in ranlib; do
13845 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
13846 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13847 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13848 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
13850 1.12 mrg if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13851 1.1 mrg $as_echo_n "(cached) " >&6
13852 1.1 mrg else
13853 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13854 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13855 1.1 mrg else
13856 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 1.1 mrg for as_dir in $PATH
13858 1.1 mrg do
13859 1.1 mrg IFS=$as_save_IFS
13860 1.1 mrg test -z "$as_dir" && as_dir=.
13861 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13862 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13864 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13865 1.1 mrg break 2
13866 1.1 mrg fi
13867 1.1 mrg done
13868 1.1 mrg done
13869 1.1 mrg IFS=$as_save_IFS
13870 1.1 mrg
13871 1.1 mrg fi
13872 1.1 mrg fi
13873 1.4 mrg RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13874 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13875 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13876 1.4 mrg $as_echo "$RANLIB_FOR_TARGET" >&6; }
13877 1.1 mrg else
13878 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 1.1 mrg $as_echo "no" >&6; }
13880 1.1 mrg fi
13881 1.1 mrg
13882 1.1 mrg
13883 1.1 mrg fi
13884 1.4 mrg if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13885 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13886 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
13887 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
13889 1.12 mrg if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13890 1.1 mrg $as_echo_n "(cached) " >&6
13891 1.1 mrg else
13892 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13893 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13894 1.1 mrg else
13895 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 1.1 mrg for as_dir in $PATH
13897 1.1 mrg do
13898 1.1 mrg IFS=$as_save_IFS
13899 1.1 mrg test -z "$as_dir" && as_dir=.
13900 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13901 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 1.4 mrg ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13903 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 1.1 mrg break 2
13905 1.1 mrg fi
13906 1.1 mrg done
13907 1.1 mrg done
13908 1.1 mrg IFS=$as_save_IFS
13909 1.1 mrg
13910 1.1 mrg fi
13911 1.1 mrg fi
13912 1.4 mrg RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13913 1.4 mrg if test -n "$RANLIB_FOR_TARGET"; then
13914 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13915 1.4 mrg $as_echo "$RANLIB_FOR_TARGET" >&6; }
13916 1.1 mrg else
13917 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 1.1 mrg $as_echo "no" >&6; }
13919 1.1 mrg fi
13920 1.1 mrg
13921 1.1 mrg
13922 1.1 mrg fi
13923 1.4 mrg test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13924 1.1 mrg done
13925 1.1 mrg fi
13926 1.1 mrg
13927 1.4 mrg if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13928 1.4 mrg set dummy ranlib
13929 1.1 mrg if test $build = $target ; then
13930 1.4 mrg RANLIB_FOR_TARGET="$2"
13931 1.1 mrg else
13932 1.4 mrg RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13933 1.1 mrg fi
13934 1.1 mrg else
13935 1.4 mrg RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13936 1.1 mrg fi
13937 1.1 mrg
13938 1.1 mrg else
13939 1.4 mrg RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13940 1.1 mrg fi
13941 1.1 mrg
13942 1.1 mrg
13943 1.1 mrg
13944 1.1 mrg
13945 1.4 mrg if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13946 1.1 mrg if test -n "$with_build_time_tools"; then
13947 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13948 1.4 mrg $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13949 1.4 mrg if test -x $with_build_time_tools/readelf; then
13950 1.4 mrg READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13951 1.4 mrg ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13952 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13953 1.4 mrg $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13954 1.1 mrg else
13955 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956 1.1 mrg $as_echo "no" >&6; }
13957 1.1 mrg fi
13958 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
13959 1.4 mrg READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13960 1.4 mrg test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13961 1.4 mrg test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13962 1.1 mrg fi
13963 1.1 mrg fi
13964 1.4 mrg if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13965 1.4 mrg # Extract the first word of "readelf", so it can be a program name with args.
13966 1.4 mrg set dummy readelf; ac_word=$2
13967 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
13969 1.12 mrg if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13970 1.1 mrg $as_echo_n "(cached) " >&6
13971 1.1 mrg else
13972 1.4 mrg case $READELF_FOR_TARGET in
13973 1.1 mrg [\\/]* | ?:[\\/]*)
13974 1.4 mrg ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13975 1.1 mrg ;;
13976 1.1 mrg *)
13977 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978 1.1 mrg for as_dir in $gcc_cv_tool_dirs
13979 1.1 mrg do
13980 1.1 mrg IFS=$as_save_IFS
13981 1.1 mrg test -z "$as_dir" && as_dir=.
13982 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
13983 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13984 1.4 mrg ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13985 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13986 1.1 mrg break 2
13987 1.1 mrg fi
13988 1.1 mrg done
13989 1.1 mrg done
13990 1.1 mrg IFS=$as_save_IFS
13991 1.1 mrg
13992 1.1 mrg ;;
13993 1.1 mrg esac
13994 1.1 mrg fi
13995 1.4 mrg READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13996 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
13997 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13998 1.4 mrg $as_echo "$READELF_FOR_TARGET" >&6; }
13999 1.1 mrg else
14000 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001 1.1 mrg $as_echo "no" >&6; }
14002 1.1 mrg fi
14003 1.1 mrg
14004 1.1 mrg
14005 1.1 mrg fi
14006 1.4 mrg if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
14007 1.1 mrg
14008 1.1 mrg
14009 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
14010 1.4 mrg ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
14011 1.4 mrg elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14012 1.4 mrg READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14013 1.1 mrg fi
14014 1.1 mrg
14015 1.4 mrg if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14016 1.4 mrg for ncn_progname in readelf; do
14017 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14018 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14019 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14021 1.12 mrg if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14022 1.1 mrg $as_echo_n "(cached) " >&6
14023 1.1 mrg else
14024 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
14025 1.4 mrg ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14026 1.1 mrg else
14027 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 1.1 mrg for as_dir in $PATH
14029 1.1 mrg do
14030 1.1 mrg IFS=$as_save_IFS
14031 1.1 mrg test -z "$as_dir" && as_dir=.
14032 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14033 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14034 1.4 mrg ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14035 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 1.1 mrg break 2
14037 1.1 mrg fi
14038 1.1 mrg done
14039 1.1 mrg done
14040 1.1 mrg IFS=$as_save_IFS
14041 1.1 mrg
14042 1.1 mrg fi
14043 1.1 mrg fi
14044 1.4 mrg READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14045 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
14046 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14047 1.4 mrg $as_echo "$READELF_FOR_TARGET" >&6; }
14048 1.1 mrg else
14049 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 1.1 mrg $as_echo "no" >&6; }
14051 1.1 mrg fi
14052 1.1 mrg
14053 1.1 mrg
14054 1.1 mrg done
14055 1.1 mrg fi
14056 1.1 mrg
14057 1.4 mrg if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
14058 1.4 mrg for ncn_progname in readelf; do
14059 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14060 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14061 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
14062 1.4 mrg ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14063 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14064 1.1 mrg $as_echo "yes" >&6; }
14065 1.1 mrg break
14066 1.1 mrg else
14067 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 1.1 mrg $as_echo "no" >&6; }
14069 1.1 mrg fi
14070 1.1 mrg done
14071 1.1 mrg fi
14072 1.1 mrg
14073 1.4 mrg if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
14074 1.4 mrg for ncn_progname in readelf; do
14075 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
14076 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14077 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14078 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14080 1.12 mrg if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14081 1.1 mrg $as_echo_n "(cached) " >&6
14082 1.1 mrg else
14083 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
14084 1.4 mrg ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14085 1.1 mrg else
14086 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 1.1 mrg for as_dir in $PATH
14088 1.1 mrg do
14089 1.1 mrg IFS=$as_save_IFS
14090 1.1 mrg test -z "$as_dir" && as_dir=.
14091 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14092 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14093 1.4 mrg ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14094 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 1.1 mrg break 2
14096 1.1 mrg fi
14097 1.1 mrg done
14098 1.1 mrg done
14099 1.1 mrg IFS=$as_save_IFS
14100 1.1 mrg
14101 1.1 mrg fi
14102 1.1 mrg fi
14103 1.4 mrg READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14104 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
14105 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14106 1.4 mrg $as_echo "$READELF_FOR_TARGET" >&6; }
14107 1.1 mrg else
14108 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 1.1 mrg $as_echo "no" >&6; }
14110 1.1 mrg fi
14111 1.1 mrg
14112 1.1 mrg
14113 1.1 mrg fi
14114 1.4 mrg if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
14115 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14116 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14117 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14119 1.12 mrg if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14120 1.1 mrg $as_echo_n "(cached) " >&6
14121 1.1 mrg else
14122 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
14123 1.4 mrg ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14124 1.1 mrg else
14125 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 1.1 mrg for as_dir in $PATH
14127 1.1 mrg do
14128 1.1 mrg IFS=$as_save_IFS
14129 1.1 mrg test -z "$as_dir" && as_dir=.
14130 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14131 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14132 1.4 mrg ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14133 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 1.1 mrg break 2
14135 1.1 mrg fi
14136 1.1 mrg done
14137 1.1 mrg done
14138 1.1 mrg IFS=$as_save_IFS
14139 1.1 mrg
14140 1.1 mrg fi
14141 1.1 mrg fi
14142 1.4 mrg READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14143 1.4 mrg if test -n "$READELF_FOR_TARGET"; then
14144 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14145 1.4 mrg $as_echo "$READELF_FOR_TARGET" >&6; }
14146 1.1 mrg else
14147 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 1.1 mrg $as_echo "no" >&6; }
14149 1.1 mrg fi
14150 1.1 mrg
14151 1.1 mrg
14152 1.1 mrg fi
14153 1.4 mrg test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
14154 1.1 mrg done
14155 1.1 mrg fi
14156 1.1 mrg
14157 1.4 mrg if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
14158 1.4 mrg set dummy readelf
14159 1.1 mrg if test $build = $target ; then
14160 1.4 mrg READELF_FOR_TARGET="$2"
14161 1.1 mrg else
14162 1.4 mrg READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
14163 1.1 mrg fi
14164 1.1 mrg else
14165 1.4 mrg READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
14166 1.1 mrg fi
14167 1.1 mrg
14168 1.1 mrg else
14169 1.4 mrg READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
14170 1.1 mrg fi
14171 1.1 mrg
14172 1.1 mrg
14173 1.1 mrg
14174 1.1 mrg
14175 1.1 mrg if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
14176 1.1 mrg if test -n "$with_build_time_tools"; then
14177 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
14178 1.1 mrg $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
14179 1.1 mrg if test -x $with_build_time_tools/strip; then
14180 1.1 mrg STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
14181 1.1 mrg ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14182 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
14183 1.1 mrg $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
14184 1.1 mrg else
14185 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 1.1 mrg $as_echo "no" >&6; }
14187 1.1 mrg fi
14188 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
14189 1.1 mrg STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
14190 1.1 mrg test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
14191 1.1 mrg test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14192 1.1 mrg fi
14193 1.1 mrg fi
14194 1.1 mrg if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14195 1.1 mrg # Extract the first word of "strip", so it can be a program name with args.
14196 1.1 mrg set dummy strip; ac_word=$2
14197 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14198 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14199 1.12 mrg if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
14200 1.1 mrg $as_echo_n "(cached) " >&6
14201 1.1 mrg else
14202 1.1 mrg case $STRIP_FOR_TARGET in
14203 1.1 mrg [\\/]* | ?:[\\/]*)
14204 1.1 mrg ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
14205 1.1 mrg ;;
14206 1.1 mrg *)
14207 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 1.1 mrg for as_dir in $gcc_cv_tool_dirs
14209 1.1 mrg do
14210 1.1 mrg IFS=$as_save_IFS
14211 1.1 mrg test -z "$as_dir" && as_dir=.
14212 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14213 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14214 1.1 mrg ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14215 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 1.1 mrg break 2
14217 1.1 mrg fi
14218 1.1 mrg done
14219 1.1 mrg done
14220 1.1 mrg IFS=$as_save_IFS
14221 1.1 mrg
14222 1.1 mrg ;;
14223 1.1 mrg esac
14224 1.1 mrg fi
14225 1.1 mrg STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
14226 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14227 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14228 1.1 mrg $as_echo "$STRIP_FOR_TARGET" >&6; }
14229 1.1 mrg else
14230 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 1.1 mrg $as_echo "no" >&6; }
14232 1.1 mrg fi
14233 1.1 mrg
14234 1.1 mrg
14235 1.1 mrg fi
14236 1.1 mrg if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
14237 1.1 mrg
14238 1.1 mrg
14239 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14240 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14241 1.1 mrg elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14242 1.1 mrg STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14243 1.1 mrg fi
14244 1.1 mrg
14245 1.1 mrg if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14246 1.1 mrg for ncn_progname in strip; do
14247 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14248 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14249 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14250 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14251 1.12 mrg if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14252 1.1 mrg $as_echo_n "(cached) " >&6
14253 1.1 mrg else
14254 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14255 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14256 1.1 mrg else
14257 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258 1.1 mrg for as_dir in $PATH
14259 1.1 mrg do
14260 1.1 mrg IFS=$as_save_IFS
14261 1.1 mrg test -z "$as_dir" && as_dir=.
14262 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14263 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
14265 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 1.1 mrg break 2
14267 1.1 mrg fi
14268 1.1 mrg done
14269 1.1 mrg done
14270 1.1 mrg IFS=$as_save_IFS
14271 1.1 mrg
14272 1.1 mrg fi
14273 1.1 mrg fi
14274 1.1 mrg STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14275 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14276 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14277 1.1 mrg $as_echo "$STRIP_FOR_TARGET" >&6; }
14278 1.1 mrg else
14279 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 1.1 mrg $as_echo "no" >&6; }
14281 1.1 mrg fi
14282 1.1 mrg
14283 1.1 mrg
14284 1.1 mrg done
14285 1.1 mrg fi
14286 1.1 mrg
14287 1.1 mrg if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
14288 1.1 mrg for ncn_progname in strip; do
14289 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14290 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14291 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
14292 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14293 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14294 1.1 mrg $as_echo "yes" >&6; }
14295 1.1 mrg break
14296 1.1 mrg else
14297 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 1.1 mrg $as_echo "no" >&6; }
14299 1.1 mrg fi
14300 1.1 mrg done
14301 1.1 mrg fi
14302 1.1 mrg
14303 1.1 mrg if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
14304 1.1 mrg for ncn_progname in strip; do
14305 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
14306 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14307 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14308 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14309 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14310 1.12 mrg if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14311 1.1 mrg $as_echo_n "(cached) " >&6
14312 1.1 mrg else
14313 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14314 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14315 1.1 mrg else
14316 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14317 1.1 mrg for as_dir in $PATH
14318 1.1 mrg do
14319 1.1 mrg IFS=$as_save_IFS
14320 1.1 mrg test -z "$as_dir" && as_dir=.
14321 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14322 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14323 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14324 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14325 1.1 mrg break 2
14326 1.1 mrg fi
14327 1.1 mrg done
14328 1.1 mrg done
14329 1.1 mrg IFS=$as_save_IFS
14330 1.1 mrg
14331 1.1 mrg fi
14332 1.1 mrg fi
14333 1.1 mrg STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14334 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14335 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14336 1.1 mrg $as_echo "$STRIP_FOR_TARGET" >&6; }
14337 1.1 mrg else
14338 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14339 1.1 mrg $as_echo "no" >&6; }
14340 1.1 mrg fi
14341 1.1 mrg
14342 1.1 mrg
14343 1.1 mrg fi
14344 1.1 mrg if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
14345 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14346 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14347 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14348 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14349 1.12 mrg if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14350 1.1 mrg $as_echo_n "(cached) " >&6
14351 1.1 mrg else
14352 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14353 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14354 1.1 mrg else
14355 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14356 1.1 mrg for as_dir in $PATH
14357 1.1 mrg do
14358 1.1 mrg IFS=$as_save_IFS
14359 1.1 mrg test -z "$as_dir" && as_dir=.
14360 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14361 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14362 1.1 mrg ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
14363 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14364 1.1 mrg break 2
14365 1.1 mrg fi
14366 1.1 mrg done
14367 1.1 mrg done
14368 1.1 mrg IFS=$as_save_IFS
14369 1.1 mrg
14370 1.1 mrg fi
14371 1.1 mrg fi
14372 1.1 mrg STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14373 1.1 mrg if test -n "$STRIP_FOR_TARGET"; then
14374 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14375 1.1 mrg $as_echo "$STRIP_FOR_TARGET" >&6; }
14376 1.1 mrg else
14377 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 1.1 mrg $as_echo "no" >&6; }
14379 1.1 mrg fi
14380 1.1 mrg
14381 1.1 mrg
14382 1.1 mrg fi
14383 1.1 mrg test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
14384 1.1 mrg done
14385 1.1 mrg fi
14386 1.1 mrg
14387 1.1 mrg if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
14388 1.1 mrg set dummy strip
14389 1.1 mrg if test $build = $target ; then
14390 1.1 mrg STRIP_FOR_TARGET="$2"
14391 1.1 mrg else
14392 1.1 mrg STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
14393 1.1 mrg fi
14394 1.1 mrg else
14395 1.1 mrg STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
14396 1.1 mrg fi
14397 1.1 mrg
14398 1.1 mrg else
14399 1.1 mrg STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
14400 1.1 mrg fi
14401 1.1 mrg
14402 1.1 mrg
14403 1.1 mrg
14404 1.1 mrg
14405 1.1 mrg if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14406 1.1 mrg if test -n "$with_build_time_tools"; then
14407 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
14408 1.1 mrg $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
14409 1.1 mrg if test -x $with_build_time_tools/windres; then
14410 1.1 mrg WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
14411 1.1 mrg ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14412 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
14413 1.1 mrg $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
14414 1.1 mrg else
14415 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 1.1 mrg $as_echo "no" >&6; }
14417 1.1 mrg fi
14418 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
14419 1.1 mrg WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
14420 1.1 mrg test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14421 1.1 mrg test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14422 1.1 mrg fi
14423 1.1 mrg fi
14424 1.1 mrg if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14425 1.1 mrg # Extract the first word of "windres", so it can be a program name with args.
14426 1.1 mrg set dummy windres; ac_word=$2
14427 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14429 1.12 mrg if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
14430 1.1 mrg $as_echo_n "(cached) " >&6
14431 1.1 mrg else
14432 1.1 mrg case $WINDRES_FOR_TARGET in
14433 1.1 mrg [\\/]* | ?:[\\/]*)
14434 1.1 mrg ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14435 1.1 mrg ;;
14436 1.1 mrg *)
14437 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 1.1 mrg for as_dir in $gcc_cv_tool_dirs
14439 1.1 mrg do
14440 1.1 mrg IFS=$as_save_IFS
14441 1.1 mrg test -z "$as_dir" && as_dir=.
14442 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14443 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14444 1.1 mrg ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14445 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14446 1.1 mrg break 2
14447 1.1 mrg fi
14448 1.1 mrg done
14449 1.1 mrg done
14450 1.1 mrg IFS=$as_save_IFS
14451 1.1 mrg
14452 1.1 mrg ;;
14453 1.1 mrg esac
14454 1.1 mrg fi
14455 1.1 mrg WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14456 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14457 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14458 1.1 mrg $as_echo "$WINDRES_FOR_TARGET" >&6; }
14459 1.1 mrg else
14460 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 1.1 mrg $as_echo "no" >&6; }
14462 1.1 mrg fi
14463 1.1 mrg
14464 1.1 mrg
14465 1.1 mrg fi
14466 1.1 mrg if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14467 1.1 mrg
14468 1.1 mrg
14469 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14470 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14471 1.1 mrg elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14472 1.1 mrg WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14473 1.1 mrg fi
14474 1.1 mrg
14475 1.1 mrg if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14476 1.1 mrg for ncn_progname in windres; do
14477 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14478 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14479 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14480 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14481 1.12 mrg if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14482 1.1 mrg $as_echo_n "(cached) " >&6
14483 1.1 mrg else
14484 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14485 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14486 1.1 mrg else
14487 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 1.1 mrg for as_dir in $PATH
14489 1.1 mrg do
14490 1.1 mrg IFS=$as_save_IFS
14491 1.1 mrg test -z "$as_dir" && as_dir=.
14492 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14493 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14495 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 1.1 mrg break 2
14497 1.1 mrg fi
14498 1.1 mrg done
14499 1.1 mrg done
14500 1.1 mrg IFS=$as_save_IFS
14501 1.1 mrg
14502 1.1 mrg fi
14503 1.1 mrg fi
14504 1.1 mrg WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14505 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14506 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14507 1.1 mrg $as_echo "$WINDRES_FOR_TARGET" >&6; }
14508 1.1 mrg else
14509 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 1.1 mrg $as_echo "no" >&6; }
14511 1.1 mrg fi
14512 1.1 mrg
14513 1.1 mrg
14514 1.1 mrg done
14515 1.1 mrg fi
14516 1.1 mrg
14517 1.1 mrg if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
14518 1.1 mrg for ncn_progname in windres; do
14519 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14520 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14521 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
14522 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14523 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14524 1.1 mrg $as_echo "yes" >&6; }
14525 1.1 mrg break
14526 1.1 mrg else
14527 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528 1.1 mrg $as_echo "no" >&6; }
14529 1.1 mrg fi
14530 1.1 mrg done
14531 1.1 mrg fi
14532 1.1 mrg
14533 1.1 mrg if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14534 1.1 mrg for ncn_progname in windres; do
14535 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
14536 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14537 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14538 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14540 1.12 mrg if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14541 1.1 mrg $as_echo_n "(cached) " >&6
14542 1.1 mrg else
14543 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14544 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14545 1.1 mrg else
14546 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 1.1 mrg for as_dir in $PATH
14548 1.1 mrg do
14549 1.1 mrg IFS=$as_save_IFS
14550 1.1 mrg test -z "$as_dir" && as_dir=.
14551 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14552 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14553 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14554 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14555 1.1 mrg break 2
14556 1.1 mrg fi
14557 1.1 mrg done
14558 1.1 mrg done
14559 1.1 mrg IFS=$as_save_IFS
14560 1.1 mrg
14561 1.1 mrg fi
14562 1.1 mrg fi
14563 1.1 mrg WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14564 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14565 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14566 1.1 mrg $as_echo "$WINDRES_FOR_TARGET" >&6; }
14567 1.1 mrg else
14568 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569 1.1 mrg $as_echo "no" >&6; }
14570 1.1 mrg fi
14571 1.1 mrg
14572 1.1 mrg
14573 1.1 mrg fi
14574 1.1 mrg if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14575 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14576 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14577 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14579 1.12 mrg if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14580 1.1 mrg $as_echo_n "(cached) " >&6
14581 1.1 mrg else
14582 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14583 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14584 1.1 mrg else
14585 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 1.1 mrg for as_dir in $PATH
14587 1.1 mrg do
14588 1.1 mrg IFS=$as_save_IFS
14589 1.1 mrg test -z "$as_dir" && as_dir=.
14590 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14591 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14592 1.1 mrg ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14593 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 1.1 mrg break 2
14595 1.1 mrg fi
14596 1.1 mrg done
14597 1.1 mrg done
14598 1.1 mrg IFS=$as_save_IFS
14599 1.1 mrg
14600 1.1 mrg fi
14601 1.1 mrg fi
14602 1.1 mrg WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14603 1.1 mrg if test -n "$WINDRES_FOR_TARGET"; then
14604 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14605 1.1 mrg $as_echo "$WINDRES_FOR_TARGET" >&6; }
14606 1.1 mrg else
14607 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608 1.1 mrg $as_echo "no" >&6; }
14609 1.1 mrg fi
14610 1.1 mrg
14611 1.1 mrg
14612 1.1 mrg fi
14613 1.1 mrg test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14614 1.1 mrg done
14615 1.1 mrg fi
14616 1.1 mrg
14617 1.1 mrg if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14618 1.1 mrg set dummy windres
14619 1.1 mrg if test $build = $target ; then
14620 1.1 mrg WINDRES_FOR_TARGET="$2"
14621 1.1 mrg else
14622 1.1 mrg WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14623 1.1 mrg fi
14624 1.1 mrg else
14625 1.1 mrg WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14626 1.1 mrg fi
14627 1.1 mrg
14628 1.1 mrg else
14629 1.1 mrg WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14630 1.1 mrg fi
14631 1.1 mrg
14632 1.1 mrg
14633 1.1 mrg
14634 1.1 mrg
14635 1.1 mrg if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14636 1.1 mrg if test -n "$with_build_time_tools"; then
14637 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14638 1.1 mrg $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14639 1.1 mrg if test -x $with_build_time_tools/windmc; then
14640 1.1 mrg WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14641 1.1 mrg ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14642 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14643 1.1 mrg $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14644 1.1 mrg else
14645 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646 1.1 mrg $as_echo "no" >&6; }
14647 1.1 mrg fi
14648 1.1 mrg elif test $build != $host && test $have_gcc_for_target = yes; then
14649 1.1 mrg WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14650 1.1 mrg test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14651 1.1 mrg test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14652 1.1 mrg fi
14653 1.1 mrg fi
14654 1.1 mrg if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14655 1.1 mrg # Extract the first word of "windmc", so it can be a program name with args.
14656 1.1 mrg set dummy windmc; ac_word=$2
14657 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14659 1.12 mrg if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14660 1.1 mrg $as_echo_n "(cached) " >&6
14661 1.1 mrg else
14662 1.1 mrg case $WINDMC_FOR_TARGET in
14663 1.1 mrg [\\/]* | ?:[\\/]*)
14664 1.1 mrg ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14665 1.1 mrg ;;
14666 1.1 mrg *)
14667 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 1.1 mrg for as_dir in $gcc_cv_tool_dirs
14669 1.1 mrg do
14670 1.1 mrg IFS=$as_save_IFS
14671 1.1 mrg test -z "$as_dir" && as_dir=.
14672 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14673 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674 1.1 mrg ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14675 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676 1.1 mrg break 2
14677 1.1 mrg fi
14678 1.1 mrg done
14679 1.1 mrg done
14680 1.1 mrg IFS=$as_save_IFS
14681 1.1 mrg
14682 1.1 mrg ;;
14683 1.1 mrg esac
14684 1.1 mrg fi
14685 1.1 mrg WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14686 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14687 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14688 1.1 mrg $as_echo "$WINDMC_FOR_TARGET" >&6; }
14689 1.1 mrg else
14690 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 1.1 mrg $as_echo "no" >&6; }
14692 1.1 mrg fi
14693 1.1 mrg
14694 1.1 mrg
14695 1.1 mrg fi
14696 1.1 mrg if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14697 1.1 mrg
14698 1.1 mrg
14699 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14700 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14701 1.1 mrg elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14702 1.1 mrg WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14703 1.1 mrg fi
14704 1.1 mrg
14705 1.1 mrg if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14706 1.1 mrg for ncn_progname in windmc; do
14707 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14708 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14709 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14710 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14711 1.12 mrg if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14712 1.1 mrg $as_echo_n "(cached) " >&6
14713 1.1 mrg else
14714 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14715 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14716 1.1 mrg else
14717 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 1.1 mrg for as_dir in $PATH
14719 1.1 mrg do
14720 1.1 mrg IFS=$as_save_IFS
14721 1.1 mrg test -z "$as_dir" && as_dir=.
14722 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14723 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14725 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 1.1 mrg break 2
14727 1.1 mrg fi
14728 1.1 mrg done
14729 1.1 mrg done
14730 1.1 mrg IFS=$as_save_IFS
14731 1.1 mrg
14732 1.1 mrg fi
14733 1.1 mrg fi
14734 1.1 mrg WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14735 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14736 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14737 1.1 mrg $as_echo "$WINDMC_FOR_TARGET" >&6; }
14738 1.1 mrg else
14739 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 1.1 mrg $as_echo "no" >&6; }
14741 1.1 mrg fi
14742 1.1 mrg
14743 1.1 mrg
14744 1.1 mrg done
14745 1.1 mrg fi
14746 1.1 mrg
14747 1.1 mrg if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14748 1.1 mrg for ncn_progname in windmc; do
14749 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14750 1.1 mrg $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14751 1.1 mrg if test -x $with_build_time_tools/${ncn_progname}; then
14752 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14753 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 1.1 mrg $as_echo "yes" >&6; }
14755 1.1 mrg break
14756 1.1 mrg else
14757 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 1.1 mrg $as_echo "no" >&6; }
14759 1.1 mrg fi
14760 1.1 mrg done
14761 1.1 mrg fi
14762 1.1 mrg
14763 1.1 mrg if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14764 1.1 mrg for ncn_progname in windmc; do
14765 1.1 mrg if test -n "$ncn_target_tool_prefix"; then
14766 1.1 mrg # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14767 1.1 mrg set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14768 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14770 1.12 mrg if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14771 1.1 mrg $as_echo_n "(cached) " >&6
14772 1.1 mrg else
14773 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14774 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14775 1.1 mrg else
14776 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 1.1 mrg for as_dir in $PATH
14778 1.1 mrg do
14779 1.1 mrg IFS=$as_save_IFS
14780 1.1 mrg test -z "$as_dir" && as_dir=.
14781 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14782 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14784 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14785 1.1 mrg break 2
14786 1.1 mrg fi
14787 1.1 mrg done
14788 1.1 mrg done
14789 1.1 mrg IFS=$as_save_IFS
14790 1.1 mrg
14791 1.1 mrg fi
14792 1.1 mrg fi
14793 1.1 mrg WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14794 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14795 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14796 1.1 mrg $as_echo "$WINDMC_FOR_TARGET" >&6; }
14797 1.1 mrg else
14798 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 1.1 mrg $as_echo "no" >&6; }
14800 1.1 mrg fi
14801 1.1 mrg
14802 1.1 mrg
14803 1.1 mrg fi
14804 1.1 mrg if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14805 1.1 mrg # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14806 1.1 mrg set dummy ${ncn_progname}; ac_word=$2
14807 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14808 1.1 mrg $as_echo_n "checking for $ac_word... " >&6; }
14809 1.12 mrg if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14810 1.1 mrg $as_echo_n "(cached) " >&6
14811 1.1 mrg else
14812 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14813 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14814 1.1 mrg else
14815 1.1 mrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 1.1 mrg for as_dir in $PATH
14817 1.1 mrg do
14818 1.1 mrg IFS=$as_save_IFS
14819 1.1 mrg test -z "$as_dir" && as_dir=.
14820 1.1 mrg for ac_exec_ext in '' $ac_executable_extensions; do
14821 1.12 mrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14822 1.1 mrg ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14823 1.1 mrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 1.1 mrg break 2
14825 1.1 mrg fi
14826 1.1 mrg done
14827 1.1 mrg done
14828 1.1 mrg IFS=$as_save_IFS
14829 1.1 mrg
14830 1.1 mrg fi
14831 1.1 mrg fi
14832 1.1 mrg WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14833 1.1 mrg if test -n "$WINDMC_FOR_TARGET"; then
14834 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14835 1.1 mrg $as_echo "$WINDMC_FOR_TARGET" >&6; }
14836 1.1 mrg else
14837 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838 1.1 mrg $as_echo "no" >&6; }
14839 1.1 mrg fi
14840 1.1 mrg
14841 1.1 mrg
14842 1.1 mrg fi
14843 1.1 mrg test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14844 1.1 mrg done
14845 1.1 mrg fi
14846 1.1 mrg
14847 1.1 mrg if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14848 1.1 mrg set dummy windmc
14849 1.1 mrg if test $build = $target ; then
14850 1.1 mrg WINDMC_FOR_TARGET="$2"
14851 1.1 mrg else
14852 1.1 mrg WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14853 1.1 mrg fi
14854 1.1 mrg else
14855 1.1 mrg WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14856 1.1 mrg fi
14857 1.1 mrg
14858 1.1 mrg else
14859 1.1 mrg WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14860 1.1 mrg fi
14861 1.1 mrg
14862 1.1 mrg
14863 1.1 mrg RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14864 1.1 mrg
14865 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14866 1.1 mrg $as_echo_n "checking where to find the target ar... " >&6; }
14867 1.1 mrg if test "x${build}" != "x${host}" ; then
14868 1.1 mrg if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14869 1.1 mrg # We already found the complete path
14870 1.1 mrg ac_dir=`dirname $AR_FOR_TARGET`
14871 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14872 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
14873 1.1 mrg else
14874 1.1 mrg # Canadian cross, just use what we found
14875 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14876 1.1 mrg $as_echo "pre-installed" >&6; }
14877 1.1 mrg fi
14878 1.1 mrg else
14879 1.1 mrg ok=yes
14880 1.1 mrg case " ${configdirs} " in
14881 1.1 mrg *" binutils "*) ;;
14882 1.1 mrg *) ok=no ;;
14883 1.1 mrg esac
14884 1.1 mrg
14885 1.1 mrg if test $ok = yes; then
14886 1.1 mrg # An in-tree tool is available and we can use it
14887 1.1 mrg AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14888 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14889 1.1 mrg $as_echo "just compiled" >&6; }
14890 1.1 mrg elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14891 1.1 mrg # We already found the complete path
14892 1.1 mrg ac_dir=`dirname $AR_FOR_TARGET`
14893 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14894 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
14895 1.1 mrg elif test "x$target" = "x$host"; then
14896 1.1 mrg # We can use an host tool
14897 1.1 mrg AR_FOR_TARGET='$(AR)'
14898 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14899 1.1 mrg $as_echo "host tool" >&6; }
14900 1.1 mrg else
14901 1.1 mrg # We need a cross tool
14902 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14903 1.1 mrg $as_echo "pre-installed" >&6; }
14904 1.1 mrg fi
14905 1.1 mrg fi
14906 1.1 mrg
14907 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14908 1.1 mrg $as_echo_n "checking where to find the target as... " >&6; }
14909 1.1 mrg if test "x${build}" != "x${host}" ; then
14910 1.1 mrg if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14911 1.1 mrg # We already found the complete path
14912 1.1 mrg ac_dir=`dirname $AS_FOR_TARGET`
14913 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14914 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
14915 1.1 mrg else
14916 1.1 mrg # Canadian cross, just use what we found
14917 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14918 1.1 mrg $as_echo "pre-installed" >&6; }
14919 1.1 mrg fi
14920 1.1 mrg else
14921 1.1 mrg ok=yes
14922 1.1 mrg case " ${configdirs} " in
14923 1.1 mrg *" gas "*) ;;
14924 1.1 mrg *) ok=no ;;
14925 1.1 mrg esac
14926 1.1 mrg
14927 1.1 mrg if test $ok = yes; then
14928 1.1 mrg # An in-tree tool is available and we can use it
14929 1.1 mrg AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14930 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14931 1.1 mrg $as_echo "just compiled" >&6; }
14932 1.1 mrg elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14933 1.1 mrg # We already found the complete path
14934 1.1 mrg ac_dir=`dirname $AS_FOR_TARGET`
14935 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14936 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
14937 1.1 mrg elif test "x$target" = "x$host"; then
14938 1.1 mrg # We can use an host tool
14939 1.1 mrg AS_FOR_TARGET='$(AS)'
14940 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14941 1.1 mrg $as_echo "host tool" >&6; }
14942 1.1 mrg else
14943 1.1 mrg # We need a cross tool
14944 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14945 1.1 mrg $as_echo "pre-installed" >&6; }
14946 1.1 mrg fi
14947 1.1 mrg fi
14948 1.1 mrg
14949 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14950 1.1 mrg $as_echo_n "checking where to find the target cc... " >&6; }
14951 1.1 mrg if test "x${build}" != "x${host}" ; then
14952 1.1 mrg if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14953 1.1 mrg # We already found the complete path
14954 1.1 mrg ac_dir=`dirname $CC_FOR_TARGET`
14955 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14956 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
14957 1.1 mrg else
14958 1.1 mrg # Canadian cross, just use what we found
14959 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14960 1.1 mrg $as_echo "pre-installed" >&6; }
14961 1.1 mrg fi
14962 1.1 mrg else
14963 1.1 mrg ok=yes
14964 1.1 mrg case " ${configdirs} " in
14965 1.1 mrg *" gcc "*) ;;
14966 1.1 mrg *) ok=no ;;
14967 1.1 mrg esac
14968 1.1 mrg
14969 1.1 mrg if test $ok = yes; then
14970 1.1 mrg # An in-tree tool is available and we can use it
14971 1.1 mrg CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14972 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14973 1.1 mrg $as_echo "just compiled" >&6; }
14974 1.1 mrg elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14975 1.1 mrg # We already found the complete path
14976 1.1 mrg ac_dir=`dirname $CC_FOR_TARGET`
14977 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14978 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
14979 1.1 mrg elif test "x$target" = "x$host"; then
14980 1.1 mrg # We can use an host tool
14981 1.1 mrg CC_FOR_TARGET='$(CC)'
14982 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14983 1.1 mrg $as_echo "host tool" >&6; }
14984 1.1 mrg else
14985 1.1 mrg # We need a cross tool
14986 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14987 1.1 mrg $as_echo "pre-installed" >&6; }
14988 1.1 mrg fi
14989 1.1 mrg fi
14990 1.1 mrg
14991 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14992 1.1 mrg $as_echo_n "checking where to find the target c++... " >&6; }
14993 1.1 mrg if test "x${build}" != "x${host}" ; then
14994 1.1 mrg if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14995 1.1 mrg # We already found the complete path
14996 1.1 mrg ac_dir=`dirname $CXX_FOR_TARGET`
14997 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14998 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
14999 1.1 mrg else
15000 1.1 mrg # Canadian cross, just use what we found
15001 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15002 1.1 mrg $as_echo "pre-installed" >&6; }
15003 1.1 mrg fi
15004 1.1 mrg else
15005 1.1 mrg ok=yes
15006 1.1 mrg case " ${configdirs} " in
15007 1.1 mrg *" gcc "*) ;;
15008 1.1 mrg *) ok=no ;;
15009 1.1 mrg esac
15010 1.1 mrg case ,${enable_languages}, in
15011 1.1 mrg *,c++,*) ;;
15012 1.1 mrg *) ok=no ;;
15013 1.1 mrg esac
15014 1.1 mrg if test $ok = yes; then
15015 1.1 mrg # An in-tree tool is available and we can use it
15016 1.6 mrg 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'
15017 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15018 1.1 mrg $as_echo "just compiled" >&6; }
15019 1.1 mrg elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
15020 1.1 mrg # We already found the complete path
15021 1.1 mrg ac_dir=`dirname $CXX_FOR_TARGET`
15022 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15023 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15024 1.1 mrg elif test "x$target" = "x$host"; then
15025 1.1 mrg # We can use an host tool
15026 1.1 mrg CXX_FOR_TARGET='$(CXX)'
15027 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15028 1.1 mrg $as_echo "host tool" >&6; }
15029 1.1 mrg else
15030 1.1 mrg # We need a cross tool
15031 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15032 1.1 mrg $as_echo "pre-installed" >&6; }
15033 1.1 mrg fi
15034 1.1 mrg fi
15035 1.1 mrg
15036 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
15037 1.1 mrg $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
15038 1.1 mrg if test "x${build}" != "x${host}" ; then
15039 1.1 mrg if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15040 1.1 mrg # We already found the complete path
15041 1.1 mrg ac_dir=`dirname $RAW_CXX_FOR_TARGET`
15042 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15043 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15044 1.1 mrg else
15045 1.1 mrg # Canadian cross, just use what we found
15046 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15047 1.1 mrg $as_echo "pre-installed" >&6; }
15048 1.1 mrg fi
15049 1.1 mrg else
15050 1.1 mrg ok=yes
15051 1.1 mrg case " ${configdirs} " in
15052 1.1 mrg *" gcc "*) ;;
15053 1.1 mrg *) ok=no ;;
15054 1.1 mrg esac
15055 1.1 mrg case ,${enable_languages}, in
15056 1.1 mrg *,c++,*) ;;
15057 1.1 mrg *) ok=no ;;
15058 1.1 mrg esac
15059 1.1 mrg if test $ok = yes; then
15060 1.1 mrg # An in-tree tool is available and we can use it
15061 1.6 mrg 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'
15062 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15063 1.1 mrg $as_echo "just compiled" >&6; }
15064 1.1 mrg elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15065 1.1 mrg # We already found the complete path
15066 1.1 mrg ac_dir=`dirname $RAW_CXX_FOR_TARGET`
15067 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15068 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15069 1.1 mrg elif test "x$target" = "x$host"; then
15070 1.1 mrg # We can use an host tool
15071 1.1 mrg RAW_CXX_FOR_TARGET='$(CXX)'
15072 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15073 1.1 mrg $as_echo "host tool" >&6; }
15074 1.1 mrg else
15075 1.1 mrg # We need a cross tool
15076 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15077 1.1 mrg $as_echo "pre-installed" >&6; }
15078 1.1 mrg fi
15079 1.1 mrg fi
15080 1.1 mrg
15081 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
15082 1.1 mrg $as_echo_n "checking where to find the target dlltool... " >&6; }
15083 1.1 mrg if test "x${build}" != "x${host}" ; then
15084 1.1 mrg if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15085 1.1 mrg # We already found the complete path
15086 1.1 mrg ac_dir=`dirname $DLLTOOL_FOR_TARGET`
15087 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15088 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15089 1.1 mrg else
15090 1.1 mrg # Canadian cross, just use what we found
15091 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15092 1.1 mrg $as_echo "pre-installed" >&6; }
15093 1.1 mrg fi
15094 1.1 mrg else
15095 1.1 mrg ok=yes
15096 1.1 mrg case " ${configdirs} " in
15097 1.1 mrg *" binutils "*) ;;
15098 1.1 mrg *) ok=no ;;
15099 1.1 mrg esac
15100 1.1 mrg
15101 1.1 mrg if test $ok = yes; then
15102 1.1 mrg # An in-tree tool is available and we can use it
15103 1.1 mrg DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
15104 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15105 1.1 mrg $as_echo "just compiled" >&6; }
15106 1.1 mrg elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15107 1.1 mrg # We already found the complete path
15108 1.1 mrg ac_dir=`dirname $DLLTOOL_FOR_TARGET`
15109 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15110 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15111 1.1 mrg elif test "x$target" = "x$host"; then
15112 1.1 mrg # We can use an host tool
15113 1.1 mrg DLLTOOL_FOR_TARGET='$(DLLTOOL)'
15114 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15115 1.1 mrg $as_echo "host tool" >&6; }
15116 1.1 mrg else
15117 1.1 mrg # We need a cross tool
15118 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15119 1.1 mrg $as_echo "pre-installed" >&6; }
15120 1.1 mrg fi
15121 1.1 mrg fi
15122 1.1 mrg
15123 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
15124 1.13 mrg $as_echo_n "checking where to find the target dsymutil... " >&6; }
15125 1.13 mrg if test "x${build}" != "x${host}" ; then
15126 1.13 mrg if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
15127 1.13 mrg # We already found the complete path
15128 1.13 mrg ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
15129 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15130 1.13 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15131 1.13 mrg else
15132 1.13 mrg # Canadian cross, just use what we found
15133 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15134 1.13 mrg $as_echo "pre-installed" >&6; }
15135 1.13 mrg fi
15136 1.13 mrg else
15137 1.13 mrg if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
15138 1.13 mrg # We already found the complete path
15139 1.13 mrg ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
15140 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15141 1.13 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15142 1.13 mrg elif test "x$target" = "x$host"; then
15143 1.13 mrg # We can use an host tool
15144 1.13 mrg DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
15145 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15146 1.13 mrg $as_echo "host tool" >&6; }
15147 1.13 mrg else
15148 1.13 mrg # We need a cross tool
15149 1.13 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15150 1.13 mrg $as_echo "pre-installed" >&6; }
15151 1.13 mrg fi
15152 1.13 mrg fi
15153 1.13 mrg
15154 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
15155 1.1 mrg $as_echo_n "checking where to find the target gcc... " >&6; }
15156 1.1 mrg if test "x${build}" != "x${host}" ; then
15157 1.1 mrg if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15158 1.1 mrg # We already found the complete path
15159 1.1 mrg ac_dir=`dirname $GCC_FOR_TARGET`
15160 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15161 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15162 1.1 mrg else
15163 1.1 mrg # Canadian cross, just use what we found
15164 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15165 1.1 mrg $as_echo "pre-installed" >&6; }
15166 1.1 mrg fi
15167 1.1 mrg else
15168 1.1 mrg ok=yes
15169 1.1 mrg case " ${configdirs} " in
15170 1.1 mrg *" gcc "*) ;;
15171 1.1 mrg *) ok=no ;;
15172 1.1 mrg esac
15173 1.1 mrg
15174 1.1 mrg if test $ok = yes; then
15175 1.1 mrg # An in-tree tool is available and we can use it
15176 1.1 mrg GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
15177 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15178 1.1 mrg $as_echo "just compiled" >&6; }
15179 1.1 mrg elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15180 1.1 mrg # We already found the complete path
15181 1.1 mrg ac_dir=`dirname $GCC_FOR_TARGET`
15182 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15183 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15184 1.1 mrg elif test "x$target" = "x$host"; then
15185 1.1 mrg # We can use an host tool
15186 1.1 mrg GCC_FOR_TARGET='$()'
15187 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15188 1.1 mrg $as_echo "host tool" >&6; }
15189 1.1 mrg else
15190 1.1 mrg # We need a cross tool
15191 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15192 1.1 mrg $as_echo "pre-installed" >&6; }
15193 1.1 mrg fi
15194 1.1 mrg fi
15195 1.1 mrg
15196 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
15197 1.1 mrg $as_echo_n "checking where to find the target gfortran... " >&6; }
15198 1.1 mrg if test "x${build}" != "x${host}" ; then
15199 1.1 mrg if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15200 1.1 mrg # We already found the complete path
15201 1.1 mrg ac_dir=`dirname $GFORTRAN_FOR_TARGET`
15202 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15203 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15204 1.1 mrg else
15205 1.1 mrg # Canadian cross, just use what we found
15206 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15207 1.1 mrg $as_echo "pre-installed" >&6; }
15208 1.1 mrg fi
15209 1.1 mrg else
15210 1.1 mrg ok=yes
15211 1.1 mrg case " ${configdirs} " in
15212 1.1 mrg *" gcc "*) ;;
15213 1.1 mrg *) ok=no ;;
15214 1.1 mrg esac
15215 1.1 mrg case ,${enable_languages}, in
15216 1.1 mrg *,fortran,*) ;;
15217 1.1 mrg *) ok=no ;;
15218 1.1 mrg esac
15219 1.1 mrg if test $ok = yes; then
15220 1.1 mrg # An in-tree tool is available and we can use it
15221 1.1 mrg GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
15222 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15223 1.1 mrg $as_echo "just compiled" >&6; }
15224 1.1 mrg elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15225 1.1 mrg # We already found the complete path
15226 1.1 mrg ac_dir=`dirname $GFORTRAN_FOR_TARGET`
15227 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15228 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15229 1.1 mrg elif test "x$target" = "x$host"; then
15230 1.1 mrg # We can use an host tool
15231 1.1 mrg GFORTRAN_FOR_TARGET='$(GFORTRAN)'
15232 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15233 1.1 mrg $as_echo "host tool" >&6; }
15234 1.1 mrg else
15235 1.1 mrg # We need a cross tool
15236 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15237 1.1 mrg $as_echo "pre-installed" >&6; }
15238 1.1 mrg fi
15239 1.1 mrg fi
15240 1.1 mrg
15241 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
15242 1.4 mrg $as_echo_n "checking where to find the target gccgo... " >&6; }
15243 1.4 mrg if test "x${build}" != "x${host}" ; then
15244 1.4 mrg if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15245 1.4 mrg # We already found the complete path
15246 1.4 mrg ac_dir=`dirname $GOC_FOR_TARGET`
15247 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15248 1.4 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15249 1.4 mrg else
15250 1.4 mrg # Canadian cross, just use what we found
15251 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15252 1.4 mrg $as_echo "pre-installed" >&6; }
15253 1.4 mrg fi
15254 1.4 mrg else
15255 1.4 mrg ok=yes
15256 1.4 mrg case " ${configdirs} " in
15257 1.4 mrg *" gcc "*) ;;
15258 1.4 mrg *) ok=no ;;
15259 1.4 mrg esac
15260 1.4 mrg case ,${enable_languages}, in
15261 1.4 mrg *,go,*) ;;
15262 1.4 mrg *) ok=no ;;
15263 1.4 mrg esac
15264 1.4 mrg if test $ok = yes; then
15265 1.4 mrg # An in-tree tool is available and we can use it
15266 1.4 mrg GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
15267 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15268 1.4 mrg $as_echo "just compiled" >&6; }
15269 1.4 mrg elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15270 1.4 mrg # We already found the complete path
15271 1.4 mrg ac_dir=`dirname $GOC_FOR_TARGET`
15272 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15273 1.4 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15274 1.4 mrg elif test "x$target" = "x$host"; then
15275 1.4 mrg # We can use an host tool
15276 1.4 mrg GOC_FOR_TARGET='$(GOC)'
15277 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15278 1.4 mrg $as_echo "host tool" >&6; }
15279 1.4 mrg else
15280 1.4 mrg # We need a cross tool
15281 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15282 1.4 mrg $as_echo "pre-installed" >&6; }
15283 1.4 mrg fi
15284 1.4 mrg fi
15285 1.4 mrg
15286 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
15287 1.12 mrg $as_echo_n "checking where to find the target gdc... " >&6; }
15288 1.12 mrg if test "x${build}" != "x${host}" ; then
15289 1.12 mrg if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15290 1.12 mrg # We already found the complete path
15291 1.12 mrg ac_dir=`dirname $GDC_FOR_TARGET`
15292 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15293 1.12 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15294 1.12 mrg else
15295 1.12 mrg # Canadian cross, just use what we found
15296 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15297 1.12 mrg $as_echo "pre-installed" >&6; }
15298 1.12 mrg fi
15299 1.12 mrg else
15300 1.12 mrg ok=yes
15301 1.12 mrg case " ${configdirs} " in
15302 1.12 mrg *" gcc "*) ;;
15303 1.12 mrg *) ok=no ;;
15304 1.12 mrg esac
15305 1.12 mrg case ,${enable_languages}, in
15306 1.12 mrg *,d,*) ;;
15307 1.12 mrg *) ok=no ;;
15308 1.12 mrg esac
15309 1.12 mrg if test $ok = yes; then
15310 1.12 mrg # An in-tree tool is available and we can use it
15311 1.12 mrg GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
15312 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15313 1.12 mrg $as_echo "just compiled" >&6; }
15314 1.12 mrg elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15315 1.12 mrg # We already found the complete path
15316 1.12 mrg ac_dir=`dirname $GDC_FOR_TARGET`
15317 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15318 1.12 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15319 1.12 mrg elif test "x$target" = "x$host"; then
15320 1.12 mrg # We can use an host tool
15321 1.12 mrg GDC_FOR_TARGET='$(GDC)'
15322 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15323 1.12 mrg $as_echo "host tool" >&6; }
15324 1.12 mrg else
15325 1.12 mrg # We need a cross tool
15326 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15327 1.12 mrg $as_echo "pre-installed" >&6; }
15328 1.12 mrg fi
15329 1.12 mrg fi
15330 1.12 mrg
15331 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
15332 1.1 mrg $as_echo_n "checking where to find the target ld... " >&6; }
15333 1.1 mrg if test "x${build}" != "x${host}" ; then
15334 1.1 mrg if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15335 1.1 mrg # We already found the complete path
15336 1.1 mrg ac_dir=`dirname $LD_FOR_TARGET`
15337 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15338 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15339 1.1 mrg else
15340 1.1 mrg # Canadian cross, just use what we found
15341 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15342 1.1 mrg $as_echo "pre-installed" >&6; }
15343 1.1 mrg fi
15344 1.1 mrg else
15345 1.1 mrg ok=yes
15346 1.1 mrg case " ${configdirs} " in
15347 1.1 mrg *" ld "*) ;;
15348 1.1 mrg *) ok=no ;;
15349 1.1 mrg esac
15350 1.1 mrg
15351 1.1 mrg if test $ok = yes; then
15352 1.1 mrg # An in-tree tool is available and we can use it
15353 1.1 mrg LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
15354 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15355 1.1 mrg $as_echo "just compiled" >&6; }
15356 1.1 mrg elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15357 1.1 mrg # We already found the complete path
15358 1.1 mrg ac_dir=`dirname $LD_FOR_TARGET`
15359 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15360 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15361 1.1 mrg elif test "x$target" = "x$host"; then
15362 1.1 mrg # We can use an host tool
15363 1.1 mrg LD_FOR_TARGET='$(LD)'
15364 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15365 1.1 mrg $as_echo "host tool" >&6; }
15366 1.1 mrg else
15367 1.1 mrg # We need a cross tool
15368 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15369 1.1 mrg $as_echo "pre-installed" >&6; }
15370 1.1 mrg fi
15371 1.1 mrg fi
15372 1.1 mrg
15373 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
15374 1.1 mrg $as_echo_n "checking where to find the target lipo... " >&6; }
15375 1.1 mrg if test "x${build}" != "x${host}" ; then
15376 1.1 mrg if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15377 1.1 mrg # We already found the complete path
15378 1.1 mrg ac_dir=`dirname $LIPO_FOR_TARGET`
15379 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15380 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15381 1.1 mrg else
15382 1.1 mrg # Canadian cross, just use what we found
15383 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15384 1.1 mrg $as_echo "pre-installed" >&6; }
15385 1.1 mrg fi
15386 1.1 mrg else
15387 1.1 mrg if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15388 1.1 mrg # We already found the complete path
15389 1.1 mrg ac_dir=`dirname $LIPO_FOR_TARGET`
15390 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15391 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15392 1.1 mrg elif test "x$target" = "x$host"; then
15393 1.1 mrg # We can use an host tool
15394 1.1 mrg LIPO_FOR_TARGET='$(LIPO)'
15395 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15396 1.1 mrg $as_echo "host tool" >&6; }
15397 1.1 mrg else
15398 1.1 mrg # We need a cross tool
15399 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15400 1.1 mrg $as_echo "pre-installed" >&6; }
15401 1.1 mrg fi
15402 1.1 mrg fi
15403 1.1 mrg
15404 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
15405 1.1 mrg $as_echo_n "checking where to find the target nm... " >&6; }
15406 1.1 mrg if test "x${build}" != "x${host}" ; then
15407 1.1 mrg if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15408 1.1 mrg # We already found the complete path
15409 1.1 mrg ac_dir=`dirname $NM_FOR_TARGET`
15410 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15411 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15412 1.1 mrg else
15413 1.1 mrg # Canadian cross, just use what we found
15414 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15415 1.1 mrg $as_echo "pre-installed" >&6; }
15416 1.1 mrg fi
15417 1.1 mrg else
15418 1.1 mrg ok=yes
15419 1.1 mrg case " ${configdirs} " in
15420 1.1 mrg *" binutils "*) ;;
15421 1.1 mrg *) ok=no ;;
15422 1.1 mrg esac
15423 1.1 mrg
15424 1.1 mrg if test $ok = yes; then
15425 1.1 mrg # An in-tree tool is available and we can use it
15426 1.1 mrg NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
15427 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15428 1.1 mrg $as_echo "just compiled" >&6; }
15429 1.1 mrg elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15430 1.1 mrg # We already found the complete path
15431 1.1 mrg ac_dir=`dirname $NM_FOR_TARGET`
15432 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15433 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15434 1.1 mrg elif test "x$target" = "x$host"; then
15435 1.1 mrg # We can use an host tool
15436 1.1 mrg NM_FOR_TARGET='$(NM)'
15437 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15438 1.1 mrg $as_echo "host tool" >&6; }
15439 1.1 mrg else
15440 1.1 mrg # We need a cross tool
15441 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15442 1.1 mrg $as_echo "pre-installed" >&6; }
15443 1.1 mrg fi
15444 1.1 mrg fi
15445 1.1 mrg
15446 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
15447 1.6 mrg $as_echo_n "checking where to find the target objcopy... " >&6; }
15448 1.6 mrg if test "x${build}" != "x${host}" ; then
15449 1.6 mrg if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15450 1.6 mrg # We already found the complete path
15451 1.6 mrg ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15452 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15453 1.6 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15454 1.6 mrg else
15455 1.6 mrg # Canadian cross, just use what we found
15456 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15457 1.6 mrg $as_echo "pre-installed" >&6; }
15458 1.6 mrg fi
15459 1.6 mrg else
15460 1.6 mrg ok=yes
15461 1.6 mrg case " ${configdirs} " in
15462 1.6 mrg *" binutils "*) ;;
15463 1.6 mrg *) ok=no ;;
15464 1.6 mrg esac
15465 1.6 mrg
15466 1.6 mrg if test $ok = yes; then
15467 1.6 mrg # An in-tree tool is available and we can use it
15468 1.6 mrg OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15469 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15470 1.6 mrg $as_echo "just compiled" >&6; }
15471 1.6 mrg elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15472 1.6 mrg # We already found the complete path
15473 1.6 mrg ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15474 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15475 1.6 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15476 1.6 mrg elif test "x$target" = "x$host"; then
15477 1.6 mrg # We can use an host tool
15478 1.6 mrg OBJCOPY_FOR_TARGET='$(OBJCOPY)'
15479 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15480 1.6 mrg $as_echo "host tool" >&6; }
15481 1.6 mrg else
15482 1.6 mrg # We need a cross tool
15483 1.6 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15484 1.6 mrg $as_echo "pre-installed" >&6; }
15485 1.6 mrg fi
15486 1.6 mrg fi
15487 1.6 mrg
15488 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15489 1.1 mrg $as_echo_n "checking where to find the target objdump... " >&6; }
15490 1.1 mrg if test "x${build}" != "x${host}" ; then
15491 1.1 mrg if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15492 1.1 mrg # We already found the complete path
15493 1.1 mrg ac_dir=`dirname $OBJDUMP_FOR_TARGET`
15494 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15495 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15496 1.1 mrg else
15497 1.1 mrg # Canadian cross, just use what we found
15498 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15499 1.1 mrg $as_echo "pre-installed" >&6; }
15500 1.1 mrg fi
15501 1.1 mrg else
15502 1.1 mrg ok=yes
15503 1.1 mrg case " ${configdirs} " in
15504 1.1 mrg *" binutils "*) ;;
15505 1.1 mrg *) ok=no ;;
15506 1.1 mrg esac
15507 1.1 mrg
15508 1.1 mrg if test $ok = yes; then
15509 1.1 mrg # An in-tree tool is available and we can use it
15510 1.1 mrg OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
15511 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15512 1.1 mrg $as_echo "just compiled" >&6; }
15513 1.1 mrg elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15514 1.1 mrg # We already found the complete path
15515 1.1 mrg ac_dir=`dirname $OBJDUMP_FOR_TARGET`
15516 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15517 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15518 1.1 mrg elif test "x$target" = "x$host"; then
15519 1.1 mrg # We can use an host tool
15520 1.1 mrg OBJDUMP_FOR_TARGET='$(OBJDUMP)'
15521 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15522 1.1 mrg $as_echo "host tool" >&6; }
15523 1.1 mrg else
15524 1.1 mrg # We need a cross tool
15525 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15526 1.1 mrg $as_echo "pre-installed" >&6; }
15527 1.1 mrg fi
15528 1.1 mrg fi
15529 1.1 mrg
15530 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15531 1.12 mrg $as_echo_n "checking where to find the target otool... " >&6; }
15532 1.12 mrg if test "x${build}" != "x${host}" ; then
15533 1.12 mrg if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15534 1.12 mrg # We already found the complete path
15535 1.12 mrg ac_dir=`dirname $OTOOL_FOR_TARGET`
15536 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15537 1.12 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15538 1.12 mrg else
15539 1.12 mrg # Canadian cross, just use what we found
15540 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15541 1.12 mrg $as_echo "pre-installed" >&6; }
15542 1.12 mrg fi
15543 1.12 mrg else
15544 1.12 mrg if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15545 1.12 mrg # We already found the complete path
15546 1.12 mrg ac_dir=`dirname $OTOOL_FOR_TARGET`
15547 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15548 1.12 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15549 1.12 mrg elif test "x$target" = "x$host"; then
15550 1.12 mrg # We can use an host tool
15551 1.12 mrg OTOOL_FOR_TARGET='$(OTOOL)'
15552 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15553 1.12 mrg $as_echo "host tool" >&6; }
15554 1.12 mrg else
15555 1.12 mrg # We need a cross tool
15556 1.12 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15557 1.12 mrg $as_echo "pre-installed" >&6; }
15558 1.12 mrg fi
15559 1.12 mrg fi
15560 1.12 mrg
15561 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15562 1.1 mrg $as_echo_n "checking where to find the target ranlib... " >&6; }
15563 1.1 mrg if test "x${build}" != "x${host}" ; then
15564 1.1 mrg if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15565 1.1 mrg # We already found the complete path
15566 1.1 mrg ac_dir=`dirname $RANLIB_FOR_TARGET`
15567 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15568 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15569 1.1 mrg else
15570 1.1 mrg # Canadian cross, just use what we found
15571 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15572 1.1 mrg $as_echo "pre-installed" >&6; }
15573 1.1 mrg fi
15574 1.1 mrg else
15575 1.1 mrg ok=yes
15576 1.1 mrg case " ${configdirs} " in
15577 1.1 mrg *" binutils "*) ;;
15578 1.1 mrg *) ok=no ;;
15579 1.1 mrg esac
15580 1.1 mrg
15581 1.1 mrg if test $ok = yes; then
15582 1.1 mrg # An in-tree tool is available and we can use it
15583 1.1 mrg RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
15584 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15585 1.1 mrg $as_echo "just compiled" >&6; }
15586 1.1 mrg elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15587 1.1 mrg # We already found the complete path
15588 1.1 mrg ac_dir=`dirname $RANLIB_FOR_TARGET`
15589 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15590 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15591 1.1 mrg elif test "x$target" = "x$host"; then
15592 1.1 mrg # We can use an host tool
15593 1.1 mrg RANLIB_FOR_TARGET='$(RANLIB)'
15594 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15595 1.1 mrg $as_echo "host tool" >&6; }
15596 1.1 mrg else
15597 1.1 mrg # We need a cross tool
15598 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15599 1.1 mrg $as_echo "pre-installed" >&6; }
15600 1.1 mrg fi
15601 1.1 mrg fi
15602 1.1 mrg
15603 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15604 1.4 mrg $as_echo_n "checking where to find the target readelf... " >&6; }
15605 1.4 mrg if test "x${build}" != "x${host}" ; then
15606 1.4 mrg if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15607 1.4 mrg # We already found the complete path
15608 1.4 mrg ac_dir=`dirname $READELF_FOR_TARGET`
15609 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15610 1.4 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15611 1.4 mrg else
15612 1.4 mrg # Canadian cross, just use what we found
15613 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15614 1.4 mrg $as_echo "pre-installed" >&6; }
15615 1.4 mrg fi
15616 1.4 mrg else
15617 1.4 mrg ok=yes
15618 1.4 mrg case " ${configdirs} " in
15619 1.4 mrg *" binutils "*) ;;
15620 1.4 mrg *) ok=no ;;
15621 1.4 mrg esac
15622 1.4 mrg
15623 1.4 mrg if test $ok = yes; then
15624 1.4 mrg # An in-tree tool is available and we can use it
15625 1.4 mrg READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15626 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15627 1.4 mrg $as_echo "just compiled" >&6; }
15628 1.4 mrg elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15629 1.4 mrg # We already found the complete path
15630 1.4 mrg ac_dir=`dirname $READELF_FOR_TARGET`
15631 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15632 1.4 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15633 1.4 mrg elif test "x$target" = "x$host"; then
15634 1.4 mrg # We can use an host tool
15635 1.4 mrg READELF_FOR_TARGET='$(READELF)'
15636 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15637 1.4 mrg $as_echo "host tool" >&6; }
15638 1.4 mrg else
15639 1.4 mrg # We need a cross tool
15640 1.4 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15641 1.4 mrg $as_echo "pre-installed" >&6; }
15642 1.4 mrg fi
15643 1.4 mrg fi
15644 1.4 mrg
15645 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15646 1.1 mrg $as_echo_n "checking where to find the target strip... " >&6; }
15647 1.1 mrg if test "x${build}" != "x${host}" ; then
15648 1.1 mrg if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15649 1.1 mrg # We already found the complete path
15650 1.1 mrg ac_dir=`dirname $STRIP_FOR_TARGET`
15651 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15652 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15653 1.1 mrg else
15654 1.1 mrg # Canadian cross, just use what we found
15655 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15656 1.1 mrg $as_echo "pre-installed" >&6; }
15657 1.1 mrg fi
15658 1.1 mrg else
15659 1.1 mrg ok=yes
15660 1.1 mrg case " ${configdirs} " in
15661 1.1 mrg *" binutils "*) ;;
15662 1.1 mrg *) ok=no ;;
15663 1.1 mrg esac
15664 1.1 mrg
15665 1.1 mrg if test $ok = yes; then
15666 1.1 mrg # An in-tree tool is available and we can use it
15667 1.4 mrg STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15668 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15669 1.1 mrg $as_echo "just compiled" >&6; }
15670 1.1 mrg elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15671 1.1 mrg # We already found the complete path
15672 1.1 mrg ac_dir=`dirname $STRIP_FOR_TARGET`
15673 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15674 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15675 1.1 mrg elif test "x$target" = "x$host"; then
15676 1.1 mrg # We can use an host tool
15677 1.1 mrg STRIP_FOR_TARGET='$(STRIP)'
15678 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15679 1.1 mrg $as_echo "host tool" >&6; }
15680 1.1 mrg else
15681 1.1 mrg # We need a cross tool
15682 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15683 1.1 mrg $as_echo "pre-installed" >&6; }
15684 1.1 mrg fi
15685 1.1 mrg fi
15686 1.1 mrg
15687 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15688 1.1 mrg $as_echo_n "checking where to find the target windres... " >&6; }
15689 1.1 mrg if test "x${build}" != "x${host}" ; then
15690 1.1 mrg if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15691 1.1 mrg # We already found the complete path
15692 1.1 mrg ac_dir=`dirname $WINDRES_FOR_TARGET`
15693 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15694 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15695 1.1 mrg else
15696 1.1 mrg # Canadian cross, just use what we found
15697 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15698 1.1 mrg $as_echo "pre-installed" >&6; }
15699 1.1 mrg fi
15700 1.1 mrg else
15701 1.1 mrg ok=yes
15702 1.1 mrg case " ${configdirs} " in
15703 1.1 mrg *" binutils "*) ;;
15704 1.1 mrg *) ok=no ;;
15705 1.1 mrg esac
15706 1.1 mrg
15707 1.1 mrg if test $ok = yes; then
15708 1.1 mrg # An in-tree tool is available and we can use it
15709 1.1 mrg WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15710 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15711 1.1 mrg $as_echo "just compiled" >&6; }
15712 1.1 mrg elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15713 1.1 mrg # We already found the complete path
15714 1.1 mrg ac_dir=`dirname $WINDRES_FOR_TARGET`
15715 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15716 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15717 1.1 mrg elif test "x$target" = "x$host"; then
15718 1.1 mrg # We can use an host tool
15719 1.1 mrg WINDRES_FOR_TARGET='$(WINDRES)'
15720 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15721 1.1 mrg $as_echo "host tool" >&6; }
15722 1.1 mrg else
15723 1.1 mrg # We need a cross tool
15724 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15725 1.1 mrg $as_echo "pre-installed" >&6; }
15726 1.1 mrg fi
15727 1.1 mrg fi
15728 1.1 mrg
15729 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15730 1.1 mrg $as_echo_n "checking where to find the target windmc... " >&6; }
15731 1.1 mrg if test "x${build}" != "x${host}" ; then
15732 1.1 mrg if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15733 1.1 mrg # We already found the complete path
15734 1.1 mrg ac_dir=`dirname $WINDMC_FOR_TARGET`
15735 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15736 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15737 1.1 mrg else
15738 1.1 mrg # Canadian cross, just use what we found
15739 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15740 1.1 mrg $as_echo "pre-installed" >&6; }
15741 1.1 mrg fi
15742 1.1 mrg else
15743 1.1 mrg ok=yes
15744 1.1 mrg case " ${configdirs} " in
15745 1.1 mrg *" binutils "*) ;;
15746 1.1 mrg *) ok=no ;;
15747 1.1 mrg esac
15748 1.1 mrg
15749 1.1 mrg if test $ok = yes; then
15750 1.1 mrg # An in-tree tool is available and we can use it
15751 1.1 mrg WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15752 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15753 1.1 mrg $as_echo "just compiled" >&6; }
15754 1.1 mrg elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15755 1.1 mrg # We already found the complete path
15756 1.1 mrg ac_dir=`dirname $WINDMC_FOR_TARGET`
15757 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15758 1.1 mrg $as_echo "pre-installed in $ac_dir" >&6; }
15759 1.1 mrg elif test "x$target" = "x$host"; then
15760 1.1 mrg # We can use an host tool
15761 1.1 mrg WINDMC_FOR_TARGET='$(WINDMC)'
15762 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15763 1.1 mrg $as_echo "host tool" >&6; }
15764 1.1 mrg else
15765 1.1 mrg # We need a cross tool
15766 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15767 1.1 mrg $as_echo "pre-installed" >&6; }
15768 1.1 mrg fi
15769 1.1 mrg fi
15770 1.1 mrg
15771 1.1 mrg
15772 1.1 mrg
15773 1.1 mrg
15774 1.1 mrg
15775 1.1 mrg # Certain tools may need extra flags.
15776 1.1 mrg AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15777 1.1 mrg RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15778 1.1 mrg NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15779 1.1 mrg
15780 1.1 mrg # When building target libraries, except in a Canadian cross, we use
15781 1.1 mrg # the same toolchain as the compiler we just built.
15782 1.1 mrg COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15783 1.1 mrg COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15784 1.1 mrg COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15785 1.1 mrg if test $host = $build; then
15786 1.1 mrg case " $configdirs " in
15787 1.1 mrg *" gcc "*)
15788 1.1 mrg COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15789 1.1 mrg COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15790 1.1 mrg COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15791 1.1 mrg ;;
15792 1.1 mrg esac
15793 1.1 mrg fi
15794 1.1 mrg
15795 1.1 mrg
15796 1.1 mrg
15797 1.1 mrg
15798 1.1 mrg
15799 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15800 1.1 mrg $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15801 1.1 mrg # Check whether --enable-maintainer-mode was given.
15802 1.1 mrg if test "${enable_maintainer_mode+set}" = set; then :
15803 1.1 mrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15804 1.1 mrg else
15805 1.1 mrg USE_MAINTAINER_MODE=no
15806 1.1 mrg fi
15807 1.1 mrg
15808 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15809 1.1 mrg $as_echo "$USE_MAINTAINER_MODE" >&6; }
15810 1.1 mrg
15811 1.1 mrg
15812 1.1 mrg if test "$USE_MAINTAINER_MODE" = yes; then
15813 1.1 mrg MAINTAINER_MODE_TRUE=
15814 1.1 mrg MAINTAINER_MODE_FALSE='#'
15815 1.1 mrg else
15816 1.1 mrg MAINTAINER_MODE_TRUE='#'
15817 1.1 mrg MAINTAINER_MODE_FALSE=
15818 1.1 mrg fi
15819 1.1 mrg MAINT=$MAINTAINER_MODE_TRUE
15820 1.1 mrg
15821 1.1 mrg # ---------------------
15822 1.1 mrg # GCC bootstrap support
15823 1.1 mrg # ---------------------
15824 1.1 mrg
15825 1.1 mrg # Stage specific cflags for build.
15826 1.1 mrg stage1_cflags="-g"
15827 1.1 mrg case $build in
15828 1.1 mrg vax-*-*)
15829 1.1 mrg case ${GCC} in
15830 1.1 mrg yes) stage1_cflags="-g -Wa,-J" ;;
15831 1.1 mrg *) stage1_cflags="-g -J" ;;
15832 1.1 mrg esac ;;
15833 1.1 mrg esac
15834 1.1 mrg
15835 1.1 mrg
15836 1.1 mrg
15837 1.1 mrg # Enable --enable-checking in stage1 of the compiler.
15838 1.1 mrg # Check whether --enable-stage1-checking was given.
15839 1.1 mrg if test "${enable_stage1_checking+set}" = set; then :
15840 1.1 mrg enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15841 1.1 mrg else
15842 1.1 mrg if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15843 1.6 mrg # For --disable-checking or implicit --enable-checking=release, avoid
15844 1.6 mrg # setting --enable-checking=gc in the default stage1 checking for LTO
15845 1.6 mrg # bootstraps. See PR62077.
15846 1.6 mrg case $BUILD_CONFIG in
15847 1.6 mrg *lto*)
15848 1.10 mrg stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15849 1.10 mrg *)
15850 1.10 mrg stage1_checking=--enable-checking=yes,types;;
15851 1.6 mrg esac
15852 1.10 mrg if test "x$enable_checking" = x && \
15853 1.10 mrg test -d ${srcdir}/gcc && \
15854 1.10 mrg test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15855 1.10 mrg stage1_checking=--enable-checking=yes,types,extra
15856 1.10 mrg fi
15857 1.1 mrg else
15858 1.1 mrg stage1_checking=--enable-checking=$enable_checking,types
15859 1.1 mrg fi
15860 1.1 mrg fi
15861 1.1 mrg
15862 1.1 mrg
15863 1.1 mrg
15864 1.1 mrg # Enable -Werror in bootstrap stage2 and later.
15865 1.1 mrg # Check whether --enable-werror was given.
15866 1.1 mrg if test "${enable_werror+set}" = set; then :
15867 1.1 mrg enableval=$enable_werror;
15868 1.1 mrg case ${enable_werror} in
15869 1.1 mrg yes) stage2_werror_flag="--enable-werror-always" ;;
15870 1.1 mrg *) stage2_werror_flag="" ;;
15871 1.1 mrg esac
15872 1.1 mrg
15873 1.11 mrg else
15874 1.1 mrg
15875 1.11 mrg if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15876 1.11 mrg case $BUILD_CONFIG in
15877 1.11 mrg bootstrap-debug)
15878 1.11 mrg stage2_werror_flag="--enable-werror-always" ;;
15879 1.11 mrg "")
15880 1.11 mrg stage2_werror_flag="--enable-werror-always" ;;
15881 1.11 mrg esac
15882 1.6 mrg fi
15883 1.6 mrg
15884 1.11 mrg fi
15885 1.6 mrg
15886 1.6 mrg
15887 1.6 mrg
15888 1.6 mrg
15889 1.1 mrg # Specify what files to not compare during bootstrap.
15890 1.1 mrg
15891 1.1 mrg compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15892 1.1 mrg case "$target" in
15893 1.1 mrg hppa*64*-*-hpux*) ;;
15894 1.13 mrg hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
15895 1.13 mrg powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
15896 1.1 mrg esac
15897 1.1 mrg
15898 1.1 mrg
15899 1.1 mrg ac_config_files="$ac_config_files Makefile"
15900 1.1 mrg
15901 1.1 mrg cat >confcache <<\_ACEOF
15902 1.1 mrg # This file is a shell script that caches the results of configure
15903 1.1 mrg # tests run on this system so they can be shared between configure
15904 1.1 mrg # scripts and configure runs, see configure's option --config-cache.
15905 1.1 mrg # It is not useful on other systems. If it contains results you don't
15906 1.1 mrg # want to keep, you may remove or edit it.
15907 1.1 mrg #
15908 1.1 mrg # config.status only pays attention to the cache file if you give it
15909 1.1 mrg # the --recheck option to rerun configure.
15910 1.1 mrg #
15911 1.1 mrg # `ac_cv_env_foo' variables (set or unset) will be overridden when
15912 1.1 mrg # loading this file, other *unset* `ac_cv_foo' will be assigned the
15913 1.1 mrg # following values.
15914 1.1 mrg
15915 1.1 mrg _ACEOF
15916 1.1 mrg
15917 1.1 mrg # The following way of writing the cache mishandles newlines in values,
15918 1.1 mrg # but we know of no workaround that is simple, portable, and efficient.
15919 1.1 mrg # So, we kill variables containing newlines.
15920 1.1 mrg # Ultrix sh set writes to stderr and can't be redirected directly,
15921 1.1 mrg # and sets the high bit in the cache file unless we assign to the vars.
15922 1.1 mrg (
15923 1.1 mrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15924 1.1 mrg eval ac_val=\$$ac_var
15925 1.1 mrg case $ac_val in #(
15926 1.1 mrg *${as_nl}*)
15927 1.1 mrg case $ac_var in #(
15928 1.1 mrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15929 1.1 mrg $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15930 1.1 mrg esac
15931 1.1 mrg case $ac_var in #(
15932 1.1 mrg _ | IFS | as_nl) ;; #(
15933 1.1 mrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15934 1.1 mrg *) { eval $ac_var=; unset $ac_var;} ;;
15935 1.1 mrg esac ;;
15936 1.1 mrg esac
15937 1.1 mrg done
15938 1.1 mrg
15939 1.1 mrg (set) 2>&1 |
15940 1.1 mrg case $as_nl`(ac_space=' '; set) 2>&1` in #(
15941 1.1 mrg *${as_nl}ac_space=\ *)
15942 1.1 mrg # `set' does not quote correctly, so add quotes: double-quote
15943 1.1 mrg # substitution turns \\\\ into \\, and sed turns \\ into \.
15944 1.1 mrg sed -n \
15945 1.1 mrg "s/'/'\\\\''/g;
15946 1.1 mrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15947 1.1 mrg ;; #(
15948 1.1 mrg *)
15949 1.1 mrg # `set' quotes correctly as required by POSIX, so do not add quotes.
15950 1.1 mrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15951 1.1 mrg ;;
15952 1.1 mrg esac |
15953 1.1 mrg sort
15954 1.1 mrg ) |
15955 1.1 mrg sed '
15956 1.1 mrg /^ac_cv_env_/b end
15957 1.1 mrg t clear
15958 1.1 mrg :clear
15959 1.1 mrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15960 1.1 mrg t end
15961 1.1 mrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15962 1.1 mrg :end' >>confcache
15963 1.1 mrg if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15964 1.1 mrg if test -w "$cache_file"; then
15965 1.12 mrg if test "x$cache_file" != "x/dev/null"; then
15966 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15967 1.1 mrg $as_echo "$as_me: updating cache $cache_file" >&6;}
15968 1.12 mrg if test ! -f "$cache_file" || test -h "$cache_file"; then
15969 1.12 mrg cat confcache >"$cache_file"
15970 1.12 mrg else
15971 1.12 mrg case $cache_file in #(
15972 1.12 mrg */* | ?:*)
15973 1.12 mrg mv -f confcache "$cache_file"$$ &&
15974 1.12 mrg mv -f "$cache_file"$$ "$cache_file" ;; #(
15975 1.12 mrg *)
15976 1.12 mrg mv -f confcache "$cache_file" ;;
15977 1.12 mrg esac
15978 1.12 mrg fi
15979 1.12 mrg fi
15980 1.1 mrg else
15981 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15982 1.1 mrg $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15983 1.1 mrg fi
15984 1.1 mrg fi
15985 1.1 mrg rm -f confcache
15986 1.1 mrg
15987 1.1 mrg test "x$prefix" = xNONE && prefix=$ac_default_prefix
15988 1.1 mrg # Let make expand exec_prefix.
15989 1.1 mrg test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15990 1.1 mrg
15991 1.1 mrg # Transform confdefs.h into DEFS.
15992 1.1 mrg # Protect against shell expansion while executing Makefile rules.
15993 1.1 mrg # Protect against Makefile macro expansion.
15994 1.1 mrg #
15995 1.1 mrg # If the first sed substitution is executed (which looks for macros that
15996 1.1 mrg # take arguments), then branch to the quote section. Otherwise,
15997 1.1 mrg # look for a macro that doesn't take arguments.
15998 1.1 mrg ac_script='
15999 1.1 mrg :mline
16000 1.1 mrg /\\$/{
16001 1.1 mrg N
16002 1.1 mrg s,\\\n,,
16003 1.1 mrg b mline
16004 1.1 mrg }
16005 1.1 mrg t clear
16006 1.1 mrg :clear
16007 1.1 mrg s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16008 1.1 mrg t quote
16009 1.1 mrg s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16010 1.1 mrg t quote
16011 1.1 mrg b any
16012 1.1 mrg :quote
16013 1.1 mrg s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16014 1.1 mrg s/\[/\\&/g
16015 1.1 mrg s/\]/\\&/g
16016 1.1 mrg s/\$/$$/g
16017 1.1 mrg H
16018 1.1 mrg :any
16019 1.1 mrg ${
16020 1.1 mrg g
16021 1.1 mrg s/^\n//
16022 1.1 mrg s/\n/ /g
16023 1.1 mrg p
16024 1.1 mrg }
16025 1.1 mrg '
16026 1.1 mrg DEFS=`sed -n "$ac_script" confdefs.h`
16027 1.1 mrg
16028 1.1 mrg
16029 1.1 mrg ac_libobjs=
16030 1.1 mrg ac_ltlibobjs=
16031 1.12 mrg U=
16032 1.1 mrg for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16033 1.1 mrg # 1. Remove the extension, and $U if already installed.
16034 1.1 mrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16035 1.1 mrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16036 1.1 mrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16037 1.1 mrg # will be set to the directory where LIBOBJS objects are built.
16038 1.1 mrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16039 1.1 mrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16040 1.1 mrg done
16041 1.1 mrg LIBOBJS=$ac_libobjs
16042 1.1 mrg
16043 1.1 mrg LTLIBOBJS=$ac_ltlibobjs
16044 1.1 mrg
16045 1.1 mrg
16046 1.1 mrg
16047 1.12 mrg : "${CONFIG_STATUS=./config.status}"
16048 1.1 mrg ac_write_fail=0
16049 1.1 mrg ac_clean_files_save=$ac_clean_files
16050 1.1 mrg ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16051 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16052 1.1 mrg $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16053 1.1 mrg as_write_fail=0
16054 1.1 mrg cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16055 1.1 mrg #! $SHELL
16056 1.1 mrg # Generated by $as_me.
16057 1.1 mrg # Run this file to recreate the current configuration.
16058 1.1 mrg # Compiler output produced by configure, useful for debugging
16059 1.1 mrg # configure, is in config.log if it exists.
16060 1.1 mrg
16061 1.1 mrg debug=false
16062 1.1 mrg ac_cs_recheck=false
16063 1.1 mrg ac_cs_silent=false
16064 1.1 mrg
16065 1.1 mrg SHELL=\${CONFIG_SHELL-$SHELL}
16066 1.1 mrg export SHELL
16067 1.1 mrg _ASEOF
16068 1.1 mrg cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16069 1.1 mrg ## -------------------- ##
16070 1.1 mrg ## M4sh Initialization. ##
16071 1.1 mrg ## -------------------- ##
16072 1.1 mrg
16073 1.1 mrg # Be more Bourne compatible
16074 1.1 mrg DUALCASE=1; export DUALCASE # for MKS sh
16075 1.1 mrg if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16076 1.1 mrg emulate sh
16077 1.1 mrg NULLCMD=:
16078 1.1 mrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16079 1.1 mrg # is contrary to our usage. Disable this feature.
16080 1.1 mrg alias -g '${1+"$@"}'='"$@"'
16081 1.1 mrg setopt NO_GLOB_SUBST
16082 1.1 mrg else
16083 1.1 mrg case `(set -o) 2>/dev/null` in #(
16084 1.1 mrg *posix*) :
16085 1.1 mrg set -o posix ;; #(
16086 1.1 mrg *) :
16087 1.1 mrg ;;
16088 1.1 mrg esac
16089 1.1 mrg fi
16090 1.1 mrg
16091 1.1 mrg
16092 1.1 mrg as_nl='
16093 1.1 mrg '
16094 1.1 mrg export as_nl
16095 1.1 mrg # Printing a long string crashes Solaris 7 /usr/bin/printf.
16096 1.1 mrg as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16097 1.1 mrg as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16098 1.1 mrg as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16099 1.1 mrg # Prefer a ksh shell builtin over an external printf program on Solaris,
16100 1.1 mrg # but without wasting forks for bash or zsh.
16101 1.1 mrg if test -z "$BASH_VERSION$ZSH_VERSION" \
16102 1.1 mrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16103 1.1 mrg as_echo='print -r --'
16104 1.1 mrg as_echo_n='print -rn --'
16105 1.1 mrg elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16106 1.1 mrg as_echo='printf %s\n'
16107 1.1 mrg as_echo_n='printf %s'
16108 1.1 mrg else
16109 1.1 mrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16110 1.1 mrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16111 1.1 mrg as_echo_n='/usr/ucb/echo -n'
16112 1.1 mrg else
16113 1.1 mrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16114 1.1 mrg as_echo_n_body='eval
16115 1.1 mrg arg=$1;
16116 1.1 mrg case $arg in #(
16117 1.1 mrg *"$as_nl"*)
16118 1.1 mrg expr "X$arg" : "X\\(.*\\)$as_nl";
16119 1.1 mrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16120 1.1 mrg esac;
16121 1.1 mrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16122 1.1 mrg '
16123 1.1 mrg export as_echo_n_body
16124 1.1 mrg as_echo_n='sh -c $as_echo_n_body as_echo'
16125 1.1 mrg fi
16126 1.1 mrg export as_echo_body
16127 1.1 mrg as_echo='sh -c $as_echo_body as_echo'
16128 1.1 mrg fi
16129 1.1 mrg
16130 1.1 mrg # The user is always right.
16131 1.1 mrg if test "${PATH_SEPARATOR+set}" != set; then
16132 1.1 mrg PATH_SEPARATOR=:
16133 1.1 mrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16134 1.1 mrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16135 1.1 mrg PATH_SEPARATOR=';'
16136 1.1 mrg }
16137 1.1 mrg fi
16138 1.1 mrg
16139 1.1 mrg
16140 1.1 mrg # IFS
16141 1.1 mrg # We need space, tab and new line, in precisely that order. Quoting is
16142 1.1 mrg # there to prevent editors from complaining about space-tab.
16143 1.1 mrg # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16144 1.1 mrg # splitting by setting IFS to empty value.)
16145 1.1 mrg IFS=" "" $as_nl"
16146 1.1 mrg
16147 1.1 mrg # Find who we are. Look in the path if we contain no directory separator.
16148 1.12 mrg as_myself=
16149 1.1 mrg case $0 in #((
16150 1.1 mrg *[\\/]* ) as_myself=$0 ;;
16151 1.1 mrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 1.1 mrg for as_dir in $PATH
16153 1.1 mrg do
16154 1.1 mrg IFS=$as_save_IFS
16155 1.1 mrg test -z "$as_dir" && as_dir=.
16156 1.1 mrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16157 1.1 mrg done
16158 1.1 mrg IFS=$as_save_IFS
16159 1.1 mrg
16160 1.1 mrg ;;
16161 1.1 mrg esac
16162 1.1 mrg # We did not find ourselves, most probably we were run as `sh COMMAND'
16163 1.1 mrg # in which case we are not to be found in the path.
16164 1.1 mrg if test "x$as_myself" = x; then
16165 1.1 mrg as_myself=$0
16166 1.1 mrg fi
16167 1.1 mrg if test ! -f "$as_myself"; then
16168 1.1 mrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16169 1.1 mrg exit 1
16170 1.1 mrg fi
16171 1.1 mrg
16172 1.1 mrg # Unset variables that we do not need and which cause bugs (e.g. in
16173 1.1 mrg # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16174 1.1 mrg # suppresses any "Segmentation fault" message there. '((' could
16175 1.1 mrg # trigger a bug in pdksh 5.2.14.
16176 1.1 mrg for as_var in BASH_ENV ENV MAIL MAILPATH
16177 1.1 mrg do eval test x\${$as_var+set} = xset \
16178 1.1 mrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16179 1.1 mrg done
16180 1.1 mrg PS1='$ '
16181 1.1 mrg PS2='> '
16182 1.1 mrg PS4='+ '
16183 1.1 mrg
16184 1.1 mrg # NLS nuisances.
16185 1.1 mrg LC_ALL=C
16186 1.1 mrg export LC_ALL
16187 1.1 mrg LANGUAGE=C
16188 1.1 mrg export LANGUAGE
16189 1.1 mrg
16190 1.1 mrg # CDPATH.
16191 1.1 mrg (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16192 1.1 mrg
16193 1.1 mrg
16194 1.12 mrg # as_fn_error STATUS ERROR [LINENO LOG_FD]
16195 1.12 mrg # ----------------------------------------
16196 1.1 mrg # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16197 1.1 mrg # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16198 1.12 mrg # script with STATUS, using 1 if that was 0.
16199 1.1 mrg as_fn_error ()
16200 1.1 mrg {
16201 1.12 mrg as_status=$1; test $as_status -eq 0 && as_status=1
16202 1.12 mrg if test "$4"; then
16203 1.12 mrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16204 1.12 mrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16205 1.1 mrg fi
16206 1.12 mrg $as_echo "$as_me: error: $2" >&2
16207 1.1 mrg as_fn_exit $as_status
16208 1.1 mrg } # as_fn_error
16209 1.1 mrg
16210 1.1 mrg
16211 1.1 mrg # as_fn_set_status STATUS
16212 1.1 mrg # -----------------------
16213 1.1 mrg # Set $? to STATUS, without forking.
16214 1.1 mrg as_fn_set_status ()
16215 1.1 mrg {
16216 1.1 mrg return $1
16217 1.1 mrg } # as_fn_set_status
16218 1.1 mrg
16219 1.1 mrg # as_fn_exit STATUS
16220 1.1 mrg # -----------------
16221 1.1 mrg # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16222 1.1 mrg as_fn_exit ()
16223 1.1 mrg {
16224 1.1 mrg set +e
16225 1.1 mrg as_fn_set_status $1
16226 1.1 mrg exit $1
16227 1.1 mrg } # as_fn_exit
16228 1.1 mrg
16229 1.1 mrg # as_fn_unset VAR
16230 1.1 mrg # ---------------
16231 1.1 mrg # Portably unset VAR.
16232 1.1 mrg as_fn_unset ()
16233 1.1 mrg {
16234 1.1 mrg { eval $1=; unset $1;}
16235 1.1 mrg }
16236 1.1 mrg as_unset=as_fn_unset
16237 1.1 mrg # as_fn_append VAR VALUE
16238 1.1 mrg # ----------------------
16239 1.1 mrg # Append the text in VALUE to the end of the definition contained in VAR. Take
16240 1.1 mrg # advantage of any shell optimizations that allow amortized linear growth over
16241 1.1 mrg # repeated appends, instead of the typical quadratic growth present in naive
16242 1.1 mrg # implementations.
16243 1.1 mrg if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16244 1.1 mrg eval 'as_fn_append ()
16245 1.1 mrg {
16246 1.1 mrg eval $1+=\$2
16247 1.1 mrg }'
16248 1.1 mrg else
16249 1.1 mrg as_fn_append ()
16250 1.1 mrg {
16251 1.1 mrg eval $1=\$$1\$2
16252 1.1 mrg }
16253 1.1 mrg fi # as_fn_append
16254 1.1 mrg
16255 1.1 mrg # as_fn_arith ARG...
16256 1.1 mrg # ------------------
16257 1.1 mrg # Perform arithmetic evaluation on the ARGs, and store the result in the
16258 1.1 mrg # global $as_val. Take advantage of shells that can avoid forks. The arguments
16259 1.1 mrg # must be portable across $(()) and expr.
16260 1.1 mrg if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16261 1.1 mrg eval 'as_fn_arith ()
16262 1.1 mrg {
16263 1.1 mrg as_val=$(( $* ))
16264 1.1 mrg }'
16265 1.1 mrg else
16266 1.1 mrg as_fn_arith ()
16267 1.1 mrg {
16268 1.1 mrg as_val=`expr "$@" || test $? -eq 1`
16269 1.1 mrg }
16270 1.1 mrg fi # as_fn_arith
16271 1.1 mrg
16272 1.1 mrg
16273 1.1 mrg if expr a : '\(a\)' >/dev/null 2>&1 &&
16274 1.1 mrg test "X`expr 00001 : '.*\(...\)'`" = X001; then
16275 1.1 mrg as_expr=expr
16276 1.1 mrg else
16277 1.1 mrg as_expr=false
16278 1.1 mrg fi
16279 1.1 mrg
16280 1.1 mrg if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16281 1.1 mrg as_basename=basename
16282 1.1 mrg else
16283 1.1 mrg as_basename=false
16284 1.1 mrg fi
16285 1.1 mrg
16286 1.1 mrg if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16287 1.1 mrg as_dirname=dirname
16288 1.1 mrg else
16289 1.1 mrg as_dirname=false
16290 1.1 mrg fi
16291 1.1 mrg
16292 1.1 mrg as_me=`$as_basename -- "$0" ||
16293 1.1 mrg $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16294 1.1 mrg X"$0" : 'X\(//\)$' \| \
16295 1.1 mrg X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16296 1.1 mrg $as_echo X/"$0" |
16297 1.1 mrg sed '/^.*\/\([^/][^/]*\)\/*$/{
16298 1.1 mrg s//\1/
16299 1.1 mrg q
16300 1.1 mrg }
16301 1.1 mrg /^X\/\(\/\/\)$/{
16302 1.1 mrg s//\1/
16303 1.1 mrg q
16304 1.1 mrg }
16305 1.1 mrg /^X\/\(\/\).*/{
16306 1.1 mrg s//\1/
16307 1.1 mrg q
16308 1.1 mrg }
16309 1.1 mrg s/.*/./; q'`
16310 1.1 mrg
16311 1.1 mrg # Avoid depending upon Character Ranges.
16312 1.1 mrg as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16313 1.1 mrg as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16314 1.1 mrg as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16315 1.1 mrg as_cr_digits='0123456789'
16316 1.1 mrg as_cr_alnum=$as_cr_Letters$as_cr_digits
16317 1.1 mrg
16318 1.1 mrg ECHO_C= ECHO_N= ECHO_T=
16319 1.1 mrg case `echo -n x` in #(((((
16320 1.1 mrg -n*)
16321 1.1 mrg case `echo 'xy\c'` in
16322 1.1 mrg *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16323 1.1 mrg xy) ECHO_C='\c';;
16324 1.1 mrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16325 1.1 mrg ECHO_T=' ';;
16326 1.1 mrg esac;;
16327 1.1 mrg *)
16328 1.1 mrg ECHO_N='-n';;
16329 1.1 mrg esac
16330 1.1 mrg
16331 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
16332 1.1 mrg if test -d conf$$.dir; then
16333 1.1 mrg rm -f conf$$.dir/conf$$.file
16334 1.1 mrg else
16335 1.1 mrg rm -f conf$$.dir
16336 1.1 mrg mkdir conf$$.dir 2>/dev/null
16337 1.1 mrg fi
16338 1.1 mrg if (echo >conf$$.file) 2>/dev/null; then
16339 1.1 mrg if ln -s conf$$.file conf$$ 2>/dev/null; then
16340 1.1 mrg as_ln_s='ln -s'
16341 1.1 mrg # ... but there are two gotchas:
16342 1.1 mrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16343 1.1 mrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16344 1.12 mrg # In both cases, we have to default to `cp -pR'.
16345 1.1 mrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16346 1.12 mrg as_ln_s='cp -pR'
16347 1.1 mrg elif ln conf$$.file conf$$ 2>/dev/null; then
16348 1.1 mrg as_ln_s=ln
16349 1.1 mrg else
16350 1.12 mrg as_ln_s='cp -pR'
16351 1.1 mrg fi
16352 1.1 mrg else
16353 1.12 mrg as_ln_s='cp -pR'
16354 1.1 mrg fi
16355 1.1 mrg rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16356 1.1 mrg rmdir conf$$.dir 2>/dev/null
16357 1.1 mrg
16358 1.1 mrg
16359 1.1 mrg # as_fn_mkdir_p
16360 1.1 mrg # -------------
16361 1.1 mrg # Create "$as_dir" as a directory, including parents if necessary.
16362 1.1 mrg as_fn_mkdir_p ()
16363 1.1 mrg {
16364 1.1 mrg
16365 1.1 mrg case $as_dir in #(
16366 1.1 mrg -*) as_dir=./$as_dir;;
16367 1.1 mrg esac
16368 1.1 mrg test -d "$as_dir" || eval $as_mkdir_p || {
16369 1.1 mrg as_dirs=
16370 1.1 mrg while :; do
16371 1.1 mrg case $as_dir in #(
16372 1.1 mrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16373 1.1 mrg *) as_qdir=$as_dir;;
16374 1.1 mrg esac
16375 1.1 mrg as_dirs="'$as_qdir' $as_dirs"
16376 1.1 mrg as_dir=`$as_dirname -- "$as_dir" ||
16377 1.1 mrg $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16378 1.1 mrg X"$as_dir" : 'X\(//\)[^/]' \| \
16379 1.1 mrg X"$as_dir" : 'X\(//\)$' \| \
16380 1.1 mrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16381 1.1 mrg $as_echo X"$as_dir" |
16382 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16383 1.1 mrg s//\1/
16384 1.1 mrg q
16385 1.1 mrg }
16386 1.1 mrg /^X\(\/\/\)[^/].*/{
16387 1.1 mrg s//\1/
16388 1.1 mrg q
16389 1.1 mrg }
16390 1.1 mrg /^X\(\/\/\)$/{
16391 1.1 mrg s//\1/
16392 1.1 mrg q
16393 1.1 mrg }
16394 1.1 mrg /^X\(\/\).*/{
16395 1.1 mrg s//\1/
16396 1.1 mrg q
16397 1.1 mrg }
16398 1.1 mrg s/.*/./; q'`
16399 1.1 mrg test -d "$as_dir" && break
16400 1.1 mrg done
16401 1.1 mrg test -z "$as_dirs" || eval "mkdir $as_dirs"
16402 1.12 mrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16403 1.1 mrg
16404 1.1 mrg
16405 1.1 mrg } # as_fn_mkdir_p
16406 1.1 mrg if mkdir -p . 2>/dev/null; then
16407 1.1 mrg as_mkdir_p='mkdir -p "$as_dir"'
16408 1.1 mrg else
16409 1.1 mrg test -d ./-p && rmdir ./-p
16410 1.1 mrg as_mkdir_p=false
16411 1.1 mrg fi
16412 1.1 mrg
16413 1.12 mrg
16414 1.12 mrg # as_fn_executable_p FILE
16415 1.12 mrg # -----------------------
16416 1.12 mrg # Test if FILE is an executable regular file.
16417 1.12 mrg as_fn_executable_p ()
16418 1.12 mrg {
16419 1.12 mrg test -f "$1" && test -x "$1"
16420 1.12 mrg } # as_fn_executable_p
16421 1.12 mrg as_test_x='test -x'
16422 1.12 mrg as_executable_p=as_fn_executable_p
16423 1.1 mrg
16424 1.1 mrg # Sed expression to map a string onto a valid CPP name.
16425 1.1 mrg as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16426 1.1 mrg
16427 1.1 mrg # Sed expression to map a string onto a valid variable name.
16428 1.1 mrg as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16429 1.1 mrg
16430 1.1 mrg
16431 1.1 mrg exec 6>&1
16432 1.1 mrg ## ----------------------------------- ##
16433 1.1 mrg ## Main body of $CONFIG_STATUS script. ##
16434 1.1 mrg ## ----------------------------------- ##
16435 1.1 mrg _ASEOF
16436 1.1 mrg test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16437 1.1 mrg
16438 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16439 1.1 mrg # Save the log message, to keep $0 and so on meaningful, and to
16440 1.1 mrg # report actual input values of CONFIG_FILES etc. instead of their
16441 1.1 mrg # values after options handling.
16442 1.1 mrg ac_log="
16443 1.1 mrg This file was extended by $as_me, which was
16444 1.12 mrg generated by GNU Autoconf 2.69. Invocation command line was
16445 1.1 mrg
16446 1.1 mrg CONFIG_FILES = $CONFIG_FILES
16447 1.1 mrg CONFIG_HEADERS = $CONFIG_HEADERS
16448 1.1 mrg CONFIG_LINKS = $CONFIG_LINKS
16449 1.1 mrg CONFIG_COMMANDS = $CONFIG_COMMANDS
16450 1.1 mrg $ $0 $@
16451 1.1 mrg
16452 1.1 mrg on `(hostname || uname -n) 2>/dev/null | sed 1q`
16453 1.1 mrg "
16454 1.1 mrg
16455 1.1 mrg _ACEOF
16456 1.1 mrg
16457 1.1 mrg case $ac_config_files in *"
16458 1.1 mrg "*) set x $ac_config_files; shift; ac_config_files=$*;;
16459 1.1 mrg esac
16460 1.1 mrg
16461 1.1 mrg
16462 1.1 mrg
16463 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464 1.1 mrg # Files that config.status was made for.
16465 1.1 mrg config_files="$ac_config_files"
16466 1.1 mrg
16467 1.1 mrg _ACEOF
16468 1.1 mrg
16469 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16470 1.1 mrg ac_cs_usage="\
16471 1.1 mrg \`$as_me' instantiates files and other configuration actions
16472 1.1 mrg from templates according to the current configuration. Unless the files
16473 1.1 mrg and actions are specified as TAGs, all are instantiated by default.
16474 1.1 mrg
16475 1.1 mrg Usage: $0 [OPTION]... [TAG]...
16476 1.1 mrg
16477 1.1 mrg -h, --help print this help, then exit
16478 1.1 mrg -V, --version print version number and configuration settings, then exit
16479 1.12 mrg --config print configuration, then exit
16480 1.1 mrg -q, --quiet, --silent
16481 1.1 mrg do not print progress messages
16482 1.1 mrg -d, --debug don't remove temporary files
16483 1.1 mrg --recheck update $as_me by reconfiguring in the same conditions
16484 1.1 mrg --file=FILE[:TEMPLATE]
16485 1.1 mrg instantiate the configuration file FILE
16486 1.1 mrg
16487 1.1 mrg Configuration files:
16488 1.1 mrg $config_files
16489 1.1 mrg
16490 1.1 mrg Report bugs to the package provider."
16491 1.1 mrg
16492 1.1 mrg _ACEOF
16493 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16494 1.12 mrg ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16495 1.1 mrg ac_cs_version="\\
16496 1.1 mrg config.status
16497 1.12 mrg configured by $0, generated by GNU Autoconf 2.69,
16498 1.12 mrg with options \\"\$ac_cs_config\\"
16499 1.1 mrg
16500 1.12 mrg Copyright (C) 2012 Free Software Foundation, Inc.
16501 1.1 mrg This config.status script is free software; the Free Software Foundation
16502 1.1 mrg gives unlimited permission to copy, distribute and modify it."
16503 1.1 mrg
16504 1.1 mrg ac_pwd='$ac_pwd'
16505 1.1 mrg srcdir='$srcdir'
16506 1.1 mrg INSTALL='$INSTALL'
16507 1.1 mrg AWK='$AWK'
16508 1.1 mrg test -n "\$AWK" || AWK=awk
16509 1.1 mrg _ACEOF
16510 1.1 mrg
16511 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512 1.1 mrg # The default lists apply if the user does not specify any file.
16513 1.1 mrg ac_need_defaults=:
16514 1.1 mrg while test $# != 0
16515 1.1 mrg do
16516 1.1 mrg case $1 in
16517 1.12 mrg --*=?*)
16518 1.1 mrg ac_option=`expr "X$1" : 'X\([^=]*\)='`
16519 1.1 mrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16520 1.1 mrg ac_shift=:
16521 1.1 mrg ;;
16522 1.12 mrg --*=)
16523 1.12 mrg ac_option=`expr "X$1" : 'X\([^=]*\)='`
16524 1.12 mrg ac_optarg=
16525 1.12 mrg ac_shift=:
16526 1.12 mrg ;;
16527 1.1 mrg *)
16528 1.1 mrg ac_option=$1
16529 1.1 mrg ac_optarg=$2
16530 1.1 mrg ac_shift=shift
16531 1.1 mrg ;;
16532 1.1 mrg esac
16533 1.1 mrg
16534 1.1 mrg case $ac_option in
16535 1.1 mrg # Handling of the options.
16536 1.1 mrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16537 1.1 mrg ac_cs_recheck=: ;;
16538 1.1 mrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16539 1.1 mrg $as_echo "$ac_cs_version"; exit ;;
16540 1.12 mrg --config | --confi | --conf | --con | --co | --c )
16541 1.12 mrg $as_echo "$ac_cs_config"; exit ;;
16542 1.1 mrg --debug | --debu | --deb | --de | --d | -d )
16543 1.1 mrg debug=: ;;
16544 1.1 mrg --file | --fil | --fi | --f )
16545 1.1 mrg $ac_shift
16546 1.1 mrg case $ac_optarg in
16547 1.1 mrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16548 1.12 mrg '') as_fn_error $? "missing file argument" ;;
16549 1.1 mrg esac
16550 1.1 mrg as_fn_append CONFIG_FILES " '$ac_optarg'"
16551 1.1 mrg ac_need_defaults=false;;
16552 1.1 mrg --he | --h | --help | --hel | -h )
16553 1.1 mrg $as_echo "$ac_cs_usage"; exit ;;
16554 1.1 mrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16555 1.1 mrg | -silent | --silent | --silen | --sile | --sil | --si | --s)
16556 1.1 mrg ac_cs_silent=: ;;
16557 1.1 mrg
16558 1.1 mrg # This is an error.
16559 1.12 mrg -*) as_fn_error $? "unrecognized option: \`$1'
16560 1.1 mrg Try \`$0 --help' for more information." ;;
16561 1.1 mrg
16562 1.1 mrg *) as_fn_append ac_config_targets " $1"
16563 1.1 mrg ac_need_defaults=false ;;
16564 1.1 mrg
16565 1.1 mrg esac
16566 1.1 mrg shift
16567 1.1 mrg done
16568 1.1 mrg
16569 1.1 mrg ac_configure_extra_args=
16570 1.1 mrg
16571 1.1 mrg if $ac_cs_silent; then
16572 1.1 mrg exec 6>/dev/null
16573 1.1 mrg ac_configure_extra_args="$ac_configure_extra_args --silent"
16574 1.1 mrg fi
16575 1.1 mrg
16576 1.1 mrg _ACEOF
16577 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16578 1.1 mrg if \$ac_cs_recheck; then
16579 1.12 mrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16580 1.1 mrg shift
16581 1.1 mrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16582 1.1 mrg CONFIG_SHELL='$SHELL'
16583 1.1 mrg export CONFIG_SHELL
16584 1.1 mrg exec "\$@"
16585 1.1 mrg fi
16586 1.1 mrg
16587 1.1 mrg _ACEOF
16588 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16589 1.1 mrg exec 5>>config.log
16590 1.1 mrg {
16591 1.1 mrg echo
16592 1.1 mrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16593 1.1 mrg ## Running $as_me. ##
16594 1.1 mrg _ASBOX
16595 1.1 mrg $as_echo "$ac_log"
16596 1.1 mrg } >&5
16597 1.1 mrg
16598 1.1 mrg _ACEOF
16599 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16600 1.1 mrg #
16601 1.1 mrg # INIT-COMMANDS
16602 1.1 mrg #
16603 1.1 mrg extrasub_build="$extrasub_build"
16604 1.1 mrg extrasub_host="$extrasub_host"
16605 1.1 mrg extrasub_target="$extrasub_target"
16606 1.1 mrg
16607 1.1 mrg _ACEOF
16608 1.1 mrg
16609 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610 1.1 mrg
16611 1.1 mrg # Handling of arguments.
16612 1.1 mrg for ac_config_target in $ac_config_targets
16613 1.1 mrg do
16614 1.1 mrg case $ac_config_target in
16615 1.1 mrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16616 1.1 mrg
16617 1.12 mrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16618 1.1 mrg esac
16619 1.1 mrg done
16620 1.1 mrg
16621 1.1 mrg
16622 1.1 mrg # If the user did not use the arguments to specify the items to instantiate,
16623 1.1 mrg # then the envvar interface is used. Set only those that are not.
16624 1.1 mrg # We use the long form for the default assignment because of an extremely
16625 1.1 mrg # bizarre bug on SunOS 4.1.3.
16626 1.1 mrg if $ac_need_defaults; then
16627 1.1 mrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16628 1.1 mrg fi
16629 1.1 mrg
16630 1.1 mrg # Have a temporary directory for convenience. Make it in the build tree
16631 1.1 mrg # simply because there is no reason against having it here, and in addition,
16632 1.1 mrg # creating and moving files from /tmp can sometimes cause problems.
16633 1.1 mrg # Hook for its removal unless debugging.
16634 1.1 mrg # Note that there is a small window in which the directory will not be cleaned:
16635 1.1 mrg # after its creation but before its name has been assigned to `$tmp'.
16636 1.1 mrg $debug ||
16637 1.1 mrg {
16638 1.12 mrg tmp= ac_tmp=
16639 1.1 mrg trap 'exit_status=$?
16640 1.12 mrg : "${ac_tmp:=$tmp}"
16641 1.12 mrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16642 1.1 mrg ' 0
16643 1.1 mrg trap 'as_fn_exit 1' 1 2 13 15
16644 1.1 mrg }
16645 1.1 mrg # Create a (secure) tmp directory for tmp files.
16646 1.1 mrg
16647 1.1 mrg {
16648 1.1 mrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16649 1.12 mrg test -d "$tmp"
16650 1.1 mrg } ||
16651 1.1 mrg {
16652 1.1 mrg tmp=./conf$$-$RANDOM
16653 1.1 mrg (umask 077 && mkdir "$tmp")
16654 1.12 mrg } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16655 1.12 mrg ac_tmp=$tmp
16656 1.1 mrg
16657 1.1 mrg # Set up the scripts for CONFIG_FILES section.
16658 1.1 mrg # No need to generate them if there are no CONFIG_FILES.
16659 1.1 mrg # This happens for instance with `./config.status config.h'.
16660 1.1 mrg if test -n "$CONFIG_FILES"; then
16661 1.1 mrg
16662 1.1 mrg if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16663 1.1 mrg ac_cs_awk_getline=:
16664 1.1 mrg ac_cs_awk_pipe_init=
16665 1.1 mrg ac_cs_awk_read_file='
16666 1.1 mrg while ((getline aline < (F[key])) > 0)
16667 1.1 mrg print(aline)
16668 1.1 mrg close(F[key])'
16669 1.1 mrg ac_cs_awk_pipe_fini=
16670 1.1 mrg else
16671 1.1 mrg ac_cs_awk_getline=false
16672 1.1 mrg ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16673 1.1 mrg ac_cs_awk_read_file='
16674 1.1 mrg print "|#_!!_#|"
16675 1.1 mrg print "cat " F[key] " &&"
16676 1.1 mrg '$ac_cs_awk_pipe_init
16677 1.1 mrg # The final `:' finishes the AND list.
16678 1.1 mrg ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16679 1.1 mrg fi
16680 1.1 mrg ac_cr=`echo X | tr X '\015'`
16681 1.1 mrg # On cygwin, bash can eat \r inside `` if the user requested igncr.
16682 1.1 mrg # But we know of no other shell where ac_cr would be empty at this
16683 1.1 mrg # point, so we can use a bashism as a fallback.
16684 1.1 mrg if test "x$ac_cr" = x; then
16685 1.1 mrg eval ac_cr=\$\'\\r\'
16686 1.1 mrg fi
16687 1.1 mrg ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16688 1.1 mrg if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16689 1.12 mrg ac_cs_awk_cr='\\r'
16690 1.1 mrg else
16691 1.1 mrg ac_cs_awk_cr=$ac_cr
16692 1.1 mrg fi
16693 1.1 mrg
16694 1.12 mrg echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16695 1.1 mrg _ACEOF
16696 1.1 mrg
16697 1.1 mrg # Create commands to substitute file output variables.
16698 1.1 mrg {
16699 1.1 mrg echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16700 1.12 mrg echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16701 1.1 mrg echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16702 1.1 mrg echo "_ACAWK" &&
16703 1.1 mrg echo "_ACEOF"
16704 1.1 mrg } >conf$$files.sh &&
16705 1.1 mrg . ./conf$$files.sh ||
16706 1.12 mrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16707 1.1 mrg rm -f conf$$files.sh
16708 1.1 mrg
16709 1.1 mrg {
16710 1.1 mrg echo "cat >conf$$subs.awk <<_ACEOF" &&
16711 1.1 mrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16712 1.1 mrg echo "_ACEOF"
16713 1.1 mrg } >conf$$subs.sh ||
16714 1.12 mrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16715 1.12 mrg ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16716 1.1 mrg ac_delim='%!_!# '
16717 1.1 mrg for ac_last_try in false false false false false :; do
16718 1.1 mrg . ./conf$$subs.sh ||
16719 1.12 mrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16720 1.1 mrg
16721 1.1 mrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16722 1.1 mrg if test $ac_delim_n = $ac_delim_num; then
16723 1.1 mrg break
16724 1.1 mrg elif $ac_last_try; then
16725 1.12 mrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16726 1.1 mrg else
16727 1.1 mrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16728 1.1 mrg fi
16729 1.1 mrg done
16730 1.1 mrg rm -f conf$$subs.sh
16731 1.1 mrg
16732 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 1.12 mrg cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16734 1.1 mrg _ACEOF
16735 1.1 mrg sed -n '
16736 1.1 mrg h
16737 1.1 mrg s/^/S["/; s/!.*/"]=/
16738 1.1 mrg p
16739 1.1 mrg g
16740 1.1 mrg s/^[^!]*!//
16741 1.1 mrg :repl
16742 1.1 mrg t repl
16743 1.1 mrg s/'"$ac_delim"'$//
16744 1.1 mrg t delim
16745 1.1 mrg :nl
16746 1.1 mrg h
16747 1.12 mrg s/\(.\{148\}\)..*/\1/
16748 1.1 mrg t more1
16749 1.1 mrg s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16750 1.1 mrg p
16751 1.1 mrg n
16752 1.1 mrg b repl
16753 1.1 mrg :more1
16754 1.1 mrg s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16755 1.1 mrg p
16756 1.1 mrg g
16757 1.1 mrg s/.\{148\}//
16758 1.1 mrg t nl
16759 1.1 mrg :delim
16760 1.1 mrg h
16761 1.12 mrg s/\(.\{148\}\)..*/\1/
16762 1.1 mrg t more2
16763 1.1 mrg s/["\\]/\\&/g; s/^/"/; s/$/"/
16764 1.1 mrg p
16765 1.1 mrg b
16766 1.1 mrg :more2
16767 1.1 mrg s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16768 1.1 mrg p
16769 1.1 mrg g
16770 1.1 mrg s/.\{148\}//
16771 1.1 mrg t delim
16772 1.1 mrg ' <conf$$subs.awk | sed '
16773 1.1 mrg /^[^""]/{
16774 1.1 mrg N
16775 1.1 mrg s/\n//
16776 1.1 mrg }
16777 1.1 mrg ' >>$CONFIG_STATUS || ac_write_fail=1
16778 1.1 mrg rm -f conf$$subs.awk
16779 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 1.1 mrg _ACAWK
16781 1.12 mrg cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16782 1.1 mrg for (key in S) S_is_set[key] = 1
16783 1.1 mrg FS = ""
16784 1.1 mrg \$ac_cs_awk_pipe_init
16785 1.1 mrg }
16786 1.1 mrg {
16787 1.1 mrg line = $ 0
16788 1.1 mrg nfields = split(line, field, "@")
16789 1.1 mrg substed = 0
16790 1.1 mrg len = length(field[1])
16791 1.1 mrg for (i = 2; i < nfields; i++) {
16792 1.1 mrg key = field[i]
16793 1.1 mrg keylen = length(key)
16794 1.1 mrg if (S_is_set[key]) {
16795 1.1 mrg value = S[key]
16796 1.1 mrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16797 1.1 mrg len += length(value) + length(field[++i])
16798 1.1 mrg substed = 1
16799 1.1 mrg } else
16800 1.1 mrg len += 1 + keylen
16801 1.1 mrg }
16802 1.1 mrg if (nfields == 3 && !substed) {
16803 1.1 mrg key = field[2]
16804 1.1 mrg if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16805 1.1 mrg \$ac_cs_awk_read_file
16806 1.1 mrg next
16807 1.1 mrg }
16808 1.1 mrg }
16809 1.1 mrg print line
16810 1.1 mrg }
16811 1.1 mrg \$ac_cs_awk_pipe_fini
16812 1.1 mrg _ACAWK
16813 1.1 mrg _ACEOF
16814 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16815 1.1 mrg if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16816 1.1 mrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16817 1.1 mrg else
16818 1.1 mrg cat
16819 1.12 mrg fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16820 1.12 mrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16821 1.1 mrg _ACEOF
16822 1.1 mrg
16823 1.12 mrg # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16824 1.12 mrg # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16825 1.1 mrg # trailing colons and then remove the whole line if VPATH becomes empty
16826 1.1 mrg # (actually we leave an empty line to preserve line numbers).
16827 1.1 mrg if test "x$srcdir" = x.; then
16828 1.12 mrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16829 1.12 mrg h
16830 1.12 mrg s///
16831 1.12 mrg s/^/:/
16832 1.12 mrg s/[ ]*$/:/
16833 1.12 mrg s/:\$(srcdir):/:/g
16834 1.12 mrg s/:\${srcdir}:/:/g
16835 1.12 mrg s/:@srcdir@:/:/g
16836 1.12 mrg s/^:*//
16837 1.1 mrg s/:*$//
16838 1.12 mrg x
16839 1.12 mrg s/\(=[ ]*\).*/\1/
16840 1.12 mrg G
16841 1.12 mrg s/\n//
16842 1.1 mrg s/^[^=]*=[ ]*$//
16843 1.1 mrg }'
16844 1.1 mrg fi
16845 1.1 mrg
16846 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16847 1.1 mrg fi # test -n "$CONFIG_FILES"
16848 1.1 mrg
16849 1.1 mrg
16850 1.1 mrg eval set X " :F $CONFIG_FILES "
16851 1.1 mrg shift
16852 1.1 mrg for ac_tag
16853 1.1 mrg do
16854 1.1 mrg case $ac_tag in
16855 1.1 mrg :[FHLC]) ac_mode=$ac_tag; continue;;
16856 1.1 mrg esac
16857 1.1 mrg case $ac_mode$ac_tag in
16858 1.1 mrg :[FHL]*:*);;
16859 1.12 mrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16860 1.1 mrg :[FH]-) ac_tag=-:-;;
16861 1.1 mrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16862 1.1 mrg esac
16863 1.1 mrg ac_save_IFS=$IFS
16864 1.1 mrg IFS=:
16865 1.1 mrg set x $ac_tag
16866 1.1 mrg IFS=$ac_save_IFS
16867 1.1 mrg shift
16868 1.1 mrg ac_file=$1
16869 1.1 mrg shift
16870 1.1 mrg
16871 1.1 mrg case $ac_mode in
16872 1.1 mrg :L) ac_source=$1;;
16873 1.1 mrg :[FH])
16874 1.1 mrg ac_file_inputs=
16875 1.1 mrg for ac_f
16876 1.1 mrg do
16877 1.1 mrg case $ac_f in
16878 1.12 mrg -) ac_f="$ac_tmp/stdin";;
16879 1.1 mrg *) # Look for the file first in the build tree, then in the source tree
16880 1.1 mrg # (if the path is not absolute). The absolute path cannot be DOS-style,
16881 1.1 mrg # because $ac_f cannot contain `:'.
16882 1.1 mrg test -f "$ac_f" ||
16883 1.1 mrg case $ac_f in
16884 1.1 mrg [\\/$]*) false;;
16885 1.1 mrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16886 1.1 mrg esac ||
16887 1.12 mrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16888 1.1 mrg esac
16889 1.1 mrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16890 1.1 mrg as_fn_append ac_file_inputs " '$ac_f'"
16891 1.1 mrg done
16892 1.1 mrg
16893 1.1 mrg # Let's still pretend it is `configure' which instantiates (i.e., don't
16894 1.1 mrg # use $as_me), people would be surprised to read:
16895 1.1 mrg # /* config.h. Generated by config.status. */
16896 1.1 mrg configure_input='Generated from '`
16897 1.1 mrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16898 1.1 mrg `' by configure.'
16899 1.1 mrg if test x"$ac_file" != x-; then
16900 1.1 mrg configure_input="$ac_file. $configure_input"
16901 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16902 1.1 mrg $as_echo "$as_me: creating $ac_file" >&6;}
16903 1.1 mrg fi
16904 1.1 mrg # Neutralize special characters interpreted by sed in replacement strings.
16905 1.1 mrg case $configure_input in #(
16906 1.1 mrg *\&* | *\|* | *\\* )
16907 1.1 mrg ac_sed_conf_input=`$as_echo "$configure_input" |
16908 1.1 mrg sed 's/[\\\\&|]/\\\\&/g'`;; #(
16909 1.1 mrg *) ac_sed_conf_input=$configure_input;;
16910 1.1 mrg esac
16911 1.1 mrg
16912 1.1 mrg case $ac_tag in
16913 1.12 mrg *:-:* | *:-) cat >"$ac_tmp/stdin" \
16914 1.12 mrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16915 1.1 mrg esac
16916 1.1 mrg ;;
16917 1.1 mrg esac
16918 1.1 mrg
16919 1.1 mrg ac_dir=`$as_dirname -- "$ac_file" ||
16920 1.1 mrg $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 1.1 mrg X"$ac_file" : 'X\(//\)[^/]' \| \
16922 1.1 mrg X"$ac_file" : 'X\(//\)$' \| \
16923 1.1 mrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16924 1.1 mrg $as_echo X"$ac_file" |
16925 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16926 1.1 mrg s//\1/
16927 1.1 mrg q
16928 1.1 mrg }
16929 1.1 mrg /^X\(\/\/\)[^/].*/{
16930 1.1 mrg s//\1/
16931 1.1 mrg q
16932 1.1 mrg }
16933 1.1 mrg /^X\(\/\/\)$/{
16934 1.1 mrg s//\1/
16935 1.1 mrg q
16936 1.1 mrg }
16937 1.1 mrg /^X\(\/\).*/{
16938 1.1 mrg s//\1/
16939 1.1 mrg q
16940 1.1 mrg }
16941 1.1 mrg s/.*/./; q'`
16942 1.1 mrg as_dir="$ac_dir"; as_fn_mkdir_p
16943 1.1 mrg ac_builddir=.
16944 1.1 mrg
16945 1.1 mrg case "$ac_dir" in
16946 1.1 mrg .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16947 1.1 mrg *)
16948 1.1 mrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16949 1.1 mrg # A ".." for each directory in $ac_dir_suffix.
16950 1.1 mrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16951 1.1 mrg case $ac_top_builddir_sub in
16952 1.1 mrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16953 1.1 mrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16954 1.1 mrg esac ;;
16955 1.1 mrg esac
16956 1.1 mrg ac_abs_top_builddir=$ac_pwd
16957 1.1 mrg ac_abs_builddir=$ac_pwd$ac_dir_suffix
16958 1.1 mrg # for backward compatibility:
16959 1.1 mrg ac_top_builddir=$ac_top_build_prefix
16960 1.1 mrg
16961 1.1 mrg case $srcdir in
16962 1.1 mrg .) # We are building in place.
16963 1.1 mrg ac_srcdir=.
16964 1.1 mrg ac_top_srcdir=$ac_top_builddir_sub
16965 1.1 mrg ac_abs_top_srcdir=$ac_pwd ;;
16966 1.1 mrg [\\/]* | ?:[\\/]* ) # Absolute name.
16967 1.1 mrg ac_srcdir=$srcdir$ac_dir_suffix;
16968 1.1 mrg ac_top_srcdir=$srcdir
16969 1.1 mrg ac_abs_top_srcdir=$srcdir ;;
16970 1.1 mrg *) # Relative name.
16971 1.1 mrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16972 1.1 mrg ac_top_srcdir=$ac_top_build_prefix$srcdir
16973 1.1 mrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16974 1.1 mrg esac
16975 1.1 mrg ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16976 1.1 mrg
16977 1.1 mrg
16978 1.1 mrg case $ac_mode in
16979 1.1 mrg :F)
16980 1.1 mrg #
16981 1.1 mrg # CONFIG_FILE
16982 1.1 mrg #
16983 1.1 mrg
16984 1.1 mrg case $INSTALL in
16985 1.1 mrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16986 1.1 mrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16987 1.1 mrg esac
16988 1.1 mrg _ACEOF
16989 1.1 mrg
16990 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16991 1.1 mrg # If the template does not know about datarootdir, expand it.
16992 1.1 mrg # FIXME: This hack should be removed a few years after 2.60.
16993 1.1 mrg ac_datarootdir_hack=; ac_datarootdir_seen=
16994 1.1 mrg ac_sed_dataroot='
16995 1.1 mrg /datarootdir/ {
16996 1.1 mrg p
16997 1.1 mrg q
16998 1.1 mrg }
16999 1.1 mrg /@datadir@/p
17000 1.1 mrg /@docdir@/p
17001 1.1 mrg /@infodir@/p
17002 1.1 mrg /@localedir@/p
17003 1.1 mrg /@mandir@/p'
17004 1.1 mrg case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17005 1.1 mrg *datarootdir*) ac_datarootdir_seen=yes;;
17006 1.1 mrg *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17007 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17008 1.1 mrg $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17009 1.1 mrg _ACEOF
17010 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 1.1 mrg ac_datarootdir_hack='
17012 1.1 mrg s&@datadir@&$datadir&g
17013 1.1 mrg s&@docdir@&$docdir&g
17014 1.1 mrg s&@infodir@&$infodir&g
17015 1.1 mrg s&@localedir@&$localedir&g
17016 1.1 mrg s&@mandir@&$mandir&g
17017 1.1 mrg s&\\\${datarootdir}&$datarootdir&g' ;;
17018 1.1 mrg esac
17019 1.1 mrg _ACEOF
17020 1.1 mrg
17021 1.1 mrg # Neutralize VPATH when `$srcdir' = `.'.
17022 1.1 mrg # Shell code in configure.ac might set extrasub.
17023 1.1 mrg # FIXME: do we really want to maintain this feature?
17024 1.1 mrg cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 1.1 mrg ac_sed_extra="$ac_vpsub
17026 1.1 mrg $extrasub
17027 1.1 mrg _ACEOF
17028 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17029 1.1 mrg :t
17030 1.1 mrg /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17031 1.1 mrg s|@configure_input@|$ac_sed_conf_input|;t t
17032 1.1 mrg s&@top_builddir@&$ac_top_builddir_sub&;t t
17033 1.1 mrg s&@top_build_prefix@&$ac_top_build_prefix&;t t
17034 1.1 mrg s&@srcdir@&$ac_srcdir&;t t
17035 1.1 mrg s&@abs_srcdir@&$ac_abs_srcdir&;t t
17036 1.1 mrg s&@top_srcdir@&$ac_top_srcdir&;t t
17037 1.1 mrg s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17038 1.1 mrg s&@builddir@&$ac_builddir&;t t
17039 1.1 mrg s&@abs_builddir@&$ac_abs_builddir&;t t
17040 1.1 mrg s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17041 1.1 mrg s&@INSTALL@&$ac_INSTALL&;t t
17042 1.1 mrg $ac_datarootdir_hack
17043 1.1 mrg "
17044 1.1 mrg eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17045 1.1 mrg if $ac_cs_awk_getline; then
17046 1.12 mrg $AWK -f "$ac_tmp/subs.awk"
17047 1.1 mrg else
17048 1.12 mrg $AWK -f "$ac_tmp/subs.awk" | $SHELL
17049 1.12 mrg fi \
17050 1.12 mrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17051 1.1 mrg
17052 1.1 mrg test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17053 1.12 mrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17054 1.12 mrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17055 1.12 mrg "$ac_tmp/out"`; test -z "$ac_out"; } &&
17056 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17057 1.12 mrg which seems to be undefined. Please make sure it is defined" >&5
17058 1.1 mrg $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17059 1.12 mrg which seems to be undefined. Please make sure it is defined" >&2;}
17060 1.1 mrg
17061 1.12 mrg rm -f "$ac_tmp/stdin"
17062 1.1 mrg case $ac_file in
17063 1.12 mrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17064 1.12 mrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17065 1.1 mrg esac \
17066 1.12 mrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17067 1.1 mrg ;;
17068 1.1 mrg
17069 1.1 mrg
17070 1.1 mrg
17071 1.1 mrg esac
17072 1.1 mrg
17073 1.1 mrg
17074 1.1 mrg case $ac_file$ac_mode in
17075 1.1 mrg "Makefile":F) sed "$extrasub_build" Makefile |
17076 1.1 mrg sed "$extrasub_host" |
17077 1.1 mrg sed "$extrasub_target" > mf$$
17078 1.1 mrg mv -f mf$$ Makefile ;;
17079 1.1 mrg
17080 1.1 mrg esac
17081 1.1 mrg done # for ac_tag
17082 1.1 mrg
17083 1.1 mrg
17084 1.1 mrg as_fn_exit 0
17085 1.1 mrg _ACEOF
17086 1.1 mrg ac_clean_files=$ac_clean_files_save
17087 1.1 mrg
17088 1.1 mrg test $ac_write_fail = 0 ||
17089 1.12 mrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17090 1.1 mrg
17091 1.1 mrg
17092 1.1 mrg # configure is writing to config.log, and then calls config.status.
17093 1.1 mrg # config.status does its own redirection, appending to config.log.
17094 1.1 mrg # Unfortunately, on DOS this fails, as config.log is still kept open
17095 1.1 mrg # by configure, so config.status won't be able to write to it; its
17096 1.1 mrg # output is simply discarded. So we exec the FD to /dev/null,
17097 1.1 mrg # effectively closing config.log, so it can be properly (re)opened and
17098 1.1 mrg # appended to by config.status. When coming back to configure, we
17099 1.1 mrg # need to make the FD available again.
17100 1.1 mrg if test "$no_create" != yes; then
17101 1.1 mrg ac_cs_success=:
17102 1.1 mrg ac_config_status_args=
17103 1.1 mrg test "$silent" = yes &&
17104 1.1 mrg ac_config_status_args="$ac_config_status_args --quiet"
17105 1.1 mrg exec 5>/dev/null
17106 1.1 mrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17107 1.1 mrg exec 5>>config.log
17108 1.1 mrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17109 1.1 mrg # would make configure fail if this is the last instruction.
17110 1.12 mrg $ac_cs_success || as_fn_exit 1
17111 1.1 mrg fi
17112 1.1 mrg if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17113 1.1 mrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17114 1.1 mrg $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17115 1.1 mrg fi
17116 1.1 mrg
17117