]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.64. | |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
121 | PS1='$ ' | |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
126 | LC_ALL=C | |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
184 | do | |
185 | IFS=$as_save_IFS | |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
228 | else | |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
233 | fi | |
234 | exit 1 | |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
375 | as_expr=expr | |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
381 | as_basename=basename | |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
391 | ||
392 | as_me=`$as_basename -- "$0" || | |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
394 | X"$0" : 'X\(//\)$' \| \ | |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
410 | ||
411 | # Avoid depending upon Character Ranges. | |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
418 | ||
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
428 | sed ' | |
429 | s/[$]LINENO.*/&-/ | |
430 | t lineno | |
431 | b | |
432 | :lineno | |
433 | N | |
434 | :loop | |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
436 | t loop | |
437 | s/-\n.*// | |
438 | ' >$as_me.lineno && | |
439 | chmod +x "$as_me.lineno" || | |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
441 | ||
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
444 | # original and so on. Autoconf is especially sensitive to this). | |
445 | . "./$as_me.lineno" | |
446 | # Exit status is that of the last command. | |
447 | exit | |
448 | } | |
449 | ||
450 | ECHO_C= ECHO_N= ECHO_T= | |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
461 | esac | |
462 | ||
463 | rm -f conf$$ conf$$.exe conf$$.file | |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
466 | else | |
467 | rm -f conf$$.dir | |
468 | mkdir conf$$.dir 2>/dev/null | |
469 | fi | |
470 | if (echo >conf$$.file) 2>/dev/null; then | |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
472 | as_ln_s='ln -s' | |
473 | # ... but there are two gotchas: | |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
483 | fi | |
484 | else | |
485 | as_ln_s='cp -p' | |
486 | fi | |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
488 | rmdir conf$$.dir 2>/dev/null | |
489 | ||
490 | if mkdir -p . 2>/dev/null; then | |
491 | as_mkdir_p='mkdir -p "$as_dir"' | |
492 | else | |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
497 | if test -x / >/dev/null 2>&1; then | |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
519 | ||
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
527 | exec 7<&0 </dev/null 6>&1 | |
528 | ||
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
534 | # | |
535 | # Initializations. | |
536 | # | |
537 | ac_default_prefix=/usr/local | |
538 | ac_clean_files= | |
539 | ac_config_libobj_dir=. | |
540 | LIBOBJS= | |
541 | cross_compiling=no | |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
545 | ||
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
552 | PACKAGE_URL= | |
553 | ||
554 | ac_unique_file="move-if-change" | |
555 | enable_option_checking=no | |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
559 | stage2_werror_flag | |
560 | stage1_checking | |
561 | stage1_cflags | |
562 | MAINT | |
563 | MAINTAINER_MODE_FALSE | |
564 | MAINTAINER_MODE_TRUE | |
565 | COMPILER_NM_FOR_TARGET | |
566 | COMPILER_LD_FOR_TARGET | |
567 | COMPILER_AS_FOR_TARGET | |
568 | FLAGS_FOR_TARGET | |
569 | RAW_CXX_FOR_TARGET | |
570 | WINDMC_FOR_TARGET | |
571 | WINDRES_FOR_TARGET | |
572 | STRIP_FOR_TARGET | |
573 | READELF_FOR_TARGET | |
574 | RANLIB_FOR_TARGET | |
575 | OBJDUMP_FOR_TARGET | |
576 | NM_FOR_TARGET | |
577 | LIPO_FOR_TARGET | |
578 | LD_FOR_TARGET | |
579 | DLLTOOL_FOR_TARGET | |
580 | AS_FOR_TARGET | |
581 | AR_FOR_TARGET | |
582 | GOC_FOR_TARGET | |
583 | GFORTRAN_FOR_TARGET | |
584 | GCJ_FOR_TARGET | |
585 | GCC_FOR_TARGET | |
586 | CXX_FOR_TARGET | |
587 | CC_FOR_TARGET | |
588 | READELF | |
589 | OBJDUMP | |
590 | OBJCOPY | |
591 | WINDMC | |
592 | WINDRES | |
593 | STRIP | |
594 | RANLIB | |
595 | NM | |
596 | LIPO | |
597 | LD | |
598 | DLLTOOL | |
599 | AS | |
600 | AR | |
601 | RUNTEST | |
602 | EXPECT | |
603 | MAKEINFO | |
604 | FLEX | |
605 | LEX | |
606 | M4 | |
607 | BISON | |
608 | YACC | |
609 | WINDRES_FOR_BUILD | |
610 | WINDMC_FOR_BUILD | |
611 | RANLIB_FOR_BUILD | |
612 | NM_FOR_BUILD | |
613 | LD_FOR_BUILD | |
614 | LDFLAGS_FOR_BUILD | |
615 | GOC_FOR_BUILD | |
616 | GFORTRAN_FOR_BUILD | |
617 | GCJ_FOR_BUILD | |
618 | DLLTOOL_FOR_BUILD | |
619 | CXX_FOR_BUILD | |
620 | CXXFLAGS_FOR_BUILD | |
621 | CFLAGS_FOR_BUILD | |
622 | CC_FOR_BUILD | |
623 | AS_FOR_BUILD | |
624 | AR_FOR_BUILD | |
625 | target_configdirs | |
626 | configdirs | |
627 | build_configdirs | |
628 | INSTALL_GDB_TK | |
629 | GDB_TK | |
630 | CONFIGURE_GDB_TK | |
631 | build_tooldir | |
632 | tooldir | |
633 | GCC_SHLIB_SUBDIR | |
634 | RPATH_ENVVAR | |
635 | target_configargs | |
636 | host_configargs | |
637 | build_configargs | |
638 | BUILD_CONFIG | |
639 | LDFLAGS_FOR_TARGET | |
640 | CXXFLAGS_FOR_TARGET | |
641 | CFLAGS_FOR_TARGET | |
642 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
643 | SYSROOT_CFLAGS_FOR_TARGET | |
644 | stage1_languages | |
645 | extra_host_libiberty_configure_flags | |
646 | clooginc | |
647 | clooglibs | |
648 | islinc | |
649 | isllibs | |
650 | poststage1_ldflags | |
651 | poststage1_libs | |
652 | stage1_libs | |
653 | stage1_ldflags | |
654 | extra_isl_gmp_configure_flags | |
655 | extra_mpc_mpfr_configure_flags | |
656 | extra_mpc_gmp_configure_flags | |
657 | extra_mpfr_configure_flags | |
658 | gmpinc | |
659 | gmplibs | |
660 | do_compare | |
661 | GNATMAKE | |
662 | GNATBIND | |
663 | ac_ct_CXX | |
664 | CXXFLAGS | |
665 | CXX | |
666 | OBJEXT | |
667 | EXEEXT | |
668 | ac_ct_CC | |
669 | CPPFLAGS | |
670 | LDFLAGS | |
671 | CFLAGS | |
672 | CC | |
673 | EXTRA_CONFIGARGS_LIBJAVA | |
674 | target_subdir | |
675 | host_subdir | |
676 | build_subdir | |
677 | build_libsubdir | |
678 | AWK | |
679 | SED | |
680 | LN_S | |
681 | LN | |
682 | INSTALL_DATA | |
683 | INSTALL_SCRIPT | |
684 | INSTALL_PROGRAM | |
685 | target_os | |
686 | target_vendor | |
687 | target_cpu | |
688 | target | |
689 | host_os | |
690 | host_vendor | |
691 | host_cpu | |
692 | host | |
693 | target_noncanonical | |
694 | host_noncanonical | |
695 | build_noncanonical | |
696 | build_os | |
697 | build_vendor | |
698 | build_cpu | |
699 | build | |
700 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
701 | target_alias | |
702 | host_alias | |
703 | build_alias | |
704 | LIBS | |
705 | ECHO_T | |
706 | ECHO_N | |
707 | ECHO_C | |
708 | DEFS | |
709 | mandir | |
710 | localedir | |
711 | libdir | |
712 | psdir | |
713 | pdfdir | |
714 | dvidir | |
715 | htmldir | |
716 | infodir | |
717 | docdir | |
718 | oldincludedir | |
719 | includedir | |
720 | localstatedir | |
721 | sharedstatedir | |
722 | sysconfdir | |
723 | datadir | |
724 | datarootdir | |
725 | libexecdir | |
726 | sbindir | |
727 | bindir | |
728 | program_transform_name | |
729 | prefix | |
730 | exec_prefix | |
731 | PACKAGE_URL | |
732 | PACKAGE_BUGREPORT | |
733 | PACKAGE_STRING | |
734 | PACKAGE_VERSION | |
735 | PACKAGE_TARNAME | |
736 | PACKAGE_NAME | |
737 | PATH_SEPARATOR | |
738 | SHELL' | |
739 | ac_subst_files='serialization_dependencies | |
740 | host_makefile_frag | |
741 | target_makefile_frag | |
742 | alphaieee_frag | |
743 | ospace_frag' | |
744 | ac_user_opts=' | |
745 | enable_option_checking | |
746 | with_build_libsubdir | |
747 | enable_gold | |
748 | enable_ld | |
749 | enable_libquadmath | |
750 | enable_libquadmath_support | |
751 | enable_libada | |
752 | enable_libssp | |
753 | enable_static_libjava | |
754 | enable_bootstrap | |
755 | with_mpc | |
756 | with_mpc_include | |
757 | with_mpc_lib | |
758 | with_mpfr_dir | |
759 | with_mpfr | |
760 | with_mpfr_include | |
761 | with_mpfr_lib | |
762 | with_gmp_dir | |
763 | with_gmp | |
764 | with_gmp_include | |
765 | with_gmp_lib | |
766 | with_host_libstdcxx | |
767 | with_stage1_ldflags | |
768 | with_stage1_libs | |
769 | with_boot_libs | |
770 | with_boot_ldflags | |
771 | with_isl | |
772 | with_isl_include | |
773 | with_isl_lib | |
774 | enable_isl_version_check | |
775 | with_cloog | |
776 | with_cloog_include | |
777 | with_cloog_lib | |
778 | enable_cloog_version_check | |
779 | enable_lto | |
780 | enable_stage1_languages | |
781 | enable_objc_gc | |
782 | with_build_sysroot | |
783 | with_debug_prefix_map | |
784 | with_build_config | |
785 | enable_serial_configure | |
786 | with_build_time_tools | |
787 | enable_maintainer_mode | |
788 | enable_stage1_checking | |
789 | enable_werror | |
790 | ' | |
791 | ac_precious_vars='build_alias | |
792 | host_alias | |
793 | target_alias | |
794 | CC | |
795 | CFLAGS | |
796 | LDFLAGS | |
797 | LIBS | |
798 | CPPFLAGS | |
799 | CXX | |
800 | CXXFLAGS | |
801 | CCC | |
802 | build_configargs | |
803 | host_configargs | |
804 | target_configargs | |
805 | AR | |
806 | AS | |
807 | DLLTOOL | |
808 | LD | |
809 | LIPO | |
810 | NM | |
811 | RANLIB | |
812 | STRIP | |
813 | WINDRES | |
814 | WINDMC | |
815 | OBJCOPY | |
816 | OBJDUMP | |
817 | READELF | |
818 | CC_FOR_TARGET | |
819 | CXX_FOR_TARGET | |
820 | GCC_FOR_TARGET | |
821 | GCJ_FOR_TARGET | |
822 | GFORTRAN_FOR_TARGET | |
823 | GOC_FOR_TARGET | |
824 | AR_FOR_TARGET | |
825 | AS_FOR_TARGET | |
826 | DLLTOOL_FOR_TARGET | |
827 | LD_FOR_TARGET | |
828 | LIPO_FOR_TARGET | |
829 | NM_FOR_TARGET | |
830 | OBJDUMP_FOR_TARGET | |
831 | RANLIB_FOR_TARGET | |
832 | READELF_FOR_TARGET | |
833 | STRIP_FOR_TARGET | |
834 | WINDRES_FOR_TARGET | |
835 | WINDMC_FOR_TARGET' | |
836 | ||
837 | ||
838 | # Initialize some variables set by options. | |
839 | ac_init_help= | |
840 | ac_init_version=false | |
841 | ac_unrecognized_opts= | |
842 | ac_unrecognized_sep= | |
843 | # The variables have the same names as the options, with | |
844 | # dashes changed to underlines. | |
845 | cache_file=/dev/null | |
846 | exec_prefix=NONE | |
847 | no_create= | |
848 | no_recursion= | |
849 | prefix=NONE | |
850 | program_prefix=NONE | |
851 | program_suffix=NONE | |
852 | program_transform_name=s,x,x, | |
853 | silent= | |
854 | site= | |
855 | srcdir= | |
856 | verbose= | |
857 | x_includes=NONE | |
858 | x_libraries=NONE | |
859 | ||
860 | # Installation directory options. | |
861 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
862 | # and all the variables that are supposed to be based on exec_prefix | |
863 | # by default will actually change. | |
864 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
865 | # (The list follows the same order as the GNU Coding Standards.) | |
866 | bindir='${exec_prefix}/bin' | |
867 | sbindir='${exec_prefix}/sbin' | |
868 | libexecdir='${exec_prefix}/libexec' | |
869 | datarootdir='${prefix}/share' | |
870 | datadir='${datarootdir}' | |
871 | sysconfdir='${prefix}/etc' | |
872 | sharedstatedir='${prefix}/com' | |
873 | localstatedir='${prefix}/var' | |
874 | includedir='${prefix}/include' | |
875 | oldincludedir='/usr/include' | |
876 | docdir='${datarootdir}/doc/${PACKAGE}' | |
877 | infodir='${datarootdir}/info' | |
878 | htmldir='${docdir}' | |
879 | dvidir='${docdir}' | |
880 | pdfdir='${docdir}' | |
881 | psdir='${docdir}' | |
882 | libdir='${exec_prefix}/lib' | |
883 | localedir='${datarootdir}/locale' | |
884 | mandir='${datarootdir}/man' | |
885 | ||
886 | ac_prev= | |
887 | ac_dashdash= | |
888 | for ac_option | |
889 | do | |
890 | # If the previous option needs an argument, assign it. | |
891 | if test -n "$ac_prev"; then | |
892 | eval $ac_prev=\$ac_option | |
893 | ac_prev= | |
894 | continue | |
895 | fi | |
896 | ||
897 | case $ac_option in | |
898 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
899 | *) ac_optarg=yes ;; | |
900 | esac | |
901 | ||
902 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
903 | ||
904 | case $ac_dashdash$ac_option in | |
905 | --) | |
906 | ac_dashdash=yes ;; | |
907 | ||
908 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
909 | ac_prev=bindir ;; | |
910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
911 | bindir=$ac_optarg ;; | |
912 | ||
913 | -build | --build | --buil | --bui | --bu) | |
914 | ac_prev=build_alias ;; | |
915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
916 | build_alias=$ac_optarg ;; | |
917 | ||
918 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
920 | ac_prev=cache_file ;; | |
921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
923 | cache_file=$ac_optarg ;; | |
924 | ||
925 | --config-cache | -C) | |
926 | cache_file=config.cache ;; | |
927 | ||
928 | -datadir | --datadir | --datadi | --datad) | |
929 | ac_prev=datadir ;; | |
930 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
931 | datadir=$ac_optarg ;; | |
932 | ||
933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
934 | | --dataroo | --dataro | --datar) | |
935 | ac_prev=datarootdir ;; | |
936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
938 | datarootdir=$ac_optarg ;; | |
939 | ||
940 | -disable-* | --disable-*) | |
941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
942 | # Reject names that are not valid shell variable names. | |
943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
944 | as_fn_error "invalid feature name: $ac_useropt" | |
945 | ac_useropt_orig=$ac_useropt | |
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
947 | case $ac_user_opts in | |
948 | *" | |
949 | "enable_$ac_useropt" | |
950 | "*) ;; | |
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
952 | ac_unrecognized_sep=', ';; | |
953 | esac | |
954 | eval enable_$ac_useropt=no ;; | |
955 | ||
956 | -docdir | --docdir | --docdi | --doc | --do) | |
957 | ac_prev=docdir ;; | |
958 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
959 | docdir=$ac_optarg ;; | |
960 | ||
961 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
962 | ac_prev=dvidir ;; | |
963 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
964 | dvidir=$ac_optarg ;; | |
965 | ||
966 | -enable-* | --enable-*) | |
967 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
968 | # Reject names that are not valid shell variable names. | |
969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
970 | as_fn_error "invalid feature name: $ac_useropt" | |
971 | ac_useropt_orig=$ac_useropt | |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
979 | esac | |
980 | eval enable_$ac_useropt=\$ac_optarg ;; | |
981 | ||
982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
984 | | --exec | --exe | --ex) | |
985 | ac_prev=exec_prefix ;; | |
986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
988 | | --exec=* | --exe=* | --ex=*) | |
989 | exec_prefix=$ac_optarg ;; | |
990 | ||
991 | -gas | --gas | --ga | --g) | |
992 | # Obsolete; use --with-gas. | |
993 | with_gas=yes ;; | |
994 | ||
995 | -help | --help | --hel | --he | -h) | |
996 | ac_init_help=long ;; | |
997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
998 | ac_init_help=recursive ;; | |
999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1000 | ac_init_help=short ;; | |
1001 | ||
1002 | -host | --host | --hos | --ho) | |
1003 | ac_prev=host_alias ;; | |
1004 | -host=* | --host=* | --hos=* | --ho=*) | |
1005 | host_alias=$ac_optarg ;; | |
1006 | ||
1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1008 | ac_prev=htmldir ;; | |
1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1010 | | --ht=*) | |
1011 | htmldir=$ac_optarg ;; | |
1012 | ||
1013 | -includedir | --includedir | --includedi | --included | --include \ | |
1014 | | --includ | --inclu | --incl | --inc) | |
1015 | ac_prev=includedir ;; | |
1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1018 | includedir=$ac_optarg ;; | |
1019 | ||
1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1021 | ac_prev=infodir ;; | |
1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1023 | infodir=$ac_optarg ;; | |
1024 | ||
1025 | -libdir | --libdir | --libdi | --libd) | |
1026 | ac_prev=libdir ;; | |
1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1028 | libdir=$ac_optarg ;; | |
1029 | ||
1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1031 | | --libexe | --libex | --libe) | |
1032 | ac_prev=libexecdir ;; | |
1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1034 | | --libexe=* | --libex=* | --libe=*) | |
1035 | libexecdir=$ac_optarg ;; | |
1036 | ||
1037 | -localedir | --localedir | --localedi | --localed | --locale) | |
1038 | ac_prev=localedir ;; | |
1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1040 | localedir=$ac_optarg ;; | |
1041 | ||
1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1043 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1044 | ac_prev=localstatedir ;; | |
1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1047 | localstatedir=$ac_optarg ;; | |
1048 | ||
1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1050 | ac_prev=mandir ;; | |
1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1052 | mandir=$ac_optarg ;; | |
1053 | ||
1054 | -nfp | --nfp | --nf) | |
1055 | # Obsolete; use --without-fp. | |
1056 | with_fp=no ;; | |
1057 | ||
1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1059 | | --no-cr | --no-c | -n) | |
1060 | no_create=yes ;; | |
1061 | ||
1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1064 | no_recursion=yes ;; | |
1065 | ||
1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1068 | | --oldin | --oldi | --old | --ol | --o) | |
1069 | ac_prev=oldincludedir ;; | |
1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1073 | oldincludedir=$ac_optarg ;; | |
1074 | ||
1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1076 | ac_prev=prefix ;; | |
1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1078 | prefix=$ac_optarg ;; | |
1079 | ||
1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1081 | | --program-pre | --program-pr | --program-p) | |
1082 | ac_prev=program_prefix ;; | |
1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1085 | program_prefix=$ac_optarg ;; | |
1086 | ||
1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1088 | | --program-suf | --program-su | --program-s) | |
1089 | ac_prev=program_suffix ;; | |
1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1092 | program_suffix=$ac_optarg ;; | |
1093 | ||
1094 | -program-transform-name | --program-transform-name \ | |
1095 | | --program-transform-nam | --program-transform-na \ | |
1096 | | --program-transform-n | --program-transform- \ | |
1097 | | --program-transform | --program-transfor \ | |
1098 | | --program-transfo | --program-transf \ | |
1099 | | --program-trans | --program-tran \ | |
1100 | | --progr-tra | --program-tr | --program-t) | |
1101 | ac_prev=program_transform_name ;; | |
1102 | -program-transform-name=* | --program-transform-name=* \ | |
1103 | | --program-transform-nam=* | --program-transform-na=* \ | |
1104 | | --program-transform-n=* | --program-transform-=* \ | |
1105 | | --program-transform=* | --program-transfor=* \ | |
1106 | | --program-transfo=* | --program-transf=* \ | |
1107 | | --program-trans=* | --program-tran=* \ | |
1108 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1109 | program_transform_name=$ac_optarg ;; | |
1110 | ||
1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1112 | ac_prev=pdfdir ;; | |
1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1114 | pdfdir=$ac_optarg ;; | |
1115 | ||
1116 | -psdir | --psdir | --psdi | --psd | --ps) | |
1117 | ac_prev=psdir ;; | |
1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1119 | psdir=$ac_optarg ;; | |
1120 | ||
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1122 | | -silent | --silent | --silen | --sile | --sil) | |
1123 | silent=yes ;; | |
1124 | ||
1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1126 | ac_prev=sbindir ;; | |
1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1128 | | --sbi=* | --sb=*) | |
1129 | sbindir=$ac_optarg ;; | |
1130 | ||
1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1133 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1134 | | --sha | --sh) | |
1135 | ac_prev=sharedstatedir ;; | |
1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1139 | | --sha=* | --sh=*) | |
1140 | sharedstatedir=$ac_optarg ;; | |
1141 | ||
1142 | -site | --site | --sit) | |
1143 | ac_prev=site ;; | |
1144 | -site=* | --site=* | --sit=*) | |
1145 | site=$ac_optarg ;; | |
1146 | ||
1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1148 | ac_prev=srcdir ;; | |
1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1150 | srcdir=$ac_optarg ;; | |
1151 | ||
1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1153 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1154 | ac_prev=sysconfdir ;; | |
1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1157 | sysconfdir=$ac_optarg ;; | |
1158 | ||
1159 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1160 | ac_prev=target_alias ;; | |
1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1162 | target_alias=$ac_optarg ;; | |
1163 | ||
1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1165 | verbose=yes ;; | |
1166 | ||
1167 | -version | --version | --versio | --versi | --vers | -V) | |
1168 | ac_init_version=: ;; | |
1169 | ||
1170 | -with-* | --with-*) | |
1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1172 | # Reject names that are not valid shell variable names. | |
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1174 | as_fn_error "invalid package name: $ac_useropt" | |
1175 | ac_useropt_orig=$ac_useropt | |
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1177 | case $ac_user_opts in | |
1178 | *" | |
1179 | "with_$ac_useropt" | |
1180 | "*) ;; | |
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1182 | ac_unrecognized_sep=', ';; | |
1183 | esac | |
1184 | eval with_$ac_useropt=\$ac_optarg ;; | |
1185 | ||
1186 | -without-* | --without-*) | |
1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1188 | # Reject names that are not valid shell variable names. | |
1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1190 | as_fn_error "invalid package name: $ac_useropt" | |
1191 | ac_useropt_orig=$ac_useropt | |
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1193 | case $ac_user_opts in | |
1194 | *" | |
1195 | "with_$ac_useropt" | |
1196 | "*) ;; | |
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1198 | ac_unrecognized_sep=', ';; | |
1199 | esac | |
1200 | eval with_$ac_useropt=no ;; | |
1201 | ||
1202 | --x) | |
1203 | # Obsolete; use --with-x. | |
1204 | with_x=yes ;; | |
1205 | ||
1206 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1207 | | --x-incl | --x-inc | --x-in | --x-i) | |
1208 | ac_prev=x_includes ;; | |
1209 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1210 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1211 | x_includes=$ac_optarg ;; | |
1212 | ||
1213 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1214 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1215 | ac_prev=x_libraries ;; | |
1216 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1217 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1218 | x_libraries=$ac_optarg ;; | |
1219 | ||
1220 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1221 | Try \`$0 --help' for more information." | |
1222 | ;; | |
1223 | ||
1224 | *=*) | |
1225 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1226 | # Reject names that are not valid shell variable names. | |
1227 | case $ac_envvar in #( | |
1228 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1229 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1230 | esac | |
1231 | eval $ac_envvar=\$ac_optarg | |
1232 | export $ac_envvar ;; | |
1233 | ||
1234 | *) | |
1235 | # FIXME: should be removed in autoconf 3.0. | |
1236 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1237 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1238 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1239 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1240 | ;; | |
1241 | ||
1242 | esac | |
1243 | done | |
1244 | ||
1245 | if test -n "$ac_prev"; then | |
1246 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1247 | as_fn_error "missing argument to $ac_option" | |
1248 | fi | |
1249 | ||
1250 | if test -n "$ac_unrecognized_opts"; then | |
1251 | case $enable_option_checking in | |
1252 | no) ;; | |
1253 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1254 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1255 | esac | |
1256 | fi | |
1257 | ||
1258 | # Check all directory arguments for consistency. | |
1259 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1260 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1261 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1262 | libdir localedir mandir | |
1263 | do | |
1264 | eval ac_val=\$$ac_var | |
1265 | # Remove trailing slashes. | |
1266 | case $ac_val in | |
1267 | */ ) | |
1268 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1269 | eval $ac_var=\$ac_val;; | |
1270 | esac | |
1271 | # Be sure to have absolute directory names. | |
1272 | case $ac_val in | |
1273 | [\\/$]* | ?:[\\/]* ) continue;; | |
1274 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1275 | esac | |
1276 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1277 | done | |
1278 | ||
1279 | # There might be people who depend on the old broken behavior: `$host' | |
1280 | # used to hold the argument of --host etc. | |
1281 | # FIXME: To remove some day. | |
1282 | build=$build_alias | |
1283 | host=$host_alias | |
1284 | target=$target_alias | |
1285 | ||
1286 | # FIXME: To remove some day. | |
1287 | if test "x$host_alias" != x; then | |
1288 | if test "x$build_alias" = x; then | |
1289 | cross_compiling=maybe | |
1290 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1291 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1292 | elif test "x$build_alias" != "x$host_alias"; then | |
1293 | cross_compiling=yes | |
1294 | fi | |
1295 | fi | |
1296 | ||
1297 | ac_tool_prefix= | |
1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1299 | ||
1300 | test "$silent" = yes && exec 6>/dev/null | |
1301 | ||
1302 | ||
1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1304 | ac_ls_di=`ls -di .` && | |
1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1306 | as_fn_error "working directory cannot be determined" | |
1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1308 | as_fn_error "pwd does not report name of working directory" | |
1309 | ||
1310 | ||
1311 | # Find the source files, if location was not specified. | |
1312 | if test -z "$srcdir"; then | |
1313 | ac_srcdir_defaulted=yes | |
1314 | # Try the directory containing this script, then the parent directory. | |
1315 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1318 | X"$as_myself" : 'X\(//\)$' \| \ | |
1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1320 | $as_echo X"$as_myself" | | |
1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1322 | s//\1/ | |
1323 | q | |
1324 | } | |
1325 | /^X\(\/\/\)[^/].*/{ | |
1326 | s//\1/ | |
1327 | q | |
1328 | } | |
1329 | /^X\(\/\/\)$/{ | |
1330 | s//\1/ | |
1331 | q | |
1332 | } | |
1333 | /^X\(\/\).*/{ | |
1334 | s//\1/ | |
1335 | q | |
1336 | } | |
1337 | s/.*/./; q'` | |
1338 | srcdir=$ac_confdir | |
1339 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1340 | srcdir=.. | |
1341 | fi | |
1342 | else | |
1343 | ac_srcdir_defaulted=no | |
1344 | fi | |
1345 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1347 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1348 | fi | |
1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1350 | ac_abs_confdir=`( | |
1351 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1352 | pwd)` | |
1353 | # When building in place, set srcdir=. | |
1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1355 | srcdir=. | |
1356 | fi | |
1357 | # Remove unnecessary trailing slashes from srcdir. | |
1358 | # Double slashes in file names in object file debugging info | |
1359 | # mess up M-x gdb in Emacs. | |
1360 | case $srcdir in | |
1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1362 | esac | |
1363 | case $srcdir in | |
1364 | *" "*) | |
1365 | as_fn_error "path to source, $srcdir, contains spaces" | |
1366 | ;; | |
1367 | esac | |
1368 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` | |
1369 | ||
1370 | for ac_var in $ac_precious_vars; do | |
1371 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1372 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1373 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1375 | done | |
1376 | ||
1377 | # | |
1378 | # Report the --help message. | |
1379 | # | |
1380 | if test "$ac_init_help" = "long"; then | |
1381 | # Omit some internal or obsolete options to make the list less imposing. | |
1382 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1383 | cat <<_ACEOF | |
1384 | \`configure' configures this package to adapt to many kinds of systems. | |
1385 | ||
1386 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1387 | ||
1388 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1389 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1390 | ||
1391 | Defaults for the options are specified in brackets. | |
1392 | ||
1393 | Configuration: | |
1394 | -h, --help display this help and exit | |
1395 | --help=short display options specific to this package | |
1396 | --help=recursive display the short help of all the included packages | |
1397 | -V, --version display version information and exit | |
1398 | -q, --quiet, --silent do not print \`checking...' messages | |
1399 | --cache-file=FILE cache test results in FILE [disabled] | |
1400 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1401 | -n, --no-create do not create output files | |
1402 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1403 | ||
1404 | Installation directories: | |
1405 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1406 | [$ac_default_prefix] | |
1407 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1408 | [PREFIX] | |
1409 | ||
1410 | By default, \`make install' will install all the files in | |
1411 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1412 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1413 | for instance \`--prefix=\$HOME'. | |
1414 | ||
1415 | For better control, use the options below. | |
1416 | ||
1417 | Fine tuning of the installation directories: | |
1418 | --bindir=DIR user executables [EPREFIX/bin] | |
1419 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1420 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1421 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1422 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1423 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1424 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1425 | --includedir=DIR C header files [PREFIX/include] | |
1426 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1427 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1428 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1429 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1430 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1431 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1432 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1433 | --htmldir=DIR html documentation [DOCDIR] | |
1434 | --dvidir=DIR dvi documentation [DOCDIR] | |
1435 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1436 | --psdir=DIR ps documentation [DOCDIR] | |
1437 | _ACEOF | |
1438 | ||
1439 | cat <<\_ACEOF | |
1440 | ||
1441 | Program names: | |
1442 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1443 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1444 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1445 | ||
1446 | System types: | |
1447 | --build=BUILD configure for building on BUILD [guessed] | |
1448 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1449 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1450 | _ACEOF | |
1451 | fi | |
1452 | ||
1453 | if test -n "$ac_init_help"; then | |
1454 | ||
1455 | cat <<\_ACEOF | |
1456 | ||
1457 | Optional Features: | |
1458 | --disable-option-checking ignore unrecognized --enable/--with options | |
1459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1460 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1461 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] | |
1462 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] | |
1463 | --disable-libquadmath do not build libquadmath directory | |
1464 | --disable-libquadmath-support | |
1465 | disable libquadmath support for Fortran | |
1466 | --enable-libada build libada directory | |
1467 | --enable-libssp build libssp directory | |
1468 | --enable-static-libjava[=ARG] | |
1469 | build static libjava [default=no] | |
1470 | --enable-bootstrap enable bootstrapping [yes if native build] | |
1471 | --disable-isl-version-check | |
1472 | disable check for ISL version | |
1473 | --disable-cloog-version-check | |
1474 | disable check for CLooG version | |
1475 | --enable-lto enable link time optimization support | |
1476 | --enable-stage1-languages[=all] | |
1477 | choose additional languages to build during stage1. | |
1478 | Mostly useful for compiler development | |
1479 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1480 | Objective-C runtime | |
1481 | --enable-serial-[{host,target,build}-]configure | |
1482 | force sequential configuration of sub-packages for | |
1483 | the host, target or build machine, or all | |
1484 | sub-packages | |
1485 | --enable-maintainer-mode | |
1486 | enable make rules and dependencies not useful (and | |
1487 | sometimes confusing) to the casual installer | |
1488 | --enable-stage1-checking[=all] | |
1489 | choose additional checking for stage1 of the | |
1490 | compiler | |
1491 | --enable-werror enable -Werror in bootstrap stage2 and later | |
1492 | ||
1493 | Optional Packages: | |
1494 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1495 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1496 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
1497 | --with-mpc=PATH specify prefix directory for installed MPC package. | |
1498 | Equivalent to --with-mpc-include=PATH/include plus | |
1499 | --with-mpc-lib=PATH/lib | |
1500 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1501 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
1502 | --with-mpfr-dir=PATH this option has been REMOVED | |
1503 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
1504 | Equivalent to --with-mpfr-include=PATH/include plus | |
1505 | --with-mpfr-lib=PATH/lib | |
1506 | --with-mpfr-include=PATH | |
1507 | specify directory for installed MPFR include files | |
1508 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1509 | --with-gmp-dir=PATH this option has been REMOVED | |
1510 | --with-gmp=PATH specify prefix directory for the installed GMP | |
1511 | package. Equivalent to | |
1512 | --with-gmp-include=PATH/include plus | |
1513 | --with-gmp-lib=PATH/lib | |
1514 | --with-gmp-include=PATH specify directory for installed GMP include files | |
1515 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
1516 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when | |
1517 | linking with PPL | |
1518 | --with-stage1-ldflags=FLAGS | |
1519 | linker flags for stage1 | |
1520 | --with-stage1-libs=LIBS libraries for stage1 | |
1521 | --with-boot-libs=LIBS libraries for stage2 and later | |
1522 | --with-boot-ldflags=FLAGS | |
1523 | linker flags for stage2 and later | |
1524 | --with-isl=PATH Specify prefix directory for the installed ISL | |
1525 | package. Equivalent to | |
1526 | --with-isl-include=PATH/include plus | |
1527 | --with-isl-lib=PATH/lib | |
1528 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1529 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
1530 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL | |
1531 | package. Equivalent to | |
1532 | --with-cloog-include=PATH/include plus | |
1533 | --with-cloog-lib=PATH/lib | |
1534 | --with-cloog-include=PATH | |
1535 | Specify directory for installed CLooG include files | |
1536 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1537 | library | |
1538 | --with-build-sysroot=SYSROOT | |
1539 | use sysroot as the system root during the build | |
1540 | --with-debug-prefix-map='A=B C=D ...' | |
1541 | map A to B, C to D ... in debug information | |
1542 | --with-build-config='NAME NAME2...' | |
1543 | use config/NAME.mk build configuration | |
1544 | --with-build-time-tools=PATH | |
1545 | use given path to find target tools during the build | |
1546 | ||
1547 | Some influential environment variables: | |
1548 | CC C compiler command | |
1549 | CFLAGS C compiler flags | |
1550 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1551 | nonstandard directory <lib dir> | |
1552 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1553 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1554 | you have headers in a nonstandard directory <include dir> | |
1555 | CXX C++ compiler command | |
1556 | CXXFLAGS C++ compiler flags | |
1557 | build_configargs | |
1558 | additional configure arguments for build directories | |
1559 | host_configargs | |
1560 | additional configure arguments for host directories | |
1561 | target_configargs | |
1562 | additional configure arguments for target directories | |
1563 | AR AR for the host | |
1564 | AS AS for the host | |
1565 | DLLTOOL DLLTOOL for the host | |
1566 | LD LD for the host | |
1567 | LIPO LIPO for the host | |
1568 | NM NM for the host | |
1569 | RANLIB RANLIB for the host | |
1570 | STRIP STRIP for the host | |
1571 | WINDRES WINDRES for the host | |
1572 | WINDMC WINDMC for the host | |
1573 | OBJCOPY OBJCOPY for the host | |
1574 | OBJDUMP OBJDUMP for the host | |
1575 | READELF READELF for the host | |
1576 | CC_FOR_TARGET | |
1577 | CC for the target | |
1578 | CXX_FOR_TARGET | |
1579 | CXX for the target | |
1580 | GCC_FOR_TARGET | |
1581 | GCC for the target | |
1582 | GCJ_FOR_TARGET | |
1583 | GCJ for the target | |
1584 | GFORTRAN_FOR_TARGET | |
1585 | GFORTRAN for the target | |
1586 | GOC_FOR_TARGET | |
1587 | GOC for the target | |
1588 | AR_FOR_TARGET | |
1589 | AR for the target | |
1590 | AS_FOR_TARGET | |
1591 | AS for the target | |
1592 | DLLTOOL_FOR_TARGET | |
1593 | DLLTOOL for the target | |
1594 | LD_FOR_TARGET | |
1595 | LD for the target | |
1596 | LIPO_FOR_TARGET | |
1597 | LIPO for the target | |
1598 | NM_FOR_TARGET | |
1599 | NM for the target | |
1600 | OBJDUMP_FOR_TARGET | |
1601 | OBJDUMP for the target | |
1602 | RANLIB_FOR_TARGET | |
1603 | RANLIB for the target | |
1604 | READELF_FOR_TARGET | |
1605 | READELF for the target | |
1606 | STRIP_FOR_TARGET | |
1607 | STRIP for the target | |
1608 | WINDRES_FOR_TARGET | |
1609 | WINDRES for the target | |
1610 | WINDMC_FOR_TARGET | |
1611 | WINDMC for the target | |
1612 | ||
1613 | Use these variables to override the choices made by `configure' or to help | |
1614 | it to find libraries and programs with nonstandard names/locations. | |
1615 | ||
1616 | Report bugs to the package provider. | |
1617 | _ACEOF | |
1618 | ac_status=$? | |
1619 | fi | |
1620 | ||
1621 | if test "$ac_init_help" = "recursive"; then | |
1622 | # If there are subdirs, report their specific --help. | |
1623 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1624 | test -d "$ac_dir" || | |
1625 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1626 | continue | |
1627 | ac_builddir=. | |
1628 | ||
1629 | case "$ac_dir" in | |
1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1631 | *) | |
1632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1633 | # A ".." for each directory in $ac_dir_suffix. | |
1634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1635 | case $ac_top_builddir_sub in | |
1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1638 | esac ;; | |
1639 | esac | |
1640 | ac_abs_top_builddir=$ac_pwd | |
1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1642 | # for backward compatibility: | |
1643 | ac_top_builddir=$ac_top_build_prefix | |
1644 | ||
1645 | case $srcdir in | |
1646 | .) # We are building in place. | |
1647 | ac_srcdir=. | |
1648 | ac_top_srcdir=$ac_top_builddir_sub | |
1649 | ac_abs_top_srcdir=$ac_pwd ;; | |
1650 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1651 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1652 | ac_top_srcdir=$srcdir | |
1653 | ac_abs_top_srcdir=$srcdir ;; | |
1654 | *) # Relative name. | |
1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1658 | esac | |
1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1660 | ||
1661 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1662 | # Check for guested configure. | |
1663 | if test -f "$ac_srcdir/configure.gnu"; then | |
1664 | echo && | |
1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1666 | elif test -f "$ac_srcdir/configure"; then | |
1667 | echo && | |
1668 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1669 | else | |
1670 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1671 | fi || ac_status=$? | |
1672 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1673 | done | |
1674 | fi | |
1675 | ||
1676 | test -n "$ac_init_help" && exit $ac_status | |
1677 | if $ac_init_version; then | |
1678 | cat <<\_ACEOF | |
1679 | configure | |
1680 | generated by GNU Autoconf 2.64 | |
1681 | ||
1682 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1683 | This configure script is free software; the Free Software Foundation | |
1684 | gives unlimited permission to copy, distribute and modify it. | |
1685 | _ACEOF | |
1686 | exit | |
1687 | fi | |
1688 | ||
1689 | ## ------------------------ ## | |
1690 | ## Autoconf initialization. ## | |
1691 | ## ------------------------ ## | |
1692 | ||
1693 | # ac_fn_c_try_compile LINENO | |
1694 | # -------------------------- | |
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_compile () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | rm -f conftest.$ac_objext | |
1700 | if { { ac_try="$ac_compile" | |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_compile") 2>conftest.err | |
1708 | ac_status=$? | |
1709 | if test -s conftest.err; then | |
1710 | grep -v '^ *+' conftest.err >conftest.er1 | |
1711 | cat conftest.er1 >&5 | |
1712 | mv -f conftest.er1 conftest.err | |
1713 | fi | |
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1715 | test $ac_status = 0; } && { | |
1716 | test -z "$ac_c_werror_flag" || | |
1717 | test ! -s conftest.err | |
1718 | } && test -s conftest.$ac_objext; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1727 | return $ac_retval | |
1728 | ||
1729 | } # ac_fn_c_try_compile | |
1730 | ||
1731 | # ac_fn_cxx_try_compile LINENO | |
1732 | # ---------------------------- | |
1733 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_cxx_try_compile () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | rm -f conftest.$ac_objext | |
1738 | if { { ac_try="$ac_compile" | |
1739 | case "(($ac_try" in | |
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1741 | *) ac_try_echo=$ac_try;; | |
1742 | esac | |
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1744 | $as_echo "$ac_try_echo"; } >&5 | |
1745 | (eval "$ac_compile") 2>conftest.err | |
1746 | ac_status=$? | |
1747 | if test -s conftest.err; then | |
1748 | grep -v '^ *+' conftest.err >conftest.er1 | |
1749 | cat conftest.er1 >&5 | |
1750 | mv -f conftest.er1 conftest.err | |
1751 | fi | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; } && { | |
1754 | test -z "$ac_cxx_werror_flag" || | |
1755 | test ! -s conftest.err | |
1756 | } && test -s conftest.$ac_objext; then : | |
1757 | ac_retval=0 | |
1758 | else | |
1759 | $as_echo "$as_me: failed program was:" >&5 | |
1760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1761 | ||
1762 | ac_retval=1 | |
1763 | fi | |
1764 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1765 | return $ac_retval | |
1766 | ||
1767 | } # ac_fn_cxx_try_compile | |
1768 | ||
1769 | # ac_fn_c_try_link LINENO | |
1770 | # ----------------------- | |
1771 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1772 | ac_fn_c_try_link () | |
1773 | { | |
1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1775 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1776 | if { { ac_try="$ac_link" | |
1777 | case "(($ac_try" in | |
1778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1779 | *) ac_try_echo=$ac_try;; | |
1780 | esac | |
1781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1782 | $as_echo "$ac_try_echo"; } >&5 | |
1783 | (eval "$ac_link") 2>conftest.err | |
1784 | ac_status=$? | |
1785 | if test -s conftest.err; then | |
1786 | grep -v '^ *+' conftest.err >conftest.er1 | |
1787 | cat conftest.er1 >&5 | |
1788 | mv -f conftest.er1 conftest.err | |
1789 | fi | |
1790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1791 | test $ac_status = 0; } && { | |
1792 | test -z "$ac_c_werror_flag" || | |
1793 | test ! -s conftest.err | |
1794 | } && test -s conftest$ac_exeext && { | |
1795 | test "$cross_compiling" = yes || | |
1796 | $as_test_x conftest$ac_exeext | |
1797 | }; then : | |
1798 | ac_retval=0 | |
1799 | else | |
1800 | $as_echo "$as_me: failed program was:" >&5 | |
1801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1802 | ||
1803 | ac_retval=1 | |
1804 | fi | |
1805 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1806 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1807 | # interfere with the next link command; also delete a directory that is | |
1808 | # left behind by Apple's compiler. We do this before executing the actions. | |
1809 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1810 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1811 | return $ac_retval | |
1812 | ||
1813 | } # ac_fn_c_try_link | |
1814 | ||
1815 | # ac_fn_c_try_run LINENO | |
1816 | # ---------------------- | |
1817 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1818 | # that executables *can* be run. | |
1819 | ac_fn_c_try_run () | |
1820 | { | |
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1822 | if { { ac_try="$ac_link" | |
1823 | case "(($ac_try" in | |
1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1825 | *) ac_try_echo=$ac_try;; | |
1826 | esac | |
1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1828 | $as_echo "$ac_try_echo"; } >&5 | |
1829 | (eval "$ac_link") 2>&5 | |
1830 | ac_status=$? | |
1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1832 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1833 | { { case "(($ac_try" in | |
1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1835 | *) ac_try_echo=$ac_try;; | |
1836 | esac | |
1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1838 | $as_echo "$ac_try_echo"; } >&5 | |
1839 | (eval "$ac_try") 2>&5 | |
1840 | ac_status=$? | |
1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1842 | test $ac_status = 0; }; }; then : | |
1843 | ac_retval=0 | |
1844 | else | |
1845 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1846 | $as_echo "$as_me: failed program was:" >&5 | |
1847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1848 | ||
1849 | ac_retval=$ac_status | |
1850 | fi | |
1851 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1852 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1853 | return $ac_retval | |
1854 | ||
1855 | } # ac_fn_c_try_run | |
1856 | cat >config.log <<_ACEOF | |
1857 | This file contains any messages produced by compilers while | |
1858 | running configure, to aid debugging if configure makes a mistake. | |
1859 | ||
1860 | It was created by $as_me, which was | |
1861 | generated by GNU Autoconf 2.64. Invocation command line was | |
1862 | ||
1863 | $ $0 $@ | |
1864 | ||
1865 | _ACEOF | |
1866 | exec 5>>config.log | |
1867 | { | |
1868 | cat <<_ASUNAME | |
1869 | ## --------- ## | |
1870 | ## Platform. ## | |
1871 | ## --------- ## | |
1872 | ||
1873 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1874 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1875 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1876 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1877 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1878 | ||
1879 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1880 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1881 | ||
1882 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1883 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1884 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1885 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1886 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1887 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1888 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1889 | ||
1890 | _ASUNAME | |
1891 | ||
1892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1893 | for as_dir in $PATH | |
1894 | do | |
1895 | IFS=$as_save_IFS | |
1896 | test -z "$as_dir" && as_dir=. | |
1897 | $as_echo "PATH: $as_dir" | |
1898 | done | |
1899 | IFS=$as_save_IFS | |
1900 | ||
1901 | } >&5 | |
1902 | ||
1903 | cat >&5 <<_ACEOF | |
1904 | ||
1905 | ||
1906 | ## ----------- ## | |
1907 | ## Core tests. ## | |
1908 | ## ----------- ## | |
1909 | ||
1910 | _ACEOF | |
1911 | ||
1912 | ||
1913 | # Keep a trace of the command line. | |
1914 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1915 | # Strip out --silent because we don't want to record it for future runs. | |
1916 | # Also quote any args containing shell meta-characters. | |
1917 | # Make two passes to allow for proper duplicate-argument suppression. | |
1918 | ac_configure_args= | |
1919 | ac_configure_args0= | |
1920 | ac_configure_args1= | |
1921 | ac_must_keep_next=false | |
1922 | for ac_pass in 1 2 | |
1923 | do | |
1924 | for ac_arg | |
1925 | do | |
1926 | case $ac_arg in | |
1927 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1928 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1929 | | -silent | --silent | --silen | --sile | --sil) | |
1930 | continue ;; | |
1931 | *\'*) | |
1932 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1933 | esac | |
1934 | case $ac_pass in | |
1935 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1936 | 2) | |
1937 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1938 | if test $ac_must_keep_next = true; then | |
1939 | ac_must_keep_next=false # Got value, back to normal. | |
1940 | else | |
1941 | case $ac_arg in | |
1942 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1943 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1944 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1945 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1946 | case "$ac_configure_args0 " in | |
1947 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1948 | esac | |
1949 | ;; | |
1950 | -* ) ac_must_keep_next=true ;; | |
1951 | esac | |
1952 | fi | |
1953 | as_fn_append ac_configure_args " '$ac_arg'" | |
1954 | ;; | |
1955 | esac | |
1956 | done | |
1957 | done | |
1958 | { ac_configure_args0=; unset ac_configure_args0;} | |
1959 | { ac_configure_args1=; unset ac_configure_args1;} | |
1960 | ||
1961 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1962 | # config.log. We remove comments because anyway the quotes in there | |
1963 | # would cause problems or look ugly. | |
1964 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1965 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1966 | trap 'exit_status=$? | |
1967 | # Save into config.log some information that might help in debugging. | |
1968 | { | |
1969 | echo | |
1970 | ||
1971 | cat <<\_ASBOX | |
1972 | ## ---------------- ## | |
1973 | ## Cache variables. ## | |
1974 | ## ---------------- ## | |
1975 | _ASBOX | |
1976 | echo | |
1977 | # The following way of writing the cache mishandles newlines in values, | |
1978 | ( | |
1979 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1980 | eval ac_val=\$$ac_var | |
1981 | case $ac_val in #( | |
1982 | *${as_nl}*) | |
1983 | case $ac_var in #( | |
1984 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1985 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1986 | esac | |
1987 | case $ac_var in #( | |
1988 | _ | IFS | as_nl) ;; #( | |
1989 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1990 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1991 | esac ;; | |
1992 | esac | |
1993 | done | |
1994 | (set) 2>&1 | | |
1995 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1996 | *${as_nl}ac_space=\ *) | |
1997 | sed -n \ | |
1998 | "s/'\''/'\''\\\\'\'''\''/g; | |
1999 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2000 | ;; #( | |
2001 | *) | |
2002 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2003 | ;; | |
2004 | esac | | |
2005 | sort | |
2006 | ) | |
2007 | echo | |
2008 | ||
2009 | cat <<\_ASBOX | |
2010 | ## ----------------- ## | |
2011 | ## Output variables. ## | |
2012 | ## ----------------- ## | |
2013 | _ASBOX | |
2014 | echo | |
2015 | for ac_var in $ac_subst_vars | |
2016 | do | |
2017 | eval ac_val=\$$ac_var | |
2018 | case $ac_val in | |
2019 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2020 | esac | |
2021 | $as_echo "$ac_var='\''$ac_val'\''" | |
2022 | done | sort | |
2023 | echo | |
2024 | ||
2025 | if test -n "$ac_subst_files"; then | |
2026 | cat <<\_ASBOX | |
2027 | ## ------------------- ## | |
2028 | ## File substitutions. ## | |
2029 | ## ------------------- ## | |
2030 | _ASBOX | |
2031 | echo | |
2032 | for ac_var in $ac_subst_files | |
2033 | do | |
2034 | eval ac_val=\$$ac_var | |
2035 | case $ac_val in | |
2036 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2037 | esac | |
2038 | $as_echo "$ac_var='\''$ac_val'\''" | |
2039 | done | sort | |
2040 | echo | |
2041 | fi | |
2042 | ||
2043 | if test -s confdefs.h; then | |
2044 | cat <<\_ASBOX | |
2045 | ## ----------- ## | |
2046 | ## confdefs.h. ## | |
2047 | ## ----------- ## | |
2048 | _ASBOX | |
2049 | echo | |
2050 | cat confdefs.h | |
2051 | echo | |
2052 | fi | |
2053 | test "$ac_signal" != 0 && | |
2054 | $as_echo "$as_me: caught signal $ac_signal" | |
2055 | $as_echo "$as_me: exit $exit_status" | |
2056 | } >&5 | |
2057 | rm -f core *.core core.conftest.* && | |
2058 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2059 | exit $exit_status | |
2060 | ' 0 | |
2061 | for ac_signal in 1 2 13 15; do | |
2062 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2063 | done | |
2064 | ac_signal=0 | |
2065 | ||
2066 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2067 | rm -f -r conftest* confdefs.h | |
2068 | ||
2069 | $as_echo "/* confdefs.h */" > confdefs.h | |
2070 | ||
2071 | # Predefined preprocessor variables. | |
2072 | ||
2073 | cat >>confdefs.h <<_ACEOF | |
2074 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2075 | _ACEOF | |
2076 | ||
2077 | cat >>confdefs.h <<_ACEOF | |
2078 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2079 | _ACEOF | |
2080 | ||
2081 | cat >>confdefs.h <<_ACEOF | |
2082 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2083 | _ACEOF | |
2084 | ||
2085 | cat >>confdefs.h <<_ACEOF | |
2086 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2087 | _ACEOF | |
2088 | ||
2089 | cat >>confdefs.h <<_ACEOF | |
2090 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2091 | _ACEOF | |
2092 | ||
2093 | cat >>confdefs.h <<_ACEOF | |
2094 | #define PACKAGE_URL "$PACKAGE_URL" | |
2095 | _ACEOF | |
2096 | ||
2097 | ||
2098 | # Let the site file select an alternate cache file if it wants to. | |
2099 | # Prefer an explicitly selected file to automatically selected ones. | |
2100 | ac_site_file1=NONE | |
2101 | ac_site_file2=NONE | |
2102 | if test -n "$CONFIG_SITE"; then | |
2103 | ac_site_file1=$CONFIG_SITE | |
2104 | elif test "x$prefix" != xNONE; then | |
2105 | ac_site_file1=$prefix/share/config.site | |
2106 | ac_site_file2=$prefix/etc/config.site | |
2107 | else | |
2108 | ac_site_file1=$ac_default_prefix/share/config.site | |
2109 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2110 | fi | |
2111 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2112 | do | |
2113 | test "x$ac_site_file" = xNONE && continue | |
2114 | if test -r "$ac_site_file"; then | |
2115 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2116 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2117 | sed 's/^/| /' "$ac_site_file" >&5 | |
2118 | . "$ac_site_file" | |
2119 | fi | |
2120 | done | |
2121 | ||
2122 | if test -r "$cache_file"; then | |
2123 | # Some versions of bash will fail to source /dev/null (special | |
2124 | # files actually), so we avoid doing that. | |
2125 | if test -f "$cache_file"; then | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2127 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2128 | case $cache_file in | |
2129 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2130 | *) . "./$cache_file";; | |
2131 | esac | |
2132 | fi | |
2133 | else | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2135 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2136 | >$cache_file | |
2137 | fi | |
2138 | ||
2139 | # Check that the precious variables saved in the cache have kept the same | |
2140 | # value. | |
2141 | ac_cache_corrupted=false | |
2142 | for ac_var in $ac_precious_vars; do | |
2143 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2144 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2145 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2146 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2147 | case $ac_old_set,$ac_new_set in | |
2148 | set,) | |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2150 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2151 | ac_cache_corrupted=: ;; | |
2152 | ,set) | |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2154 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2155 | ac_cache_corrupted=: ;; | |
2156 | ,);; | |
2157 | *) | |
2158 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2159 | # differences in whitespace do not lead to failure. | |
2160 | ac_old_val_w=`echo x $ac_old_val` | |
2161 | ac_new_val_w=`echo x $ac_new_val` | |
2162 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2164 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2165 | ac_cache_corrupted=: | |
2166 | else | |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2168 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2169 | eval $ac_var=\$ac_old_val | |
2170 | fi | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2172 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2174 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2175 | fi;; | |
2176 | esac | |
2177 | # Pass precious variables to config.status. | |
2178 | if test "$ac_new_set" = set; then | |
2179 | case $ac_new_val in | |
2180 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2181 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2182 | esac | |
2183 | case " $ac_configure_args " in | |
2184 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2185 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2186 | esac | |
2187 | fi | |
2188 | done | |
2189 | if $ac_cache_corrupted; then | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2193 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2194 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2195 | fi | |
2196 | ## -------------------- ## | |
2197 | ## Main body of script. ## | |
2198 | ## -------------------- ## | |
2199 | ||
2200 | ac_ext=c | |
2201 | ac_cpp='$CPP $CPPFLAGS' | |
2202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2205 | ||
2206 | ||
2207 | ||
2208 | ||
2209 | ||
2210 | ||
2211 | ||
2212 | ||
2213 | ||
2214 | progname=$0 | |
2215 | # if PWD already has a value, it is probably wrong. | |
2216 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2217 | ||
2218 | # Export original configure arguments for use by sub-configures. | |
2219 | # Quote arguments with shell meta charatcers. | |
2220 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2221 | set -- "$progname" "$@" | |
2222 | for ac_arg | |
2223 | do | |
2224 | case "$ac_arg" in | |
2225 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2226 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2227 | # if the argument is of the form -foo=baz, quote the baz part only | |
2228 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2229 | *) ;; | |
2230 | esac | |
2231 | # Add the quoted argument to the list. | |
2232 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2233 | done | |
2234 | if test "$silent" = yes; then | |
2235 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2236 | fi | |
2237 | # Remove the initial space we just introduced and, as these will be | |
2238 | # expanded by make, quote '$'. | |
2239 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2240 | ||
2241 | ||
2242 | # Find the build, host, and target systems. | |
2243 | ac_aux_dir= | |
2244 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2245 | for ac_t in install-sh install.sh shtool; do | |
2246 | if test -f "$ac_dir/$ac_t"; then | |
2247 | ac_aux_dir=$ac_dir | |
2248 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2249 | break 2 | |
2250 | fi | |
2251 | done | |
2252 | done | |
2253 | if test -z "$ac_aux_dir"; then | |
2254 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2255 | fi | |
2256 | ||
2257 | # These three variables are undocumented and unsupported, | |
2258 | # and are intended to be withdrawn in a future Autoconf release. | |
2259 | # They can cause serious problems if a builder's source tree is in a directory | |
2260 | # whose full name contains unusual characters. | |
2261 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2262 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2263 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2264 | ||
2265 | ||
2266 | # Make sure we can run config.sub. | |
2267 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2268 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2269 | ||
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2271 | $as_echo_n "checking build system type... " >&6; } | |
2272 | if test "${ac_cv_build+set}" = set; then : | |
2273 | $as_echo_n "(cached) " >&6 | |
2274 | else | |
2275 | ac_build_alias=$build_alias | |
2276 | test "x$ac_build_alias" = x && | |
2277 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2278 | test "x$ac_build_alias" = x && | |
2279 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2280 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2281 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2282 | ||
2283 | fi | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2285 | $as_echo "$ac_cv_build" >&6; } | |
2286 | case $ac_cv_build in | |
2287 | *-*-*) ;; | |
2288 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2289 | esac | |
2290 | build=$ac_cv_build | |
2291 | ac_save_IFS=$IFS; IFS='-' | |
2292 | set x $ac_cv_build | |
2293 | shift | |
2294 | build_cpu=$1 | |
2295 | build_vendor=$2 | |
2296 | shift; shift | |
2297 | # Remember, the first character of IFS is used to create $*, | |
2298 | # except with old shells: | |
2299 | build_os=$* | |
2300 | IFS=$ac_save_IFS | |
2301 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2302 | ||
2303 | ||
2304 | case ${build_alias} in | |
2305 | "") build_noncanonical=${build} ;; | |
2306 | *) build_noncanonical=${build_alias} ;; | |
2307 | esac | |
2308 | ||
2309 | ||
2310 | ||
2311 | case ${host_alias} in | |
2312 | "") host_noncanonical=${build_noncanonical} ;; | |
2313 | *) host_noncanonical=${host_alias} ;; | |
2314 | esac | |
2315 | ||
2316 | ||
2317 | ||
2318 | case ${target_alias} in | |
2319 | "") target_noncanonical=${host_noncanonical} ;; | |
2320 | *) target_noncanonical=${target_alias} ;; | |
2321 | esac | |
2322 | ||
2323 | ||
2324 | ||
2325 | ||
2326 | test "$host_noncanonical" = "$target_noncanonical" && | |
2327 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2328 | NONENONEs,x,x, && | |
2329 | program_transform_name=s,y,y, | |
2330 | ||
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2332 | $as_echo_n "checking host system type... " >&6; } | |
2333 | if test "${ac_cv_host+set}" = set; then : | |
2334 | $as_echo_n "(cached) " >&6 | |
2335 | else | |
2336 | if test "x$host_alias" = x; then | |
2337 | ac_cv_host=$ac_cv_build | |
2338 | else | |
2339 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2340 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2341 | fi | |
2342 | ||
2343 | fi | |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2345 | $as_echo "$ac_cv_host" >&6; } | |
2346 | case $ac_cv_host in | |
2347 | *-*-*) ;; | |
2348 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2349 | esac | |
2350 | host=$ac_cv_host | |
2351 | ac_save_IFS=$IFS; IFS='-' | |
2352 | set x $ac_cv_host | |
2353 | shift | |
2354 | host_cpu=$1 | |
2355 | host_vendor=$2 | |
2356 | shift; shift | |
2357 | # Remember, the first character of IFS is used to create $*, | |
2358 | # except with old shells: | |
2359 | host_os=$* | |
2360 | IFS=$ac_save_IFS | |
2361 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2362 | ||
2363 | ||
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2365 | $as_echo_n "checking target system type... " >&6; } | |
2366 | if test "${ac_cv_target+set}" = set; then : | |
2367 | $as_echo_n "(cached) " >&6 | |
2368 | else | |
2369 | if test "x$target_alias" = x; then | |
2370 | ac_cv_target=$ac_cv_host | |
2371 | else | |
2372 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2373 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2374 | fi | |
2375 | ||
2376 | fi | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2378 | $as_echo "$ac_cv_target" >&6; } | |
2379 | case $ac_cv_target in | |
2380 | *-*-*) ;; | |
2381 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2382 | esac | |
2383 | target=$ac_cv_target | |
2384 | ac_save_IFS=$IFS; IFS='-' | |
2385 | set x $ac_cv_target | |
2386 | shift | |
2387 | target_cpu=$1 | |
2388 | target_vendor=$2 | |
2389 | shift; shift | |
2390 | # Remember, the first character of IFS is used to create $*, | |
2391 | # except with old shells: | |
2392 | target_os=$* | |
2393 | IFS=$ac_save_IFS | |
2394 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2395 | ||
2396 | ||
2397 | # The aliases save the names the user supplied, while $host etc. | |
2398 | # will get canonicalized. | |
2399 | test -n "$target_alias" && | |
2400 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2401 | NONENONEs,x,x, && | |
2402 | program_prefix=${target_alias}- | |
2403 | ||
2404 | test "$program_prefix" != NONE && | |
2405 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2406 | # Use a double $ so make ignores it. | |
2407 | test "$program_suffix" != NONE && | |
2408 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2409 | # Double any \ or $. | |
2410 | # By default was `s,x,x', remove it if useless. | |
2411 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2412 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2413 | ||
2414 | ||
2415 | ||
2416 | # Get 'install' or 'install-sh' and its variants. | |
2417 | # Find a good install program. We prefer a C program (faster), | |
2418 | # so one script is as good as another. But avoid the broken or | |
2419 | # incompatible versions: | |
2420 | # SysV /etc/install, /usr/sbin/install | |
2421 | # SunOS /usr/etc/install | |
2422 | # IRIX /sbin/install | |
2423 | # AIX /bin/install | |
2424 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2425 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2426 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2427 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2428 | # OS/2's system install, which has a completely different semantic | |
2429 | # ./install, which can be erroneously created by make from ./install.sh. | |
2430 | # Reject install programs that cannot install multiple files. | |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2432 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2433 | if test -z "$INSTALL"; then | |
2434 | if test "${ac_cv_path_install+set}" = set; then : | |
2435 | $as_echo_n "(cached) " >&6 | |
2436 | else | |
2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2438 | for as_dir in $PATH | |
2439 | do | |
2440 | IFS=$as_save_IFS | |
2441 | test -z "$as_dir" && as_dir=. | |
2442 | # Account for people who put trailing slashes in PATH elements. | |
2443 | case $as_dir/ in #(( | |
2444 | ./ | .// | /[cC]/* | \ | |
2445 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2446 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2447 | /usr/ucb/* ) ;; | |
2448 | *) | |
2449 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2450 | # Don't use installbsd from OSF since it installs stuff as root | |
2451 | # by default. | |
2452 | for ac_prog in ginstall scoinst install; do | |
2453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2454 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2455 | if test $ac_prog = install && | |
2456 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2457 | # AIX install. It has an incompatible calling convention. | |
2458 | : | |
2459 | elif test $ac_prog = install && | |
2460 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2461 | # program-specific install script used by HP pwplus--don't use. | |
2462 | : | |
2463 | else | |
2464 | rm -rf conftest.one conftest.two conftest.dir | |
2465 | echo one > conftest.one | |
2466 | echo two > conftest.two | |
2467 | mkdir conftest.dir | |
2468 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2469 | test -s conftest.one && test -s conftest.two && | |
2470 | test -s conftest.dir/conftest.one && | |
2471 | test -s conftest.dir/conftest.two | |
2472 | then | |
2473 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2474 | break 3 | |
2475 | fi | |
2476 | fi | |
2477 | fi | |
2478 | done | |
2479 | done | |
2480 | ;; | |
2481 | esac | |
2482 | ||
2483 | done | |
2484 | IFS=$as_save_IFS | |
2485 | ||
2486 | rm -rf conftest.one conftest.two conftest.dir | |
2487 | ||
2488 | fi | |
2489 | if test "${ac_cv_path_install+set}" = set; then | |
2490 | INSTALL=$ac_cv_path_install | |
2491 | else | |
2492 | # As a last resort, use the slow shell script. Don't cache a | |
2493 | # value for INSTALL within a source directory, because that will | |
2494 | # break other packages using the cache if that directory is | |
2495 | # removed, or if the value is a relative name. | |
2496 | INSTALL=$ac_install_sh | |
2497 | fi | |
2498 | fi | |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2500 | $as_echo "$INSTALL" >&6; } | |
2501 | ||
2502 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2503 | # It thinks the first close brace ends the variable substitution. | |
2504 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2505 | ||
2506 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2507 | ||
2508 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2509 | ||
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 | |
2511 | $as_echo_n "checking whether ln works... " >&6; } | |
2512 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2513 | $as_echo_n "(cached) " >&6 | |
2514 | else | |
2515 | rm -f conftestdata_t | |
2516 | echo >conftestdata_f | |
2517 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2518 | then | |
2519 | acx_cv_prog_LN=ln | |
2520 | else | |
2521 | acx_cv_prog_LN=no | |
2522 | fi | |
2523 | rm -f conftestdata_f conftestdata_t | |
2524 | ||
2525 | fi | |
2526 | if test $acx_cv_prog_LN = no; then | |
2527 | LN="cp" | |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 | |
2529 | $as_echo "no, using $LN" >&6; } | |
2530 | else | |
2531 | LN="$acx_cv_prog_LN" | |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2533 | $as_echo "yes" >&6; } | |
2534 | fi | |
2535 | ||
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
2537 | $as_echo_n "checking whether ln -s works... " >&6; } | |
2538 | LN_S=$as_ln_s | |
2539 | if test "$LN_S" = "ln -s"; then | |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2541 | $as_echo "yes" >&6; } | |
2542 | else | |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
2544 | $as_echo "no, using $LN_S" >&6; } | |
2545 | fi | |
2546 | ||
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2548 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2549 | if test "${ac_cv_path_SED+set}" = set; then : | |
2550 | $as_echo_n "(cached) " >&6 | |
2551 | else | |
2552 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2553 | for ac_i in 1 2 3 4 5 6 7; do | |
2554 | ac_script="$ac_script$as_nl$ac_script" | |
2555 | done | |
2556 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2557 | { ac_script=; unset ac_script;} | |
2558 | if test -z "$SED"; then | |
2559 | ac_path_SED_found=false | |
2560 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2562 | for as_dir in $PATH | |
2563 | do | |
2564 | IFS=$as_save_IFS | |
2565 | test -z "$as_dir" && as_dir=. | |
2566 | for ac_prog in sed gsed; do | |
2567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2568 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2569 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2570 | # Check for GNU ac_path_SED and select it if it is found. | |
2571 | # Check for GNU $ac_path_SED | |
2572 | case `"$ac_path_SED" --version 2>&1` in | |
2573 | *GNU*) | |
2574 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2575 | *) | |
2576 | ac_count=0 | |
2577 | $as_echo_n 0123456789 >"conftest.in" | |
2578 | while : | |
2579 | do | |
2580 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2581 | mv "conftest.tmp" "conftest.in" | |
2582 | cp "conftest.in" "conftest.nl" | |
2583 | $as_echo '' >> "conftest.nl" | |
2584 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2585 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2586 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2587 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2588 | # Best one so far, save it but keep looking for a better one | |
2589 | ac_cv_path_SED="$ac_path_SED" | |
2590 | ac_path_SED_max=$ac_count | |
2591 | fi | |
2592 | # 10*(2^10) chars as input seems more than enough | |
2593 | test $ac_count -gt 10 && break | |
2594 | done | |
2595 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2596 | esac | |
2597 | ||
2598 | $ac_path_SED_found && break 3 | |
2599 | done | |
2600 | done | |
2601 | done | |
2602 | IFS=$as_save_IFS | |
2603 | if test -z "$ac_cv_path_SED"; then | |
2604 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2605 | fi | |
2606 | else | |
2607 | ac_cv_path_SED=$SED | |
2608 | fi | |
2609 | ||
2610 | fi | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2612 | $as_echo "$ac_cv_path_SED" >&6; } | |
2613 | SED="$ac_cv_path_SED" | |
2614 | rm -f conftest.sed | |
2615 | ||
2616 | for ac_prog in gawk mawk nawk awk | |
2617 | do | |
2618 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2619 | set dummy $ac_prog; ac_word=$2 | |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2621 | $as_echo_n "checking for $ac_word... " >&6; } | |
2622 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2623 | $as_echo_n "(cached) " >&6 | |
2624 | else | |
2625 | if test -n "$AWK"; then | |
2626 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2627 | else | |
2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2629 | for as_dir in $PATH | |
2630 | do | |
2631 | IFS=$as_save_IFS | |
2632 | test -z "$as_dir" && as_dir=. | |
2633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2635 | ac_cv_prog_AWK="$ac_prog" | |
2636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2637 | break 2 | |
2638 | fi | |
2639 | done | |
2640 | done | |
2641 | IFS=$as_save_IFS | |
2642 | ||
2643 | fi | |
2644 | fi | |
2645 | AWK=$ac_cv_prog_AWK | |
2646 | if test -n "$AWK"; then | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2648 | $as_echo "$AWK" >&6; } | |
2649 | else | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2651 | $as_echo "no" >&6; } | |
2652 | fi | |
2653 | ||
2654 | ||
2655 | test -n "$AWK" && break | |
2656 | done | |
2657 | ||
2658 | ||
2659 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` | |
2660 | ||
2661 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2662 | # a relative path. | |
2663 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2664 | INSTALL="${srcpwd}/install-sh -c" | |
2665 | fi | |
2666 | ||
2667 | # Set srcdir to "." if that's what it is. | |
2668 | # This is important for multilib support. | |
2669 | pwd=`${PWDCMD-pwd}` | |
2670 | if test "${pwd}" = "${srcpwd}" ; then | |
2671 | srcdir=. | |
2672 | fi | |
2673 | ||
2674 | topsrcdir=$srcpwd | |
2675 | ||
2676 | extra_host_args= | |
2677 | ||
2678 | ### To add a new directory to the tree, first choose whether it is a target | |
2679 | ### or a host dependent tool. Then put it into the appropriate list | |
2680 | ### (library or tools, host or target), doing a dependency sort. | |
2681 | ||
2682 | # Subdirs will be configured in the order listed in build_configdirs, | |
2683 | # configdirs, or target_configdirs; see the serialization section below. | |
2684 | ||
2685 | # Dependency sorting is only needed when *configuration* must be done in | |
2686 | # a particular order. In all cases a dependency should be specified in | |
2687 | # the Makefile, whether or not it's implicitly specified here. | |
2688 | ||
2689 | # Double entries in build_configdirs, configdirs, or target_configdirs may | |
2690 | # cause circular dependencies and break everything horribly. | |
2691 | ||
2692 | # these library is used by various programs built for the build | |
2693 | # environment | |
2694 | # | |
2695 | build_libs="build-libiberty" | |
2696 | ||
2697 | # these tools are built for the build environment | |
2698 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" | |
2699 | ||
2700 | # these libraries are used by various programs built for the host environment | |
2701 | # | |
2702 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv" | |
2703 | ||
2704 | # these tools are built for the host environment | |
2705 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2706 | # know that we are building the simulator. | |
2707 | # binutils, gas and ld appear in that order because it makes sense to run | |
2708 | # "make check" in that particular order. | |
2709 | # If --enable-gold is used, "gold" may replace "ld". | |
2710 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" | |
2711 | ||
2712 | # libgcj represents the runtime libraries only used by gcj. | |
2713 | libgcj="target-libffi \ | |
2714 | target-zlib \ | |
2715 | target-libjava" | |
2716 | ||
2717 | # these libraries are built for the target environment, and are built after | |
2718 | # the host libraries and the host tools (which may be a cross compiler) | |
2719 | # Note that libiberty is not a target library. | |
2720 | target_libraries="target-libgcc \ | |
2721 | target-libgloss \ | |
2722 | target-newlib \ | |
2723 | target-libgomp \ | |
2724 | target-libatomic \ | |
2725 | target-libitm \ | |
2726 | target-libstdc++-v3 \ | |
2727 | target-libmudflap \ | |
2728 | target-libssp \ | |
2729 | target-libquadmath \ | |
2730 | target-libgfortran \ | |
2731 | target-boehm-gc \ | |
2732 | ${libgcj} \ | |
2733 | target-libobjc \ | |
2734 | target-libada \ | |
2735 | target-libgo" | |
2736 | ||
2737 | # these tools are built using the target libraries, and are intended to | |
2738 | # run only in the target environment | |
2739 | # | |
2740 | # note: any program that *uses* libraries that are in the "target_libraries" | |
2741 | # list belongs in this list. | |
2742 | # | |
2743 | target_tools="target-rda" | |
2744 | ||
2745 | ################################################################################ | |
2746 | ||
2747 | ## All tools belong in one of the four categories, and are assigned above | |
2748 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2749 | ## is important because configure will choke if they ever get through. | |
2750 | ## ${configdirs} is directories we build using the host tools. | |
2751 | ## ${target_configdirs} is directories we build using the target tools. | |
2752 | configdirs=`echo ${host_libs} ${host_tools}` | |
2753 | target_configdirs=`echo ${target_libraries} ${target_tools}` | |
2754 | build_configdirs=`echo ${build_libs} ${build_tools}` | |
2755 | ||
2756 | ||
2757 | ||
2758 | ################################################################################ | |
2759 | ||
2760 | srcname="gnu development package" | |
2761 | ||
2762 | # This gets set non-empty for some net releases of packages. | |
2763 | appdirs="" | |
2764 | ||
2765 | # Define is_cross_compiler to save on calls to 'test'. | |
2766 | is_cross_compiler= | |
2767 | if test x"${host}" = x"${target}" ; then | |
2768 | is_cross_compiler=no | |
2769 | else | |
2770 | is_cross_compiler=yes | |
2771 | fi | |
2772 | ||
2773 | # Find the build and target subdir names. | |
2774 | ||
2775 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2776 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2777 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2778 | # However, they still use the build modules, because the corresponding | |
2779 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2780 | # finishes. So: | |
2781 | # - build_subdir is where we find build modules, and never changes. | |
2782 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2783 | ||
2784 | # Prefix 'build-' so this never conflicts with target_subdir. | |
2785 | build_subdir="build-${build_noncanonical}" | |
2786 | ||
2787 | # Check whether --with-build-libsubdir was given. | |
2788 | if test "${with_build_libsubdir+set}" = set; then : | |
2789 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2790 | else | |
2791 | build_libsubdir="$build_subdir" | |
2792 | fi | |
2793 | ||
2794 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories | |
2795 | if ( test $srcdir = . && test -d gcc ) \ | |
2796 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2797 | host_subdir="host-${host_noncanonical}" | |
2798 | else | |
2799 | host_subdir=. | |
2800 | fi | |
2801 | # No prefix. | |
2802 | target_subdir=${target_noncanonical} | |
2803 | ||
2804 | # Be sure to cover against remnants of an in-tree build. | |
2805 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2806 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2807 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2808 | fi | |
2809 | ||
2810 | # Skipdirs are removed silently. | |
2811 | skipdirs= | |
2812 | # Noconfigdirs are removed loudly. | |
2813 | noconfigdirs="" | |
2814 | ||
2815 | use_gnu_ld= | |
2816 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2817 | if test x$with_gnu_ld = xno ; then | |
2818 | use_gnu_ld=no | |
2819 | noconfigdirs="$noconfigdirs ld gold" | |
2820 | fi | |
2821 | ||
2822 | use_gnu_as= | |
2823 | # Make sure we don't let GNU as be added if we didn't want it. | |
2824 | if test x$with_gnu_as = xno ; then | |
2825 | use_gnu_as=no | |
2826 | noconfigdirs="$noconfigdirs gas" | |
2827 | fi | |
2828 | ||
2829 | use_included_zlib= | |
2830 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2831 | if test x$with_system_zlib = xyes ; then | |
2832 | use_included_zlib=no | |
2833 | noconfigdirs="$noconfigdirs zlib" | |
2834 | fi | |
2835 | ||
2836 | # some tools are so dependent upon X11 that if we're not building with X, | |
2837 | # it's not even worth trying to configure, much less build, that tool. | |
2838 | ||
2839 | case ${with_x} in | |
2840 | yes | "") ;; # the default value for this tree is that X11 is available | |
2841 | no) | |
2842 | skipdirs="${skipdirs} tk itcl libgui" | |
2843 | # We won't be able to build gdbtk without X. | |
2844 | enable_gdbtk=no | |
2845 | ;; | |
2846 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2847 | esac | |
2848 | ||
2849 | # Some are only suitable for cross toolchains. | |
2850 | # Remove these if host=target. | |
2851 | cross_only="target-libgloss target-newlib target-opcodes" | |
2852 | ||
2853 | case $is_cross_compiler in | |
2854 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
2855 | esac | |
2856 | ||
2857 | # If both --with-headers and --with-libs are specified, default to | |
2858 | # --without-newlib. | |
2859 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ | |
2860 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
2861 | if test x"${with_newlib}" = x ; then | |
2862 | with_newlib=no | |
2863 | fi | |
2864 | fi | |
2865 | ||
2866 | # Recognize --with-newlib/--without-newlib. | |
2867 | case ${with_newlib} in | |
2868 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2869 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2870 | esac | |
2871 | ||
2872 | # Handle --enable-gold, --enable-ld. | |
2873 | # --disable-gold [--enable-ld] | |
2874 | # Build only ld. Default option. | |
2875 | # --enable-gold [--enable-ld] | |
2876 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2877 | # as "ld.bfd" and "ld". | |
2878 | # --enable-gold=default [--enable-ld] | |
2879 | # Build both gold and ld. Install gold as "ld.gold" and "ld", | |
2880 | # install ld as "ld.bfd". | |
2881 | # --enable-gold[=default] --disable-ld | |
2882 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2883 | # --enable-gold --enable-ld=default | |
2884 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" | |
2885 | # and ld.bfd). | |
2886 | # In other words, ld is default | |
2887 | # --enable-gold=default --enable-ld=default | |
2888 | # Error. | |
2889 | ||
2890 | default_ld= | |
2891 | # Check whether --enable-gold was given. | |
2892 | if test "${enable_gold+set}" = set; then : | |
2893 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
2894 | else | |
2895 | ENABLE_GOLD=no | |
2896 | fi | |
2897 | ||
2898 | case "${ENABLE_GOLD}" in | |
2899 | yes|default) | |
2900 | # Check for ELF target. | |
2901 | is_elf=no | |
2902 | case "${target}" in | |
2903 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2904 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
2905 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ | |
2906 | | *-*-solaris2* | *-*-nto*) | |
2907 | case "${target}" in | |
2908 | *-*-linux*aout* | *-*-linux*oldld*) | |
2909 | ;; | |
2910 | *) | |
2911 | is_elf=yes | |
2912 | ;; | |
2913 | esac | |
2914 | esac | |
2915 | ||
2916 | if test "$is_elf" = "yes"; then | |
2917 | # Check for target supported by gold. | |
2918 | case "${target}" in | |
2919 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) | |
2920 | configdirs="$configdirs gold" | |
2921 | if test x${ENABLE_GOLD} = xdefault; then | |
2922 | default_ld=gold | |
2923 | fi | |
2924 | ENABLE_GOLD=yes | |
2925 | ;; | |
2926 | esac | |
2927 | fi | |
2928 | ;; | |
2929 | no) | |
2930 | ;; | |
2931 | *) | |
2932 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2933 | ;; | |
2934 | esac | |
2935 | ||
2936 | # Check whether --enable-ld was given. | |
2937 | if test "${enable_ld+set}" = set; then : | |
2938 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2939 | else | |
2940 | ENABLE_LD=yes | |
2941 | fi | |
2942 | ||
2943 | ||
2944 | case "${ENABLE_LD}" in | |
2945 | default) | |
2946 | if test x${default_ld} != x; then | |
2947 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 | |
2948 | fi | |
2949 | ;; | |
2950 | yes) | |
2951 | ;; | |
2952 | no) | |
2953 | if test x${ENABLE_GOLD} != xyes; then | |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2955 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2956 | fi | |
2957 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2958 | ;; | |
2959 | *) | |
2960 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2961 | ;; | |
2962 | esac | |
2963 | ||
2964 | # Configure extra directories which are host specific | |
2965 | ||
2966 | case "${host}" in | |
2967 | *-cygwin*) | |
2968 | configdirs="$configdirs libtermcap" ;; | |
2969 | esac | |
2970 | ||
2971 | # A target can indicate whether a language isn't supported for some reason. | |
2972 | # Only spaces may be used in this macro; not newlines or tabs. | |
2973 | unsupported_languages= | |
2974 | ||
2975 | # Remove more programs from consideration, based on the host or | |
2976 | # target this usually means that a port of the program doesn't | |
2977 | # exist yet. | |
2978 | ||
2979 | case "${host}" in | |
2980 | i[3456789]86-*-msdosdjgpp*) | |
2981 | noconfigdirs="$noconfigdirs tcl tk itcl" | |
2982 | ;; | |
2983 | esac | |
2984 | ||
2985 | ||
2986 | # Check whether --enable-libquadmath was given. | |
2987 | if test "${enable_libquadmath+set}" = set; then : | |
2988 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2989 | else | |
2990 | ENABLE_LIBQUADMATH=yes | |
2991 | fi | |
2992 | ||
2993 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2994 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2995 | fi | |
2996 | ||
2997 | ||
2998 | # Check whether --enable-libquadmath-support was given. | |
2999 | if test "${enable_libquadmath_support+set}" = set; then : | |
3000 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3001 | else | |
3002 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3003 | fi | |
3004 | ||
3005 | enable_libquadmath_support= | |
3006 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3007 | enable_libquadmath_support=no | |
3008 | fi | |
3009 | ||
3010 | ||
3011 | # Check whether --enable-libada was given. | |
3012 | if test "${enable_libada+set}" = set; then : | |
3013 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
3014 | else | |
3015 | ENABLE_LIBADA=yes | |
3016 | fi | |
3017 | ||
3018 | if test "${ENABLE_LIBADA}" != "yes" ; then | |
3019 | noconfigdirs="$noconfigdirs gnattools" | |
3020 | fi | |
3021 | ||
3022 | # Check whether --enable-libssp was given. | |
3023 | if test "${enable_libssp+set}" = set; then : | |
3024 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
3025 | else | |
3026 | ENABLE_LIBSSP=yes | |
3027 | fi | |
3028 | ||
3029 | ||
3030 | # Save it here so that, even in case of --enable-libgcj, if the Java | |
3031 | # front-end isn't enabled, we still get libgcj disabled. | |
3032 | libgcj_saved=$libgcj | |
3033 | case $enable_libgcj in | |
3034 | yes) | |
3035 | # If we reset it here, it won't get added to noconfigdirs in the | |
3036 | # target-specific build rules, so it will be forcibly enabled | |
3037 | # (unless the Java language itself isn't enabled). | |
3038 | libgcj= | |
3039 | ;; | |
3040 | no) | |
3041 | # Make sure we get it printed in the list of not supported target libs. | |
3042 | # Don't disable libffi, though, other languages use it. | |
3043 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
3044 | # Clear libgcj_saved so that even if java is enabled libffi won't be | |
3045 | # built. | |
3046 | libgcj_saved= | |
3047 | ;; | |
3048 | esac | |
3049 | ||
3050 | # Check whether --enable-static-libjava was given. | |
3051 | if test "${enable_static_libjava+set}" = set; then : | |
3052 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3053 | else | |
3054 | ENABLE_STATIC_LIBJAVA=no | |
3055 | fi | |
3056 | ||
3057 | enable_static_libjava= | |
3058 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3059 | enable_static_libjava=yes | |
3060 | fi | |
3061 | ||
3062 | if test x$enable_static_libjava != xyes ; then | |
3063 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3064 | fi | |
3065 | ||
3066 | ||
3067 | # Disable libmudflap on some systems. | |
3068 | if test x$enable_libmudflap = x ; then | |
3069 | case "${target}" in | |
3070 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) | |
3071 | # Enable libmudflap by default in GNU and friends. | |
3072 | ;; | |
3073 | *-*-freebsd*) | |
3074 | # Enable libmudflap by default in FreeBSD. | |
3075 | ;; | |
3076 | *) | |
3077 | # Disable it by default everywhere else. | |
3078 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3079 | ;; | |
3080 | esac | |
3081 | fi | |
3082 | ||
3083 | # Disable libgomp on non POSIX hosted systems. | |
3084 | if test x$enable_libgomp = x ; then | |
3085 | # Enable libgomp by default on hosted POSIX systems. | |
3086 | case "${target}" in | |
3087 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3088 | ;; | |
3089 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) | |
3090 | ;; | |
3091 | *-*-solaris2* | *-*-hpux11*) | |
3092 | ;; | |
3093 | *-*-darwin* | *-*-aix*) | |
3094 | ;; | |
3095 | *) | |
3096 | noconfigdirs="$noconfigdirs target-libgomp" | |
3097 | ;; | |
3098 | esac | |
3099 | fi | |
3100 | ||
3101 | # Disable libatomic on unsupported systems. | |
3102 | if test -d ${srcdir}/libatomic; then | |
3103 | if test x$enable_libatomic = x; then | |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3105 | $as_echo_n "checking for libatomic support... " >&6; } | |
3106 | if (srcdir=${srcdir}/libatomic; \ | |
3107 | . ${srcdir}/configure.tgt; \ | |
3108 | test -n "$UNSUPPORTED") | |
3109 | then | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3111 | $as_echo "no" >&6; } | |
3112 | noconfigdirs="$noconfigdirs target-libatomic" | |
3113 | else | |
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3115 | $as_echo "yes" >&6; } | |
3116 | fi | |
3117 | fi | |
3118 | fi | |
3119 | ||
3120 | # Disable libitm on unsupported systems. | |
3121 | if test -d ${srcdir}/libitm; then | |
3122 | if test x$enable_libitm = x; then | |
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3124 | $as_echo_n "checking for libitm support... " >&6; } | |
3125 | if (srcdir=${srcdir}/libitm; \ | |
3126 | . ${srcdir}/configure.tgt; \ | |
3127 | test -n "$UNSUPPORTED") | |
3128 | then | |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3130 | $as_echo "no" >&6; } | |
3131 | noconfigdirs="$noconfigdirs target-libitm" | |
3132 | else | |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3134 | $as_echo "yes" >&6; } | |
3135 | fi | |
3136 | fi | |
3137 | fi | |
3138 | ||
3139 | # Disable libssp for some systems. | |
3140 | case "${target}" in | |
3141 | avr-*-*) | |
3142 | # No hosted I/O support. | |
3143 | noconfigdirs="$noconfigdirs target-libssp" | |
3144 | ;; | |
3145 | powerpc-*-aix* | rs6000-*-aix*) | |
3146 | noconfigdirs="$noconfigdirs target-libssp" | |
3147 | ;; | |
3148 | rl78-*-*) | |
3149 | # libssp uses a misaligned load to trigger a fault, but the RL78 | |
3150 | # doesn't fault for those - instead, it gives a build-time error | |
3151 | # for explicit misaligned loads. | |
3152 | noconfigdirs="$noconfigdirs target-libssp" | |
3153 | ;; | |
3154 | esac | |
3155 | ||
3156 | # Disable libstdc++-v3 for some systems. | |
3157 | case "${target}" in | |
3158 | *-*-vxworks*) | |
3159 | # VxWorks uses the Dinkumware C++ library. | |
3160 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3161 | ;; | |
3162 | arm*-wince-pe*) | |
3163 | # the C++ libraries don't build on top of CE's C libraries | |
3164 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3165 | ;; | |
3166 | avr-*-*) | |
3167 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3168 | ;; | |
3169 | esac | |
3170 | ||
3171 | # Disable Fortran for some systems. | |
3172 | case "${target}" in | |
3173 | mmix-*-*) | |
3174 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3175 | unsupported_languages="$unsupported_languages fortran" | |
3176 | ;; | |
3177 | esac | |
3178 | ||
3179 | # Disable Java if libffi is not supported. | |
3180 | case "${target}" in | |
3181 | alpha*-*-*) | |
3182 | ;; | |
3183 | arm*-*-*) | |
3184 | ;; | |
3185 | cris-*-*) | |
3186 | ;; | |
3187 | frv-*-*) | |
3188 | ;; | |
3189 | hppa*-*-linux*) | |
3190 | ;; | |
3191 | hppa*-*-hpux*) | |
3192 | ;; | |
3193 | i?86-*-*) | |
3194 | ;; | |
3195 | ia64*-*-*) | |
3196 | ;; | |
3197 | m32r*-*-*) | |
3198 | ;; | |
3199 | m68k-*-*) | |
3200 | ;; | |
3201 | mips*-*-rtems*) | |
3202 | ;; | |
3203 | mips*-*-linux*) | |
3204 | ;; | |
3205 | powerpc*-*-linux*) | |
3206 | ;; | |
3207 | powerpc-*-darwin*) | |
3208 | ;; | |
3209 | powerpc-*-aix* | rs6000-*-aix*) | |
3210 | ;; | |
3211 | powerpc-*-freebsd*) | |
3212 | ;; | |
3213 | powerpc64-*-freebsd*) | |
3214 | ;; | |
3215 | powerpc*-*-rtems*) | |
3216 | ;; | |
3217 | s390-*-* | s390x-*-*) | |
3218 | ;; | |
3219 | sh-*-* | sh[34]*-*-*) | |
3220 | ;; | |
3221 | sh64-*-* | sh5*-*-*) | |
3222 | ;; | |
3223 | sparc*-*-*) | |
3224 | ;; | |
3225 | x86_64-*-*) | |
3226 | ;; | |
3227 | *-*-*) | |
3228 | unsupported_languages="$unsupported_languages java" | |
3229 | ;; | |
3230 | esac | |
3231 | ||
3232 | # Disable Java, libgcj or related libraries for some systems. | |
3233 | case "${target}" in | |
3234 | powerpc-*-darwin*) | |
3235 | ;; | |
3236 | i[3456789]86-*-darwin*) | |
3237 | ;; | |
3238 | x86_64-*-darwin[912]*) | |
3239 | ;; | |
3240 | *-*-darwin*) | |
3241 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3242 | ;; | |
3243 | *-*-netware*) | |
3244 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3245 | ;; | |
3246 | *-*-rtems*) | |
3247 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3248 | ;; | |
3249 | *-*-tpf*) | |
3250 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3251 | ;; | |
3252 | *-*-uclinux*) | |
3253 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3254 | ;; | |
3255 | *-*-vxworks*) | |
3256 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3257 | ;; | |
3258 | alpha*-*-*vms*) | |
3259 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3260 | ;; | |
3261 | arm-wince-pe) | |
3262 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3263 | ;; | |
3264 | arm*-*-symbianelf*) | |
3265 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3266 | ;; | |
3267 | bfin-*-*) | |
3268 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
3269 | ;; | |
3270 | cris-*-* | crisv32-*-*) | |
3271 | unsupported_languages="$unsupported_languages java" | |
3272 | case "${target}" in | |
3273 | *-*-linux*) | |
3274 | ;; | |
3275 | *) # See PR46792 regarding target-libffi. | |
3276 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3277 | esac | |
3278 | ;; | |
3279 | hppa*64*-*-linux*) | |
3280 | # In this case, it's because the hppa64-linux target is for | |
3281 | # the kernel only at this point and has no libc, and thus no | |
3282 | # headers, crt*.o, etc., all of which are needed by these. | |
3283 | unsupported_languages="$unsupported_languages java" | |
3284 | ;; | |
3285 | hppa*64*-*-hpux*) | |
3286 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3287 | ;; | |
3288 | hppa*-hp-hpux11*) | |
3289 | ;; | |
3290 | hppa*-*-hpux*) | |
3291 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
3292 | # build on HP-UX 10.20. | |
3293 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3294 | ;; | |
3295 | ia64*-*-*vms*) | |
3296 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3297 | ;; | |
3298 | i[3456789]86-w64-mingw*) | |
3299 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3300 | ;; | |
3301 | i[3456789]86-*-mingw*) | |
3302 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3303 | ;; | |
3304 | x86_64-*-mingw*) | |
3305 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3306 | ;; | |
3307 | mmix-*-*) | |
3308 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
3309 | ;; | |
3310 | powerpc-*-aix*) | |
3311 | # copied from rs6000-*-* entry | |
3312 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3313 | ;; | |
3314 | rs6000-*-aix*) | |
3315 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3316 | ;; | |
3317 | *-*-lynxos*) | |
3318 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3319 | ;; | |
3320 | esac | |
3321 | ||
3322 | # Default libgloss CPU subdirectory. | |
3323 | libgloss_dir="$target_cpu" | |
3324 | ||
3325 | case "${target}" in | |
3326 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3327 | libgloss_dir=wince | |
3328 | ;; | |
3329 | arm*-*-*) | |
3330 | libgloss_dir=arm | |
3331 | ;; | |
3332 | cris-*-* | crisv32-*-*) | |
3333 | libgloss_dir=cris | |
3334 | ;; | |
3335 | hppa*-*-*) | |
3336 | libgloss_dir=pa | |
3337 | ;; | |
3338 | i[3456789]86-*-*) | |
3339 | libgloss_dir=i386 | |
3340 | ;; | |
3341 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3342 | libgloss_dir=m68hc11 | |
3343 | ;; | |
3344 | m68*-*-* | fido-*-*) | |
3345 | libgloss_dir=m68k | |
3346 | ;; | |
3347 | mips*-*-*) | |
3348 | libgloss_dir=mips | |
3349 | ;; | |
3350 | powerpc*-*-*) | |
3351 | libgloss_dir=rs6000 | |
3352 | ;; | |
3353 | sparc*-*-*) | |
3354 | libgloss_dir=sparc | |
3355 | ;; | |
3356 | esac | |
3357 | ||
3358 | # Disable newlib and libgloss for various target OSes. | |
3359 | case "${target}" in | |
3360 | alpha*-dec-osf*) | |
3361 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3362 | ;; | |
3363 | i[3456789]86-*-linux*) | |
3364 | # This section makes it possible to build newlib natively on linux. | |
3365 | # If we are using a cross compiler then don't configure newlib. | |
3366 | if test x${is_cross_compiler} != xno ; then | |
3367 | noconfigdirs="$noconfigdirs target-newlib" | |
3368 | fi | |
3369 | noconfigdirs="$noconfigdirs target-libgloss" | |
3370 | # If we are not using a cross compiler, do configure newlib. | |
3371 | # Note however, that newlib will only be configured in this situation | |
3372 | # if the --with-newlib option has been given, because otherwise | |
3373 | # 'target-newlib' will appear in skipdirs. | |
3374 | ;; | |
3375 | i[3456789]86-*-rdos*) | |
3376 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3377 | ;; | |
3378 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3379 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3380 | ;; | |
3381 | sparc-*-sunos4*) | |
3382 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3383 | ;; | |
3384 | *-*-aix*) | |
3385 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3386 | ;; | |
3387 | *-*-beos*) | |
3388 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3389 | ;; | |
3390 | *-*-chorusos) | |
3391 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3392 | ;; | |
3393 | *-*-dragonfly*) | |
3394 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3395 | ;; | |
3396 | *-*-freebsd*) | |
3397 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3398 | ;; | |
3399 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3400 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3401 | ;; | |
3402 | *-*-lynxos*) | |
3403 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3404 | ;; | |
3405 | *-*-mingw*) | |
3406 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3407 | ;; | |
3408 | *-*-netbsd*) | |
3409 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3410 | ;; | |
3411 | *-*-netware*) | |
3412 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3413 | ;; | |
3414 | *-*-tpf*) | |
3415 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3416 | ;; | |
3417 | *-*-uclinux*) | |
3418 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3419 | ;; | |
3420 | *-*-vxworks*) | |
3421 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3422 | ;; | |
3423 | esac | |
3424 | ||
3425 | case "${target}" in | |
3426 | *-*-chorusos) | |
3427 | ;; | |
3428 | powerpc-*-darwin*) | |
3429 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3430 | noconfigdirs="$noconfigdirs sim target-rda" | |
3431 | ;; | |
3432 | i[3456789]86-*-darwin*) | |
3433 | noconfigdirs="$noconfigdirs ld gprof" | |
3434 | noconfigdirs="$noconfigdirs sim target-rda" | |
3435 | ;; | |
3436 | x86_64-*-darwin[912]*) | |
3437 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3438 | noconfigdirs="$noconfigdirs sim target-rda" | |
3439 | ;; | |
3440 | *-*-darwin*) | |
3441 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3442 | noconfigdirs="$noconfigdirs sim target-rda" | |
3443 | ;; | |
3444 | *-*-dragonfly*) | |
3445 | ;; | |
3446 | *-*-freebsd*) | |
3447 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
3448 | && test -f /usr/local/include/gmp.h; then | |
3449 | with_gmp=/usr/local | |
3450 | fi | |
3451 | ;; | |
3452 | *-*-kaos*) | |
3453 | # Remove unsupported stuff on all kaOS configurations. | |
3454 | noconfigdirs="$noconfigdirs target-libgloss" | |
3455 | ;; | |
3456 | *-*-netbsd*) | |
3457 | ;; | |
3458 | *-*-netware*) | |
3459 | ;; | |
3460 | *-*-rtems*) | |
3461 | noconfigdirs="$noconfigdirs target-libgloss" | |
3462 | ;; | |
3463 | # The tpf target doesn't support gdb yet. | |
3464 | *-*-tpf*) | |
3465 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" | |
3466 | ;; | |
3467 | *-*-uclinux*) | |
3468 | noconfigdirs="$noconfigdirs target-rda" | |
3469 | ;; | |
3470 | *-*-vxworks*) | |
3471 | ;; | |
3472 | alpha*-dec-osf*) | |
3473 | # ld works, but does not support shared libraries. | |
3474 | # gas doesn't generate exception information. | |
3475 | noconfigdirs="$noconfigdirs gas ld" | |
3476 | ;; | |
3477 | alpha*-*-*vms*) | |
3478 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
3479 | ;; | |
3480 | alpha*-*-*) | |
3481 | # newlib is not 64 bit ready | |
3482 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3483 | ;; | |
3484 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3485 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" | |
3486 | ;; | |
3487 | arc-*-*) | |
3488 | noconfigdirs="$noconfigdirs target-libgloss" | |
3489 | ;; | |
3490 | arm-*-pe*) | |
3491 | noconfigdirs="$noconfigdirs target-libgloss" | |
3492 | ;; | |
3493 | arm-*-riscix*) | |
3494 | noconfigdirs="$noconfigdirs ld target-libgloss" | |
3495 | ;; | |
3496 | c4x-*-* | tic4x-*-*) | |
3497 | noconfigdirs="$noconfigdirs target-libgloss" | |
3498 | ;; | |
3499 | tic54x-*-*) | |
3500 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
3501 | ;; | |
3502 | d10v-*-*) | |
3503 | noconfigdirs="$noconfigdirs target-libgloss" | |
3504 | ;; | |
3505 | d30v-*-*) | |
3506 | noconfigdirs="$noconfigdirs gdb" | |
3507 | ;; | |
3508 | fr30-*-elf*) | |
3509 | noconfigdirs="$noconfigdirs gdb" | |
3510 | ;; | |
3511 | moxie-*-*) | |
3512 | noconfigdirs="$noconfigdirs gprof" | |
3513 | ;; | |
3514 | h8300*-*-*) | |
3515 | noconfigdirs="$noconfigdirs target-libgloss" | |
3516 | ;; | |
3517 | h8500-*-*) | |
3518 | noconfigdirs="$noconfigdirs target-libgloss" | |
3519 | ;; | |
3520 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) | |
3521 | ;; | |
3522 | hppa*64*-*-linux*) | |
3523 | ;; | |
3524 | hppa*-*-linux*) | |
3525 | ;; | |
3526 | hppa*-*-*elf* | \ | |
3527 | hppa*-*-lites* | \ | |
3528 | hppa*-*-openbsd* | \ | |
3529 | hppa*64*-*-*) | |
3530 | ;; | |
3531 | hppa*-hp-hpux11*) | |
3532 | noconfigdirs="$noconfigdirs ld" | |
3533 | ;; | |
3534 | hppa*-*-pro*) | |
3535 | ;; | |
3536 | hppa*-*-*) | |
3537 | noconfigdirs="$noconfigdirs ld" | |
3538 | ;; | |
3539 | i960-*-*) | |
3540 | noconfigdirs="$noconfigdirs gdb" | |
3541 | ;; | |
3542 | ia64*-*-elf*) | |
3543 | # No gdb support yet. | |
3544 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" | |
3545 | ;; | |
3546 | ia64*-**-hpux*) | |
3547 | # No ld support yet. | |
3548 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
3549 | ;; | |
3550 | ia64*-*-*vms*) | |
3551 | # No ld support yet. | |
3552 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
3553 | ;; | |
3554 | i[3456789]86-w64-mingw*) | |
3555 | ;; | |
3556 | i[3456789]86-*-mingw*) | |
3557 | target_configdirs="$target_configdirs target-winsup" | |
3558 | ;; | |
3559 | *-*-cygwin*) | |
3560 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
3561 | noconfigdirs="$noconfigdirs target-libgloss" | |
3562 | # always build newlib if winsup directory is present. | |
3563 | if test -d "$srcdir/winsup/cygwin"; then | |
3564 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3565 | elif test -d "$srcdir/newlib"; then | |
3566 | echo "Warning: winsup/cygwin is missing so newlib can't be built." | |
3567 | fi | |
3568 | ;; | |
3569 | i[3456789]86-*-pe) | |
3570 | noconfigdirs="$noconfigdirs target-libgloss" | |
3571 | ;; | |
3572 | i[3456789]86-*-sco3.2v5*) | |
3573 | # The linker does not yet know about weak symbols in COFF, | |
3574 | # and is not configured to handle mixed ELF and COFF. | |
3575 | noconfigdirs="$noconfigdirs ld target-libgloss" | |
3576 | ;; | |
3577 | i[3456789]86-*-sco*) | |
3578 | noconfigdirs="$noconfigdirs gprof target-libgloss" | |
3579 | ;; | |
3580 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) | |
3581 | noconfigdirs="$noconfigdirs target-libgloss" | |
3582 | ;; | |
3583 | i[3456789]86-*-sysv4*) | |
3584 | noconfigdirs="$noconfigdirs target-libgloss" | |
3585 | ;; | |
3586 | i[3456789]86-*-beos*) | |
3587 | noconfigdirs="$noconfigdirs gdb" | |
3588 | ;; | |
3589 | i[3456789]86-*-rdos*) | |
3590 | noconfigdirs="$noconfigdirs gdb" | |
3591 | ;; | |
3592 | mmix-*-*) | |
3593 | noconfigdirs="$noconfigdirs gdb" | |
3594 | ;; | |
3595 | mt-*-*) | |
3596 | noconfigdirs="$noconfigdirs sim" | |
3597 | ;; | |
3598 | powerpc-*-aix*) | |
3599 | # copied from rs6000-*-* entry | |
3600 | noconfigdirs="$noconfigdirs gprof" | |
3601 | ;; | |
3602 | powerpc*-*-winnt* | powerpc*-*-pe*) | |
3603 | target_configdirs="$target_configdirs target-winsup" | |
3604 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" | |
3605 | # always build newlib. | |
3606 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3607 | ;; | |
3608 | # This is temporary until we can link against shared libraries | |
3609 | powerpcle-*-solaris*) | |
3610 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" | |
3611 | ;; | |
3612 | powerpc-*-beos*) | |
3613 | noconfigdirs="$noconfigdirs gdb" | |
3614 | ;; | |
3615 | rs6000-*-lynxos*) | |
3616 | noconfigdirs="$noconfigdirs gprof" | |
3617 | ;; | |
3618 | rs6000-*-aix*) | |
3619 | noconfigdirs="$noconfigdirs gprof" | |
3620 | ;; | |
3621 | rs6000-*-*) | |
3622 | noconfigdirs="$noconfigdirs gprof" | |
3623 | ;; | |
3624 | m68k-apollo-*) | |
3625 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" | |
3626 | ;; | |
3627 | microblaze*) | |
3628 | noconfigdirs="$noconfigdirs gprof" | |
3629 | ;; | |
3630 | mips*-sde-elf*) | |
3631 | if test x$with_newlib = xyes; then | |
3632 | noconfigdirs="$noconfigdirs gprof" | |
3633 | fi | |
3634 | ;; | |
3635 | mips*-*-irix5*) | |
3636 | noconfigdirs="$noconfigdirs gprof target-libgloss" | |
3637 | ;; | |
3638 | mips*-*-irix6*) | |
3639 | noconfigdirs="$noconfigdirs gprof target-libgloss" | |
3640 | ;; | |
3641 | mips*-*-bsd*) | |
3642 | noconfigdirs="$noconfigdirs gprof target-libgloss" | |
3643 | ;; | |
3644 | mips*-*-linux*) | |
3645 | ;; | |
3646 | mips*-*-*) | |
3647 | noconfigdirs="$noconfigdirs gprof" | |
3648 | ;; | |
3649 | sh-*-* | sh64-*-*) | |
3650 | case "${target}" in | |
3651 | sh*-*-elf) | |
3652 | ;; | |
3653 | *) | |
3654 | noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3655 | esac | |
3656 | ;; | |
3657 | sparc-*-sunos4*) | |
3658 | if test x${is_cross_compiler} = xno ; then | |
3659 | use_gnu_ld=no | |
3660 | fi | |
3661 | ;; | |
3662 | tic6x-*-*) | |
3663 | noconfigdirs="$noconfigdirs sim" | |
3664 | ;; | |
3665 | tilepro-*-* | tilegx-*-*) | |
3666 | noconfigdirs="$noconfigdirs sim" | |
3667 | ;; | |
3668 | v810-*-*) | |
3669 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" | |
3670 | ;; | |
3671 | vax-*-*) | |
3672 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3673 | ;; | |
3674 | esac | |
3675 | ||
3676 | # If we aren't building newlib, then don't build libgloss, since libgloss | |
3677 | # depends upon some newlib header files. | |
3678 | case "${noconfigdirs}" in | |
3679 | *target-libgloss*) ;; | |
3680 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3681 | esac | |
3682 | ||
3683 | # Work in distributions that contain no compiler tools, like Autoconf. | |
3684 | host_makefile_frag=/dev/null | |
3685 | if test -d ${srcdir}/config ; then | |
3686 | case "${host}" in | |
3687 | i[3456789]86-*-msdosdjgpp*) | |
3688 | host_makefile_frag="config/mh-djgpp" | |
3689 | ;; | |
3690 | *-cygwin*) | |
3691 | ||
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 | |
3693 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
3694 | echo a >cygwin-cat-check | |
3695 | if test `cat cygwin-cat-check` = a ; then | |
3696 | rm cygwin-cat-check | |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3698 | $as_echo "yes" >&6; } | |
3699 | else | |
3700 | rm cygwin-cat-check | |
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3702 | $as_echo "no" >&6; } | |
3703 | as_fn_error "The cat command does not ignore carriage return characters. | |
3704 | Please either mount the build directory in binary mode or run the following | |
3705 | commands before running any configure script: | |
3706 | set -o igncr | |
3707 | export SHELLOPTS | |
3708 | " "$LINENO" 5 | |
3709 | fi | |
3710 | ||
3711 | host_makefile_frag="config/mh-cygwin" | |
3712 | ;; | |
3713 | *-mingw*) | |
3714 | host_makefile_frag="config/mh-mingw" | |
3715 | ;; | |
3716 | hppa*-hp-hpux10*) | |
3717 | host_makefile_frag="config/mh-pa-hpux10" | |
3718 | ;; | |
3719 | hppa*-hp-hpux*) | |
3720 | host_makefile_frag="config/mh-pa" | |
3721 | ;; | |
3722 | hppa*-*) | |
3723 | host_makefile_frag="config/mh-pa" | |
3724 | ;; | |
3725 | *-*-darwin*) | |
3726 | host_makefile_frag="config/mh-darwin" | |
3727 | ;; | |
3728 | powerpc-*-aix*) | |
3729 | host_makefile_frag="config/mh-ppc-aix" | |
3730 | ;; | |
3731 | rs6000-*-aix*) | |
3732 | host_makefile_frag="config/mh-ppc-aix" | |
3733 | ;; | |
3734 | esac | |
3735 | fi | |
3736 | ||
3737 | if test "${build}" != "${host}" ; then | |
3738 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} | |
3739 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
3740 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} | |
3741 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} | |
3742 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3743 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
3744 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} | |
3745 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} | |
3746 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3747 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3748 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3749 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3750 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3751 | else | |
3752 | AR_FOR_BUILD="\$(AR)" | |
3753 | AS_FOR_BUILD="\$(AS)" | |
3754 | CC_FOR_BUILD="\$(CC)" | |
3755 | CXX_FOR_BUILD="\$(CXX)" | |
3756 | GCJ_FOR_BUILD="\$(GCJ)" | |
3757 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
3758 | GOC_FOR_BUILD="\$(GOC)" | |
3759 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" | |
3760 | LD_FOR_BUILD="\$(LD)" | |
3761 | NM_FOR_BUILD="\$(NM)" | |
3762 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3763 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3764 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
3765 | fi | |
3766 | ||
3767 | ac_ext=c | |
3768 | ac_cpp='$CPP $CPPFLAGS' | |
3769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3772 | if test -n "$ac_tool_prefix"; then | |
3773 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3774 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3776 | $as_echo_n "checking for $ac_word... " >&6; } | |
3777 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3778 | $as_echo_n "(cached) " >&6 | |
3779 | else | |
3780 | if test -n "$CC"; then | |
3781 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3782 | else | |
3783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3784 | for as_dir in $PATH | |
3785 | do | |
3786 | IFS=$as_save_IFS | |
3787 | test -z "$as_dir" && as_dir=. | |
3788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3790 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3792 | break 2 | |
3793 | fi | |
3794 | done | |
3795 | done | |
3796 | IFS=$as_save_IFS | |
3797 | ||
3798 | fi | |
3799 | fi | |
3800 | CC=$ac_cv_prog_CC | |
3801 | if test -n "$CC"; then | |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3803 | $as_echo "$CC" >&6; } | |
3804 | else | |
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3806 | $as_echo "no" >&6; } | |
3807 | fi | |
3808 | ||
3809 | ||
3810 | fi | |
3811 | if test -z "$ac_cv_prog_CC"; then | |
3812 | ac_ct_CC=$CC | |
3813 | # Extract the first word of "gcc", so it can be a program name with args. | |
3814 | set dummy gcc; ac_word=$2 | |
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3816 | $as_echo_n "checking for $ac_word... " >&6; } | |
3817 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3818 | $as_echo_n "(cached) " >&6 | |
3819 | else | |
3820 | if test -n "$ac_ct_CC"; then | |
3821 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3822 | else | |
3823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3824 | for as_dir in $PATH | |
3825 | do | |
3826 | IFS=$as_save_IFS | |
3827 | test -z "$as_dir" && as_dir=. | |
3828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3830 | ac_cv_prog_ac_ct_CC="gcc" | |
3831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3832 | break 2 | |
3833 | fi | |
3834 | done | |
3835 | done | |
3836 | IFS=$as_save_IFS | |
3837 | ||
3838 | fi | |
3839 | fi | |
3840 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3841 | if test -n "$ac_ct_CC"; then | |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3843 | $as_echo "$ac_ct_CC" >&6; } | |
3844 | else | |
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3846 | $as_echo "no" >&6; } | |
3847 | fi | |
3848 | ||
3849 | if test "x$ac_ct_CC" = x; then | |
3850 | CC="" | |
3851 | else | |
3852 | case $cross_compiling:$ac_tool_warned in | |
3853 | yes:) | |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3856 | ac_tool_warned=yes ;; | |
3857 | esac | |
3858 | CC=$ac_ct_CC | |
3859 | fi | |
3860 | else | |
3861 | CC="$ac_cv_prog_CC" | |
3862 | fi | |
3863 | ||
3864 | if test -z "$CC"; then | |
3865 | if test -n "$ac_tool_prefix"; then | |
3866 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3867 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3869 | $as_echo_n "checking for $ac_word... " >&6; } | |
3870 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3871 | $as_echo_n "(cached) " >&6 | |
3872 | else | |
3873 | if test -n "$CC"; then | |
3874 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3875 | else | |
3876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3877 | for as_dir in $PATH | |
3878 | do | |
3879 | IFS=$as_save_IFS | |
3880 | test -z "$as_dir" && as_dir=. | |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3883 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3885 | break 2 | |
3886 | fi | |
3887 | done | |
3888 | done | |
3889 | IFS=$as_save_IFS | |
3890 | ||
3891 | fi | |
3892 | fi | |
3893 | CC=$ac_cv_prog_CC | |
3894 | if test -n "$CC"; then | |
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3896 | $as_echo "$CC" >&6; } | |
3897 | else | |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3899 | $as_echo "no" >&6; } | |
3900 | fi | |
3901 | ||
3902 | ||
3903 | fi | |
3904 | fi | |
3905 | if test -z "$CC"; then | |
3906 | # Extract the first word of "cc", so it can be a program name with args. | |
3907 | set dummy cc; ac_word=$2 | |
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3909 | $as_echo_n "checking for $ac_word... " >&6; } | |
3910 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3911 | $as_echo_n "(cached) " >&6 | |
3912 | else | |
3913 | if test -n "$CC"; then | |
3914 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3915 | else | |
3916 | ac_prog_rejected=no | |
3917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3918 | for as_dir in $PATH | |
3919 | do | |
3920 | IFS=$as_save_IFS | |
3921 | test -z "$as_dir" && as_dir=. | |
3922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3924 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3925 | ac_prog_rejected=yes | |
3926 | continue | |
3927 | fi | |
3928 | ac_cv_prog_CC="cc" | |
3929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3930 | break 2 | |
3931 | fi | |
3932 | done | |
3933 | done | |
3934 | IFS=$as_save_IFS | |
3935 | ||
3936 | if test $ac_prog_rejected = yes; then | |
3937 | # We found a bogon in the path, so make sure we never use it. | |
3938 | set dummy $ac_cv_prog_CC | |
3939 | shift | |
3940 | if test $# != 0; then | |
3941 | # We chose a different compiler from the bogus one. | |
3942 | # However, it has the same basename, so the bogon will be chosen | |
3943 | # first if we set CC to just the basename; use the full file name. | |
3944 | shift | |
3945 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3946 | fi | |
3947 | fi | |
3948 | fi | |
3949 | fi | |
3950 | CC=$ac_cv_prog_CC | |
3951 | if test -n "$CC"; then | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3953 | $as_echo "$CC" >&6; } | |
3954 | else | |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3956 | $as_echo "no" >&6; } | |
3957 | fi | |
3958 | ||
3959 | ||
3960 | fi | |
3961 | if test -z "$CC"; then | |
3962 | if test -n "$ac_tool_prefix"; then | |
3963 | for ac_prog in cl.exe | |
3964 | do | |
3965 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3966 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3968 | $as_echo_n "checking for $ac_word... " >&6; } | |
3969 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3970 | $as_echo_n "(cached) " >&6 | |
3971 | else | |
3972 | if test -n "$CC"; then | |
3973 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3974 | else | |
3975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3976 | for as_dir in $PATH | |
3977 | do | |
3978 | IFS=$as_save_IFS | |
3979 | test -z "$as_dir" && as_dir=. | |
3980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3982 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3984 | break 2 | |
3985 | fi | |
3986 | done | |
3987 | done | |
3988 | IFS=$as_save_IFS | |
3989 | ||
3990 | fi | |
3991 | fi | |
3992 | CC=$ac_cv_prog_CC | |
3993 | if test -n "$CC"; then | |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3995 | $as_echo "$CC" >&6; } | |
3996 | else | |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3998 | $as_echo "no" >&6; } | |
3999 | fi | |
4000 | ||
4001 | ||
4002 | test -n "$CC" && break | |
4003 | done | |
4004 | fi | |
4005 | if test -z "$CC"; then | |
4006 | ac_ct_CC=$CC | |
4007 | for ac_prog in cl.exe | |
4008 | do | |
4009 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4010 | set dummy $ac_prog; ac_word=$2 | |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4012 | $as_echo_n "checking for $ac_word... " >&6; } | |
4013 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4014 | $as_echo_n "(cached) " >&6 | |
4015 | else | |
4016 | if test -n "$ac_ct_CC"; then | |
4017 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4018 | else | |
4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4020 | for as_dir in $PATH | |
4021 | do | |
4022 | IFS=$as_save_IFS | |
4023 | test -z "$as_dir" && as_dir=. | |
4024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4026 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4028 | break 2 | |
4029 | fi | |
4030 | done | |
4031 | done | |
4032 | IFS=$as_save_IFS | |
4033 | ||
4034 | fi | |
4035 | fi | |
4036 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4037 | if test -n "$ac_ct_CC"; then | |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4039 | $as_echo "$ac_ct_CC" >&6; } | |
4040 | else | |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4042 | $as_echo "no" >&6; } | |
4043 | fi | |
4044 | ||
4045 | ||
4046 | test -n "$ac_ct_CC" && break | |
4047 | done | |
4048 | ||
4049 | if test "x$ac_ct_CC" = x; then | |
4050 | CC="" | |
4051 | else | |
4052 | case $cross_compiling:$ac_tool_warned in | |
4053 | yes:) | |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4055 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4056 | ac_tool_warned=yes ;; | |
4057 | esac | |
4058 | CC=$ac_ct_CC | |
4059 | fi | |
4060 | fi | |
4061 | ||
4062 | fi | |
4063 | ||
4064 | ||
4065 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4066 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4067 | as_fn_error "no acceptable C compiler found in \$PATH | |
4068 | See \`config.log' for more details." "$LINENO" 5; } | |
4069 | ||
4070 | # Provide some information about the compiler. | |
4071 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4072 | set X $ac_compile | |
4073 | ac_compiler=$2 | |
4074 | for ac_option in --version -v -V -qversion; do | |
4075 | { { ac_try="$ac_compiler $ac_option >&5" | |
4076 | case "(($ac_try" in | |
4077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4078 | *) ac_try_echo=$ac_try;; | |
4079 | esac | |
4080 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4081 | $as_echo "$ac_try_echo"; } >&5 | |
4082 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4083 | ac_status=$? | |
4084 | if test -s conftest.err; then | |
4085 | sed '10a\ | |
4086 | ... rest of stderr output deleted ... | |
4087 | 10q' conftest.err >conftest.er1 | |
4088 | cat conftest.er1 >&5 | |
4089 | rm -f conftest.er1 conftest.err | |
4090 | fi | |
4091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4092 | test $ac_status = 0; } | |
4093 | done | |
4094 | ||
4095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4096 | /* end confdefs.h. */ | |
4097 | ||
4098 | int | |
4099 | main () | |
4100 | { | |
4101 | ||
4102 | ; | |
4103 | return 0; | |
4104 | } | |
4105 | _ACEOF | |
4106 | ac_clean_files_save=$ac_clean_files | |
4107 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
4108 | # Try to create an executable without -o first, disregard a.out. | |
4109 | # It will help us diagnose broken compilers, and finding out an intuition | |
4110 | # of exeext. | |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4112 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4113 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4114 | ||
4115 | # The possible output files: | |
4116 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4117 | ||
4118 | ac_rmfiles= | |
4119 | for ac_file in $ac_files | |
4120 | do | |
4121 | case $ac_file in | |
4122 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4123 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4124 | esac | |
4125 | done | |
4126 | rm -f $ac_rmfiles | |
4127 | ||
4128 | if { { ac_try="$ac_link_default" | |
4129 | case "(($ac_try" in | |
4130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4131 | *) ac_try_echo=$ac_try;; | |
4132 | esac | |
4133 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4134 | $as_echo "$ac_try_echo"; } >&5 | |
4135 | (eval "$ac_link_default") 2>&5 | |
4136 | ac_status=$? | |
4137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4138 | test $ac_status = 0; }; then : | |
4139 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4140 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4141 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4142 | # so that the user can short-circuit this test for compilers unknown to | |
4143 | # Autoconf. | |
4144 | for ac_file in $ac_files '' | |
4145 | do | |
4146 | test -f "$ac_file" || continue | |
4147 | case $ac_file in | |
4148 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4149 | ;; | |
4150 | [ab].out ) | |
4151 | # We found the default executable, but exeext='' is most | |
4152 | # certainly right. | |
4153 | break;; | |
4154 | *.* ) | |
4155 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4156 | then :; else | |
4157 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4158 | fi | |
4159 | # We set ac_cv_exeext here because the later test for it is not | |
4160 | # safe: cross compilers may not add the suffix if given an `-o' | |
4161 | # argument, so we may need to know it at that point already. | |
4162 | # Even if this section looks crufty: it has the advantage of | |
4163 | # actually working. | |
4164 | break;; | |
4165 | * ) | |
4166 | break;; | |
4167 | esac | |
4168 | done | |
4169 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4170 | ||
4171 | else | |
4172 | ac_file='' | |
4173 | fi | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4175 | $as_echo "$ac_file" >&6; } | |
4176 | if test -z "$ac_file"; then : | |
4177 | $as_echo "$as_me: failed program was:" >&5 | |
4178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4179 | ||
4180 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4182 | { as_fn_set_status 77 | |
4183 | as_fn_error "C compiler cannot create executables | |
4184 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4185 | fi | |
4186 | ac_exeext=$ac_cv_exeext | |
4187 | ||
4188 | # Check that the compiler produces executables we can run. If not, either | |
4189 | # the compiler is broken, or we cross compile. | |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4191 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4192 | # If not cross compiling, check that we can run a simple program. | |
4193 | if test "$cross_compiling" != yes; then | |
4194 | if { ac_try='./$ac_file' | |
4195 | { { case "(($ac_try" in | |
4196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4197 | *) ac_try_echo=$ac_try;; | |
4198 | esac | |
4199 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4200 | $as_echo "$ac_try_echo"; } >&5 | |
4201 | (eval "$ac_try") 2>&5 | |
4202 | ac_status=$? | |
4203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4204 | test $ac_status = 0; }; }; then | |
4205 | cross_compiling=no | |
4206 | else | |
4207 | if test "$cross_compiling" = maybe; then | |
4208 | cross_compiling=yes | |
4209 | else | |
4210 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4211 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4212 | as_fn_error "cannot run C compiled programs. | |
4213 | If you meant to cross compile, use \`--host'. | |
4214 | See \`config.log' for more details." "$LINENO" 5; } | |
4215 | fi | |
4216 | fi | |
4217 | fi | |
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4219 | $as_echo "yes" >&6; } | |
4220 | ||
4221 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out | |
4222 | ac_clean_files=$ac_clean_files_save | |
4223 | # Check that the compiler produces executables we can run. If not, either | |
4224 | # the compiler is broken, or we cross compile. | |
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4226 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4228 | $as_echo "$cross_compiling" >&6; } | |
4229 | ||
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4231 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4232 | if { { ac_try="$ac_link" | |
4233 | case "(($ac_try" in | |
4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4235 | *) ac_try_echo=$ac_try;; | |
4236 | esac | |
4237 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4238 | $as_echo "$ac_try_echo"; } >&5 | |
4239 | (eval "$ac_link") 2>&5 | |
4240 | ac_status=$? | |
4241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4242 | test $ac_status = 0; }; then : | |
4243 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4244 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4245 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4246 | # `rm'. | |
4247 | for ac_file in conftest.exe conftest conftest.*; do | |
4248 | test -f "$ac_file" || continue | |
4249 | case $ac_file in | |
4250 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4251 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4252 | break;; | |
4253 | * ) break;; | |
4254 | esac | |
4255 | done | |
4256 | else | |
4257 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4258 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4259 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4260 | See \`config.log' for more details." "$LINENO" 5; } | |
4261 | fi | |
4262 | rm -f conftest$ac_cv_exeext | |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4264 | $as_echo "$ac_cv_exeext" >&6; } | |
4265 | ||
4266 | rm -f conftest.$ac_ext | |
4267 | EXEEXT=$ac_cv_exeext | |
4268 | ac_exeext=$EXEEXT | |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4270 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4271 | if test "${ac_cv_objext+set}" = set; then : | |
4272 | $as_echo_n "(cached) " >&6 | |
4273 | else | |
4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4275 | /* end confdefs.h. */ | |
4276 | ||
4277 | int | |
4278 | main () | |
4279 | { | |
4280 | ||
4281 | ; | |
4282 | return 0; | |
4283 | } | |
4284 | _ACEOF | |
4285 | rm -f conftest.o conftest.obj | |
4286 | if { { ac_try="$ac_compile" | |
4287 | case "(($ac_try" in | |
4288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4289 | *) ac_try_echo=$ac_try;; | |
4290 | esac | |
4291 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4292 | $as_echo "$ac_try_echo"; } >&5 | |
4293 | (eval "$ac_compile") 2>&5 | |
4294 | ac_status=$? | |
4295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4296 | test $ac_status = 0; }; then : | |
4297 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4298 | test -f "$ac_file" || continue; | |
4299 | case $ac_file in | |
4300 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4301 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4302 | break;; | |
4303 | esac | |
4304 | done | |
4305 | else | |
4306 | $as_echo "$as_me: failed program was:" >&5 | |
4307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4308 | ||
4309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4310 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4311 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4312 | See \`config.log' for more details." "$LINENO" 5; } | |
4313 | fi | |
4314 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4315 | fi | |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4317 | $as_echo "$ac_cv_objext" >&6; } | |
4318 | OBJEXT=$ac_cv_objext | |
4319 | ac_objext=$OBJEXT | |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4321 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4322 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4323 | $as_echo_n "(cached) " >&6 | |
4324 | else | |
4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4326 | /* end confdefs.h. */ | |
4327 | ||
4328 | int | |
4329 | main () | |
4330 | { | |
4331 | #ifndef __GNUC__ | |
4332 | choke me | |
4333 | #endif | |
4334 | ||
4335 | ; | |
4336 | return 0; | |
4337 | } | |
4338 | _ACEOF | |
4339 | if ac_fn_c_try_compile "$LINENO"; then : | |
4340 | ac_compiler_gnu=yes | |
4341 | else | |
4342 | ac_compiler_gnu=no | |
4343 | fi | |
4344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4345 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4346 | ||
4347 | fi | |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4349 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4350 | if test $ac_compiler_gnu = yes; then | |
4351 | GCC=yes | |
4352 | else | |
4353 | GCC= | |
4354 | fi | |
4355 | ac_test_CFLAGS=${CFLAGS+set} | |
4356 | ac_save_CFLAGS=$CFLAGS | |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4358 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4359 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4360 | $as_echo_n "(cached) " >&6 | |
4361 | else | |
4362 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4363 | ac_c_werror_flag=yes | |
4364 | ac_cv_prog_cc_g=no | |
4365 | CFLAGS="-g" | |
4366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4367 | /* end confdefs.h. */ | |
4368 | ||
4369 | int | |
4370 | main () | |
4371 | { | |
4372 | ||
4373 | ; | |
4374 | return 0; | |
4375 | } | |
4376 | _ACEOF | |
4377 | if ac_fn_c_try_compile "$LINENO"; then : | |
4378 | ac_cv_prog_cc_g=yes | |
4379 | else | |
4380 | CFLAGS="" | |
4381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4382 | /* end confdefs.h. */ | |
4383 | ||
4384 | int | |
4385 | main () | |
4386 | { | |
4387 | ||
4388 | ; | |
4389 | return 0; | |
4390 | } | |
4391 | _ACEOF | |
4392 | if ac_fn_c_try_compile "$LINENO"; then : | |
4393 | ||
4394 | else | |
4395 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4396 | CFLAGS="-g" | |
4397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4398 | /* end confdefs.h. */ | |
4399 | ||
4400 | int | |
4401 | main () | |
4402 | { | |
4403 | ||
4404 | ; | |
4405 | return 0; | |
4406 | } | |
4407 | _ACEOF | |
4408 | if ac_fn_c_try_compile "$LINENO"; then : | |
4409 | ac_cv_prog_cc_g=yes | |
4410 | fi | |
4411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4412 | fi | |
4413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4414 | fi | |
4415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4416 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4417 | fi | |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4419 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4420 | if test "$ac_test_CFLAGS" = set; then | |
4421 | CFLAGS=$ac_save_CFLAGS | |
4422 | elif test $ac_cv_prog_cc_g = yes; then | |
4423 | if test "$GCC" = yes; then | |
4424 | CFLAGS="-g -O2" | |
4425 | else | |
4426 | CFLAGS="-g" | |
4427 | fi | |
4428 | else | |
4429 | if test "$GCC" = yes; then | |
4430 | CFLAGS="-O2" | |
4431 | else | |
4432 | CFLAGS= | |
4433 | fi | |
4434 | fi | |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4436 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4437 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4438 | $as_echo_n "(cached) " >&6 | |
4439 | else | |
4440 | ac_cv_prog_cc_c89=no | |
4441 | ac_save_CC=$CC | |
4442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4443 | /* end confdefs.h. */ | |
4444 | #include <stdarg.h> | |
4445 | #include <stdio.h> | |
4446 | #include <sys/types.h> | |
4447 | #include <sys/stat.h> | |
4448 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4449 | struct buf { int x; }; | |
4450 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4451 | static char *e (p, i) | |
4452 | char **p; | |
4453 | int i; | |
4454 | { | |
4455 | return p[i]; | |
4456 | } | |
4457 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4458 | { | |
4459 | char *s; | |
4460 | va_list v; | |
4461 | va_start (v,p); | |
4462 | s = g (p, va_arg (v,int)); | |
4463 | va_end (v); | |
4464 | return s; | |
4465 | } | |
4466 | ||
4467 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4468 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4469 | These don't provoke an error unfortunately, instead are silently treated | |
4470 | as 'x'. The following induces an error, until -std is added to get | |
4471 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4472 | array size at least. It's necessary to write '\x00'==0 to get something | |
4473 | that's true only with -std. */ | |
4474 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4475 | ||
4476 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4477 | inside strings and character constants. */ | |
4478 | #define FOO(x) 'x' | |
4479 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4480 | ||
4481 | int test (int i, double x); | |
4482 | struct s1 {int (*f) (int a);}; | |
4483 | struct s2 {int (*f) (double a);}; | |
4484 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4485 | int argc; | |
4486 | char **argv; | |
4487 | int | |
4488 | main () | |
4489 | { | |
4490 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4491 | ; | |
4492 | return 0; | |
4493 | } | |
4494 | _ACEOF | |
4495 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4496 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4497 | do | |
4498 | CC="$ac_save_CC $ac_arg" | |
4499 | if ac_fn_c_try_compile "$LINENO"; then : | |
4500 | ac_cv_prog_cc_c89=$ac_arg | |
4501 | fi | |
4502 | rm -f core conftest.err conftest.$ac_objext | |
4503 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4504 | done | |
4505 | rm -f conftest.$ac_ext | |
4506 | CC=$ac_save_CC | |
4507 | ||
4508 | fi | |
4509 | # AC_CACHE_VAL | |
4510 | case "x$ac_cv_prog_cc_c89" in | |
4511 | x) | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4513 | $as_echo "none needed" >&6; } ;; | |
4514 | xno) | |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4516 | $as_echo "unsupported" >&6; } ;; | |
4517 | *) | |
4518 | CC="$CC $ac_cv_prog_cc_c89" | |
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4520 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4521 | esac | |
4522 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4523 | ||
4524 | fi | |
4525 | ||
4526 | ac_ext=c | |
4527 | ac_cpp='$CPP $CPPFLAGS' | |
4528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4531 | ||
4532 | ac_ext=cpp | |
4533 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4537 | if test -z "$CXX"; then | |
4538 | if test -n "$CCC"; then | |
4539 | CXX=$CCC | |
4540 | else | |
4541 | if test -n "$ac_tool_prefix"; then | |
4542 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4543 | do | |
4544 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4545 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4547 | $as_echo_n "checking for $ac_word... " >&6; } | |
4548 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4549 | $as_echo_n "(cached) " >&6 | |
4550 | else | |
4551 | if test -n "$CXX"; then | |
4552 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4553 | else | |
4554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4555 | for as_dir in $PATH | |
4556 | do | |
4557 | IFS=$as_save_IFS | |
4558 | test -z "$as_dir" && as_dir=. | |
4559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4561 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4563 | break 2 | |
4564 | fi | |
4565 | done | |
4566 | done | |
4567 | IFS=$as_save_IFS | |
4568 | ||
4569 | fi | |
4570 | fi | |
4571 | CXX=$ac_cv_prog_CXX | |
4572 | if test -n "$CXX"; then | |
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4574 | $as_echo "$CXX" >&6; } | |
4575 | else | |
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4577 | $as_echo "no" >&6; } | |
4578 | fi | |
4579 | ||
4580 | ||
4581 | test -n "$CXX" && break | |
4582 | done | |
4583 | fi | |
4584 | if test -z "$CXX"; then | |
4585 | ac_ct_CXX=$CXX | |
4586 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4587 | do | |
4588 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4589 | set dummy $ac_prog; ac_word=$2 | |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4591 | $as_echo_n "checking for $ac_word... " >&6; } | |
4592 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4593 | $as_echo_n "(cached) " >&6 | |
4594 | else | |
4595 | if test -n "$ac_ct_CXX"; then | |
4596 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4597 | else | |
4598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4599 | for as_dir in $PATH | |
4600 | do | |
4601 | IFS=$as_save_IFS | |
4602 | test -z "$as_dir" && as_dir=. | |
4603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4605 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4607 | break 2 | |
4608 | fi | |
4609 | done | |
4610 | done | |
4611 | IFS=$as_save_IFS | |
4612 | ||
4613 | fi | |
4614 | fi | |
4615 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4616 | if test -n "$ac_ct_CXX"; then | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4618 | $as_echo "$ac_ct_CXX" >&6; } | |
4619 | else | |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4621 | $as_echo "no" >&6; } | |
4622 | fi | |
4623 | ||
4624 | ||
4625 | test -n "$ac_ct_CXX" && break | |
4626 | done | |
4627 | ||
4628 | if test "x$ac_ct_CXX" = x; then | |
4629 | CXX="g++" | |
4630 | else | |
4631 | case $cross_compiling:$ac_tool_warned in | |
4632 | yes:) | |
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4634 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4635 | ac_tool_warned=yes ;; | |
4636 | esac | |
4637 | CXX=$ac_ct_CXX | |
4638 | fi | |
4639 | fi | |
4640 | ||
4641 | fi | |
4642 | fi | |
4643 | # Provide some information about the compiler. | |
4644 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4645 | set X $ac_compile | |
4646 | ac_compiler=$2 | |
4647 | for ac_option in --version -v -V -qversion; do | |
4648 | { { ac_try="$ac_compiler $ac_option >&5" | |
4649 | case "(($ac_try" in | |
4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4651 | *) ac_try_echo=$ac_try;; | |
4652 | esac | |
4653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4654 | $as_echo "$ac_try_echo"; } >&5 | |
4655 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4656 | ac_status=$? | |
4657 | if test -s conftest.err; then | |
4658 | sed '10a\ | |
4659 | ... rest of stderr output deleted ... | |
4660 | 10q' conftest.err >conftest.er1 | |
4661 | cat conftest.er1 >&5 | |
4662 | rm -f conftest.er1 conftest.err | |
4663 | fi | |
4664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4665 | test $ac_status = 0; } | |
4666 | done | |
4667 | ||
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
4669 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4670 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4671 | $as_echo_n "(cached) " >&6 | |
4672 | else | |
4673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4674 | /* end confdefs.h. */ | |
4675 | ||
4676 | int | |
4677 | main () | |
4678 | { | |
4679 | #ifndef __GNUC__ | |
4680 | choke me | |
4681 | #endif | |
4682 | ||
4683 | ; | |
4684 | return 0; | |
4685 | } | |
4686 | _ACEOF | |
4687 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4688 | ac_compiler_gnu=yes | |
4689 | else | |
4690 | ac_compiler_gnu=no | |
4691 | fi | |
4692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4694 | ||
4695 | fi | |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4697 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4698 | if test $ac_compiler_gnu = yes; then | |
4699 | GXX=yes | |
4700 | else | |
4701 | GXX= | |
4702 | fi | |
4703 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4704 | ac_save_CXXFLAGS=$CXXFLAGS | |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4706 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4707 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4708 | $as_echo_n "(cached) " >&6 | |
4709 | else | |
4710 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4711 | ac_cxx_werror_flag=yes | |
4712 | ac_cv_prog_cxx_g=no | |
4713 | CXXFLAGS="-g" | |
4714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4715 | /* end confdefs.h. */ | |
4716 | ||
4717 | int | |
4718 | main () | |
4719 | { | |
4720 | ||
4721 | ; | |
4722 | return 0; | |
4723 | } | |
4724 | _ACEOF | |
4725 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4726 | ac_cv_prog_cxx_g=yes | |
4727 | else | |
4728 | CXXFLAGS="" | |
4729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4730 | /* end confdefs.h. */ | |
4731 | ||
4732 | int | |
4733 | main () | |
4734 | { | |
4735 | ||
4736 | ; | |
4737 | return 0; | |
4738 | } | |
4739 | _ACEOF | |
4740 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4741 | ||
4742 | else | |
4743 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4744 | CXXFLAGS="-g" | |
4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4746 | /* end confdefs.h. */ | |
4747 | ||
4748 | int | |
4749 | main () | |
4750 | { | |
4751 | ||
4752 | ; | |
4753 | return 0; | |
4754 | } | |
4755 | _ACEOF | |
4756 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4757 | ac_cv_prog_cxx_g=yes | |
4758 | fi | |
4759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4760 | fi | |
4761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4762 | fi | |
4763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4764 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4765 | fi | |
4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4767 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4768 | if test "$ac_test_CXXFLAGS" = set; then | |
4769 | CXXFLAGS=$ac_save_CXXFLAGS | |
4770 | elif test $ac_cv_prog_cxx_g = yes; then | |
4771 | if test "$GXX" = yes; then | |
4772 | CXXFLAGS="-g -O2" | |
4773 | else | |
4774 | CXXFLAGS="-g" | |
4775 | fi | |
4776 | else | |
4777 | if test "$GXX" = yes; then | |
4778 | CXXFLAGS="-O2" | |
4779 | else | |
4780 | CXXFLAGS= | |
4781 | fi | |
4782 | fi | |
4783 | ac_ext=c | |
4784 | ac_cpp='$CPP $CPPFLAGS' | |
4785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4788 | ||
4789 | ||
4790 | # We must set the default linker to the linker used by gcc for the correct | |
4791 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4792 | # set the LD default to the ld used by gcc. | |
4793 | if test -z "$LD"; then | |
4794 | if test "$GCC" = yes; then | |
4795 | case $build in | |
4796 | *-*-mingw*) | |
4797 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4798 | *) | |
4799 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4800 | esac | |
4801 | case $gcc_prog_ld in | |
4802 | # Accept absolute paths. | |
4803 | [\\/]* | [A-Za-z]:[\\/]*) | |
4804 | LD="$gcc_prog_ld" ;; | |
4805 | esac | |
4806 | fi | |
4807 | fi | |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | if test -n "$ac_tool_prefix"; then | |
4813 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
4814 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4816 | $as_echo_n "checking for $ac_word... " >&6; } | |
4817 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4818 | $as_echo_n "(cached) " >&6 | |
4819 | else | |
4820 | if test -n "$GNATBIND"; then | |
4821 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4822 | else | |
4823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4824 | for as_dir in $PATH | |
4825 | do | |
4826 | IFS=$as_save_IFS | |
4827 | test -z "$as_dir" && as_dir=. | |
4828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4830 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" | |
4831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4832 | break 2 | |
4833 | fi | |
4834 | done | |
4835 | done | |
4836 | IFS=$as_save_IFS | |
4837 | ||
4838 | fi | |
4839 | fi | |
4840 | GNATBIND=$ac_cv_prog_GNATBIND | |
4841 | if test -n "$GNATBIND"; then | |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 | |
4843 | $as_echo "$GNATBIND" >&6; } | |
4844 | else | |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4846 | $as_echo "no" >&6; } | |
4847 | fi | |
4848 | ||
4849 | ||
4850 | fi | |
4851 | if test -z "$ac_cv_prog_GNATBIND"; then | |
4852 | ac_ct_GNATBIND=$GNATBIND | |
4853 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4854 | set dummy gnatbind; ac_word=$2 | |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4856 | $as_echo_n "checking for $ac_word... " >&6; } | |
4857 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4858 | $as_echo_n "(cached) " >&6 | |
4859 | else | |
4860 | if test -n "$ac_ct_GNATBIND"; then | |
4861 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
4862 | else | |
4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4864 | for as_dir in $PATH | |
4865 | do | |
4866 | IFS=$as_save_IFS | |
4867 | test -z "$as_dir" && as_dir=. | |
4868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4870 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" | |
4871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4872 | break 2 | |
4873 | fi | |
4874 | done | |
4875 | done | |
4876 | IFS=$as_save_IFS | |
4877 | ||
4878 | fi | |
4879 | fi | |
4880 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND | |
4881 | if test -n "$ac_ct_GNATBIND"; then | |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 | |
4883 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
4884 | else | |
4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4886 | $as_echo "no" >&6; } | |
4887 | fi | |
4888 | ||
4889 | if test "x$ac_ct_GNATBIND" = x; then | |
4890 | GNATBIND="no" | |
4891 | else | |
4892 | case $cross_compiling:$ac_tool_warned in | |
4893 | yes:) | |
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4895 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4896 | ac_tool_warned=yes ;; | |
4897 | esac | |
4898 | GNATBIND=$ac_ct_GNATBIND | |
4899 | fi | |
4900 | else | |
4901 | GNATBIND="$ac_cv_prog_GNATBIND" | |
4902 | fi | |
4903 | ||
4904 | if test -n "$ac_tool_prefix"; then | |
4905 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
4906 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4908 | $as_echo_n "checking for $ac_word... " >&6; } | |
4909 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4910 | $as_echo_n "(cached) " >&6 | |
4911 | else | |
4912 | if test -n "$GNATMAKE"; then | |
4913 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4914 | else | |
4915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4916 | for as_dir in $PATH | |
4917 | do | |
4918 | IFS=$as_save_IFS | |
4919 | test -z "$as_dir" && as_dir=. | |
4920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4922 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" | |
4923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4924 | break 2 | |
4925 | fi | |
4926 | done | |
4927 | done | |
4928 | IFS=$as_save_IFS | |
4929 | ||
4930 | fi | |
4931 | fi | |
4932 | GNATMAKE=$ac_cv_prog_GNATMAKE | |
4933 | if test -n "$GNATMAKE"; then | |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 | |
4935 | $as_echo "$GNATMAKE" >&6; } | |
4936 | else | |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4938 | $as_echo "no" >&6; } | |
4939 | fi | |
4940 | ||
4941 | ||
4942 | fi | |
4943 | if test -z "$ac_cv_prog_GNATMAKE"; then | |
4944 | ac_ct_GNATMAKE=$GNATMAKE | |
4945 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4946 | set dummy gnatmake; ac_word=$2 | |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4948 | $as_echo_n "checking for $ac_word... " >&6; } | |
4949 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4950 | $as_echo_n "(cached) " >&6 | |
4951 | else | |
4952 | if test -n "$ac_ct_GNATMAKE"; then | |
4953 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
4954 | else | |
4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4956 | for as_dir in $PATH | |
4957 | do | |
4958 | IFS=$as_save_IFS | |
4959 | test -z "$as_dir" && as_dir=. | |
4960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4962 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" | |
4963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4964 | break 2 | |
4965 | fi | |
4966 | done | |
4967 | done | |
4968 | IFS=$as_save_IFS | |
4969 | ||
4970 | fi | |
4971 | fi | |
4972 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE | |
4973 | if test -n "$ac_ct_GNATMAKE"; then | |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 | |
4975 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
4976 | else | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4978 | $as_echo "no" >&6; } | |
4979 | fi | |
4980 | ||
4981 | if test "x$ac_ct_GNATMAKE" = x; then | |
4982 | GNATMAKE="no" | |
4983 | else | |
4984 | case $cross_compiling:$ac_tool_warned in | |
4985 | yes:) | |
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4987 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4988 | ac_tool_warned=yes ;; | |
4989 | esac | |
4990 | GNATMAKE=$ac_ct_GNATMAKE | |
4991 | fi | |
4992 | else | |
4993 | GNATMAKE="$ac_cv_prog_GNATMAKE" | |
4994 | fi | |
4995 | ||
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 | |
4997 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4998 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4999 | $as_echo_n "(cached) " >&6 | |
5000 | else | |
5001 | cat >conftest.adb <<EOF | |
5002 | procedure conftest is begin null; end conftest; | |
5003 | EOF | |
5004 | acx_cv_cc_gcc_supports_ada=no | |
5005 | # There is a bug in old released versions of GCC which causes the | |
5006 | # driver to exit successfully when the appropriate language module | |
5007 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5008 | # Therefore we must check for the error message as well as an | |
5009 | # unsuccessful exit. | |
5010 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when | |
5011 | # given a .adb file, but produce no object file. So we must check | |
5012 | # if an object file was really produced to guard against this. | |
5013 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` | |
5014 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5015 | acx_cv_cc_gcc_supports_ada=yes | |
5016 | fi | |
5017 | rm -f conftest.* | |
5018 | fi | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 | |
5020 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
5021 | ||
5022 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then | |
5023 | have_gnat=yes | |
5024 | else | |
5025 | have_gnat=no | |
5026 | fi | |
5027 | ||
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 | |
5029 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5030 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5031 | $as_echo_n "(cached) " >&6 | |
5032 | else | |
5033 | echo abfoo >t1 | |
5034 | echo cdfoo >t2 | |
5035 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
5036 | if cmp t1 t2 2 2 > /dev/null 2>&1; then | |
5037 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5038 | : | |
5039 | else | |
5040 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5041 | fi | |
5042 | fi | |
5043 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
5044 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
5045 | : | |
5046 | else | |
5047 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5048 | fi | |
5049 | fi | |
5050 | rm t1 t2 | |
5051 | ||
5052 | fi | |
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 | |
5054 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
5055 | do_compare="$gcc_cv_prog_cmp_skip" | |
5056 | ||
5057 | ||
5058 | ||
5059 | # Check whether --enable-bootstrap was given. | |
5060 | if test "${enable_bootstrap+set}" = set; then : | |
5061 | enableval=$enable_bootstrap; | |
5062 | else | |
5063 | enable_bootstrap=default | |
5064 | fi | |
5065 | ||
5066 | ||
5067 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5068 | if test -r $srcdir/gcc/configure; then | |
5069 | have_compiler=yes | |
5070 | else | |
5071 | have_compiler=no | |
5072 | fi | |
5073 | ||
5074 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5075 | *:*:*:no) ;; | |
5076 | ||
5077 | # Default behavior. Enable bootstrap if we have a compiler | |
5078 | # and we are in a native configuration. | |
5079 | yes:$build:$build:default) | |
5080 | enable_bootstrap=yes ;; | |
5081 | ||
5082 | *:*:*:default) | |
5083 | enable_bootstrap=no ;; | |
5084 | ||
5085 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5086 | yes:$build:$build:yes) | |
5087 | ;; | |
5088 | ||
5089 | # Other configurations, but we have a compiler. Assume the user knows | |
5090 | # what he's doing. | |
5091 | yes:*:*:yes) | |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5093 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5094 | ;; | |
5095 | ||
5096 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5097 | no:*:*:yes) | |
5098 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5099 | ||
5100 | # Fail if wrong command line | |
5101 | *) | |
5102 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5103 | ;; | |
5104 | esac | |
5105 | ||
5106 | # Used for setting $lt_cv_objdir | |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5108 | $as_echo_n "checking for objdir... " >&6; } | |
5109 | if test "${lt_cv_objdir+set}" = set; then : | |
5110 | $as_echo_n "(cached) " >&6 | |
5111 | else | |
5112 | rm -f .libs 2>/dev/null | |
5113 | mkdir .libs 2>/dev/null | |
5114 | if test -d .libs; then | |
5115 | lt_cv_objdir=.libs | |
5116 | else | |
5117 | # MS-DOS does not allow filenames that begin with a dot. | |
5118 | lt_cv_objdir=_libs | |
5119 | fi | |
5120 | rmdir .libs 2>/dev/null | |
5121 | fi | |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5123 | $as_echo "$lt_cv_objdir" >&6; } | |
5124 | objdir=$lt_cv_objdir | |
5125 | ||
5126 | ||
5127 | ||
5128 | ||
5129 | ||
5130 | cat >>confdefs.h <<_ACEOF | |
5131 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5132 | _ACEOF | |
5133 | ||
5134 | ||
5135 | ||
5136 | # Check for GMP, MPFR and MPC | |
5137 | gmplibs="-lmpc -lmpfr -lgmp" | |
5138 | gmpinc= | |
5139 | have_gmp=no | |
5140 | ||
5141 | # Specify a location for mpc | |
5142 | # check for this first so it ends up on the link line before mpfr. | |
5143 | ||
5144 | # Check whether --with-mpc was given. | |
5145 | if test "${with_mpc+set}" = set; then : | |
5146 | withval=$with_mpc; | |
5147 | fi | |
5148 | ||
5149 | ||
5150 | # Check whether --with-mpc-include was given. | |
5151 | if test "${with_mpc_include+set}" = set; then : | |
5152 | withval=$with_mpc_include; | |
5153 | fi | |
5154 | ||
5155 | ||
5156 | # Check whether --with-mpc-lib was given. | |
5157 | if test "${with_mpc_lib+set}" = set; then : | |
5158 | withval=$with_mpc_lib; | |
5159 | fi | |
5160 | ||
5161 | ||
5162 | if test "x$with_mpc" != x; then | |
5163 | gmplibs="-L$with_mpc/lib $gmplibs" | |
5164 | gmpinc="-I$with_mpc/include $gmpinc" | |
5165 | fi | |
5166 | if test "x$with_mpc_include" != x; then | |
5167 | gmpinc="-I$with_mpc_include $gmpinc" | |
5168 | fi | |
5169 | if test "x$with_mpc_lib" != x; then | |
5170 | gmplibs="-L$with_mpc_lib $gmplibs" | |
5171 | fi | |
5172 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
5173 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" | |
5174 | gmpinc='-I$$s/mpc/src '"$gmpinc" | |
5175 | # Do not test the mpc version. Assume that it is sufficient, since | |
5176 | # it is in the source tree, and the library has not been built yet | |
5177 | # but it would be included on the link line in the version check below | |
5178 | # hence making the test fail. | |
5179 | have_gmp=yes | |
5180 | fi | |
5181 | ||
5182 | # Specify a location for mpfr | |
5183 | # check for this first so it ends up on the link line before gmp. | |
5184 | ||
5185 | # Check whether --with-mpfr-dir was given. | |
5186 | if test "${with_mpfr_dir+set}" = set; then : | |
5187 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5188 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5189 | fi | |
5190 | ||
5191 | ||
5192 | ||
5193 | # Check whether --with-mpfr was given. | |
5194 | if test "${with_mpfr+set}" = set; then : | |
5195 | withval=$with_mpfr; | |
5196 | fi | |
5197 | ||
5198 | ||
5199 | # Check whether --with-mpfr-include was given. | |
5200 | if test "${with_mpfr_include+set}" = set; then : | |
5201 | withval=$with_mpfr_include; | |
5202 | fi | |
5203 | ||
5204 | ||
5205 | # Check whether --with-mpfr-lib was given. | |
5206 | if test "${with_mpfr_lib+set}" = set; then : | |
5207 | withval=$with_mpfr_lib; | |
5208 | fi | |
5209 | ||
5210 | ||
5211 | if test "x$with_mpfr" != x; then | |
5212 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
5213 | gmpinc="-I$with_mpfr/include $gmpinc" | |
5214 | fi | |
5215 | if test "x$with_mpfr_include" != x; then | |
5216 | gmpinc="-I$with_mpfr_include $gmpinc" | |
5217 | fi | |
5218 | if test "x$with_mpfr_lib" != x; then | |
5219 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5220 | fi | |
5221 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then | |
5222 | # MPFR v3.1.0 moved the sources into a src sub-directory. | |
5223 | if test -d ${srcdir}/mpfr/src; then | |
5224 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5225 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5226 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5227 | else | |
5228 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5229 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5230 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5231 | fi | |
5232 | # Do not test the mpfr version. Assume that it is sufficient, since | |
5233 | # it is in the source tree, and the library has not been built yet | |
5234 | # but it would be included on the link line in the version check below | |
5235 | # hence making the test fail. | |
5236 | have_gmp=yes | |
5237 | fi | |
5238 | ||
5239 | # Specify a location for gmp | |
5240 | ||
5241 | # Check whether --with-gmp-dir was given. | |
5242 | if test "${with_gmp_dir+set}" = set; then : | |
5243 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5244 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5245 | fi | |
5246 | ||
5247 | ||
5248 | ||
5249 | # Check whether --with-gmp was given. | |
5250 | if test "${with_gmp+set}" = set; then : | |
5251 | withval=$with_gmp; | |
5252 | fi | |
5253 | ||
5254 | ||
5255 | # Check whether --with-gmp-include was given. | |
5256 | if test "${with_gmp_include+set}" = set; then : | |
5257 | withval=$with_gmp_include; | |
5258 | fi | |
5259 | ||
5260 | ||
5261 | # Check whether --with-gmp-lib was given. | |
5262 | if test "${with_gmp_lib+set}" = set; then : | |
5263 | withval=$with_gmp_lib; | |
5264 | fi | |
5265 | ||
5266 | ||
5267 | ||
5268 | if test "x$with_gmp" != x; then | |
5269 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5270 | gmpinc="-I$with_gmp/include $gmpinc" | |
5271 | fi | |
5272 | if test "x$with_gmp_include" != x; then | |
5273 | gmpinc="-I$with_gmp_include $gmpinc" | |
5274 | fi | |
5275 | if test "x$with_gmp_lib" != x; then | |
5276 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5277 | fi | |
5278 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then | |
5279 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" | |
5280 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" | |
5281 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" | |
5282 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" | |
5283 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' | |
5284 | # Do not test the gmp version. Assume that it is sufficient, since | |
5285 | # it is in the source tree, and the library has not been built yet | |
5286 | # but it would be included on the link line in the version check below | |
5287 | # hence making the test fail. | |
5288 | have_gmp=yes | |
5289 | fi | |
5290 | ||
5291 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then | |
5292 | have_gmp=yes | |
5293 | saved_CFLAGS="$CFLAGS" | |
5294 | CFLAGS="$CFLAGS $gmpinc" | |
5295 | # Check for the recommended and required versions of GMP. | |
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5297 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
5298 | ||
5299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5300 | /* end confdefs.h. */ | |
5301 | #include "gmp.h" | |
5302 | int | |
5303 | main () | |
5304 | { | |
5305 | ||
5306 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5307 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5308 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5309 | choke me | |
5310 | #endif | |
5311 | ||
5312 | ; | |
5313 | return 0; | |
5314 | } | |
5315 | _ACEOF | |
5316 | if ac_fn_c_try_compile "$LINENO"; then : | |
5317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5318 | /* end confdefs.h. */ | |
5319 | #include <gmp.h> | |
5320 | int | |
5321 | main () | |
5322 | { | |
5323 | ||
5324 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5325 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5326 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
5327 | choke me | |
5328 | #endif | |
5329 | ||
5330 | ; | |
5331 | return 0; | |
5332 | } | |
5333 | _ACEOF | |
5334 | if ac_fn_c_try_compile "$LINENO"; then : | |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5336 | $as_echo "yes" >&6; } | |
5337 | else | |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5339 | $as_echo "buggy but acceptable" >&6; } | |
5340 | fi | |
5341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5342 | else | |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5344 | $as_echo "no" >&6; }; have_gmp=no | |
5345 | fi | |
5346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5347 | ||
5348 | # If we have GMP, check the MPFR version. | |
5349 | if test x"$have_gmp" = xyes; then | |
5350 | # Check for the recommended and required versions of MPFR. | |
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5352 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5354 | /* end confdefs.h. */ | |
5355 | #include <gmp.h> | |
5356 | #include <mpfr.h> | |
5357 | int | |
5358 | main () | |
5359 | { | |
5360 | ||
5361 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) | |
5362 | choke me | |
5363 | #endif | |
5364 | ||
5365 | ; | |
5366 | return 0; | |
5367 | } | |
5368 | _ACEOF | |
5369 | if ac_fn_c_try_compile "$LINENO"; then : | |
5370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5371 | /* end confdefs.h. */ | |
5372 | #include <gmp.h> | |
5373 | #include <mpfr.h> | |
5374 | int | |
5375 | main () | |
5376 | { | |
5377 | ||
5378 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) | |
5379 | choke me | |
5380 | #endif | |
5381 | ||
5382 | ; | |
5383 | return 0; | |
5384 | } | |
5385 | _ACEOF | |
5386 | if ac_fn_c_try_compile "$LINENO"; then : | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5388 | $as_echo "yes" >&6; } | |
5389 | else | |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5391 | $as_echo "buggy but acceptable" >&6; } | |
5392 | fi | |
5393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5394 | else | |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5396 | $as_echo "no" >&6; }; have_gmp=no | |
5397 | fi | |
5398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5399 | fi | |
5400 | ||
5401 | # Check for the MPC header version. | |
5402 | if test x"$have_gmp" = xyes ; then | |
5403 | # Check for the recommended and required versions of MPC. | |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 | |
5405 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5407 | /* end confdefs.h. */ | |
5408 | #include <mpc.h> | |
5409 | int | |
5410 | main () | |
5411 | { | |
5412 | ||
5413 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) | |
5414 | choke me | |
5415 | #endif | |
5416 | ||
5417 | ; | |
5418 | return 0; | |
5419 | } | |
5420 | _ACEOF | |
5421 | if ac_fn_c_try_compile "$LINENO"; then : | |
5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5423 | /* end confdefs.h. */ | |
5424 | #include <mpc.h> | |
5425 | int | |
5426 | main () | |
5427 | { | |
5428 | ||
5429 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
5430 | choke me | |
5431 | #endif | |
5432 | ||
5433 | ; | |
5434 | return 0; | |
5435 | } | |
5436 | _ACEOF | |
5437 | if ac_fn_c_try_compile "$LINENO"; then : | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5439 | $as_echo "yes" >&6; } | |
5440 | else | |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5442 | $as_echo "buggy but acceptable" >&6; } | |
5443 | fi | |
5444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5445 | else | |
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5447 | $as_echo "no" >&6; }; have_gmp=no | |
5448 | fi | |
5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5450 | fi | |
5451 | ||
5452 | # Now check the MPFR library. | |
5453 | if test x"$have_gmp" = xyes; then | |
5454 | saved_LIBS="$LIBS" | |
5455 | LIBS="$LIBS $gmplibs" | |
5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 | |
5457 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5459 | /* end confdefs.h. */ | |
5460 | #include <mpc.h> | |
5461 | int | |
5462 | main () | |
5463 | { | |
5464 | ||
5465 | mpfr_t n; | |
5466 | mpfr_t x; | |
5467 | mpc_t c; | |
5468 | int t; | |
5469 | mpfr_init (n); | |
5470 | mpfr_init (x); | |
5471 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5472 | mpfr_erfc (n, x, GMP_RNDN); | |
5473 | mpfr_subnormalize (x, t, GMP_RNDN); | |
5474 | mpfr_clear(n); | |
5475 | mpfr_clear(x); | |
5476 | mpc_init2 (c, 53); | |
5477 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5478 | mpc_cosh (c, c, MPC_RNDNN); | |
5479 | mpc_pow (c, c, c, MPC_RNDNN); | |
5480 | mpc_acosh (c, c, MPC_RNDNN); | |
5481 | mpc_clear (c); | |
5482 | ||
5483 | ; | |
5484 | return 0; | |
5485 | } | |
5486 | _ACEOF | |
5487 | if ac_fn_c_try_link "$LINENO"; then : | |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5489 | $as_echo "yes" >&6; } | |
5490 | else | |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5492 | $as_echo "no" >&6; }; have_gmp=no | |
5493 | fi | |
5494 | rm -f core conftest.err conftest.$ac_objext \ | |
5495 | conftest$ac_exeext conftest.$ac_ext | |
5496 | LIBS="$saved_LIBS" | |
5497 | fi | |
5498 | ||
5499 | CFLAGS="$saved_CFLAGS" | |
5500 | ||
5501 | # The library versions listed in the error message below should match | |
5502 | # the HARD-minimums enforced above. | |
5503 | if test x$have_gmp != xyes; then | |
5504 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. | |
5505 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify | |
5506 | their locations. Source code for these libraries can be found at | |
5507 | their respective hosting sites as well as at | |
5508 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5509 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5510 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5511 | make sure that you have installed both the libraries and the header | |
5512 | files. They may be located in separate packages." "$LINENO" 5 | |
5513 | fi | |
5514 | fi | |
5515 | ||
5516 | # Flags needed for both GMP, MPFR and/or MPC. | |
5517 | ||
5518 | ||
5519 | ||
5520 | ||
5521 | ||
5522 | ||
5523 | ||
5524 | # Allow host libstdc++ to be specified for static linking with PPL. | |
5525 | ||
5526 | # Check whether --with-host-libstdcxx was given. | |
5527 | if test "${with_host_libstdcxx+set}" = set; then : | |
5528 | withval=$with_host_libstdcxx; | |
5529 | fi | |
5530 | ||
5531 | ||
5532 | case $with_host_libstdcxx in | |
5533 | no|yes) | |
5534 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 | |
5535 | ;; | |
5536 | esac | |
5537 | ||
5538 | # Linker flags to use for stage1 or when not boostrapping. | |
5539 | ||
5540 | # Check whether --with-stage1-ldflags was given. | |
5541 | if test "${with_stage1_ldflags+set}" = set; then : | |
5542 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5543 | stage1_ldflags= | |
5544 | else | |
5545 | stage1_ldflags=$withval | |
5546 | fi | |
5547 | else | |
5548 | stage1_ldflags= | |
5549 | fi | |
5550 | ||
5551 | ||
5552 | ||
5553 | # Libraries to use for stage1 or when not bootstrapping. | |
5554 | ||
5555 | # Check whether --with-stage1-libs was given. | |
5556 | if test "${with_stage1_libs+set}" = set; then : | |
5557 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5558 | stage1_libs= | |
5559 | else | |
5560 | stage1_libs=$withval | |
5561 | fi | |
5562 | else | |
5563 | stage1_libs=$with_host_libstdcxx | |
5564 | fi | |
5565 | ||
5566 | ||
5567 | ||
5568 | # Libraries to use for stage2 and later builds. This defaults to the | |
5569 | # argument passed to --with-host-libstdcxx. | |
5570 | ||
5571 | # Check whether --with-boot-libs was given. | |
5572 | if test "${with_boot_libs+set}" = set; then : | |
5573 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5574 | poststage1_libs= | |
5575 | else | |
5576 | poststage1_libs=$withval | |
5577 | fi | |
5578 | else | |
5579 | poststage1_libs=$with_host_libstdcxx | |
5580 | fi | |
5581 | ||
5582 | ||
5583 | ||
5584 | # Linker flags to use for stage2 and later builds. | |
5585 | ||
5586 | # Check whether --with-boot-ldflags was given. | |
5587 | if test "${with_boot_ldflags+set}" = set; then : | |
5588 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5589 | poststage1_ldflags= | |
5590 | else | |
5591 | poststage1_ldflags=$withval | |
5592 | fi | |
5593 | else | |
5594 | poststage1_ldflags= | |
5595 | # In stages 2 and 3, default to linking libstdc++ and libgcc | |
5596 | # statically. But if the user explicitly specified the libraries to | |
5597 | # use, trust that they are doing what they want. | |
5598 | if test "$poststage1_libs" = ""; then | |
5599 | poststage1_ldflags="-static-libstdc++ -static-libgcc" | |
5600 | fi | |
5601 | fi | |
5602 | ||
5603 | ||
5604 | ||
5605 | # Check for ISL | |
5606 | ||
5607 | ||
5608 | # Check whether --with-isl was given. | |
5609 | if test "${with_isl+set}" = set; then : | |
5610 | withval=$with_isl; | |
5611 | fi | |
5612 | ||
5613 | ||
5614 | # Check whether --with-isl-include was given. | |
5615 | if test "${with_isl_include+set}" = set; then : | |
5616 | withval=$with_isl_include; | |
5617 | fi | |
5618 | ||
5619 | ||
5620 | # Check whether --with-isl-lib was given. | |
5621 | if test "${with_isl_lib+set}" = set; then : | |
5622 | withval=$with_isl_lib; | |
5623 | fi | |
5624 | ||
5625 | ||
5626 | # Check whether --enable-isl-version-check was given. | |
5627 | if test "${enable_isl_version_check+set}" = set; then : | |
5628 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5629 | else | |
5630 | ENABLE_ISL_CHECK=yes | |
5631 | fi | |
5632 | ||
5633 | ||
5634 | # Initialize isllibs and islinc. | |
5635 | case $with_isl in | |
5636 | no) | |
5637 | isllibs= | |
5638 | islinc= | |
5639 | ;; | |
5640 | "" | yes) | |
5641 | ;; | |
5642 | *) | |
5643 | isllibs="-L$with_isl/lib" | |
5644 | islinc="-I$with_isl/include" | |
5645 | ;; | |
5646 | esac | |
5647 | if test "x${with_isl_include}" != x ; then | |
5648 | islinc="-I$with_isl_include" | |
5649 | fi | |
5650 | if test "x${with_isl_lib}" != x; then | |
5651 | isllibs="-L$with_isl_lib" | |
5652 | fi | |
5653 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5654 | && test -d ${srcdir}/isl; then | |
5655 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5656 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5657 | ENABLE_ISL_CHECK=no | |
5658 | fi | |
5659 | ||
5660 | isllibs="${isllibs} -lisl" | |
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | if test "x$with_isl" != "xno"; then | |
5667 | ||
5668 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5669 | _isl_saved_CFLAGS=$CFLAGS | |
5670 | _isl_saved_LDFLAGS=$LDFLAGS | |
5671 | _isl_saved_LIBS=$LIBS | |
5672 | ||
5673 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5674 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5675 | LIBS="${_isl_saved_LIBS} -lisl" | |
5676 | echo $CFLAGS | |
5677 | ||
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5 | |
5679 | $as_echo_n "checking for version 0.10 of ISL... " >&6; } | |
5680 | if test "${gcc_cv_isl+set}" = set; then : | |
5681 | $as_echo_n "(cached) " >&6 | |
5682 | else | |
5683 | if test "$cross_compiling" = yes; then : | |
5684 | gcc_cv_isl=yes | |
5685 | else | |
5686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5687 | /* end confdefs.h. */ | |
5688 | #include <isl/version.h> | |
5689 | #include <string.h> | |
5690 | int | |
5691 | main () | |
5692 | { | |
5693 | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) | |
5694 | return 1; | |
5695 | ||
5696 | ; | |
5697 | return 0; | |
5698 | } | |
5699 | _ACEOF | |
5700 | if ac_fn_c_try_run "$LINENO"; then : | |
5701 | gcc_cv_isl=yes | |
5702 | else | |
5703 | gcc_cv_isl=no | |
5704 | fi | |
5705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5706 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5707 | fi | |
5708 | ||
5709 | fi | |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 | |
5711 | $as_echo "$gcc_cv_isl" >&6; } | |
5712 | ||
5713 | CFLAGS=$_isl_saved_CFLAGS | |
5714 | LDFLAGS=$_isl_saved_LDFLAGS | |
5715 | LIBS=$_isl_saved_LIBS | |
5716 | fi | |
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | if test "x${with_isl}" = xno; then | |
5725 | graphite_requested=no | |
5726 | elif test "x${with_isl}" != x \ | |
5727 | || test "x${with_isl_include}" != x \ | |
5728 | || test "x${with_isl_lib}" != x ; then | |
5729 | graphite_requested=yes | |
5730 | else | |
5731 | graphite_requested=no | |
5732 | fi | |
5733 | ||
5734 | ||
5735 | ||
5736 | if test "${gcc_cv_isl}" = no ; then | |
5737 | isllibs= | |
5738 | islinc= | |
5739 | fi | |
5740 | ||
5741 | if test "${graphite_requested}" = yes \ | |
5742 | && test "x${isllibs}" = x \ | |
5743 | && test "x${islinc}" = x ; then | |
5744 | ||
5745 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 | |
5746 | fi | |
5747 | ||
5748 | ||
5749 | fi | |
5750 | ||
5751 | # Check for CLOOG | |
5752 | ||
5753 | ||
5754 | # Check whether --with-cloog was given. | |
5755 | if test "${with_cloog+set}" = set; then : | |
5756 | withval=$with_cloog; | |
5757 | fi | |
5758 | ||
5759 | ||
5760 | # Check whether --with-cloog-include was given. | |
5761 | if test "${with_cloog_include+set}" = set; then : | |
5762 | withval=$with_cloog_include; | |
5763 | fi | |
5764 | ||
5765 | ||
5766 | # Check whether --with-cloog-lib was given. | |
5767 | if test "${with_cloog_lib+set}" = set; then : | |
5768 | withval=$with_cloog_lib; | |
5769 | fi | |
5770 | ||
5771 | ||
5772 | # Check whether --enable-cloog-version-check was given. | |
5773 | if test "${enable_cloog_version_check+set}" = set; then : | |
5774 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5775 | else | |
5776 | ENABLE_CLOOG_CHECK=yes | |
5777 | fi | |
5778 | ||
5779 | ||
5780 | # Initialize clooglibs and clooginc. | |
5781 | case $with_cloog in | |
5782 | no) | |
5783 | clooglibs= | |
5784 | clooginc= | |
5785 | ;; | |
5786 | "" | yes) | |
5787 | ;; | |
5788 | *) | |
5789 | clooglibs="-L$with_cloog/lib" | |
5790 | clooginc="-I$with_cloog/include" | |
5791 | ;; | |
5792 | esac | |
5793 | if test "x${with_cloog_include}" != x ; then | |
5794 | clooginc="-I$with_cloog_include" | |
5795 | fi | |
5796 | if test "x${with_cloog_lib}" != x; then | |
5797 | clooglibs="-L$with_cloog_lib" | |
5798 | fi | |
5799 | if test "x${clooginc}" = x && test "x${clooglibs}" = x \ | |
5800 | && test -d ${srcdir}/cloog; then | |
5801 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5802 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include ' | |
5803 | fi | |
5804 | ||
5805 | clooginc="-DCLOOG_INT_GMP ${clooginc}" | |
5806 | clooglibs="${clooglibs} -lcloog-isl ${isllibs}" | |
5807 | ||
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | if test "x$isllibs" = x && test "x$islinc" = x; then | |
5813 | clooglibs= | |
5814 | clooginc= | |
5815 | elif test "x$with_cloog" != "xno"; then | |
5816 | ||
5817 | ||
5818 | ||
5819 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5820 | _cloog_saved_CFLAGS=$CFLAGS | |
5821 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5822 | ||
5823 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" | |
5824 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
5825 | ||
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5 | |
5827 | $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; } | |
5828 | if test "${gcc_cv_cloog+set}" = set; then : | |
5829 | $as_echo_n "(cached) " >&6 | |
5830 | else | |
5831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5832 | /* end confdefs.h. */ | |
5833 | #include "cloog/version.h" | |
5834 | int | |
5835 | main () | |
5836 | { | |
5837 | #if CLOOG_VERSION_MAJOR != 0 \ | |
5838 | || CLOOG_VERSION_MINOR != 17 \ | |
5839 | || CLOOG_VERSION_REVISION < 0 | |
5840 | choke me | |
5841 | #endif | |
5842 | ; | |
5843 | return 0; | |
5844 | } | |
5845 | _ACEOF | |
5846 | if ac_fn_c_try_compile "$LINENO"; then : | |
5847 | gcc_cv_cloog=yes | |
5848 | else | |
5849 | gcc_cv_cloog=no | |
5850 | fi | |
5851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5852 | fi | |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 | |
5854 | $as_echo "$gcc_cv_cloog" >&6; } | |
5855 | ||
5856 | CFLAGS=$_cloog_saved_CFLAGS | |
5857 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5858 | fi | |
5859 | ||
5860 | ||
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | if test "x${with_cloog}" = xno; then | |
5867 | graphite_requested=no | |
5868 | elif test "x${with_cloog}" != x \ | |
5869 | || test "x${with_cloog_include}" != x \ | |
5870 | || test "x${with_cloog_lib}" != x ; then | |
5871 | graphite_requested=yes | |
5872 | else | |
5873 | graphite_requested=no | |
5874 | fi | |
5875 | ||
5876 | ||
5877 | ||
5878 | if test "${gcc_cv_cloog}" = no ; then | |
5879 | clooglibs= | |
5880 | clooginc= | |
5881 | fi | |
5882 | ||
5883 | if test "${graphite_requested}" = yes \ | |
5884 | && test "x${clooglibs}" = x \ | |
5885 | && test "x${clooginc}" = x ; then | |
5886 | ||
5887 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 | |
5888 | fi | |
5889 | ||
5890 | ||
5891 | fi | |
5892 | ||
5893 | # If either the ISL or the CLooG check failed, disable builds of in-tree | |
5894 | # variants of both | |
5895 | if test "x$clooglibs" = x && test "x$clooginc" = x; then | |
5896 | noconfigdirs="$noconfigdirs cloog isl" | |
5897 | fi | |
5898 | ||
5899 | # Check for LTO support. | |
5900 | # Check whether --enable-lto was given. | |
5901 | if test "${enable_lto+set}" = set; then : | |
5902 | enableval=$enable_lto; enable_lto=$enableval | |
5903 | else | |
5904 | enable_lto=yes; default_enable_lto=yes | |
5905 | fi | |
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | target_elf=no | |
5912 | case $target in | |
5913 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
5914 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ | |
5915 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) | |
5916 | target_elf=no | |
5917 | ;; | |
5918 | *) | |
5919 | target_elf=yes | |
5920 | ;; | |
5921 | esac | |
5922 | ||
5923 | if test $target_elf = yes; then : | |
5924 | # ELF platforms build the lto-plugin always. | |
5925 | build_lto_plugin=yes | |
5926 | ||
5927 | else | |
5928 | if test x"$default_enable_lto" = x"yes" ; then | |
5929 | case $target in | |
5930 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; | |
5931 | # On other non-ELF platforms, LTO has yet to be validated. | |
5932 | *) enable_lto=no ;; | |
5933 | esac | |
5934 | else | |
5935 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. | |
5936 | # It would also be nice to check the binutils support, but we don't | |
5937 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just | |
5938 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
5939 | # -flto it won't be needed until after installation anyway. | |
5940 | case $target in | |
5941 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; | |
5942 | *) if test x"$enable_lto" = x"yes"; then | |
5943 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
5944 | fi | |
5945 | ;; | |
5946 | esac | |
5947 | fi | |
5948 | # Among non-ELF, only Windows platforms support the lto-plugin so far. | |
5949 | # Build it unless LTO was explicitly disabled. | |
5950 | case $target in | |
5951 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; | |
5952 | *) ;; | |
5953 | esac | |
5954 | ||
5955 | fi | |
5956 | ||
5957 | ||
5958 | ||
5959 | # By default, C and C++ are the only stage 1 languages. | |
5960 | stage1_languages=,c, | |
5961 | ||
5962 | # Target libraries that we bootstrap. | |
5963 | bootstrap_target_libs=,target-libgcc, | |
5964 | ||
5965 | # Figure out what language subdirectories are present. | |
5966 | # Look if the user specified --enable-languages="..."; if not, use | |
5967 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
5968 | # go away some day. | |
5969 | # NB: embedded tabs in this IF block -- do not untabify | |
5970 | if test -d ${srcdir}/gcc; then | |
5971 | if test x"${enable_languages+set}" != xset; then | |
5972 | if test x"${LANGUAGES+set}" = xset; then | |
5973 | enable_languages="${LANGUAGES}" | |
5974 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
5975 | else | |
5976 | enable_languages=all | |
5977 | fi | |
5978 | else | |
5979 | if test x"${enable_languages}" = x || | |
5980 | test x"${enable_languages}" = xyes; | |
5981 | then | |
5982 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
5983 | exit 1 | |
5984 | fi | |
5985 | fi | |
5986 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
5987 | ||
5988 | # 'f95' is the old name for the 'fortran' language. We issue a warning | |
5989 | # and make the substitution. | |
5990 | case ,${enable_languages}, in | |
5991 | *,f95,*) | |
5992 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
5993 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
5994 | ;; | |
5995 | esac | |
5996 | ||
5997 | # If bootstrapping, C++ must be enabled. | |
5998 | case ",$enable_languages,:$enable_bootstrap" in | |
5999 | *,c++,*:*) ;; | |
6000 | *:yes) | |
6001 | if test -f ${srcdir}/gcc/cp/config-lang.in; then | |
6002 | enable_languages="${enable_languages},c++" | |
6003 | else | |
6004 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 | |
6005 | fi | |
6006 | ;; | |
6007 | esac | |
6008 | ||
6009 | # First scan to see if an enabled language requires some other language. | |
6010 | # We assume that a given config-lang.in will list all the language | |
6011 | # front ends it requires, even if some are required indirectly. | |
6012 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6013 | case ${lang_frag} in | |
6014 | ..) ;; | |
6015 | # The odd quoting in the next line works around | |
6016 | # an apparent bug in bash 1.12 on linux. | |
6017 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6018 | *) | |
6019 | # From the config-lang.in, get $language, $lang_requires, and | |
6020 | # $lang_requires_boot_languages. | |
6021 | language= | |
6022 | lang_requires= | |
6023 | lang_requires_boot_languages= | |
6024 | . ${lang_frag} | |
6025 | for other in ${lang_requires} ${lang_requires_boot_languages}; do | |
6026 | case ,${enable_languages}, in | |
6027 | *,$other,*) ;; | |
6028 | *,all,*) ;; | |
6029 | *,$language,*) | |
6030 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6031 | enable_languages="${enable_languages},${other}" | |
6032 | ;; | |
6033 | esac | |
6034 | done | |
6035 | for other in ${lang_requires_boot_languages} ; do | |
6036 | if test "$other" != "c"; then | |
6037 | case ,${enable_stage1_languages}, in | |
6038 | *,$other,*) ;; | |
6039 | *,all,*) ;; | |
6040 | *) | |
6041 | case ,${enable_languages}, in | |
6042 | *,$language,*) | |
6043 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6044 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6045 | ;; | |
6046 | esac | |
6047 | ;; | |
6048 | esac | |
6049 | fi | |
6050 | done | |
6051 | ;; | |
6052 | esac | |
6053 | done | |
6054 | ||
6055 | new_enable_languages=,c, | |
6056 | ||
6057 | # If LTO is enabled, add the LTO front end. | |
6058 | extra_host_libiberty_configure_flags= | |
6059 | if test "$enable_lto" = "yes" ; then | |
6060 | case ,${enable_languages}, in | |
6061 | *,lto,*) ;; | |
6062 | *) enable_languages="${enable_languages},lto" ;; | |
6063 | esac | |
6064 | if test "${build_lto_plugin}" = "yes" ; then | |
6065 | configdirs="$configdirs lto-plugin" | |
6066 | extra_host_libiberty_configure_flags=--enable-shared | |
6067 | fi | |
6068 | fi | |
6069 | ||
6070 | ||
6071 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` | |
6072 | potential_languages=,c, | |
6073 | ||
6074 | enabled_target_libs= | |
6075 | disabled_target_libs= | |
6076 | ||
6077 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6078 | case ${lang_frag} in | |
6079 | ..) ;; | |
6080 | # The odd quoting in the next line works around | |
6081 | # an apparent bug in bash 1.12 on linux. | |
6082 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6083 | *) | |
6084 | # From the config-lang.in, get $language, $target_libs, | |
6085 | # $lang_dirs, $boot_language, and $build_by_default | |
6086 | language= | |
6087 | target_libs= | |
6088 | lang_dirs= | |
6089 | subdir_requires= | |
6090 | boot_language=no | |
6091 | build_by_default=yes | |
6092 | . ${lang_frag} | |
6093 | if test x${language} = x; then | |
6094 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6095 | exit 1 | |
6096 | fi | |
6097 | ||
6098 | if test "$language" = "c++"; then | |
6099 | boot_language=yes | |
6100 | fi | |
6101 | ||
6102 | case ,${enable_languages}, in | |
6103 | *,${language},*) | |
6104 | # Language was explicitly selected; include it | |
6105 | # unless it is C, which is enabled by default. | |
6106 | if test "$language" != "c"; then | |
6107 | add_this_lang=yes | |
6108 | fi | |
6109 | ;; | |
6110 | *,all,*) | |
6111 | # 'all' was selected, select it if it is a default language | |
6112 | add_this_lang=${build_by_default} | |
6113 | ;; | |
6114 | *) | |
6115 | add_this_lang=no | |
6116 | ;; | |
6117 | esac | |
6118 | ||
6119 | # Disable languages that need other directories if these aren't available. | |
6120 | for i in $subdir_requires; do | |
6121 | test -f "$srcdir/gcc/$i/config-lang.in" && continue | |
6122 | case ,${enable_languages}, in | |
6123 | *,${language},*) | |
6124 | # Specifically requested language; tell them. | |
6125 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 | |
6126 | ;; | |
6127 | *) | |
6128 | # Silently disable. | |
6129 | add_this_lang=unsupported | |
6130 | ;; | |
6131 | esac | |
6132 | done | |
6133 | ||
6134 | # Disable Ada if no preexisting GNAT is available. | |
6135 | case ,${enable_languages},:${language}:${have_gnat} in | |
6136 | *,${language},*:ada:no) | |
6137 | # Specifically requested language; tell them. | |
6138 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 | |
6139 | ;; | |
6140 | *:ada:no) | |
6141 | # Silently disable. | |
6142 | add_this_lang=unsupported | |
6143 | ;; | |
6144 | esac | |
6145 | ||
6146 | # Disable a language that is unsupported by the target. | |
6147 | case " $unsupported_languages " in | |
6148 | *" $language "*) | |
6149 | add_this_lang=unsupported | |
6150 | ;; | |
6151 | esac | |
6152 | ||
6153 | case $add_this_lang in | |
6154 | unsupported) | |
6155 | # Remove language-dependent dirs. | |
6156 | disabled_target_libs="$disabled_target_libs $target_libs" | |
6157 | noconfigdirs="$noconfigdirs $lang_dirs" | |
6158 | ;; | |
6159 | no) | |
6160 | # Remove language-dependent dirs; still show language as supported. | |
6161 | disabled_target_libs="$disabled_target_libs $target_libs" | |
6162 | noconfigdirs="$noconfigdirs $lang_dirs" | |
6163 | potential_languages="${potential_languages}${language}," | |
6164 | ;; | |
6165 | yes) | |
6166 | new_enable_languages="${new_enable_languages}${language}," | |
6167 | potential_languages="${potential_languages}${language}," | |
6168 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` | |
6169 | enabled_target_libs="$enabled_target_libs $target_libs" | |
6170 | case "${boot_language}:,$enable_stage1_languages," in | |
6171 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
6172 | # Add to (comma-separated) list of stage 1 languages. | |
6173 | case ",$stage1_languages," in | |
6174 | *,$language,* | ,yes, | ,all,) ;; | |
6175 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6176 | esac | |
6177 | # We need to bootstrap any supporting libraries. | |
6178 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
6179 | ;; | |
6180 | esac | |
6181 | ;; | |
6182 | esac | |
6183 | ;; | |
6184 | esac | |
6185 | done | |
6186 | ||
6187 | # Add target libraries which are only needed for disabled languages | |
6188 | # to noconfigdirs. | |
6189 | if test -n "$disabled_target_libs"; then | |
6190 | for dir in $disabled_target_libs; do | |
6191 | case " $enabled_target_libs " in | |
6192 | *" ${dir} "*) ;; | |
6193 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6194 | esac | |
6195 | done | |
6196 | fi | |
6197 | ||
6198 | # Check whether --enable-stage1-languages was given. | |
6199 | if test "${enable_stage1_languages+set}" = set; then : | |
6200 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
6201 | ,no,|,,) | |
6202 | # Set it to something that will have no effect in the loop below | |
6203 | enable_stage1_languages=c ;; | |
6204 | ,yes,) | |
6205 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6206 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6207 | *,all,*) | |
6208 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6209 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6210 | esac | |
6211 | ||
6212 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6213 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6214 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6215 | case $potential_languages in | |
6216 | *,$i,*) | |
6217 | case $stage1_languages in | |
6218 | *,$i,*) ;; | |
6219 | *) stage1_languages="$stage1_languages$i," ;; | |
6220 | esac ;; | |
6221 | *) | |
6222 | case $missing_languages in | |
6223 | *,$i,*) ;; | |
6224 | *) missing_languages="$missing_languages$i," ;; | |
6225 | esac ;; | |
6226 | esac | |
6227 | done | |
6228 | fi | |
6229 | ||
6230 | ||
6231 | # Remove leading/trailing commas that were added for simplicity | |
6232 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6233 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6234 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6235 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6236 | ||
6237 | if test "x$missing_languages" != x; then | |
6238 | as_fn_error " | |
6239 | The following requested languages could not be built: ${missing_languages} | |
6240 | Supported languages are: ${potential_languages}" "$LINENO" 5 | |
6241 | fi | |
6242 | if test "x$new_enable_languages" != "x$enable_languages"; then | |
6243 | echo The following languages will be built: ${new_enable_languages} | |
6244 | enable_languages="$new_enable_languages" | |
6245 | fi | |
6246 | ||
6247 | ||
6248 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` | |
6249 | fi | |
6250 | ||
6251 | # Handle --disable-<component> generically. | |
6252 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6253 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
6254 | varname=`echo $dirname | sed -e s/+/_/g` | |
6255 | if eval test x\${enable_${varname}} "=" xno ; then | |
6256 | noconfigdirs="$noconfigdirs $dir" | |
6257 | fi | |
6258 | done | |
6259 | ||
6260 | # Check for Boehm's garbage collector | |
6261 | # Check whether --enable-objc-gc was given. | |
6262 | if test "${enable_objc_gc+set}" = set; then : | |
6263 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
6264 | *,objc,*:*:yes:*target-boehm-gc*) | |
6265 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 | |
6266 | ;; | |
6267 | esac | |
6268 | fi | |
6269 | ||
6270 | ||
6271 | # Make sure we only build Boehm's garbage collector if required. | |
6272 | case ,${enable_languages},:${enable_objc_gc} in | |
6273 | *,objc,*:yes) | |
6274 | # Keep target-boehm-gc if requested for Objective-C. | |
6275 | ;; | |
6276 | *) | |
6277 | # Otherwise remove target-boehm-gc depending on target-libjava. | |
6278 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6279 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6280 | fi | |
6281 | ;; | |
6282 | esac | |
6283 | ||
6284 | # Disable libitm if we're not building C++ | |
6285 | case ,${enable_languages}, in | |
6286 | *,c++,*) ;; | |
6287 | *) | |
6288 | noconfigdirs="$noconfigdirs target-libitm" | |
6289 | ;; | |
6290 | esac | |
6291 | ||
6292 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, | |
6293 | # $build_configdirs and $target_configdirs. | |
6294 | # If we have the source for $noconfigdirs entries, add them to $notsupp. | |
6295 | ||
6296 | notsupp="" | |
6297 | for dir in . $skipdirs $noconfigdirs ; do | |
6298 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` | |
6299 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6300 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6301 | if test -r $srcdir/$dirname/configure ; then | |
6302 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6303 | true | |
6304 | else | |
6305 | notsupp="$notsupp $dir" | |
6306 | fi | |
6307 | fi | |
6308 | fi | |
6309 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6310 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6311 | if test -r $srcdir/$dirname/configure ; then | |
6312 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6313 | true | |
6314 | else | |
6315 | notsupp="$notsupp $dir" | |
6316 | fi | |
6317 | fi | |
6318 | fi | |
6319 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6320 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6321 | if test -r $srcdir/$dirname/configure ; then | |
6322 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6323 | true | |
6324 | else | |
6325 | notsupp="$notsupp $dir" | |
6326 | fi | |
6327 | fi | |
6328 | fi | |
6329 | done | |
6330 | ||
6331 | # Quietly strip out all directories which aren't configurable in this tree. | |
6332 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6333 | # is now the case. | |
6334 | build_configdirs_all="$build_configdirs" | |
6335 | build_configdirs= | |
6336 | for i in ${build_configdirs_all} ; do | |
6337 | j=`echo $i | sed -e s/build-//g` | |
6338 | if test -f ${srcdir}/$j/configure ; then | |
6339 | build_configdirs="${build_configdirs} $i" | |
6340 | fi | |
6341 | done | |
6342 | ||
6343 | configdirs_all="$configdirs" | |
6344 | configdirs= | |
6345 | for i in ${configdirs_all} ; do | |
6346 | if test -f ${srcdir}/$i/configure ; then | |
6347 | configdirs="${configdirs} $i" | |
6348 | fi | |
6349 | done | |
6350 | ||
6351 | target_configdirs_all="$target_configdirs" | |
6352 | target_configdirs= | |
6353 | for i in ${target_configdirs_all} ; do | |
6354 | j=`echo $i | sed -e s/target-//g` | |
6355 | if test -f ${srcdir}/$j/configure ; then | |
6356 | target_configdirs="${target_configdirs} $i" | |
6357 | fi | |
6358 | done | |
6359 | ||
6360 | # Produce a warning message for the subdirs we can't configure. | |
6361 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6362 | # FSF releases, it's important to let people know when their machine isn't | |
6363 | # supported by the one or two programs in a package. | |
6364 | ||
6365 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6366 | # If $appdirs is non-empty, at least one of those directories must still | |
6367 | # be configured, or we error out. (E.g., if the gas release supports a | |
6368 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6369 | # pretend that all is well.) | |
6370 | if test -n "$appdirs" ; then | |
6371 | for dir in $appdirs ; do | |
6372 | if test -r $dir/Makefile.in ; then | |
6373 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6374 | appdirs="" | |
6375 | break | |
6376 | fi | |
6377 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then | |
6378 | appdirs="" | |
6379 | break | |
6380 | fi | |
6381 | fi | |
6382 | done | |
6383 | if test -n "$appdirs" ; then | |
6384 | echo "*** This configuration is not supported by this package." 1>&2 | |
6385 | exit 1 | |
6386 | fi | |
6387 | fi | |
6388 | # Okay, some application will build, or we don't care to check. Still | |
6389 | # notify of subdirs not getting built. | |
6390 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6391 | echo " ${notsupp}" 1>&2 | |
6392 | echo " (Any other directories should still work fine.)" 1>&2 | |
6393 | fi | |
6394 | ||
6395 | case "$host" in | |
6396 | *msdosdjgpp*) | |
6397 | enable_gdbtk=no ;; | |
6398 | esac | |
6399 | ||
6400 | # To find our prefix, in gcc_cv_tool_prefix. | |
6401 | ||
6402 | # The user is always right. | |
6403 | if test "${PATH_SEPARATOR+set}" != set; then | |
6404 | echo "#! /bin/sh" >conf$$.sh | |
6405 | echo "exit 0" >>conf$$.sh | |
6406 | chmod +x conf$$.sh | |
6407 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6408 | PATH_SEPARATOR=';' | |
6409 | else | |
6410 | PATH_SEPARATOR=: | |
6411 | fi | |
6412 | rm -f conf$$.sh | |
6413 | fi | |
6414 | ||
6415 | ||
6416 | ||
6417 | if test "x$exec_prefix" = xNONE; then | |
6418 | if test "x$prefix" = xNONE; then | |
6419 | gcc_cv_tool_prefix=$ac_default_prefix | |
6420 | else | |
6421 | gcc_cv_tool_prefix=$prefix | |
6422 | fi | |
6423 | else | |
6424 | gcc_cv_tool_prefix=$exec_prefix | |
6425 | fi | |
6426 | ||
6427 | # If there is no compiler in the tree, use the PATH only. In any | |
6428 | # case, if there is no compiler in the tree nobody should use | |
6429 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6430 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6431 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6432 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6433 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6434 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6435 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6436 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6437 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6438 | else | |
6439 | gcc_cv_tool_dirs= | |
6440 | fi | |
6441 | ||
6442 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6443 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6444 | fi | |
6445 | ||
6446 | ||
6447 | ||
6448 | copy_dirs= | |
6449 | ||
6450 | ||
6451 | # Check whether --with-build-sysroot was given. | |
6452 | if test "${with_build_sysroot+set}" = set; then : | |
6453 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
6454 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" | |
6455 | fi | |
6456 | else | |
6457 | SYSROOT_CFLAGS_FOR_TARGET= | |
6458 | fi | |
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | # Check whether --with-debug-prefix-map was given. | |
6464 | if test "${with_debug_prefix_map+set}" = set; then : | |
6465 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
6466 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
6467 | for debug_map in $withval; do | |
6468 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6469 | done | |
6470 | fi | |
6471 | else | |
6472 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
6473 | fi | |
6474 | ||
6475 | ||
6476 | ||
6477 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS | |
6478 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6479 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6480 | # We want to ensure that TARGET libraries (which we know are built with | |
6481 | # gcc) are built with "-O2 -g", so include those options when setting | |
6482 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6483 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6484 | CFLAGS_FOR_TARGET=$CFLAGS | |
6485 | case " $CFLAGS " in | |
6486 | *" -O2 "*) ;; | |
6487 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6488 | esac | |
6489 | case " $CFLAGS " in | |
6490 | *" -g "* | *" -g3 "*) ;; | |
6491 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6492 | esac | |
6493 | fi | |
6494 | ||
6495 | ||
6496 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6497 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6498 | case " $CXXFLAGS " in | |
6499 | *" -O2 "*) ;; | |
6500 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6501 | esac | |
6502 | case " $CXXFLAGS " in | |
6503 | *" -g "* | *" -g3 "*) ;; | |
6504 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6505 | esac | |
6506 | fi | |
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | # Handle --with-headers=XXX. If the value is not "yes", the contents of | |
6512 | # the named directory are copied to $(tooldir)/sys-include. | |
6513 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6514 | if test x${is_cross_compiler} = xno ; then | |
6515 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6516 | exit 1 | |
6517 | fi | |
6518 | if test x"${with_headers}" != xyes ; then | |
6519 | x=${gcc_cv_tool_prefix} | |
6520 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" | |
6521 | fi | |
6522 | fi | |
6523 | ||
6524 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6525 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6526 | # are permitted. | |
6527 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6528 | if test x${is_cross_compiler} = xno ; then | |
6529 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6530 | exit 1 | |
6531 | fi | |
6532 | if test x"${with_libs}" != xyes ; then | |
6533 | # Copy the libraries in reverse order, so that files in the first named | |
6534 | # library override files in subsequent libraries. | |
6535 | x=${gcc_cv_tool_prefix} | |
6536 | for l in ${with_libs}; do | |
6537 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" | |
6538 | done | |
6539 | fi | |
6540 | fi | |
6541 | ||
6542 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. | |
6543 | # | |
6544 | # This is done by determining whether or not the appropriate directory | |
6545 | # is available, and by checking whether or not specific configurations | |
6546 | # have requested that this magic not happen. | |
6547 | # | |
6548 | # The command line options always override the explicit settings in | |
6549 | # configure.in, and the settings in configure.in override this magic. | |
6550 | # | |
6551 | # If the default for a toolchain is to use GNU as and ld, and you don't | |
6552 | # want to do that, then you should use the --without-gnu-as and | |
6553 | # --without-gnu-ld options for the configure script. Similarly, if | |
6554 | # the default is to use the included zlib and you don't want to do that, | |
6555 | # you should use the --with-system-zlib option for the configure script. | |
6556 | ||
6557 | if test x${use_gnu_as} = x && | |
6558 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6559 | with_gnu_as=yes | |
6560 | extra_host_args="$extra_host_args --with-gnu-as" | |
6561 | fi | |
6562 | ||
6563 | if test x${use_gnu_ld} = x && | |
6564 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then | |
6565 | with_gnu_ld=yes | |
6566 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6567 | fi | |
6568 | ||
6569 | if test x${use_included_zlib} = x && | |
6570 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6571 | : | |
6572 | else | |
6573 | with_system_zlib=yes | |
6574 | extra_host_args="$extra_host_args --with-system-zlib" | |
6575 | fi | |
6576 | ||
6577 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure | |
6578 | # can detect this case. | |
6579 | ||
6580 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6581 | with_newlib=yes | |
6582 | extra_host_args="$extra_host_args --with-newlib" | |
6583 | fi | |
6584 | ||
6585 | # Handle ${copy_dirs} | |
6586 | set fnord ${copy_dirs} | |
6587 | shift | |
6588 | while test $# != 0 ; do | |
6589 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6590 | : | |
6591 | else | |
6592 | echo Copying $1 to $2 | |
6593 | ||
6594 | # Use the install script to create the directory and all required | |
6595 | # parent directories. | |
6596 | if test -d $2 ; then | |
6597 | : | |
6598 | else | |
6599 | echo >config.temp | |
6600 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6601 | fi | |
6602 | ||
6603 | # Copy the directory, assuming we have tar. | |
6604 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6605 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6606 | ||
6607 | # It is the responsibility of the user to correctly adjust all | |
6608 | # symlinks. If somebody can figure out how to handle them correctly | |
6609 | # here, feel free to add the code. | |
6610 | ||
6611 | echo $1 > $2/COPIED | |
6612 | fi | |
6613 | shift; shift | |
6614 | done | |
6615 | ||
6616 | # Determine a target-dependent exec_prefix that the installed | |
6617 | # gcc will search in. Keep this list sorted by triplet, with | |
6618 | # the *-*-osname triplets last. | |
6619 | md_exec_prefix= | |
6620 | case "${target}" in | |
6621 | i[34567]86-pc-msdosdjgpp*) | |
6622 | md_exec_prefix=/dev/env/DJDIR/bin | |
6623 | ;; | |
6624 | *-*-hpux* | \ | |
6625 | *-*-nto-qnx* | \ | |
6626 | *-*-solaris2*) | |
6627 | md_exec_prefix=/usr/ccs/bin | |
6628 | ;; | |
6629 | esac | |
6630 | ||
6631 | extra_arflags_for_target= | |
6632 | extra_nmflags_for_target= | |
6633 | extra_ranlibflags_for_target= | |
6634 | target_makefile_frag=/dev/null | |
6635 | case "${target}" in | |
6636 | spu-*-*) | |
6637 | target_makefile_frag="config/mt-spu" | |
6638 | ;; | |
6639 | mips*-sde-elf*) | |
6640 | target_makefile_frag="config/mt-sde" | |
6641 | ;; | |
6642 | mipsisa*-*-elfoabi*) | |
6643 | target_makefile_frag="config/mt-mips-elfoabi" | |
6644 | ;; | |
6645 | mips*-*-*linux* | mips*-*-gnu*) | |
6646 | target_makefile_frag="config/mt-mips-gnu" | |
6647 | ;; | |
6648 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
6649 | target_makefile_frag="config/mt-gnu" | |
6650 | ;; | |
6651 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
6652 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm | |
6653 | # commands to handle both 32-bit and 64-bit objects. These flags are | |
6654 | # harmless if we're using GNU nm or ar. | |
6655 | extra_arflags_for_target=" -X32_64" | |
6656 | extra_nmflags_for_target=" -B -X32_64" | |
6657 | ;; | |
6658 | esac | |
6659 | ||
6660 | alphaieee_frag=/dev/null | |
6661 | case $target in | |
6662 | alpha*-*-*) | |
6663 | # This just makes sure to use the -mieee option to build target libs. | |
6664 | # This should probably be set individually by each library. | |
6665 | alphaieee_frag="config/mt-alphaieee" | |
6666 | ;; | |
6667 | esac | |
6668 | ||
6669 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6670 | # the target libraries, similarly if it is not specified, use -Os | |
6671 | # on selected platforms. | |
6672 | ospace_frag=/dev/null | |
6673 | case "${enable_target_optspace}:${target}" in | |
6674 | yes:*) | |
6675 | ospace_frag="config/mt-ospace" | |
6676 | ;; | |
6677 | :d30v-*) | |
6678 | ospace_frag="config/mt-d30v" | |
6679 | ;; | |
6680 | :m32r-* | :d10v-* | :fr30-*) | |
6681 | ospace_frag="config/mt-ospace" | |
6682 | ;; | |
6683 | no:* | :*) | |
6684 | ;; | |
6685 | *) | |
6686 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6687 | ;; | |
6688 | esac | |
6689 | ||
6690 | # Some systems (e.g., one of the i386-aix systems the gas testers are | |
6691 | # using) don't handle "\$" correctly, so don't use it here. | |
6692 | tooldir='${exec_prefix}'/${target_noncanonical} | |
6693 | build_tooldir=${tooldir} | |
6694 | ||
6695 | # Create a .gdbinit file which runs the one in srcdir | |
6696 | # and tells GDB to look there for source files. | |
6697 | ||
6698 | if test -r ${srcdir}/.gdbinit ; then | |
6699 | case ${srcdir} in | |
6700 | .) ;; | |
6701 | *) cat > ./.gdbinit <<EOF | |
6702 | # ${NO_EDIT} | |
6703 | dir ${srcdir} | |
6704 | dir . | |
6705 | source ${srcdir}/.gdbinit | |
6706 | EOF | |
6707 | ;; | |
6708 | esac | |
6709 | fi | |
6710 | ||
6711 | # Make sure that the compiler is able to generate an executable. If it | |
6712 | # can't, we are probably in trouble. We don't care whether we can run the | |
6713 | # executable--we might be using a cross compiler--we only care whether it | |
6714 | # can be created. At this point the main configure script has set CC. | |
6715 | we_are_ok=no | |
6716 | echo "int main () { return 0; }" > conftest.c | |
6717 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6718 | if test $? = 0 ; then | |
6719 | if test -s conftest || test -s conftest.exe ; then | |
6720 | we_are_ok=yes | |
6721 | fi | |
6722 | fi | |
6723 | case $we_are_ok in | |
6724 | no) | |
6725 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6726 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6727 | rm -f conftest* | |
6728 | exit 1 | |
6729 | ;; | |
6730 | esac | |
6731 | rm -f conftest* | |
6732 | ||
6733 | # Decide which environment variable is used to find dynamic libraries. | |
6734 | case "${host}" in | |
6735 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
6736 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; | |
6737 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; | |
6738 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; | |
6739 | esac | |
6740 | ||
6741 | # On systems where the dynamic library environment variable is PATH, | |
6742 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6743 | # built executables to PATH. | |
6744 | if test "$RPATH_ENVVAR" = PATH; then | |
6745 | GCC_SHLIB_SUBDIR=/shlib | |
6746 | else | |
6747 | GCC_SHLIB_SUBDIR= | |
6748 | fi | |
6749 | ||
6750 | # Record target_configdirs and the configure arguments for target and | |
6751 | # build configuration in Makefile. | |
6752 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6753 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` | |
6754 | ||
6755 | # If we are building libgomp, bootstrap it. | |
6756 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6757 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6758 | fi | |
6759 | ||
6760 | # Determine whether gdb needs tk/tcl or not. | |
6761 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6762 | # and in that case we want gdb to be built without tk. Ugh! | |
6763 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6764 | # so we should be able to put the 'maybe's in unconditionally and | |
6765 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6766 | # 100% sure that that's safe though. | |
6767 | ||
6768 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" | |
6769 | case "$enable_gdbtk" in | |
6770 | no) | |
6771 | GDB_TK="" ;; | |
6772 | yes) | |
6773 | GDB_TK="${gdb_tk}" ;; | |
6774 | *) | |
6775 | # Only add the dependency on gdbtk when GDBtk is part of the gdb | |
6776 | # distro. Eventually someone will fix this and move Insight, nee | |
6777 | # gdbtk to a separate directory. | |
6778 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6779 | GDB_TK="${gdb_tk}" | |
6780 | else | |
6781 | GDB_TK="" | |
6782 | fi | |
6783 | ;; | |
6784 | esac | |
6785 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` | |
6786 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
6787 | ||
6788 | # Strip out unwanted targets. | |
6789 | ||
6790 | # While at that, we remove Makefiles if we were started for recursive | |
6791 | # configuration, so that the top-level Makefile reconfigures them, | |
6792 | # like we used to do when configure itself was recursive. | |
6793 | ||
6794 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf | |
6795 | # but now we're fixing up the Makefile ourselves with the additional | |
6796 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6797 | # extrasub-{build,host,target} not because there is any reason to split | |
6798 | # the substitutions up that way, but only to remain below the limit of | |
6799 | # 99 commands in a script, for HP-UX sed. | |
6800 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
6801 | ||
6802 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in | |
6803 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6804 | yes:yes:*\ gold\ *:*) | |
6805 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6806 | ;; | |
6807 | esac | |
6808 | ||
6809 | # Adjust the toplevel makefile according to whether bootstrap was selected. | |
6810 | case $enable_bootstrap in | |
6811 | yes) | |
6812 | bootstrap_suffix=bootstrap | |
6813 | BUILD_CONFIG=bootstrap-debug | |
6814 | ;; | |
6815 | no) | |
6816 | bootstrap_suffix=no-bootstrap | |
6817 | BUILD_CONFIG= | |
6818 | ;; | |
6819 | esac | |
6820 | ||
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
6822 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6823 | ||
6824 | ||
6825 | # Check whether --with-build-config was given. | |
6826 | if test "${with_build_config+set}" = set; then : | |
6827 | withval=$with_build_config; case $with_build_config in | |
6828 | yes) with_build_config= ;; | |
6829 | no) with_build_config= BUILD_CONFIG= ;; | |
6830 | esac | |
6831 | fi | |
6832 | ||
6833 | ||
6834 | if test "x${with_build_config}" != x; then | |
6835 | BUILD_CONFIG=$with_build_config | |
6836 | else | |
6837 | case $BUILD_CONFIG in | |
6838 | bootstrap-debug) | |
6839 | if echo "int f (void) { return 0; }" > conftest.c && | |
6840 | ${CC} -c conftest.c && | |
6841 | mv conftest.o conftest.o.g0 && | |
6842 | ${CC} -c -g conftest.c && | |
6843 | mv conftest.o conftest.o.g && | |
6844 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
6845 | : | |
6846 | else | |
6847 | BUILD_CONFIG= | |
6848 | fi | |
6849 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6850 | ;; | |
6851 | esac | |
6852 | fi | |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6854 | $as_echo "$BUILD_CONFIG" >&6; } | |
6855 | ||
6856 | ||
6857 | extrasub_build= | |
6858 | for module in ${build_configdirs} ; do | |
6859 | if test -z "${no_recursion}" \ | |
6860 | && test -f ${build_subdir}/${module}/Makefile; then | |
6861 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
6862 | rm -f ${build_subdir}/${module}/Makefile | |
6863 | fi | |
6864 | extrasub_build="$extrasub_build | |
6865 | /^@if build-$module\$/d | |
6866 | /^@endif build-$module\$/d | |
6867 | /^@if build-$module-$bootstrap_suffix\$/d | |
6868 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
6869 | done | |
6870 | extrasub_host= | |
6871 | for module in ${configdirs} ; do | |
6872 | if test -z "${no_recursion}"; then | |
6873 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do | |
6874 | if test -f ${file}; then | |
6875 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
6876 | rm -f ${file} | |
6877 | fi | |
6878 | done | |
6879 | fi | |
6880 | extrasub_host="$extrasub_host | |
6881 | /^@if $module\$/d | |
6882 | /^@endif $module\$/d | |
6883 | /^@if $module-$bootstrap_suffix\$/d | |
6884 | /^@endif $module-$bootstrap_suffix\$/d" | |
6885 | done | |
6886 | extrasub_target= | |
6887 | for module in ${target_configdirs} ; do | |
6888 | if test -z "${no_recursion}" \ | |
6889 | && test -f ${target_subdir}/${module}/Makefile; then | |
6890 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
6891 | rm -f ${target_subdir}/${module}/Makefile | |
6892 | fi | |
6893 | ||
6894 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
6895 | case $bootstrap_target_libs in | |
6896 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
6897 | *) target_bootstrap_suffix=no-bootstrap ;; | |
6898 | esac | |
6899 | ||
6900 | extrasub_target="$extrasub_target | |
6901 | /^@if target-$module\$/d | |
6902 | /^@endif target-$module\$/d | |
6903 | /^@if target-$module-$target_bootstrap_suffix\$/d | |
6904 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
6905 | done | |
6906 | ||
6907 | # Do the final fixup along with target modules. | |
6908 | extrasub_target="$extrasub_target | |
6909 | /^@if /,/^@endif /d" | |
6910 | ||
6911 | # Create the serialization dependencies. This uses a temporary file. | |
6912 | ||
6913 | # Check whether --enable-serial-configure was given. | |
6914 | if test "${enable_serial_configure+set}" = set; then : | |
6915 | enableval=$enable_serial_configure; | |
6916 | fi | |
6917 | ||
6918 | ||
6919 | case ${enable_serial_configure} in | |
6920 | yes) | |
6921 | enable_serial_build_configure=yes | |
6922 | enable_serial_host_configure=yes | |
6923 | enable_serial_target_configure=yes | |
6924 | ;; | |
6925 | esac | |
6926 | ||
6927 | # These force 'configure's to be done one at a time, to avoid problems | |
6928 | # with contention over a shared config.cache. | |
6929 | rm -f serdep.tmp | |
6930 | echo '# serdep.tmp' > serdep.tmp | |
6931 | olditem= | |
6932 | test "x${enable_serial_build_configure}" = xyes && | |
6933 | for item in ${build_configdirs} ; do | |
6934 | case ${olditem} in | |
6935 | "") ;; | |
6936 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; | |
6937 | esac | |
6938 | olditem=${item} | |
6939 | done | |
6940 | olditem= | |
6941 | test "x${enable_serial_host_configure}" = xyes && | |
6942 | for item in ${configdirs} ; do | |
6943 | case ${olditem} in | |
6944 | "") ;; | |
6945 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; | |
6946 | esac | |
6947 | olditem=${item} | |
6948 | done | |
6949 | olditem= | |
6950 | test "x${enable_serial_target_configure}" = xyes && | |
6951 | for item in ${target_configdirs} ; do | |
6952 | case ${olditem} in | |
6953 | "") ;; | |
6954 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; | |
6955 | esac | |
6956 | olditem=${item} | |
6957 | done | |
6958 | serialization_dependencies=serdep.tmp | |
6959 | ||
6960 | ||
6961 | # Base args. Strip norecursion, cache-file, srcdir, host, build, | |
6962 | # target, nonopt, and variable assignments. These are the ones we | |
6963 | # might not want to pass down to subconfigures. The exception being | |
6964 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
6965 | # files altogether, and which should be passed on to subconfigures. | |
6966 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
6967 | # so that we can pass down a consistent program-transform-name. | |
6968 | baseargs= | |
6969 | tbaseargs= | |
6970 | keep_next=no | |
6971 | skip_next=no | |
6972 | eval "set -- $ac_configure_args" | |
6973 | for ac_arg | |
6974 | do | |
6975 | if test X"$skip_next" = X"yes"; then | |
6976 | skip_next=no | |
6977 | continue | |
6978 | fi | |
6979 | if test X"$keep_next" = X"yes"; then | |
6980 | case $ac_arg in | |
6981 | *\'*) | |
6982 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6983 | esac | |
6984 | baseargs="$baseargs '$ac_arg'" | |
6985 | tbaseargs="$tbaseargs '$ac_arg'" | |
6986 | keep_next=no | |
6987 | continue | |
6988 | fi | |
6989 | ||
6990 | # Handle separated arguments. Based on the logic generated by | |
6991 | # autoconf 2.59. | |
6992 | case $ac_arg in | |
6993 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
6994 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
6995 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
6996 | | -with-* | --with-* | -without-* | --without-* | --x) | |
6997 | separate_arg=no | |
6998 | ;; | |
6999 | -*) | |
7000 | separate_arg=yes | |
7001 | ;; | |
7002 | *) | |
7003 | separate_arg=no | |
7004 | ;; | |
7005 | esac | |
7006 | ||
7007 | skip_targ=no | |
7008 | case $ac_arg in | |
7009 | ||
7010 | --with-* | --without-*) | |
7011 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7012 | ||
7013 | case $libopt in | |
7014 | *[-_]include) | |
7015 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7016 | ;; | |
7017 | *[-_]lib) | |
7018 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7019 | ;; | |
7020 | *) | |
7021 | lib=$libopt | |
7022 | ;; | |
7023 | esac | |
7024 | ||
7025 | ||
7026 | case $lib in | |
7027 | mpc | mpfr | gmp | cloog) | |
7028 | # If we're processing --with-$lib, --with-$lib-include or | |
7029 | # --with-$lib-lib, for one of the libs above, and target is | |
7030 | # different from host, don't pass the current argument to any | |
7031 | # target library's configure. | |
7032 | if test x$is_cross_compiler = xyes; then | |
7033 | skip_targ=yes | |
7034 | fi | |
7035 | ;; | |
7036 | esac | |
7037 | ;; | |
7038 | esac | |
7039 | ||
7040 | case "$ac_arg" in | |
7041 | --cache-file=/dev/null | \ | |
7042 | -cache-file=/dev/null ) | |
7043 | # Handled here to avoid the test to skip args below. | |
7044 | baseargs="$baseargs '$ac_arg'" | |
7045 | tbaseargs="$tbaseargs '$ac_arg'" | |
7046 | # Assert: $separate_arg should always be no. | |
7047 | keep_next=$separate_arg | |
7048 | ;; | |
7049 | --no*) | |
7050 | continue | |
7051 | ;; | |
7052 | --c* | \ | |
7053 | --sr* | \ | |
7054 | --ho* | \ | |
7055 | --bu* | \ | |
7056 | --t* | \ | |
7057 | --program-* | \ | |
7058 | -cache_file* | \ | |
7059 | -srcdir* | \ | |
7060 | -host* | \ | |
7061 | -build* | \ | |
7062 | -target* | \ | |
7063 | -program-prefix* | \ | |
7064 | -program-suffix* | \ | |
7065 | -program-transform-name* ) | |
7066 | skip_next=$separate_arg | |
7067 | continue | |
7068 | ;; | |
7069 | -*) | |
7070 | # An option. Add it. | |
7071 | case $ac_arg in | |
7072 | *\'*) | |
7073 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7074 | esac | |
7075 | baseargs="$baseargs '$ac_arg'" | |
7076 | if test X"$skip_targ" = Xno; then | |
7077 | tbaseargs="$tbaseargs '$ac_arg'" | |
7078 | fi | |
7079 | keep_next=$separate_arg | |
7080 | ;; | |
7081 | *) | |
7082 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7083 | # pass it down; let the Makefile handle this. | |
7084 | continue | |
7085 | ;; | |
7086 | esac | |
7087 | done | |
7088 | # Remove the initial space we just introduced and, as these will be | |
7089 | # expanded by make, quote '$'. | |
7090 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
7091 | ||
7092 | # Add in --program-transform-name, after --program-prefix and | |
7093 | # --program-suffix have been applied to it. Autoconf has already | |
7094 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7095 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
7096 | # quotes, because this will be expanded first by make and then by the shell. | |
7097 | # Also, because we want to override the logic in subdir configure scripts to | |
7098 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7099 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7100 | ${program_transform_name} | |
7101 | EOF_SED | |
7102 | gcc_transform_name=`cat conftestsed.out` | |
7103 | rm -f conftestsed.out | |
7104 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
7105 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" | |
7106 | if test "$silent" = yes; then | |
7107 | baseargs="$baseargs --silent" | |
7108 | tbaseargs="$tbaseargs --silent" | |
7109 | fi | |
7110 | baseargs="$baseargs --disable-option-checking" | |
7111 | tbaseargs="$tbaseargs --disable-option-checking" | |
7112 | ||
7113 | # Record and document user additions to sub configure arguments. | |
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | # For the build-side libraries, we just need to pretend we're native, | |
7119 | # and not use the same cache file. Multilibs are neither needed nor | |
7120 | # desired. | |
7121 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" | |
7122 | ||
7123 | # For host modules, accept cache file option, or specification as blank. | |
7124 | case "${cache_file}" in | |
7125 | "") # empty | |
7126 | cache_file_option="" ;; | |
7127 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7128 | cache_file_option="--cache-file=${cache_file}" ;; | |
7129 | *) # relative path | |
7130 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7131 | esac | |
7132 | ||
7133 | # Host dirs don't like to share a cache file either, horribly enough. | |
7134 | # This seems to be due to autoconf 2.5x stupidity. | |
7135 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" | |
7136 | ||
7137 | target_configargs="$target_configargs ${tbaseargs}" | |
7138 | ||
7139 | # Passing a --with-cross-host argument lets the target libraries know | |
7140 | # whether they are being built with a cross-compiler or being built | |
7141 | # native. However, it would be better to use other mechanisms to make the | |
7142 | # sorts of decisions they want to make on this basis. Please consider | |
7143 | # this option to be deprecated. FIXME. | |
7144 | if test x${is_cross_compiler} = xyes ; then | |
7145 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" | |
7146 | fi | |
7147 | ||
7148 | # Default to --enable-multilib. | |
7149 | if test x${enable_multilib} = x ; then | |
7150 | target_configargs="--enable-multilib ${target_configargs}" | |
7151 | fi | |
7152 | ||
7153 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7154 | # changed from the earlier setting of with_newlib. | |
7155 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7156 | target_configargs="--with-newlib ${target_configargs}" | |
7157 | fi | |
7158 | ||
7159 | # Different target subdirs use different values of certain variables | |
7160 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7161 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7162 | # it doesn't automatically accept command-line overrides of them. | |
7163 | # This means it's not safe for target subdirs to share a cache file, | |
7164 | # which is disgusting, but there you have it. Hopefully this can be | |
7165 | # fixed in future. It's still worthwhile to use a cache file for each | |
7166 | # directory. I think. | |
7167 | ||
7168 | # Pass the appropriate --build, --host, --target and --cache-file arguments. | |
7169 | # We need to pass --target, as newer autoconf's requires consistency | |
7170 | # for target_alias and gcc doesn't manage it consistently. | |
7171 | target_configargs="--cache-file=./config.cache ${target_configargs}" | |
7172 | ||
7173 | FLAGS_FOR_TARGET= | |
7174 | case " $target_configdirs " in | |
7175 | *" newlib "*) | |
7176 | case " $target_configargs " in | |
7177 | *" --with-newlib "*) | |
7178 | case "$target" in | |
7179 | *-cygwin*) | |
7180 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7181 | ;; | |
7182 | esac | |
7183 | ||
7184 | # If we're not building GCC, don't discard standard headers. | |
7185 | if test -d ${srcdir}/gcc; then | |
7186 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7187 | ||
7188 | if test "${build}" != "${host}"; then | |
7189 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7190 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7191 | # to it. This is right: we don't want to search that directory | |
7192 | # for binaries, but we want the header files in there, so add | |
7193 | # them explicitly. | |
7194 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' | |
7195 | ||
7196 | # Someone might think of using the pre-installed headers on | |
7197 | # Canadian crosses, in case the installed compiler is not fully | |
7198 | # compatible with the compiler being built. In this case, it | |
7199 | # would be better to flag an error than risking having | |
7200 | # incompatible object files being constructed. We can't | |
7201 | # guarantee that an error will be flagged, but let's hope the | |
7202 | # compiler will do it, when presented with incompatible header | |
7203 | # files. | |
7204 | fi | |
7205 | fi | |
7206 | ||
7207 | case "${target}-${is_cross_compiler}" in | |
7208 | i[3456789]86-*-linux*-no) | |
7209 | # Here host == target, so we don't need to build gcc, | |
7210 | # so we don't want to discard standard headers. | |
7211 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7212 | ;; | |
7213 | *) | |
7214 | # If we're building newlib, use its generic headers last, but search | |
7215 | # for any libc-related directories first (so make it the last -B | |
7216 | # switch). | |
7217 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
7218 | ||
7219 | # If we're building libgloss, find the startup file, simulator library | |
7220 | # and linker script. | |
7221 | case " $target_configdirs " in | |
7222 | *" libgloss "*) | |
7223 | # Look for startup file, simulator library and maybe linker script. | |
7224 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7225 | # Look for libnosys.a in case the target needs it. | |
7226 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7227 | # Most targets have the linker script in the source directory. | |
7228 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7229 | ;; | |
7230 | esac | |
7231 | ;; | |
7232 | esac | |
7233 | ;; | |
7234 | esac | |
7235 | ;; | |
7236 | esac | |
7237 | ||
7238 | case "$target" in | |
7239 | x86_64-*mingw* | *-w64-mingw*) | |
7240 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7241 | # however, use a symlink named 'mingw' in ${prefix} . | |
7242 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7243 | ;; | |
7244 | *-mingw*) | |
7245 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7246 | 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' | |
7247 | ;; | |
7248 | esac | |
7249 | ||
7250 | # Allow the user to override the flags for | |
7251 | # our build compiler if desired. | |
7252 | if test x"${build}" = x"${host}" ; then | |
7253 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7254 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7255 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7256 | fi | |
7257 | ||
7258 | # On Canadian crosses, we'll be searching the right directories for | |
7259 | # the previously-installed cross compiler, so don't bother to add | |
7260 | # flags for directories within the install tree of the compiler | |
7261 | # being built; programs in there won't even run. | |
7262 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7263 | # Search for pre-installed headers if nothing else fits. | |
7264 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' | |
7265 | fi | |
7266 | ||
7267 | if test "x${use_gnu_ld}" = x && | |
7268 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7269 | # Arrange for us to find uninstalled linker scripts. | |
7270 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' | |
7271 | fi | |
7272 | ||
7273 | # Search for other target-specific linker scripts and such. | |
7274 | case "${target}" in | |
7275 | mep*) | |
7276 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7277 | ;; | |
7278 | esac | |
7279 | ||
7280 | # Makefile fragments. | |
7281 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; | |
7282 | do | |
7283 | eval fragval=\$$frag | |
7284 | if test $fragval != /dev/null; then | |
7285 | eval $frag=${srcdir}/$fragval | |
7286 | fi | |
7287 | done | |
7288 | ||
7289 | ||
7290 | ||
7291 | ||
7292 | ||
7293 | # Miscellanea: directories, flags, etc. | |
7294 | ||
7295 | ||
7296 | ||
7297 | ||
7298 | ||
7299 | ||
7300 | ||
7301 | ||
7302 | # Build module lists & subconfigure args. | |
7303 | ||
7304 | ||
7305 | ||
7306 | # Host module lists & subconfigure args. | |
7307 | ||
7308 | ||
7309 | ||
7310 | ||
7311 | # Target module lists & subconfigure args. | |
7312 | ||
7313 | ||
7314 | ||
7315 | # Build tools. | |
7316 | ||
7317 | ||
7318 | ||
7319 | ||
7320 | ||
7321 | ||
7322 | ||
7323 | ||
7324 | ||
7325 | ||
7326 | ||
7327 | ||
7328 | ||
7329 | ||
7330 | ||
7331 | ||
7332 | ||
7333 | # Generate default definitions for YACC, M4, LEX and other programs that run | |
7334 | # on the build machine. These are used if the Makefile can't locate these | |
7335 | # programs in objdir. | |
7336 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7337 | ||
7338 | for ac_prog in 'bison -y' byacc yacc | |
7339 | do | |
7340 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7341 | set dummy $ac_prog; ac_word=$2 | |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7343 | $as_echo_n "checking for $ac_word... " >&6; } | |
7344 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7345 | $as_echo_n "(cached) " >&6 | |
7346 | else | |
7347 | if test -n "$YACC"; then | |
7348 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7349 | else | |
7350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7351 | for as_dir in $PATH | |
7352 | do | |
7353 | IFS=$as_save_IFS | |
7354 | test -z "$as_dir" && as_dir=. | |
7355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357 | ac_cv_prog_YACC="$ac_prog" | |
7358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7359 | break 2 | |
7360 | fi | |
7361 | done | |
7362 | done | |
7363 | IFS=$as_save_IFS | |
7364 | ||
7365 | fi | |
7366 | fi | |
7367 | YACC=$ac_cv_prog_YACC | |
7368 | if test -n "$YACC"; then | |
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
7370 | $as_echo "$YACC" >&6; } | |
7371 | else | |
7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7373 | $as_echo "no" >&6; } | |
7374 | fi | |
7375 | ||
7376 | ||
7377 | test -n "$YACC" && break | |
7378 | done | |
7379 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7380 | ||
7381 | case " $build_configdirs " in | |
7382 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
7383 | esac | |
7384 | ||
7385 | for ac_prog in bison | |
7386 | do | |
7387 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7388 | set dummy $ac_prog; ac_word=$2 | |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7390 | $as_echo_n "checking for $ac_word... " >&6; } | |
7391 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7392 | $as_echo_n "(cached) " >&6 | |
7393 | else | |
7394 | if test -n "$BISON"; then | |
7395 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7396 | else | |
7397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7398 | for as_dir in $PATH | |
7399 | do | |
7400 | IFS=$as_save_IFS | |
7401 | test -z "$as_dir" && as_dir=. | |
7402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7404 | ac_cv_prog_BISON="$ac_prog" | |
7405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7406 | break 2 | |
7407 | fi | |
7408 | done | |
7409 | done | |
7410 | IFS=$as_save_IFS | |
7411 | ||
7412 | fi | |
7413 | fi | |
7414 | BISON=$ac_cv_prog_BISON | |
7415 | if test -n "$BISON"; then | |
7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
7417 | $as_echo "$BISON" >&6; } | |
7418 | else | |
7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7420 | $as_echo "no" >&6; } | |
7421 | fi | |
7422 | ||
7423 | ||
7424 | test -n "$BISON" && break | |
7425 | done | |
7426 | test -n "$BISON" || BISON="$MISSING bison" | |
7427 | ||
7428 | case " $build_configdirs " in | |
7429 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7430 | esac | |
7431 | ||
7432 | for ac_prog in gm4 gnum4 m4 | |
7433 | do | |
7434 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7435 | set dummy $ac_prog; ac_word=$2 | |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7437 | $as_echo_n "checking for $ac_word... " >&6; } | |
7438 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7439 | $as_echo_n "(cached) " >&6 | |
7440 | else | |
7441 | if test -n "$M4"; then | |
7442 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7443 | else | |
7444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7445 | for as_dir in $PATH | |
7446 | do | |
7447 | IFS=$as_save_IFS | |
7448 | test -z "$as_dir" && as_dir=. | |
7449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7451 | ac_cv_prog_M4="$ac_prog" | |
7452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7453 | break 2 | |
7454 | fi | |
7455 | done | |
7456 | done | |
7457 | IFS=$as_save_IFS | |
7458 | ||
7459 | fi | |
7460 | fi | |
7461 | M4=$ac_cv_prog_M4 | |
7462 | if test -n "$M4"; then | |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 | |
7464 | $as_echo "$M4" >&6; } | |
7465 | else | |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7467 | $as_echo "no" >&6; } | |
7468 | fi | |
7469 | ||
7470 | ||
7471 | test -n "$M4" && break | |
7472 | done | |
7473 | test -n "$M4" || M4="$MISSING m4" | |
7474 | ||
7475 | case " $build_configdirs " in | |
7476 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7477 | esac | |
7478 | ||
7479 | for ac_prog in flex lex | |
7480 | do | |
7481 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7482 | set dummy $ac_prog; ac_word=$2 | |
7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7484 | $as_echo_n "checking for $ac_word... " >&6; } | |
7485 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7486 | $as_echo_n "(cached) " >&6 | |
7487 | else | |
7488 | if test -n "$LEX"; then | |
7489 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7490 | else | |
7491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7492 | for as_dir in $PATH | |
7493 | do | |
7494 | IFS=$as_save_IFS | |
7495 | test -z "$as_dir" && as_dir=. | |
7496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7498 | ac_cv_prog_LEX="$ac_prog" | |
7499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7500 | break 2 | |
7501 | fi | |
7502 | done | |
7503 | done | |
7504 | IFS=$as_save_IFS | |
7505 | ||
7506 | fi | |
7507 | fi | |
7508 | LEX=$ac_cv_prog_LEX | |
7509 | if test -n "$LEX"; then | |
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
7511 | $as_echo "$LEX" >&6; } | |
7512 | else | |
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7514 | $as_echo "no" >&6; } | |
7515 | fi | |
7516 | ||
7517 | ||
7518 | test -n "$LEX" && break | |
7519 | done | |
7520 | test -n "$LEX" || LEX="$MISSING flex" | |
7521 | ||
7522 | case " $build_configdirs " in | |
7523 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7524 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7525 | esac | |
7526 | ||
7527 | for ac_prog in flex | |
7528 | do | |
7529 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7530 | set dummy $ac_prog; ac_word=$2 | |
7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7532 | $as_echo_n "checking for $ac_word... " >&6; } | |
7533 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7534 | $as_echo_n "(cached) " >&6 | |
7535 | else | |
7536 | if test -n "$FLEX"; then | |
7537 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7538 | else | |
7539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7540 | for as_dir in $PATH | |
7541 | do | |
7542 | IFS=$as_save_IFS | |
7543 | test -z "$as_dir" && as_dir=. | |
7544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7546 | ac_cv_prog_FLEX="$ac_prog" | |
7547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7548 | break 2 | |
7549 | fi | |
7550 | done | |
7551 | done | |
7552 | IFS=$as_save_IFS | |
7553 | ||
7554 | fi | |
7555 | fi | |
7556 | FLEX=$ac_cv_prog_FLEX | |
7557 | if test -n "$FLEX"; then | |
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 | |
7559 | $as_echo "$FLEX" >&6; } | |
7560 | else | |
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7562 | $as_echo "no" >&6; } | |
7563 | fi | |
7564 | ||
7565 | ||
7566 | test -n "$FLEX" && break | |
7567 | done | |
7568 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7569 | ||
7570 | case " $build_configdirs " in | |
7571 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7572 | esac | |
7573 | ||
7574 | for ac_prog in makeinfo | |
7575 | do | |
7576 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7577 | set dummy $ac_prog; ac_word=$2 | |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7579 | $as_echo_n "checking for $ac_word... " >&6; } | |
7580 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7581 | $as_echo_n "(cached) " >&6 | |
7582 | else | |
7583 | if test -n "$MAKEINFO"; then | |
7584 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7585 | else | |
7586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7587 | for as_dir in $PATH | |
7588 | do | |
7589 | IFS=$as_save_IFS | |
7590 | test -z "$as_dir" && as_dir=. | |
7591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7593 | ac_cv_prog_MAKEINFO="$ac_prog" | |
7594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7595 | break 2 | |
7596 | fi | |
7597 | done | |
7598 | done | |
7599 | IFS=$as_save_IFS | |
7600 | ||
7601 | fi | |
7602 | fi | |
7603 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
7604 | if test -n "$MAKEINFO"; then | |
7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
7606 | $as_echo "$MAKEINFO" >&6; } | |
7607 | else | |
7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7609 | $as_echo "no" >&6; } | |
7610 | fi | |
7611 | ||
7612 | ||
7613 | test -n "$MAKEINFO" && break | |
7614 | done | |
7615 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7616 | ||
7617 | case " $build_configdirs " in | |
7618 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7619 | *) | |
7620 | ||
7621 | # For an installed makeinfo, we require it to be from texinfo 4.7 or | |
7622 | # higher, else we use the "missing" dummy. | |
7623 | if ${MAKEINFO} --version \ | |
7624 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then | |
7625 | : | |
7626 | else | |
7627 | MAKEINFO="$MISSING makeinfo" | |
7628 | fi | |
7629 | ;; | |
7630 | ||
7631 | esac | |
7632 | ||
7633 | # FIXME: expect and dejagnu may become build tools? | |
7634 | ||
7635 | for ac_prog in expect | |
7636 | do | |
7637 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7638 | set dummy $ac_prog; ac_word=$2 | |
7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7640 | $as_echo_n "checking for $ac_word... " >&6; } | |
7641 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7642 | $as_echo_n "(cached) " >&6 | |
7643 | else | |
7644 | if test -n "$EXPECT"; then | |
7645 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7646 | else | |
7647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7648 | for as_dir in $PATH | |
7649 | do | |
7650 | IFS=$as_save_IFS | |
7651 | test -z "$as_dir" && as_dir=. | |
7652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7654 | ac_cv_prog_EXPECT="$ac_prog" | |
7655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7656 | break 2 | |
7657 | fi | |
7658 | done | |
7659 | done | |
7660 | IFS=$as_save_IFS | |
7661 | ||
7662 | fi | |
7663 | fi | |
7664 | EXPECT=$ac_cv_prog_EXPECT | |
7665 | if test -n "$EXPECT"; then | |
7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 | |
7667 | $as_echo "$EXPECT" >&6; } | |
7668 | else | |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7670 | $as_echo "no" >&6; } | |
7671 | fi | |
7672 | ||
7673 | ||
7674 | test -n "$EXPECT" && break | |
7675 | done | |
7676 | test -n "$EXPECT" || EXPECT="expect" | |
7677 | ||
7678 | case " $configdirs " in | |
7679 | *" expect "*) | |
7680 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7681 | ;; | |
7682 | esac | |
7683 | ||
7684 | for ac_prog in runtest | |
7685 | do | |
7686 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7687 | set dummy $ac_prog; ac_word=$2 | |
7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7689 | $as_echo_n "checking for $ac_word... " >&6; } | |
7690 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7691 | $as_echo_n "(cached) " >&6 | |
7692 | else | |
7693 | if test -n "$RUNTEST"; then | |
7694 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
7695 | else | |
7696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7697 | for as_dir in $PATH | |
7698 | do | |
7699 | IFS=$as_save_IFS | |
7700 | test -z "$as_dir" && as_dir=. | |
7701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7703 | ac_cv_prog_RUNTEST="$ac_prog" | |
7704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7705 | break 2 | |
7706 | fi | |
7707 | done | |
7708 | done | |
7709 | IFS=$as_save_IFS | |
7710 | ||
7711 | fi | |
7712 | fi | |
7713 | RUNTEST=$ac_cv_prog_RUNTEST | |
7714 | if test -n "$RUNTEST"; then | |
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 | |
7716 | $as_echo "$RUNTEST" >&6; } | |
7717 | else | |
7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7719 | $as_echo "no" >&6; } | |
7720 | fi | |
7721 | ||
7722 | ||
7723 | test -n "$RUNTEST" && break | |
7724 | done | |
7725 | test -n "$RUNTEST" || RUNTEST="runtest" | |
7726 | ||
7727 | case " $configdirs " in | |
7728 | *" dejagnu "*) | |
7729 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' | |
7730 | ;; | |
7731 | esac | |
7732 | ||
7733 | ||
7734 | # Host tools. | |
7735 | ncn_tool_prefix= | |
7736 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7737 | ncn_target_tool_prefix= | |
7738 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7739 | ||
7740 | ||
7741 | ||
7742 | if test -n "$AR"; then | |
7743 | ac_cv_prog_AR=$AR | |
7744 | elif test -n "$ac_cv_prog_AR"; then | |
7745 | AR=$ac_cv_prog_AR | |
7746 | fi | |
7747 | ||
7748 | if test -n "$ac_cv_prog_AR"; then | |
7749 | for ncn_progname in ar; do | |
7750 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7751 | set dummy ${ncn_progname}; ac_word=$2 | |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7753 | $as_echo_n "checking for $ac_word... " >&6; } | |
7754 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7755 | $as_echo_n "(cached) " >&6 | |
7756 | else | |
7757 | if test -n "$AR"; then | |
7758 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7759 | else | |
7760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7761 | for as_dir in $PATH | |
7762 | do | |
7763 | IFS=$as_save_IFS | |
7764 | test -z "$as_dir" && as_dir=. | |
7765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7767 | ac_cv_prog_AR="${ncn_progname}" | |
7768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7769 | break 2 | |
7770 | fi | |
7771 | done | |
7772 | done | |
7773 | IFS=$as_save_IFS | |
7774 | ||
7775 | fi | |
7776 | fi | |
7777 | AR=$ac_cv_prog_AR | |
7778 | if test -n "$AR"; then | |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7780 | $as_echo "$AR" >&6; } | |
7781 | else | |
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7783 | $as_echo "no" >&6; } | |
7784 | fi | |
7785 | ||
7786 | ||
7787 | done | |
7788 | fi | |
7789 | ||
7790 | for ncn_progname in ar; do | |
7791 | if test -n "$ncn_tool_prefix"; then | |
7792 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7793 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7795 | $as_echo_n "checking for $ac_word... " >&6; } | |
7796 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7797 | $as_echo_n "(cached) " >&6 | |
7798 | else | |
7799 | if test -n "$AR"; then | |
7800 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7801 | else | |
7802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7803 | for as_dir in $PATH | |
7804 | do | |
7805 | IFS=$as_save_IFS | |
7806 | test -z "$as_dir" && as_dir=. | |
7807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7809 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" | |
7810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7811 | break 2 | |
7812 | fi | |
7813 | done | |
7814 | done | |
7815 | IFS=$as_save_IFS | |
7816 | ||
7817 | fi | |
7818 | fi | |
7819 | AR=$ac_cv_prog_AR | |
7820 | if test -n "$AR"; then | |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7822 | $as_echo "$AR" >&6; } | |
7823 | else | |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7825 | $as_echo "no" >&6; } | |
7826 | fi | |
7827 | ||
7828 | ||
7829 | fi | |
7830 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
7831 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7832 | set dummy ${ncn_progname}; ac_word=$2 | |
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7834 | $as_echo_n "checking for $ac_word... " >&6; } | |
7835 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7836 | $as_echo_n "(cached) " >&6 | |
7837 | else | |
7838 | if test -n "$AR"; then | |
7839 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7840 | else | |
7841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7842 | for as_dir in $PATH | |
7843 | do | |
7844 | IFS=$as_save_IFS | |
7845 | test -z "$as_dir" && as_dir=. | |
7846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7848 | ac_cv_prog_AR="${ncn_progname}" | |
7849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7850 | break 2 | |
7851 | fi | |
7852 | done | |
7853 | done | |
7854 | IFS=$as_save_IFS | |
7855 | ||
7856 | fi | |
7857 | fi | |
7858 | AR=$ac_cv_prog_AR | |
7859 | if test -n "$AR"; then | |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7861 | $as_echo "$AR" >&6; } | |
7862 | else | |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7864 | $as_echo "no" >&6; } | |
7865 | fi | |
7866 | ||
7867 | ||
7868 | fi | |
7869 | test -n "$ac_cv_prog_AR" && break | |
7870 | done | |
7871 | ||
7872 | if test -z "$ac_cv_prog_AR" ; then | |
7873 | set dummy ar | |
7874 | if test $build = $host ; then | |
7875 | AR="$2" | |
7876 | else | |
7877 | AR="${ncn_tool_prefix}$2" | |
7878 | fi | |
7879 | fi | |
7880 | ||
7881 | ||
7882 | ||
7883 | if test -n "$AS"; then | |
7884 | ac_cv_prog_AS=$AS | |
7885 | elif test -n "$ac_cv_prog_AS"; then | |
7886 | AS=$ac_cv_prog_AS | |
7887 | fi | |
7888 | ||
7889 | if test -n "$ac_cv_prog_AS"; then | |
7890 | for ncn_progname in as; do | |
7891 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7892 | set dummy ${ncn_progname}; ac_word=$2 | |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7894 | $as_echo_n "checking for $ac_word... " >&6; } | |
7895 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7896 | $as_echo_n "(cached) " >&6 | |
7897 | else | |
7898 | if test -n "$AS"; then | |
7899 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
7900 | else | |
7901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7902 | for as_dir in $PATH | |
7903 | do | |
7904 | IFS=$as_save_IFS | |
7905 | test -z "$as_dir" && as_dir=. | |
7906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7908 | ac_cv_prog_AS="${ncn_progname}" | |
7909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7910 | break 2 | |
7911 | fi | |
7912 | done | |
7913 | done | |
7914 | IFS=$as_save_IFS | |
7915 | ||
7916 | fi | |
7917 | fi | |
7918 | AS=$ac_cv_prog_AS | |
7919 | if test -n "$AS"; then | |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
7921 | $as_echo "$AS" >&6; } | |
7922 | else | |
7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7924 | $as_echo "no" >&6; } | |
7925 | fi | |
7926 | ||
7927 | ||
7928 | done | |
7929 | fi | |
7930 | ||
7931 | for ncn_progname in as; do | |
7932 | if test -n "$ncn_tool_prefix"; then | |
7933 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7934 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7936 | $as_echo_n "checking for $ac_word... " >&6; } | |
7937 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7938 | $as_echo_n "(cached) " >&6 | |
7939 | else | |
7940 | if test -n "$AS"; then | |
7941 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
7942 | else | |
7943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7944 | for as_dir in $PATH | |
7945 | do | |
7946 | IFS=$as_save_IFS | |
7947 | test -z "$as_dir" && as_dir=. | |
7948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7950 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" | |
7951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7952 | break 2 | |
7953 | fi | |
7954 | done | |
7955 | done | |
7956 | IFS=$as_save_IFS | |
7957 | ||
7958 | fi | |
7959 | fi | |
7960 | AS=$ac_cv_prog_AS | |
7961 | if test -n "$AS"; then | |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
7963 | $as_echo "$AS" >&6; } | |
7964 | else | |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7966 | $as_echo "no" >&6; } | |
7967 | fi | |
7968 | ||
7969 | ||
7970 | fi | |
7971 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
7972 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7973 | set dummy ${ncn_progname}; ac_word=$2 | |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7975 | $as_echo_n "checking for $ac_word... " >&6; } | |
7976 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7977 | $as_echo_n "(cached) " >&6 | |
7978 | else | |
7979 | if test -n "$AS"; then | |
7980 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
7981 | else | |
7982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7983 | for as_dir in $PATH | |
7984 | do | |
7985 | IFS=$as_save_IFS | |
7986 | test -z "$as_dir" && as_dir=. | |
7987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7989 | ac_cv_prog_AS="${ncn_progname}" | |
7990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7991 | break 2 | |
7992 | fi | |
7993 | done | |
7994 | done | |
7995 | IFS=$as_save_IFS | |
7996 | ||
7997 | fi | |
7998 | fi | |
7999 | AS=$ac_cv_prog_AS | |
8000 | if test -n "$AS"; then | |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
8002 | $as_echo "$AS" >&6; } | |
8003 | else | |
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8005 | $as_echo "no" >&6; } | |
8006 | fi | |
8007 | ||
8008 | ||
8009 | fi | |
8010 | test -n "$ac_cv_prog_AS" && break | |
8011 | done | |
8012 | ||
8013 | if test -z "$ac_cv_prog_AS" ; then | |
8014 | set dummy as | |
8015 | if test $build = $host ; then | |
8016 | AS="$2" | |
8017 | else | |
8018 | AS="${ncn_tool_prefix}$2" | |
8019 | fi | |
8020 | fi | |
8021 | ||
8022 | ||
8023 | ||
8024 | if test -n "$DLLTOOL"; then | |
8025 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8026 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8027 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8028 | fi | |
8029 | ||
8030 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8031 | for ncn_progname in dlltool; do | |
8032 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8033 | set dummy ${ncn_progname}; ac_word=$2 | |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8035 | $as_echo_n "checking for $ac_word... " >&6; } | |
8036 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8037 | $as_echo_n "(cached) " >&6 | |
8038 | else | |
8039 | if test -n "$DLLTOOL"; then | |
8040 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8041 | else | |
8042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8043 | for as_dir in $PATH | |
8044 | do | |
8045 | IFS=$as_save_IFS | |
8046 | test -z "$as_dir" && as_dir=. | |
8047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8049 | ac_cv_prog_DLLTOOL="${ncn_progname}" | |
8050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8051 | break 2 | |
8052 | fi | |
8053 | done | |
8054 | done | |
8055 | IFS=$as_save_IFS | |
8056 | ||
8057 | fi | |
8058 | fi | |
8059 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8060 | if test -n "$DLLTOOL"; then | |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
8062 | $as_echo "$DLLTOOL" >&6; } | |
8063 | else | |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8065 | $as_echo "no" >&6; } | |
8066 | fi | |
8067 | ||
8068 | ||
8069 | done | |
8070 | fi | |
8071 | ||
8072 | for ncn_progname in dlltool; do | |
8073 | if test -n "$ncn_tool_prefix"; then | |
8074 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8075 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8077 | $as_echo_n "checking for $ac_word... " >&6; } | |
8078 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8079 | $as_echo_n "(cached) " >&6 | |
8080 | else | |
8081 | if test -n "$DLLTOOL"; then | |
8082 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8083 | else | |
8084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8085 | for as_dir in $PATH | |
8086 | do | |
8087 | IFS=$as_save_IFS | |
8088 | test -z "$as_dir" && as_dir=. | |
8089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8091 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" | |
8092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8093 | break 2 | |
8094 | fi | |
8095 | done | |
8096 | done | |
8097 | IFS=$as_save_IFS | |
8098 | ||
8099 | fi | |
8100 | fi | |
8101 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8102 | if test -n "$DLLTOOL"; then | |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
8104 | $as_echo "$DLLTOOL" >&6; } | |
8105 | else | |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8107 | $as_echo "no" >&6; } | |
8108 | fi | |
8109 | ||
8110 | ||
8111 | fi | |
8112 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8113 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8114 | set dummy ${ncn_progname}; ac_word=$2 | |
8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8116 | $as_echo_n "checking for $ac_word... " >&6; } | |
8117 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8118 | $as_echo_n "(cached) " >&6 | |
8119 | else | |
8120 | if test -n "$DLLTOOL"; then | |
8121 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8122 | else | |
8123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8124 | for as_dir in $PATH | |
8125 | do | |
8126 | IFS=$as_save_IFS | |
8127 | test -z "$as_dir" && as_dir=. | |
8128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8130 | ac_cv_prog_DLLTOOL="${ncn_progname}" | |
8131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8132 | break 2 | |
8133 | fi | |
8134 | done | |
8135 | done | |
8136 | IFS=$as_save_IFS | |
8137 | ||
8138 | fi | |
8139 | fi | |
8140 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8141 | if test -n "$DLLTOOL"; then | |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
8143 | $as_echo "$DLLTOOL" >&6; } | |
8144 | else | |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8146 | $as_echo "no" >&6; } | |
8147 | fi | |
8148 | ||
8149 | ||
8150 | fi | |
8151 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8152 | done | |
8153 | ||
8154 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8155 | set dummy dlltool | |
8156 | if test $build = $host ; then | |
8157 | DLLTOOL="$2" | |
8158 | else | |
8159 | DLLTOOL="${ncn_tool_prefix}$2" | |
8160 | fi | |
8161 | fi | |
8162 | ||
8163 | ||
8164 | ||
8165 | if test -n "$LD"; then | |
8166 | ac_cv_prog_LD=$LD | |
8167 | elif test -n "$ac_cv_prog_LD"; then | |
8168 | LD=$ac_cv_prog_LD | |
8169 | fi | |
8170 | ||
8171 | if test -n "$ac_cv_prog_LD"; then | |
8172 | for ncn_progname in ld; do | |
8173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8174 | set dummy ${ncn_progname}; ac_word=$2 | |
8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8176 | $as_echo_n "checking for $ac_word... " >&6; } | |
8177 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8178 | $as_echo_n "(cached) " >&6 | |
8179 | else | |
8180 | if test -n "$LD"; then | |
8181 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8182 | else | |
8183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8184 | for as_dir in $PATH | |
8185 | do | |
8186 | IFS=$as_save_IFS | |
8187 | test -z "$as_dir" && as_dir=. | |
8188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8190 | ac_cv_prog_LD="${ncn_progname}" | |
8191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8192 | break 2 | |
8193 | fi | |
8194 | done | |
8195 | done | |
8196 | IFS=$as_save_IFS | |
8197 | ||
8198 | fi | |
8199 | fi | |
8200 | LD=$ac_cv_prog_LD | |
8201 | if test -n "$LD"; then | |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
8203 | $as_echo "$LD" >&6; } | |
8204 | else | |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8206 | $as_echo "no" >&6; } | |
8207 | fi | |
8208 | ||
8209 | ||
8210 | done | |
8211 | fi | |
8212 | ||
8213 | for ncn_progname in ld; do | |
8214 | if test -n "$ncn_tool_prefix"; then | |
8215 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8216 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8218 | $as_echo_n "checking for $ac_word... " >&6; } | |
8219 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8220 | $as_echo_n "(cached) " >&6 | |
8221 | else | |
8222 | if test -n "$LD"; then | |
8223 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8224 | else | |
8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
8230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8232 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" | |
8233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8234 | break 2 | |
8235 | fi | |
8236 | done | |
8237 | done | |
8238 | IFS=$as_save_IFS | |
8239 | ||
8240 | fi | |
8241 | fi | |
8242 | LD=$ac_cv_prog_LD | |
8243 | if test -n "$LD"; then | |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
8245 | $as_echo "$LD" >&6; } | |
8246 | else | |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8248 | $as_echo "no" >&6; } | |
8249 | fi | |
8250 | ||
8251 | ||
8252 | fi | |
8253 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8254 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8255 | set dummy ${ncn_progname}; ac_word=$2 | |
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8257 | $as_echo_n "checking for $ac_word... " >&6; } | |
8258 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8259 | $as_echo_n "(cached) " >&6 | |
8260 | else | |
8261 | if test -n "$LD"; then | |
8262 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8263 | else | |
8264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8265 | for as_dir in $PATH | |
8266 | do | |
8267 | IFS=$as_save_IFS | |
8268 | test -z "$as_dir" && as_dir=. | |
8269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8271 | ac_cv_prog_LD="${ncn_progname}" | |
8272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8273 | break 2 | |
8274 | fi | |
8275 | done | |
8276 | done | |
8277 | IFS=$as_save_IFS | |
8278 | ||
8279 | fi | |
8280 | fi | |
8281 | LD=$ac_cv_prog_LD | |
8282 | if test -n "$LD"; then | |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
8284 | $as_echo "$LD" >&6; } | |
8285 | else | |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8287 | $as_echo "no" >&6; } | |
8288 | fi | |
8289 | ||
8290 | ||
8291 | fi | |
8292 | test -n "$ac_cv_prog_LD" && break | |
8293 | done | |
8294 | ||
8295 | if test -z "$ac_cv_prog_LD" ; then | |
8296 | set dummy ld | |
8297 | if test $build = $host ; then | |
8298 | LD="$2" | |
8299 | else | |
8300 | LD="${ncn_tool_prefix}$2" | |
8301 | fi | |
8302 | fi | |
8303 | ||
8304 | ||
8305 | ||
8306 | if test -n "$LIPO"; then | |
8307 | ac_cv_prog_LIPO=$LIPO | |
8308 | elif test -n "$ac_cv_prog_LIPO"; then | |
8309 | LIPO=$ac_cv_prog_LIPO | |
8310 | fi | |
8311 | ||
8312 | if test -n "$ac_cv_prog_LIPO"; then | |
8313 | for ncn_progname in lipo; do | |
8314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8315 | set dummy ${ncn_progname}; ac_word=$2 | |
8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8317 | $as_echo_n "checking for $ac_word... " >&6; } | |
8318 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8319 | $as_echo_n "(cached) " >&6 | |
8320 | else | |
8321 | if test -n "$LIPO"; then | |
8322 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8323 | else | |
8324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8325 | for as_dir in $PATH | |
8326 | do | |
8327 | IFS=$as_save_IFS | |
8328 | test -z "$as_dir" && as_dir=. | |
8329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8331 | ac_cv_prog_LIPO="${ncn_progname}" | |
8332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8333 | break 2 | |
8334 | fi | |
8335 | done | |
8336 | done | |
8337 | IFS=$as_save_IFS | |
8338 | ||
8339 | fi | |
8340 | fi | |
8341 | LIPO=$ac_cv_prog_LIPO | |
8342 | if test -n "$LIPO"; then | |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8344 | $as_echo "$LIPO" >&6; } | |
8345 | else | |
8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8347 | $as_echo "no" >&6; } | |
8348 | fi | |
8349 | ||
8350 | ||
8351 | done | |
8352 | fi | |
8353 | ||
8354 | for ncn_progname in lipo; do | |
8355 | if test -n "$ncn_tool_prefix"; then | |
8356 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8357 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8359 | $as_echo_n "checking for $ac_word... " >&6; } | |
8360 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8361 | $as_echo_n "(cached) " >&6 | |
8362 | else | |
8363 | if test -n "$LIPO"; then | |
8364 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8365 | else | |
8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8367 | for as_dir in $PATH | |
8368 | do | |
8369 | IFS=$as_save_IFS | |
8370 | test -z "$as_dir" && as_dir=. | |
8371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8373 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" | |
8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8375 | break 2 | |
8376 | fi | |
8377 | done | |
8378 | done | |
8379 | IFS=$as_save_IFS | |
8380 | ||
8381 | fi | |
8382 | fi | |
8383 | LIPO=$ac_cv_prog_LIPO | |
8384 | if test -n "$LIPO"; then | |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8386 | $as_echo "$LIPO" >&6; } | |
8387 | else | |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8389 | $as_echo "no" >&6; } | |
8390 | fi | |
8391 | ||
8392 | ||
8393 | fi | |
8394 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8396 | set dummy ${ncn_progname}; ac_word=$2 | |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8398 | $as_echo_n "checking for $ac_word... " >&6; } | |
8399 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8400 | $as_echo_n "(cached) " >&6 | |
8401 | else | |
8402 | if test -n "$LIPO"; then | |
8403 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8404 | else | |
8405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8406 | for as_dir in $PATH | |
8407 | do | |
8408 | IFS=$as_save_IFS | |
8409 | test -z "$as_dir" && as_dir=. | |
8410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8412 | ac_cv_prog_LIPO="${ncn_progname}" | |
8413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8414 | break 2 | |
8415 | fi | |
8416 | done | |
8417 | done | |
8418 | IFS=$as_save_IFS | |
8419 | ||
8420 | fi | |
8421 | fi | |
8422 | LIPO=$ac_cv_prog_LIPO | |
8423 | if test -n "$LIPO"; then | |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8425 | $as_echo "$LIPO" >&6; } | |
8426 | else | |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8428 | $as_echo "no" >&6; } | |
8429 | fi | |
8430 | ||
8431 | ||
8432 | fi | |
8433 | test -n "$ac_cv_prog_LIPO" && break | |
8434 | done | |
8435 | ||
8436 | if test -z "$ac_cv_prog_LIPO" ; then | |
8437 | set dummy lipo | |
8438 | if test $build = $host ; then | |
8439 | LIPO="$2" | |
8440 | else | |
8441 | LIPO="${ncn_tool_prefix}$2" | |
8442 | fi | |
8443 | fi | |
8444 | ||
8445 | ||
8446 | ||
8447 | if test -n "$NM"; then | |
8448 | ac_cv_prog_NM=$NM | |
8449 | elif test -n "$ac_cv_prog_NM"; then | |
8450 | NM=$ac_cv_prog_NM | |
8451 | fi | |
8452 | ||
8453 | if test -n "$ac_cv_prog_NM"; then | |
8454 | for ncn_progname in nm; do | |
8455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8456 | set dummy ${ncn_progname}; ac_word=$2 | |
8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8458 | $as_echo_n "checking for $ac_word... " >&6; } | |
8459 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8460 | $as_echo_n "(cached) " >&6 | |
8461 | else | |
8462 | if test -n "$NM"; then | |
8463 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8464 | else | |
8465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8466 | for as_dir in $PATH | |
8467 | do | |
8468 | IFS=$as_save_IFS | |
8469 | test -z "$as_dir" && as_dir=. | |
8470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8472 | ac_cv_prog_NM="${ncn_progname}" | |
8473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8474 | break 2 | |
8475 | fi | |
8476 | done | |
8477 | done | |
8478 | IFS=$as_save_IFS | |
8479 | ||
8480 | fi | |
8481 | fi | |
8482 | NM=$ac_cv_prog_NM | |
8483 | if test -n "$NM"; then | |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
8485 | $as_echo "$NM" >&6; } | |
8486 | else | |
8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8488 | $as_echo "no" >&6; } | |
8489 | fi | |
8490 | ||
8491 | ||
8492 | done | |
8493 | fi | |
8494 | ||
8495 | for ncn_progname in nm; do | |
8496 | if test -n "$ncn_tool_prefix"; then | |
8497 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8498 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8500 | $as_echo_n "checking for $ac_word... " >&6; } | |
8501 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8502 | $as_echo_n "(cached) " >&6 | |
8503 | else | |
8504 | if test -n "$NM"; then | |
8505 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8506 | else | |
8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8508 | for as_dir in $PATH | |
8509 | do | |
8510 | IFS=$as_save_IFS | |
8511 | test -z "$as_dir" && as_dir=. | |
8512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8514 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" | |
8515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8516 | break 2 | |
8517 | fi | |
8518 | done | |
8519 | done | |
8520 | IFS=$as_save_IFS | |
8521 | ||
8522 | fi | |
8523 | fi | |
8524 | NM=$ac_cv_prog_NM | |
8525 | if test -n "$NM"; then | |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
8527 | $as_echo "$NM" >&6; } | |
8528 | else | |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8530 | $as_echo "no" >&6; } | |
8531 | fi | |
8532 | ||
8533 | ||
8534 | fi | |
8535 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then | |
8536 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8537 | set dummy ${ncn_progname}; ac_word=$2 | |
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8539 | $as_echo_n "checking for $ac_word... " >&6; } | |
8540 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8541 | $as_echo_n "(cached) " >&6 | |
8542 | else | |
8543 | if test -n "$NM"; then | |
8544 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8545 | else | |
8546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8547 | for as_dir in $PATH | |
8548 | do | |
8549 | IFS=$as_save_IFS | |
8550 | test -z "$as_dir" && as_dir=. | |
8551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8553 | ac_cv_prog_NM="${ncn_progname}" | |
8554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8555 | break 2 | |
8556 | fi | |
8557 | done | |
8558 | done | |
8559 | IFS=$as_save_IFS | |
8560 | ||
8561 | fi | |
8562 | fi | |
8563 | NM=$ac_cv_prog_NM | |
8564 | if test -n "$NM"; then | |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
8566 | $as_echo "$NM" >&6; } | |
8567 | else | |
8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8569 | $as_echo "no" >&6; } | |
8570 | fi | |
8571 | ||
8572 | ||
8573 | fi | |
8574 | test -n "$ac_cv_prog_NM" && break | |
8575 | done | |
8576 | ||
8577 | if test -z "$ac_cv_prog_NM" ; then | |
8578 | set dummy nm | |
8579 | if test $build = $host ; then | |
8580 | NM="$2" | |
8581 | else | |
8582 | NM="${ncn_tool_prefix}$2" | |
8583 | fi | |
8584 | fi | |
8585 | ||
8586 | ||
8587 | ||
8588 | if test -n "$RANLIB"; then | |
8589 | ac_cv_prog_RANLIB=$RANLIB | |
8590 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8591 | RANLIB=$ac_cv_prog_RANLIB | |
8592 | fi | |
8593 | ||
8594 | if test -n "$ac_cv_prog_RANLIB"; then | |
8595 | for ncn_progname in ranlib; do | |
8596 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8597 | set dummy ${ncn_progname}; ac_word=$2 | |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8599 | $as_echo_n "checking for $ac_word... " >&6; } | |
8600 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8601 | $as_echo_n "(cached) " >&6 | |
8602 | else | |
8603 | if test -n "$RANLIB"; then | |
8604 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8605 | else | |
8606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8607 | for as_dir in $PATH | |
8608 | do | |
8609 | IFS=$as_save_IFS | |
8610 | test -z "$as_dir" && as_dir=. | |
8611 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8613 | ac_cv_prog_RANLIB="${ncn_progname}" | |
8614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8615 | break 2 | |
8616 | fi | |
8617 | done | |
8618 | done | |
8619 | IFS=$as_save_IFS | |
8620 | ||
8621 | fi | |
8622 | fi | |
8623 | RANLIB=$ac_cv_prog_RANLIB | |
8624 | if test -n "$RANLIB"; then | |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
8626 | $as_echo "$RANLIB" >&6; } | |
8627 | else | |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8629 | $as_echo "no" >&6; } | |
8630 | fi | |
8631 | ||
8632 | ||
8633 | done | |
8634 | fi | |
8635 | ||
8636 | for ncn_progname in ranlib; do | |
8637 | if test -n "$ncn_tool_prefix"; then | |
8638 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8639 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8641 | $as_echo_n "checking for $ac_word... " >&6; } | |
8642 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8643 | $as_echo_n "(cached) " >&6 | |
8644 | else | |
8645 | if test -n "$RANLIB"; then | |
8646 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8647 | else | |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
8653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8655 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" | |
8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8657 | break 2 | |
8658 | fi | |
8659 | done | |
8660 | done | |
8661 | IFS=$as_save_IFS | |
8662 | ||
8663 | fi | |
8664 | fi | |
8665 | RANLIB=$ac_cv_prog_RANLIB | |
8666 | if test -n "$RANLIB"; then | |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
8668 | $as_echo "$RANLIB" >&6; } | |
8669 | else | |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8671 | $as_echo "no" >&6; } | |
8672 | fi | |
8673 | ||
8674 | ||
8675 | fi | |
8676 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8677 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8678 | set dummy ${ncn_progname}; ac_word=$2 | |
8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8680 | $as_echo_n "checking for $ac_word... " >&6; } | |
8681 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8682 | $as_echo_n "(cached) " >&6 | |
8683 | else | |
8684 | if test -n "$RANLIB"; then | |
8685 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8686 | else | |
8687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8688 | for as_dir in $PATH | |
8689 | do | |
8690 | IFS=$as_save_IFS | |
8691 | test -z "$as_dir" && as_dir=. | |
8692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8694 | ac_cv_prog_RANLIB="${ncn_progname}" | |
8695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8696 | break 2 | |
8697 | fi | |
8698 | done | |
8699 | done | |
8700 | IFS=$as_save_IFS | |
8701 | ||
8702 | fi | |
8703 | fi | |
8704 | RANLIB=$ac_cv_prog_RANLIB | |
8705 | if test -n "$RANLIB"; then | |
8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
8707 | $as_echo "$RANLIB" >&6; } | |
8708 | else | |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8710 | $as_echo "no" >&6; } | |
8711 | fi | |
8712 | ||
8713 | ||
8714 | fi | |
8715 | test -n "$ac_cv_prog_RANLIB" && break | |
8716 | done | |
8717 | ||
8718 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8719 | RANLIB="true" | |
8720 | fi | |
8721 | ||
8722 | ||
8723 | ||
8724 | if test -n "$STRIP"; then | |
8725 | ac_cv_prog_STRIP=$STRIP | |
8726 | elif test -n "$ac_cv_prog_STRIP"; then | |
8727 | STRIP=$ac_cv_prog_STRIP | |
8728 | fi | |
8729 | ||
8730 | if test -n "$ac_cv_prog_STRIP"; then | |
8731 | for ncn_progname in strip; do | |
8732 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8733 | set dummy ${ncn_progname}; ac_word=$2 | |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8735 | $as_echo_n "checking for $ac_word... " >&6; } | |
8736 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8737 | $as_echo_n "(cached) " >&6 | |
8738 | else | |
8739 | if test -n "$STRIP"; then | |
8740 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8741 | else | |
8742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8743 | for as_dir in $PATH | |
8744 | do | |
8745 | IFS=$as_save_IFS | |
8746 | test -z "$as_dir" && as_dir=. | |
8747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8749 | ac_cv_prog_STRIP="${ncn_progname}" | |
8750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8751 | break 2 | |
8752 | fi | |
8753 | done | |
8754 | done | |
8755 | IFS=$as_save_IFS | |
8756 | ||
8757 | fi | |
8758 | fi | |
8759 | STRIP=$ac_cv_prog_STRIP | |
8760 | if test -n "$STRIP"; then | |
8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
8762 | $as_echo "$STRIP" >&6; } | |
8763 | else | |
8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8765 | $as_echo "no" >&6; } | |
8766 | fi | |
8767 | ||
8768 | ||
8769 | done | |
8770 | fi | |
8771 | ||
8772 | for ncn_progname in strip; do | |
8773 | if test -n "$ncn_tool_prefix"; then | |
8774 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8775 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8777 | $as_echo_n "checking for $ac_word... " >&6; } | |
8778 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8779 | $as_echo_n "(cached) " >&6 | |
8780 | else | |
8781 | if test -n "$STRIP"; then | |
8782 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8783 | else | |
8784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8785 | for as_dir in $PATH | |
8786 | do | |
8787 | IFS=$as_save_IFS | |
8788 | test -z "$as_dir" && as_dir=. | |
8789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8791 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" | |
8792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8793 | break 2 | |
8794 | fi | |
8795 | done | |
8796 | done | |
8797 | IFS=$as_save_IFS | |
8798 | ||
8799 | fi | |
8800 | fi | |
8801 | STRIP=$ac_cv_prog_STRIP | |
8802 | if test -n "$STRIP"; then | |
8803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
8804 | $as_echo "$STRIP" >&6; } | |
8805 | else | |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8807 | $as_echo "no" >&6; } | |
8808 | fi | |
8809 | ||
8810 | ||
8811 | fi | |
8812 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8813 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8814 | set dummy ${ncn_progname}; ac_word=$2 | |
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8816 | $as_echo_n "checking for $ac_word... " >&6; } | |
8817 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8818 | $as_echo_n "(cached) " >&6 | |
8819 | else | |
8820 | if test -n "$STRIP"; then | |
8821 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8822 | else | |
8823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8824 | for as_dir in $PATH | |
8825 | do | |
8826 | IFS=$as_save_IFS | |
8827 | test -z "$as_dir" && as_dir=. | |
8828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8830 | ac_cv_prog_STRIP="${ncn_progname}" | |
8831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8832 | break 2 | |
8833 | fi | |
8834 | done | |
8835 | done | |
8836 | IFS=$as_save_IFS | |
8837 | ||
8838 | fi | |
8839 | fi | |
8840 | STRIP=$ac_cv_prog_STRIP | |
8841 | if test -n "$STRIP"; then | |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
8843 | $as_echo "$STRIP" >&6; } | |
8844 | else | |
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8846 | $as_echo "no" >&6; } | |
8847 | fi | |
8848 | ||
8849 | ||
8850 | fi | |
8851 | test -n "$ac_cv_prog_STRIP" && break | |
8852 | done | |
8853 | ||
8854 | if test -z "$ac_cv_prog_STRIP" ; then | |
8855 | STRIP="true" | |
8856 | fi | |
8857 | ||
8858 | ||
8859 | ||
8860 | if test -n "$WINDRES"; then | |
8861 | ac_cv_prog_WINDRES=$WINDRES | |
8862 | elif test -n "$ac_cv_prog_WINDRES"; then | |
8863 | WINDRES=$ac_cv_prog_WINDRES | |
8864 | fi | |
8865 | ||
8866 | if test -n "$ac_cv_prog_WINDRES"; then | |
8867 | for ncn_progname in windres; do | |
8868 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8869 | set dummy ${ncn_progname}; ac_word=$2 | |
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8871 | $as_echo_n "checking for $ac_word... " >&6; } | |
8872 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8873 | $as_echo_n "(cached) " >&6 | |
8874 | else | |
8875 | if test -n "$WINDRES"; then | |
8876 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8877 | else | |
8878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8879 | for as_dir in $PATH | |
8880 | do | |
8881 | IFS=$as_save_IFS | |
8882 | test -z "$as_dir" && as_dir=. | |
8883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8885 | ac_cv_prog_WINDRES="${ncn_progname}" | |
8886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8887 | break 2 | |
8888 | fi | |
8889 | done | |
8890 | done | |
8891 | IFS=$as_save_IFS | |
8892 | ||
8893 | fi | |
8894 | fi | |
8895 | WINDRES=$ac_cv_prog_WINDRES | |
8896 | if test -n "$WINDRES"; then | |
8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
8898 | $as_echo "$WINDRES" >&6; } | |
8899 | else | |
8900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8901 | $as_echo "no" >&6; } | |
8902 | fi | |
8903 | ||
8904 | ||
8905 | done | |
8906 | fi | |
8907 | ||
8908 | for ncn_progname in windres; do | |
8909 | if test -n "$ncn_tool_prefix"; then | |
8910 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8911 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8913 | $as_echo_n "checking for $ac_word... " >&6; } | |
8914 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8915 | $as_echo_n "(cached) " >&6 | |
8916 | else | |
8917 | if test -n "$WINDRES"; then | |
8918 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8919 | else | |
8920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8921 | for as_dir in $PATH | |
8922 | do | |
8923 | IFS=$as_save_IFS | |
8924 | test -z "$as_dir" && as_dir=. | |
8925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8927 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" | |
8928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8929 | break 2 | |
8930 | fi | |
8931 | done | |
8932 | done | |
8933 | IFS=$as_save_IFS | |
8934 | ||
8935 | fi | |
8936 | fi | |
8937 | WINDRES=$ac_cv_prog_WINDRES | |
8938 | if test -n "$WINDRES"; then | |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
8940 | $as_echo "$WINDRES" >&6; } | |
8941 | else | |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8943 | $as_echo "no" >&6; } | |
8944 | fi | |
8945 | ||
8946 | ||
8947 | fi | |
8948 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
8949 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8950 | set dummy ${ncn_progname}; ac_word=$2 | |
8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8952 | $as_echo_n "checking for $ac_word... " >&6; } | |
8953 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8954 | $as_echo_n "(cached) " >&6 | |
8955 | else | |
8956 | if test -n "$WINDRES"; then | |
8957 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8958 | else | |
8959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8960 | for as_dir in $PATH | |
8961 | do | |
8962 | IFS=$as_save_IFS | |
8963 | test -z "$as_dir" && as_dir=. | |
8964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8966 | ac_cv_prog_WINDRES="${ncn_progname}" | |
8967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8968 | break 2 | |
8969 | fi | |
8970 | done | |
8971 | done | |
8972 | IFS=$as_save_IFS | |
8973 | ||
8974 | fi | |
8975 | fi | |
8976 | WINDRES=$ac_cv_prog_WINDRES | |
8977 | if test -n "$WINDRES"; then | |
8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
8979 | $as_echo "$WINDRES" >&6; } | |
8980 | else | |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8982 | $as_echo "no" >&6; } | |
8983 | fi | |
8984 | ||
8985 | ||
8986 | fi | |
8987 | test -n "$ac_cv_prog_WINDRES" && break | |
8988 | done | |
8989 | ||
8990 | if test -z "$ac_cv_prog_WINDRES" ; then | |
8991 | set dummy windres | |
8992 | if test $build = $host ; then | |
8993 | WINDRES="$2" | |
8994 | else | |
8995 | WINDRES="${ncn_tool_prefix}$2" | |
8996 | fi | |
8997 | fi | |
8998 | ||
8999 | ||
9000 | ||
9001 | if test -n "$WINDMC"; then | |
9002 | ac_cv_prog_WINDMC=$WINDMC | |
9003 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9004 | WINDMC=$ac_cv_prog_WINDMC | |
9005 | fi | |
9006 | ||
9007 | if test -n "$ac_cv_prog_WINDMC"; then | |
9008 | for ncn_progname in windmc; do | |
9009 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9010 | set dummy ${ncn_progname}; ac_word=$2 | |
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9012 | $as_echo_n "checking for $ac_word... " >&6; } | |
9013 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9014 | $as_echo_n "(cached) " >&6 | |
9015 | else | |
9016 | if test -n "$WINDMC"; then | |
9017 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9018 | else | |
9019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9020 | for as_dir in $PATH | |
9021 | do | |
9022 | IFS=$as_save_IFS | |
9023 | test -z "$as_dir" && as_dir=. | |
9024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9026 | ac_cv_prog_WINDMC="${ncn_progname}" | |
9027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9028 | break 2 | |
9029 | fi | |
9030 | done | |
9031 | done | |
9032 | IFS=$as_save_IFS | |
9033 | ||
9034 | fi | |
9035 | fi | |
9036 | WINDMC=$ac_cv_prog_WINDMC | |
9037 | if test -n "$WINDMC"; then | |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 | |
9039 | $as_echo "$WINDMC" >&6; } | |
9040 | else | |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9042 | $as_echo "no" >&6; } | |
9043 | fi | |
9044 | ||
9045 | ||
9046 | done | |
9047 | fi | |
9048 | ||
9049 | for ncn_progname in windmc; do | |
9050 | if test -n "$ncn_tool_prefix"; then | |
9051 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9052 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9054 | $as_echo_n "checking for $ac_word... " >&6; } | |
9055 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9056 | $as_echo_n "(cached) " >&6 | |
9057 | else | |
9058 | if test -n "$WINDMC"; then | |
9059 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9060 | else | |
9061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9062 | for as_dir in $PATH | |
9063 | do | |
9064 | IFS=$as_save_IFS | |
9065 | test -z "$as_dir" && as_dir=. | |
9066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9068 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" | |
9069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9070 | break 2 | |
9071 | fi | |
9072 | done | |
9073 | done | |
9074 | IFS=$as_save_IFS | |
9075 | ||
9076 | fi | |
9077 | fi | |
9078 | WINDMC=$ac_cv_prog_WINDMC | |
9079 | if test -n "$WINDMC"; then | |
9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 | |
9081 | $as_echo "$WINDMC" >&6; } | |
9082 | else | |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9084 | $as_echo "no" >&6; } | |
9085 | fi | |
9086 | ||
9087 | ||
9088 | fi | |
9089 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9090 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9091 | set dummy ${ncn_progname}; ac_word=$2 | |
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9093 | $as_echo_n "checking for $ac_word... " >&6; } | |
9094 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9095 | $as_echo_n "(cached) " >&6 | |
9096 | else | |
9097 | if test -n "$WINDMC"; then | |
9098 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9099 | else | |
9100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9101 | for as_dir in $PATH | |
9102 | do | |
9103 | IFS=$as_save_IFS | |
9104 | test -z "$as_dir" && as_dir=. | |
9105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9107 | ac_cv_prog_WINDMC="${ncn_progname}" | |
9108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9109 | break 2 | |
9110 | fi | |
9111 | done | |
9112 | done | |
9113 | IFS=$as_save_IFS | |
9114 | ||
9115 | fi | |
9116 | fi | |
9117 | WINDMC=$ac_cv_prog_WINDMC | |
9118 | if test -n "$WINDMC"; then | |
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 | |
9120 | $as_echo "$WINDMC" >&6; } | |
9121 | else | |
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9123 | $as_echo "no" >&6; } | |
9124 | fi | |
9125 | ||
9126 | ||
9127 | fi | |
9128 | test -n "$ac_cv_prog_WINDMC" && break | |
9129 | done | |
9130 | ||
9131 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9132 | set dummy windmc | |
9133 | if test $build = $host ; then | |
9134 | WINDMC="$2" | |
9135 | else | |
9136 | WINDMC="${ncn_tool_prefix}$2" | |
9137 | fi | |
9138 | fi | |
9139 | ||
9140 | ||
9141 | ||
9142 | if test -n "$OBJCOPY"; then | |
9143 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9144 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9145 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9146 | fi | |
9147 | ||
9148 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9149 | for ncn_progname in objcopy; do | |
9150 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9151 | set dummy ${ncn_progname}; ac_word=$2 | |
9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9153 | $as_echo_n "checking for $ac_word... " >&6; } | |
9154 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9155 | $as_echo_n "(cached) " >&6 | |
9156 | else | |
9157 | if test -n "$OBJCOPY"; then | |
9158 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9159 | else | |
9160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9161 | for as_dir in $PATH | |
9162 | do | |
9163 | IFS=$as_save_IFS | |
9164 | test -z "$as_dir" && as_dir=. | |
9165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9167 | ac_cv_prog_OBJCOPY="${ncn_progname}" | |
9168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9169 | break 2 | |
9170 | fi | |
9171 | done | |
9172 | done | |
9173 | IFS=$as_save_IFS | |
9174 | ||
9175 | fi | |
9176 | fi | |
9177 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9178 | if test -n "$OBJCOPY"; then | |
9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
9180 | $as_echo "$OBJCOPY" >&6; } | |
9181 | else | |
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9183 | $as_echo "no" >&6; } | |
9184 | fi | |
9185 | ||
9186 | ||
9187 | done | |
9188 | fi | |
9189 | ||
9190 | for ncn_progname in objcopy; do | |
9191 | if test -n "$ncn_tool_prefix"; then | |
9192 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9193 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9195 | $as_echo_n "checking for $ac_word... " >&6; } | |
9196 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9197 | $as_echo_n "(cached) " >&6 | |
9198 | else | |
9199 | if test -n "$OBJCOPY"; then | |
9200 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9201 | else | |
9202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9203 | for as_dir in $PATH | |
9204 | do | |
9205 | IFS=$as_save_IFS | |
9206 | test -z "$as_dir" && as_dir=. | |
9207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9209 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" | |
9210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9211 | break 2 | |
9212 | fi | |
9213 | done | |
9214 | done | |
9215 | IFS=$as_save_IFS | |
9216 | ||
9217 | fi | |
9218 | fi | |
9219 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9220 | if test -n "$OBJCOPY"; then | |
9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
9222 | $as_echo "$OBJCOPY" >&6; } | |
9223 | else | |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9225 | $as_echo "no" >&6; } | |
9226 | fi | |
9227 | ||
9228 | ||
9229 | fi | |
9230 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9231 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9232 | set dummy ${ncn_progname}; ac_word=$2 | |
9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9234 | $as_echo_n "checking for $ac_word... " >&6; } | |
9235 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9236 | $as_echo_n "(cached) " >&6 | |
9237 | else | |
9238 | if test -n "$OBJCOPY"; then | |
9239 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9240 | else | |
9241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9242 | for as_dir in $PATH | |
9243 | do | |
9244 | IFS=$as_save_IFS | |
9245 | test -z "$as_dir" && as_dir=. | |
9246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9248 | ac_cv_prog_OBJCOPY="${ncn_progname}" | |
9249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9250 | break 2 | |
9251 | fi | |
9252 | done | |
9253 | done | |
9254 | IFS=$as_save_IFS | |
9255 | ||
9256 | fi | |
9257 | fi | |
9258 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9259 | if test -n "$OBJCOPY"; then | |
9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
9261 | $as_echo "$OBJCOPY" >&6; } | |
9262 | else | |
9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9264 | $as_echo "no" >&6; } | |
9265 | fi | |
9266 | ||
9267 | ||
9268 | fi | |
9269 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9270 | done | |
9271 | ||
9272 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9273 | set dummy objcopy | |
9274 | if test $build = $host ; then | |
9275 | OBJCOPY="$2" | |
9276 | else | |
9277 | OBJCOPY="${ncn_tool_prefix}$2" | |
9278 | fi | |
9279 | fi | |
9280 | ||
9281 | ||
9282 | ||
9283 | if test -n "$OBJDUMP"; then | |
9284 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9285 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9286 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9287 | fi | |
9288 | ||
9289 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9290 | for ncn_progname in objdump; do | |
9291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9292 | set dummy ${ncn_progname}; ac_word=$2 | |
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9294 | $as_echo_n "checking for $ac_word... " >&6; } | |
9295 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9296 | $as_echo_n "(cached) " >&6 | |
9297 | else | |
9298 | if test -n "$OBJDUMP"; then | |
9299 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9300 | else | |
9301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9302 | for as_dir in $PATH | |
9303 | do | |
9304 | IFS=$as_save_IFS | |
9305 | test -z "$as_dir" && as_dir=. | |
9306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9308 | ac_cv_prog_OBJDUMP="${ncn_progname}" | |
9309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9310 | break 2 | |
9311 | fi | |
9312 | done | |
9313 | done | |
9314 | IFS=$as_save_IFS | |
9315 | ||
9316 | fi | |
9317 | fi | |
9318 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9319 | if test -n "$OBJDUMP"; then | |
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
9321 | $as_echo "$OBJDUMP" >&6; } | |
9322 | else | |
9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9324 | $as_echo "no" >&6; } | |
9325 | fi | |
9326 | ||
9327 | ||
9328 | done | |
9329 | fi | |
9330 | ||
9331 | for ncn_progname in objdump; do | |
9332 | if test -n "$ncn_tool_prefix"; then | |
9333 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9334 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9336 | $as_echo_n "checking for $ac_word... " >&6; } | |
9337 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9338 | $as_echo_n "(cached) " >&6 | |
9339 | else | |
9340 | if test -n "$OBJDUMP"; then | |
9341 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9342 | else | |
9343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9344 | for as_dir in $PATH | |
9345 | do | |
9346 | IFS=$as_save_IFS | |
9347 | test -z "$as_dir" && as_dir=. | |
9348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9350 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" | |
9351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9352 | break 2 | |
9353 | fi | |
9354 | done | |
9355 | done | |
9356 | IFS=$as_save_IFS | |
9357 | ||
9358 | fi | |
9359 | fi | |
9360 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9361 | if test -n "$OBJDUMP"; then | |
9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
9363 | $as_echo "$OBJDUMP" >&6; } | |
9364 | else | |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9366 | $as_echo "no" >&6; } | |
9367 | fi | |
9368 | ||
9369 | ||
9370 | fi | |
9371 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9372 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9373 | set dummy ${ncn_progname}; ac_word=$2 | |
9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9375 | $as_echo_n "checking for $ac_word... " >&6; } | |
9376 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9377 | $as_echo_n "(cached) " >&6 | |
9378 | else | |
9379 | if test -n "$OBJDUMP"; then | |
9380 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9381 | else | |
9382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9383 | for as_dir in $PATH | |
9384 | do | |
9385 | IFS=$as_save_IFS | |
9386 | test -z "$as_dir" && as_dir=. | |
9387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9389 | ac_cv_prog_OBJDUMP="${ncn_progname}" | |
9390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9391 | break 2 | |
9392 | fi | |
9393 | done | |
9394 | done | |
9395 | IFS=$as_save_IFS | |
9396 | ||
9397 | fi | |
9398 | fi | |
9399 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9400 | if test -n "$OBJDUMP"; then | |
9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
9402 | $as_echo "$OBJDUMP" >&6; } | |
9403 | else | |
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9405 | $as_echo "no" >&6; } | |
9406 | fi | |
9407 | ||
9408 | ||
9409 | fi | |
9410 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9411 | done | |
9412 | ||
9413 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9414 | set dummy objdump | |
9415 | if test $build = $host ; then | |
9416 | OBJDUMP="$2" | |
9417 | else | |
9418 | OBJDUMP="${ncn_tool_prefix}$2" | |
9419 | fi | |
9420 | fi | |
9421 | ||
9422 | ||
9423 | ||
9424 | if test -n "$READELF"; then | |
9425 | ac_cv_prog_READELF=$READELF | |
9426 | elif test -n "$ac_cv_prog_READELF"; then | |
9427 | READELF=$ac_cv_prog_READELF | |
9428 | fi | |
9429 | ||
9430 | if test -n "$ac_cv_prog_READELF"; then | |
9431 | for ncn_progname in readelf; do | |
9432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9433 | set dummy ${ncn_progname}; ac_word=$2 | |
9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9435 | $as_echo_n "checking for $ac_word... " >&6; } | |
9436 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9437 | $as_echo_n "(cached) " >&6 | |
9438 | else | |
9439 | if test -n "$READELF"; then | |
9440 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9441 | else | |
9442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9443 | for as_dir in $PATH | |
9444 | do | |
9445 | IFS=$as_save_IFS | |
9446 | test -z "$as_dir" && as_dir=. | |
9447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9449 | ac_cv_prog_READELF="${ncn_progname}" | |
9450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9451 | break 2 | |
9452 | fi | |
9453 | done | |
9454 | done | |
9455 | IFS=$as_save_IFS | |
9456 | ||
9457 | fi | |
9458 | fi | |
9459 | READELF=$ac_cv_prog_READELF | |
9460 | if test -n "$READELF"; then | |
9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9462 | $as_echo "$READELF" >&6; } | |
9463 | else | |
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9465 | $as_echo "no" >&6; } | |
9466 | fi | |
9467 | ||
9468 | ||
9469 | done | |
9470 | fi | |
9471 | ||
9472 | for ncn_progname in readelf; do | |
9473 | if test -n "$ncn_tool_prefix"; then | |
9474 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9475 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9477 | $as_echo_n "checking for $ac_word... " >&6; } | |
9478 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9479 | $as_echo_n "(cached) " >&6 | |
9480 | else | |
9481 | if test -n "$READELF"; then | |
9482 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9483 | else | |
9484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9485 | for as_dir in $PATH | |
9486 | do | |
9487 | IFS=$as_save_IFS | |
9488 | test -z "$as_dir" && as_dir=. | |
9489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9491 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9493 | break 2 | |
9494 | fi | |
9495 | done | |
9496 | done | |
9497 | IFS=$as_save_IFS | |
9498 | ||
9499 | fi | |
9500 | fi | |
9501 | READELF=$ac_cv_prog_READELF | |
9502 | if test -n "$READELF"; then | |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9504 | $as_echo "$READELF" >&6; } | |
9505 | else | |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9507 | $as_echo "no" >&6; } | |
9508 | fi | |
9509 | ||
9510 | ||
9511 | fi | |
9512 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9513 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9514 | set dummy ${ncn_progname}; ac_word=$2 | |
9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9516 | $as_echo_n "checking for $ac_word... " >&6; } | |
9517 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9518 | $as_echo_n "(cached) " >&6 | |
9519 | else | |
9520 | if test -n "$READELF"; then | |
9521 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9522 | else | |
9523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9524 | for as_dir in $PATH | |
9525 | do | |
9526 | IFS=$as_save_IFS | |
9527 | test -z "$as_dir" && as_dir=. | |
9528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9530 | ac_cv_prog_READELF="${ncn_progname}" | |
9531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9532 | break 2 | |
9533 | fi | |
9534 | done | |
9535 | done | |
9536 | IFS=$as_save_IFS | |
9537 | ||
9538 | fi | |
9539 | fi | |
9540 | READELF=$ac_cv_prog_READELF | |
9541 | if test -n "$READELF"; then | |
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9543 | $as_echo "$READELF" >&6; } | |
9544 | else | |
9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9546 | $as_echo "no" >&6; } | |
9547 | fi | |
9548 | ||
9549 | ||
9550 | fi | |
9551 | test -n "$ac_cv_prog_READELF" && break | |
9552 | done | |
9553 | ||
9554 | if test -z "$ac_cv_prog_READELF" ; then | |
9555 | set dummy readelf | |
9556 | if test $build = $host ; then | |
9557 | READELF="$2" | |
9558 | else | |
9559 | READELF="${ncn_tool_prefix}$2" | |
9560 | fi | |
9561 | fi | |
9562 | ||
9563 | ||
9564 | ||
9565 | ||
9566 | ||
9567 | ||
9568 | # Target tools. | |
9569 | ||
9570 | # Check whether --with-build-time-tools was given. | |
9571 | if test "${with_build_time_tools+set}" = set; then : | |
9572 | withval=$with_build_time_tools; case x"$withval" in | |
9573 | x/*) ;; | |
9574 | *) | |
9575 | with_build_time_tools= | |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 | |
9577 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
9578 | ;; | |
9579 | esac | |
9580 | else | |
9581 | with_build_time_tools= | |
9582 | fi | |
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | if test -n "$CC_FOR_TARGET"; then | |
9588 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9589 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9590 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9591 | fi | |
9592 | ||
9593 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9594 | for ncn_progname in cc gcc; do | |
9595 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9596 | set dummy ${ncn_progname}; ac_word=$2 | |
9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9598 | $as_echo_n "checking for $ac_word... " >&6; } | |
9599 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9600 | $as_echo_n "(cached) " >&6 | |
9601 | else | |
9602 | if test -n "$CC_FOR_TARGET"; then | |
9603 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9604 | else | |
9605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9606 | for as_dir in $PATH | |
9607 | do | |
9608 | IFS=$as_save_IFS | |
9609 | test -z "$as_dir" && as_dir=. | |
9610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9612 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" | |
9613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9614 | break 2 | |
9615 | fi | |
9616 | done | |
9617 | done | |
9618 | IFS=$as_save_IFS | |
9619 | ||
9620 | fi | |
9621 | fi | |
9622 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9623 | if test -n "$CC_FOR_TARGET"; then | |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 | |
9625 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9626 | else | |
9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9628 | $as_echo "no" >&6; } | |
9629 | fi | |
9630 | ||
9631 | ||
9632 | done | |
9633 | fi | |
9634 | ||
9635 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
9636 | for ncn_progname in cc gcc; do | |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
9638 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
9639 | if test -x $with_build_time_tools/${ncn_progname}; then | |
9640 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
9641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9642 | $as_echo "yes" >&6; } | |
9643 | break | |
9644 | else | |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9646 | $as_echo "no" >&6; } | |
9647 | fi | |
9648 | done | |
9649 | fi | |
9650 | ||
9651 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then | |
9652 | for ncn_progname in cc gcc; do | |
9653 | if test -n "$ncn_target_tool_prefix"; then | |
9654 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9655 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9657 | $as_echo_n "checking for $ac_word... " >&6; } | |
9658 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9659 | $as_echo_n "(cached) " >&6 | |
9660 | else | |
9661 | if test -n "$CC_FOR_TARGET"; then | |
9662 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9663 | else | |
9664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9665 | for as_dir in $PATH | |
9666 | do | |
9667 | IFS=$as_save_IFS | |
9668 | test -z "$as_dir" && as_dir=. | |
9669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9671 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
9672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9673 | break 2 | |
9674 | fi | |
9675 | done | |
9676 | done | |
9677 | IFS=$as_save_IFS | |
9678 | ||
9679 | fi | |
9680 | fi | |
9681 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9682 | if test -n "$CC_FOR_TARGET"; then | |
9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 | |
9684 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9685 | else | |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9687 | $as_echo "no" >&6; } | |
9688 | fi | |
9689 | ||
9690 | ||
9691 | fi | |
9692 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9693 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9694 | set dummy ${ncn_progname}; ac_word=$2 | |
9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9696 | $as_echo_n "checking for $ac_word... " >&6; } | |
9697 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9698 | $as_echo_n "(cached) " >&6 | |
9699 | else | |
9700 | if test -n "$CC_FOR_TARGET"; then | |
9701 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9702 | else | |
9703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9704 | for as_dir in $PATH | |
9705 | do | |
9706 | IFS=$as_save_IFS | |
9707 | test -z "$as_dir" && as_dir=. | |
9708 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9710 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" | |
9711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9712 | break 2 | |
9713 | fi | |
9714 | done | |
9715 | done | |
9716 | IFS=$as_save_IFS | |
9717 | ||
9718 | fi | |
9719 | fi | |
9720 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9721 | if test -n "$CC_FOR_TARGET"; then | |
9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 | |
9723 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9724 | else | |
9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9726 | $as_echo "no" >&6; } | |
9727 | fi | |
9728 | ||
9729 | ||
9730 | fi | |
9731 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9732 | done | |
9733 | fi | |
9734 | ||
9735 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then | |
9736 | set dummy cc gcc | |
9737 | if test $build = $target ; then | |
9738 | CC_FOR_TARGET="$2" | |
9739 | else | |
9740 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
9741 | fi | |
9742 | else | |
9743 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
9744 | fi | |
9745 | ||
9746 | ||
9747 | ||
9748 | if test -n "$CXX_FOR_TARGET"; then | |
9749 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9750 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9751 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9752 | fi | |
9753 | ||
9754 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9755 | for ncn_progname in c++ g++ cxx gxx; do | |
9756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9757 | set dummy ${ncn_progname}; ac_word=$2 | |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9759 | $as_echo_n "checking for $ac_word... " >&6; } | |
9760 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9761 | $as_echo_n "(cached) " >&6 | |
9762 | else | |
9763 | if test -n "$CXX_FOR_TARGET"; then | |
9764 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9765 | else | |
9766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9767 | for as_dir in $PATH | |
9768 | do | |
9769 | IFS=$as_save_IFS | |
9770 | test -z "$as_dir" && as_dir=. | |
9771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9773 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" | |
9774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9775 | break 2 | |
9776 | fi | |
9777 | done | |
9778 | done | |
9779 | IFS=$as_save_IFS | |
9780 | ||
9781 | fi | |
9782 | fi | |
9783 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9784 | if test -n "$CXX_FOR_TARGET"; then | |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 | |
9786 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9787 | else | |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9789 | $as_echo "no" >&6; } | |
9790 | fi | |
9791 | ||
9792 | ||
9793 | done | |
9794 | fi | |
9795 | ||
9796 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
9797 | for ncn_progname in c++ g++ cxx gxx; do | |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
9799 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
9800 | if test -x $with_build_time_tools/${ncn_progname}; then | |
9801 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9803 | $as_echo "yes" >&6; } | |
9804 | break | |
9805 | else | |
9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9807 | $as_echo "no" >&6; } | |
9808 | fi | |
9809 | done | |
9810 | fi | |
9811 | ||
9812 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9813 | for ncn_progname in c++ g++ cxx gxx; do | |
9814 | if test -n "$ncn_target_tool_prefix"; then | |
9815 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9816 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9818 | $as_echo_n "checking for $ac_word... " >&6; } | |
9819 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9820 | $as_echo_n "(cached) " >&6 | |
9821 | else | |
9822 | if test -n "$CXX_FOR_TARGET"; then | |
9823 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9824 | else | |
9825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9826 | for as_dir in $PATH | |
9827 | do | |
9828 | IFS=$as_save_IFS | |
9829 | test -z "$as_dir" && as_dir=. | |
9830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9832 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
9833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9834 | break 2 | |
9835 | fi | |
9836 | done | |
9837 | done | |
9838 | IFS=$as_save_IFS | |
9839 | ||
9840 | fi | |
9841 | fi | |
9842 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9843 | if test -n "$CXX_FOR_TARGET"; then | |
9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 | |
9845 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9846 | else | |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9848 | $as_echo "no" >&6; } | |
9849 | fi | |
9850 | ||
9851 | ||
9852 | fi | |
9853 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9854 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9855 | set dummy ${ncn_progname}; ac_word=$2 | |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9857 | $as_echo_n "checking for $ac_word... " >&6; } | |
9858 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9859 | $as_echo_n "(cached) " >&6 | |
9860 | else | |
9861 | if test -n "$CXX_FOR_TARGET"; then | |
9862 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9863 | else | |
9864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9865 | for as_dir in $PATH | |
9866 | do | |
9867 | IFS=$as_save_IFS | |
9868 | test -z "$as_dir" && as_dir=. | |
9869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9871 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" | |
9872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9873 | break 2 | |
9874 | fi | |
9875 | done | |
9876 | done | |
9877 | IFS=$as_save_IFS | |
9878 | ||
9879 | fi | |
9880 | fi | |
9881 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9882 | if test -n "$CXX_FOR_TARGET"; then | |
9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 | |
9884 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9885 | else | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9887 | $as_echo "no" >&6; } | |
9888 | fi | |
9889 | ||
9890 | ||
9891 | fi | |
9892 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9893 | done | |
9894 | fi | |
9895 | ||
9896 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then | |
9897 | set dummy c++ g++ cxx gxx | |
9898 | if test $build = $target ; then | |
9899 | CXX_FOR_TARGET="$2" | |
9900 | else | |
9901 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
9902 | fi | |
9903 | else | |
9904 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
9905 | fi | |
9906 | ||
9907 | ||
9908 | ||
9909 | if test -n "$GCC_FOR_TARGET"; then | |
9910 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9911 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9912 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9913 | fi | |
9914 | ||
9915 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9916 | for ncn_progname in gcc; do | |
9917 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9918 | set dummy ${ncn_progname}; ac_word=$2 | |
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9920 | $as_echo_n "checking for $ac_word... " >&6; } | |
9921 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9922 | $as_echo_n "(cached) " >&6 | |
9923 | else | |
9924 | if test -n "$GCC_FOR_TARGET"; then | |
9925 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9926 | else | |
9927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9928 | for as_dir in $PATH | |
9929 | do | |
9930 | IFS=$as_save_IFS | |
9931 | test -z "$as_dir" && as_dir=. | |
9932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9934 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" | |
9935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9936 | break 2 | |
9937 | fi | |
9938 | done | |
9939 | done | |
9940 | IFS=$as_save_IFS | |
9941 | ||
9942 | fi | |
9943 | fi | |
9944 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9945 | if test -n "$GCC_FOR_TARGET"; then | |
9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 | |
9947 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9948 | else | |
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9950 | $as_echo "no" >&6; } | |
9951 | fi | |
9952 | ||
9953 | ||
9954 | done | |
9955 | fi | |
9956 | ||
9957 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
9958 | for ncn_progname in gcc; do | |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
9960 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
9961 | if test -x $with_build_time_tools/${ncn_progname}; then | |
9962 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9964 | $as_echo "yes" >&6; } | |
9965 | break | |
9966 | else | |
9967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9968 | $as_echo "no" >&6; } | |
9969 | fi | |
9970 | done | |
9971 | fi | |
9972 | ||
9973 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9974 | for ncn_progname in gcc; do | |
9975 | if test -n "$ncn_target_tool_prefix"; then | |
9976 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9977 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9979 | $as_echo_n "checking for $ac_word... " >&6; } | |
9980 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9981 | $as_echo_n "(cached) " >&6 | |
9982 | else | |
9983 | if test -n "$GCC_FOR_TARGET"; then | |
9984 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9985 | else | |
9986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9987 | for as_dir in $PATH | |
9988 | do | |
9989 | IFS=$as_save_IFS | |
9990 | test -z "$as_dir" && as_dir=. | |
9991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9993 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
9994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9995 | break 2 | |
9996 | fi | |
9997 | done | |
9998 | done | |
9999 | IFS=$as_save_IFS | |
10000 | ||
10001 | fi | |
10002 | fi | |
10003 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10004 | if test -n "$GCC_FOR_TARGET"; then | |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 | |
10006 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
10007 | else | |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10009 | $as_echo "no" >&6; } | |
10010 | fi | |
10011 | ||
10012 | ||
10013 | fi | |
10014 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10016 | set dummy ${ncn_progname}; ac_word=$2 | |
10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10018 | $as_echo_n "checking for $ac_word... " >&6; } | |
10019 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10020 | $as_echo_n "(cached) " >&6 | |
10021 | else | |
10022 | if test -n "$GCC_FOR_TARGET"; then | |
10023 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10024 | else | |
10025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10026 | for as_dir in $PATH | |
10027 | do | |
10028 | IFS=$as_save_IFS | |
10029 | test -z "$as_dir" && as_dir=. | |
10030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10032 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" | |
10033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10034 | break 2 | |
10035 | fi | |
10036 | done | |
10037 | done | |
10038 | IFS=$as_save_IFS | |
10039 | ||
10040 | fi | |
10041 | fi | |
10042 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10043 | if test -n "$GCC_FOR_TARGET"; then | |
10044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 | |
10045 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
10046 | else | |
10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10048 | $as_echo "no" >&6; } | |
10049 | fi | |
10050 | ||
10051 | ||
10052 | fi | |
10053 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10054 | done | |
10055 | fi | |
10056 | ||
10057 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then | |
10058 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
10059 | else | |
10060 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
10061 | fi | |
10062 | ||
10063 | ||
10064 | ||
10065 | if test -n "$GCJ_FOR_TARGET"; then | |
10066 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10067 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10068 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10069 | fi | |
10070 | ||
10071 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10072 | for ncn_progname in gcj; do | |
10073 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10074 | set dummy ${ncn_progname}; ac_word=$2 | |
10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10076 | $as_echo_n "checking for $ac_word... " >&6; } | |
10077 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10078 | $as_echo_n "(cached) " >&6 | |
10079 | else | |
10080 | if test -n "$GCJ_FOR_TARGET"; then | |
10081 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10082 | else | |
10083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10084 | for as_dir in $PATH | |
10085 | do | |
10086 | IFS=$as_save_IFS | |
10087 | test -z "$as_dir" && as_dir=. | |
10088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10090 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" | |
10091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10092 | break 2 | |
10093 | fi | |
10094 | done | |
10095 | done | |
10096 | IFS=$as_save_IFS | |
10097 | ||
10098 | fi | |
10099 | fi | |
10100 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10101 | if test -n "$GCJ_FOR_TARGET"; then | |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 | |
10103 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
10104 | else | |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10106 | $as_echo "no" >&6; } | |
10107 | fi | |
10108 | ||
10109 | ||
10110 | done | |
10111 | fi | |
10112 | ||
10113 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10114 | for ncn_progname in gcj; do | |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10116 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10117 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10118 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10120 | $as_echo "yes" >&6; } | |
10121 | break | |
10122 | else | |
10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10124 | $as_echo "no" >&6; } | |
10125 | fi | |
10126 | done | |
10127 | fi | |
10128 | ||
10129 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10130 | for ncn_progname in gcj; do | |
10131 | if test -n "$ncn_target_tool_prefix"; then | |
10132 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10133 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10135 | $as_echo_n "checking for $ac_word... " >&6; } | |
10136 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10137 | $as_echo_n "(cached) " >&6 | |
10138 | else | |
10139 | if test -n "$GCJ_FOR_TARGET"; then | |
10140 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10141 | else | |
10142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10143 | for as_dir in $PATH | |
10144 | do | |
10145 | IFS=$as_save_IFS | |
10146 | test -z "$as_dir" && as_dir=. | |
10147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10149 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10151 | break 2 | |
10152 | fi | |
10153 | done | |
10154 | done | |
10155 | IFS=$as_save_IFS | |
10156 | ||
10157 | fi | |
10158 | fi | |
10159 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10160 | if test -n "$GCJ_FOR_TARGET"; then | |
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 | |
10162 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
10163 | else | |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10165 | $as_echo "no" >&6; } | |
10166 | fi | |
10167 | ||
10168 | ||
10169 | fi | |
10170 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10171 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10172 | set dummy ${ncn_progname}; ac_word=$2 | |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10174 | $as_echo_n "checking for $ac_word... " >&6; } | |
10175 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10176 | $as_echo_n "(cached) " >&6 | |
10177 | else | |
10178 | if test -n "$GCJ_FOR_TARGET"; then | |
10179 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10180 | else | |
10181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10182 | for as_dir in $PATH | |
10183 | do | |
10184 | IFS=$as_save_IFS | |
10185 | test -z "$as_dir" && as_dir=. | |
10186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10188 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" | |
10189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10190 | break 2 | |
10191 | fi | |
10192 | done | |
10193 | done | |
10194 | IFS=$as_save_IFS | |
10195 | ||
10196 | fi | |
10197 | fi | |
10198 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10199 | if test -n "$GCJ_FOR_TARGET"; then | |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 | |
10201 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
10202 | else | |
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10204 | $as_echo "no" >&6; } | |
10205 | fi | |
10206 | ||
10207 | ||
10208 | fi | |
10209 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10210 | done | |
10211 | fi | |
10212 | ||
10213 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10214 | set dummy gcj | |
10215 | if test $build = $target ; then | |
10216 | GCJ_FOR_TARGET="$2" | |
10217 | else | |
10218 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10219 | fi | |
10220 | else | |
10221 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
10222 | fi | |
10223 | ||
10224 | ||
10225 | ||
10226 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10227 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10228 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10229 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
10230 | fi | |
10231 | ||
10232 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10233 | for ncn_progname in gfortran; do | |
10234 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10235 | set dummy ${ncn_progname}; ac_word=$2 | |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10237 | $as_echo_n "checking for $ac_word... " >&6; } | |
10238 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10239 | $as_echo_n "(cached) " >&6 | |
10240 | else | |
10241 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10242 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10243 | else | |
10244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10245 | for as_dir in $PATH | |
10246 | do | |
10247 | IFS=$as_save_IFS | |
10248 | test -z "$as_dir" && as_dir=. | |
10249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10251 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" | |
10252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10253 | break 2 | |
10254 | fi | |
10255 | done | |
10256 | done | |
10257 | IFS=$as_save_IFS | |
10258 | ||
10259 | fi | |
10260 | fi | |
10261 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
10262 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
10264 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
10265 | else | |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10267 | $as_echo "no" >&6; } | |
10268 | fi | |
10269 | ||
10270 | ||
10271 | done | |
10272 | fi | |
10273 | ||
10274 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10275 | for ncn_progname in gfortran; do | |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10277 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10278 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10279 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10281 | $as_echo "yes" >&6; } | |
10282 | break | |
10283 | else | |
10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10285 | $as_echo "no" >&6; } | |
10286 | fi | |
10287 | done | |
10288 | fi | |
10289 | ||
10290 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10291 | for ncn_progname in gfortran; do | |
10292 | if test -n "$ncn_target_tool_prefix"; then | |
10293 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10294 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10296 | $as_echo_n "checking for $ac_word... " >&6; } | |
10297 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10298 | $as_echo_n "(cached) " >&6 | |
10299 | else | |
10300 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10301 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10302 | else | |
10303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10304 | for as_dir in $PATH | |
10305 | do | |
10306 | IFS=$as_save_IFS | |
10307 | test -z "$as_dir" && as_dir=. | |
10308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10310 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10312 | break 2 | |
10313 | fi | |
10314 | done | |
10315 | done | |
10316 | IFS=$as_save_IFS | |
10317 | ||
10318 | fi | |
10319 | fi | |
10320 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
10321 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
10323 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
10324 | else | |
10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10326 | $as_echo "no" >&6; } | |
10327 | fi | |
10328 | ||
10329 | ||
10330 | fi | |
10331 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10332 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10333 | set dummy ${ncn_progname}; ac_word=$2 | |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10335 | $as_echo_n "checking for $ac_word... " >&6; } | |
10336 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10337 | $as_echo_n "(cached) " >&6 | |
10338 | else | |
10339 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10340 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10341 | else | |
10342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10343 | for as_dir in $PATH | |
10344 | do | |
10345 | IFS=$as_save_IFS | |
10346 | test -z "$as_dir" && as_dir=. | |
10347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10349 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" | |
10350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10351 | break 2 | |
10352 | fi | |
10353 | done | |
10354 | done | |
10355 | IFS=$as_save_IFS | |
10356 | ||
10357 | fi | |
10358 | fi | |
10359 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
10360 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
10362 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
10363 | else | |
10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10365 | $as_echo "no" >&6; } | |
10366 | fi | |
10367 | ||
10368 | ||
10369 | fi | |
10370 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10371 | done | |
10372 | fi | |
10373 | ||
10374 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then | |
10375 | set dummy gfortran | |
10376 | if test $build = $target ; then | |
10377 | GFORTRAN_FOR_TARGET="$2" | |
10378 | else | |
10379 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10380 | fi | |
10381 | else | |
10382 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
10383 | fi | |
10384 | ||
10385 | ||
10386 | ||
10387 | if test -n "$GOC_FOR_TARGET"; then | |
10388 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10389 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10390 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10391 | fi | |
10392 | ||
10393 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10394 | for ncn_progname in gccgo; do | |
10395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10396 | set dummy ${ncn_progname}; ac_word=$2 | |
10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10398 | $as_echo_n "checking for $ac_word... " >&6; } | |
10399 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10400 | $as_echo_n "(cached) " >&6 | |
10401 | else | |
10402 | if test -n "$GOC_FOR_TARGET"; then | |
10403 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10404 | else | |
10405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10406 | for as_dir in $PATH | |
10407 | do | |
10408 | IFS=$as_save_IFS | |
10409 | test -z "$as_dir" && as_dir=. | |
10410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10412 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10414 | break 2 | |
10415 | fi | |
10416 | done | |
10417 | done | |
10418 | IFS=$as_save_IFS | |
10419 | ||
10420 | fi | |
10421 | fi | |
10422 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10423 | if test -n "$GOC_FOR_TARGET"; then | |
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10425 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10426 | else | |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10428 | $as_echo "no" >&6; } | |
10429 | fi | |
10430 | ||
10431 | ||
10432 | done | |
10433 | fi | |
10434 | ||
10435 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10436 | for ncn_progname in gccgo; do | |
10437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10438 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10439 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10440 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10442 | $as_echo "yes" >&6; } | |
10443 | break | |
10444 | else | |
10445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10446 | $as_echo "no" >&6; } | |
10447 | fi | |
10448 | done | |
10449 | fi | |
10450 | ||
10451 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10452 | for ncn_progname in gccgo; do | |
10453 | if test -n "$ncn_target_tool_prefix"; then | |
10454 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10455 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10457 | $as_echo_n "checking for $ac_word... " >&6; } | |
10458 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10459 | $as_echo_n "(cached) " >&6 | |
10460 | else | |
10461 | if test -n "$GOC_FOR_TARGET"; then | |
10462 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10463 | else | |
10464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10465 | for as_dir in $PATH | |
10466 | do | |
10467 | IFS=$as_save_IFS | |
10468 | test -z "$as_dir" && as_dir=. | |
10469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10471 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10473 | break 2 | |
10474 | fi | |
10475 | done | |
10476 | done | |
10477 | IFS=$as_save_IFS | |
10478 | ||
10479 | fi | |
10480 | fi | |
10481 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10482 | if test -n "$GOC_FOR_TARGET"; then | |
10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10484 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10485 | else | |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10487 | $as_echo "no" >&6; } | |
10488 | fi | |
10489 | ||
10490 | ||
10491 | fi | |
10492 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10493 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10494 | set dummy ${ncn_progname}; ac_word=$2 | |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10496 | $as_echo_n "checking for $ac_word... " >&6; } | |
10497 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10498 | $as_echo_n "(cached) " >&6 | |
10499 | else | |
10500 | if test -n "$GOC_FOR_TARGET"; then | |
10501 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10502 | else | |
10503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10504 | for as_dir in $PATH | |
10505 | do | |
10506 | IFS=$as_save_IFS | |
10507 | test -z "$as_dir" && as_dir=. | |
10508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10510 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10512 | break 2 | |
10513 | fi | |
10514 | done | |
10515 | done | |
10516 | IFS=$as_save_IFS | |
10517 | ||
10518 | fi | |
10519 | fi | |
10520 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10521 | if test -n "$GOC_FOR_TARGET"; then | |
10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10523 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10524 | else | |
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10526 | $as_echo "no" >&6; } | |
10527 | fi | |
10528 | ||
10529 | ||
10530 | fi | |
10531 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10532 | done | |
10533 | fi | |
10534 | ||
10535 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10536 | set dummy gccgo | |
10537 | if test $build = $target ; then | |
10538 | GOC_FOR_TARGET="$2" | |
10539 | else | |
10540 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10541 | fi | |
10542 | else | |
10543 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10544 | fi | |
10545 | ||
10546 | ||
10547 | ||
10548 | cat > conftest.c << \EOF | |
10549 | #ifdef __GNUC__ | |
10550 | gcc_yay; | |
10551 | #endif | |
10552 | EOF | |
10553 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10554 | have_gcc_for_target=yes | |
10555 | else | |
10556 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10557 | have_gcc_for_target=no | |
10558 | fi | |
10559 | rm conftest.c | |
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10565 | if test -n "$with_build_time_tools"; then | |
10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 | |
10567 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
10568 | if test -x $with_build_time_tools/ar; then | |
10569 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10570 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 | |
10572 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
10573 | else | |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10575 | $as_echo "no" >&6; } | |
10576 | fi | |
10577 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
10578 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
10579 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= | |
10580 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
10581 | fi | |
10582 | fi | |
10583 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
10584 | # Extract the first word of "ar", so it can be a program name with args. | |
10585 | set dummy ar; ac_word=$2 | |
10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10587 | $as_echo_n "checking for $ac_word... " >&6; } | |
10588 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10589 | $as_echo_n "(cached) " >&6 | |
10590 | else | |
10591 | case $AR_FOR_TARGET in | |
10592 | [\\/]* | ?:[\\/]*) | |
10593 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. | |
10594 | ;; | |
10595 | *) | |
10596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10597 | for as_dir in $gcc_cv_tool_dirs | |
10598 | do | |
10599 | IFS=$as_save_IFS | |
10600 | test -z "$as_dir" && as_dir=. | |
10601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10603 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
10604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10605 | break 2 | |
10606 | fi | |
10607 | done | |
10608 | done | |
10609 | IFS=$as_save_IFS | |
10610 | ||
10611 | ;; | |
10612 | esac | |
10613 | fi | |
10614 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
10615 | if test -n "$AR_FOR_TARGET"; then | |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 | |
10617 | $as_echo "$AR_FOR_TARGET" >&6; } | |
10618 | else | |
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10620 | $as_echo "no" >&6; } | |
10621 | fi | |
10622 | ||
10623 | ||
10624 | fi | |
10625 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10626 | ||
10627 | ||
10628 | if test -n "$AR_FOR_TARGET"; then | |
10629 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10630 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10631 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10632 | fi | |
10633 | ||
10634 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10635 | for ncn_progname in ar; do | |
10636 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10637 | set dummy ${ncn_progname}; ac_word=$2 | |
10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10639 | $as_echo_n "checking for $ac_word... " >&6; } | |
10640 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10641 | $as_echo_n "(cached) " >&6 | |
10642 | else | |
10643 | if test -n "$AR_FOR_TARGET"; then | |
10644 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10645 | else | |
10646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10647 | for as_dir in $PATH | |
10648 | do | |
10649 | IFS=$as_save_IFS | |
10650 | test -z "$as_dir" && as_dir=. | |
10651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10653 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" | |
10654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10655 | break 2 | |
10656 | fi | |
10657 | done | |
10658 | done | |
10659 | IFS=$as_save_IFS | |
10660 | ||
10661 | fi | |
10662 | fi | |
10663 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10664 | if test -n "$AR_FOR_TARGET"; then | |
10665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 | |
10666 | $as_echo "$AR_FOR_TARGET" >&6; } | |
10667 | else | |
10668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10669 | $as_echo "no" >&6; } | |
10670 | fi | |
10671 | ||
10672 | ||
10673 | done | |
10674 | fi | |
10675 | ||
10676 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10677 | for ncn_progname in ar; do | |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10679 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10680 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10681 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10683 | $as_echo "yes" >&6; } | |
10684 | break | |
10685 | else | |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10687 | $as_echo "no" >&6; } | |
10688 | fi | |
10689 | done | |
10690 | fi | |
10691 | ||
10692 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10693 | for ncn_progname in ar; do | |
10694 | if test -n "$ncn_target_tool_prefix"; then | |
10695 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10696 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10698 | $as_echo_n "checking for $ac_word... " >&6; } | |
10699 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10700 | $as_echo_n "(cached) " >&6 | |
10701 | else | |
10702 | if test -n "$AR_FOR_TARGET"; then | |
10703 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10704 | else | |
10705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10706 | for as_dir in $PATH | |
10707 | do | |
10708 | IFS=$as_save_IFS | |
10709 | test -z "$as_dir" && as_dir=. | |
10710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10712 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10714 | break 2 | |
10715 | fi | |
10716 | done | |
10717 | done | |
10718 | IFS=$as_save_IFS | |
10719 | ||
10720 | fi | |
10721 | fi | |
10722 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10723 | if test -n "$AR_FOR_TARGET"; then | |
10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 | |
10725 | $as_echo "$AR_FOR_TARGET" >&6; } | |
10726 | else | |
10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10728 | $as_echo "no" >&6; } | |
10729 | fi | |
10730 | ||
10731 | ||
10732 | fi | |
10733 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10734 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10735 | set dummy ${ncn_progname}; ac_word=$2 | |
10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10737 | $as_echo_n "checking for $ac_word... " >&6; } | |
10738 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10739 | $as_echo_n "(cached) " >&6 | |
10740 | else | |
10741 | if test -n "$AR_FOR_TARGET"; then | |
10742 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10743 | else | |
10744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10745 | for as_dir in $PATH | |
10746 | do | |
10747 | IFS=$as_save_IFS | |
10748 | test -z "$as_dir" && as_dir=. | |
10749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10751 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" | |
10752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10753 | break 2 | |
10754 | fi | |
10755 | done | |
10756 | done | |
10757 | IFS=$as_save_IFS | |
10758 | ||
10759 | fi | |
10760 | fi | |
10761 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10762 | if test -n "$AR_FOR_TARGET"; then | |
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 | |
10764 | $as_echo "$AR_FOR_TARGET" >&6; } | |
10765 | else | |
10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10767 | $as_echo "no" >&6; } | |
10768 | fi | |
10769 | ||
10770 | ||
10771 | fi | |
10772 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10773 | done | |
10774 | fi | |
10775 | ||
10776 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then | |
10777 | set dummy ar | |
10778 | if test $build = $target ; then | |
10779 | AR_FOR_TARGET="$2" | |
10780 | else | |
10781 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10782 | fi | |
10783 | else | |
10784 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
10785 | fi | |
10786 | ||
10787 | else | |
10788 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
10789 | fi | |
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10795 | if test -n "$with_build_time_tools"; then | |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 | |
10797 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
10798 | if test -x $with_build_time_tools/as; then | |
10799 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10800 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 | |
10802 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
10803 | else | |
10804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10805 | $as_echo "no" >&6; } | |
10806 | fi | |
10807 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
10808 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
10809 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= | |
10810 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
10811 | fi | |
10812 | fi | |
10813 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
10814 | # Extract the first word of "as", so it can be a program name with args. | |
10815 | set dummy as; ac_word=$2 | |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10817 | $as_echo_n "checking for $ac_word... " >&6; } | |
10818 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10819 | $as_echo_n "(cached) " >&6 | |
10820 | else | |
10821 | case $AS_FOR_TARGET in | |
10822 | [\\/]* | ?:[\\/]*) | |
10823 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. | |
10824 | ;; | |
10825 | *) | |
10826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10827 | for as_dir in $gcc_cv_tool_dirs | |
10828 | do | |
10829 | IFS=$as_save_IFS | |
10830 | test -z "$as_dir" && as_dir=. | |
10831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10833 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
10834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10835 | break 2 | |
10836 | fi | |
10837 | done | |
10838 | done | |
10839 | IFS=$as_save_IFS | |
10840 | ||
10841 | ;; | |
10842 | esac | |
10843 | fi | |
10844 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
10845 | if test -n "$AS_FOR_TARGET"; then | |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 | |
10847 | $as_echo "$AS_FOR_TARGET" >&6; } | |
10848 | else | |
10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10850 | $as_echo "no" >&6; } | |
10851 | fi | |
10852 | ||
10853 | ||
10854 | fi | |
10855 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10856 | ||
10857 | ||
10858 | if test -n "$AS_FOR_TARGET"; then | |
10859 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10860 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10861 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10862 | fi | |
10863 | ||
10864 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10865 | for ncn_progname in as; do | |
10866 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10867 | set dummy ${ncn_progname}; ac_word=$2 | |
10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10869 | $as_echo_n "checking for $ac_word... " >&6; } | |
10870 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10871 | $as_echo_n "(cached) " >&6 | |
10872 | else | |
10873 | if test -n "$AS_FOR_TARGET"; then | |
10874 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10875 | else | |
10876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10877 | for as_dir in $PATH | |
10878 | do | |
10879 | IFS=$as_save_IFS | |
10880 | test -z "$as_dir" && as_dir=. | |
10881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10883 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" | |
10884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10885 | break 2 | |
10886 | fi | |
10887 | done | |
10888 | done | |
10889 | IFS=$as_save_IFS | |
10890 | ||
10891 | fi | |
10892 | fi | |
10893 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10894 | if test -n "$AS_FOR_TARGET"; then | |
10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 | |
10896 | $as_echo "$AS_FOR_TARGET" >&6; } | |
10897 | else | |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10899 | $as_echo "no" >&6; } | |
10900 | fi | |
10901 | ||
10902 | ||
10903 | done | |
10904 | fi | |
10905 | ||
10906 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10907 | for ncn_progname in as; do | |
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10909 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10910 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10911 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10913 | $as_echo "yes" >&6; } | |
10914 | break | |
10915 | else | |
10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10917 | $as_echo "no" >&6; } | |
10918 | fi | |
10919 | done | |
10920 | fi | |
10921 | ||
10922 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10923 | for ncn_progname in as; do | |
10924 | if test -n "$ncn_target_tool_prefix"; then | |
10925 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10926 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10928 | $as_echo_n "checking for $ac_word... " >&6; } | |
10929 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10930 | $as_echo_n "(cached) " >&6 | |
10931 | else | |
10932 | if test -n "$AS_FOR_TARGET"; then | |
10933 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10934 | else | |
10935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10936 | for as_dir in $PATH | |
10937 | do | |
10938 | IFS=$as_save_IFS | |
10939 | test -z "$as_dir" && as_dir=. | |
10940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10942 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10944 | break 2 | |
10945 | fi | |
10946 | done | |
10947 | done | |
10948 | IFS=$as_save_IFS | |
10949 | ||
10950 | fi | |
10951 | fi | |
10952 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10953 | if test -n "$AS_FOR_TARGET"; then | |
10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 | |
10955 | $as_echo "$AS_FOR_TARGET" >&6; } | |
10956 | else | |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10958 | $as_echo "no" >&6; } | |
10959 | fi | |
10960 | ||
10961 | ||
10962 | fi | |
10963 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10964 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10965 | set dummy ${ncn_progname}; ac_word=$2 | |
10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10967 | $as_echo_n "checking for $ac_word... " >&6; } | |
10968 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10969 | $as_echo_n "(cached) " >&6 | |
10970 | else | |
10971 | if test -n "$AS_FOR_TARGET"; then | |
10972 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10973 | else | |
10974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10975 | for as_dir in $PATH | |
10976 | do | |
10977 | IFS=$as_save_IFS | |
10978 | test -z "$as_dir" && as_dir=. | |
10979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10981 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" | |
10982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10983 | break 2 | |
10984 | fi | |
10985 | done | |
10986 | done | |
10987 | IFS=$as_save_IFS | |
10988 | ||
10989 | fi | |
10990 | fi | |
10991 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10992 | if test -n "$AS_FOR_TARGET"; then | |
10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 | |
10994 | $as_echo "$AS_FOR_TARGET" >&6; } | |
10995 | else | |
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10997 | $as_echo "no" >&6; } | |
10998 | fi | |
10999 | ||
11000 | ||
11001 | fi | |
11002 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11003 | done | |
11004 | fi | |
11005 | ||
11006 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then | |
11007 | set dummy as | |
11008 | if test $build = $target ; then | |
11009 | AS_FOR_TARGET="$2" | |
11010 | else | |
11011 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11012 | fi | |
11013 | else | |
11014 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
11015 | fi | |
11016 | ||
11017 | else | |
11018 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
11019 | fi | |
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11025 | if test -n "$with_build_time_tools"; then | |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 | |
11027 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
11028 | if test -x $with_build_time_tools/dlltool; then | |
11029 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11030 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 | |
11032 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
11033 | else | |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11035 | $as_echo "no" >&6; } | |
11036 | fi | |
11037 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
11038 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
11039 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= | |
11040 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11041 | fi | |
11042 | fi | |
11043 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
11044 | # Extract the first word of "dlltool", so it can be a program name with args. | |
11045 | set dummy dlltool; ac_word=$2 | |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11047 | $as_echo_n "checking for $ac_word... " >&6; } | |
11048 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11049 | $as_echo_n "(cached) " >&6 | |
11050 | else | |
11051 | case $DLLTOOL_FOR_TARGET in | |
11052 | [\\/]* | ?:[\\/]*) | |
11053 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. | |
11054 | ;; | |
11055 | *) | |
11056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11057 | for as_dir in $gcc_cv_tool_dirs | |
11058 | do | |
11059 | IFS=$as_save_IFS | |
11060 | test -z "$as_dir" && as_dir=. | |
11061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11063 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
11064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11065 | break 2 | |
11066 | fi | |
11067 | done | |
11068 | done | |
11069 | IFS=$as_save_IFS | |
11070 | ||
11071 | ;; | |
11072 | esac | |
11073 | fi | |
11074 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
11075 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 | |
11077 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
11078 | else | |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11080 | $as_echo "no" >&6; } | |
11081 | fi | |
11082 | ||
11083 | ||
11084 | fi | |
11085 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11086 | ||
11087 | ||
11088 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11089 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11090 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11091 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11092 | fi | |
11093 | ||
11094 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11095 | for ncn_progname in dlltool; do | |
11096 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11097 | set dummy ${ncn_progname}; ac_word=$2 | |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11099 | $as_echo_n "checking for $ac_word... " >&6; } | |
11100 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11101 | $as_echo_n "(cached) " >&6 | |
11102 | else | |
11103 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11104 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11105 | else | |
11106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11107 | for as_dir in $PATH | |
11108 | do | |
11109 | IFS=$as_save_IFS | |
11110 | test -z "$as_dir" && as_dir=. | |
11111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11113 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" | |
11114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11115 | break 2 | |
11116 | fi | |
11117 | done | |
11118 | done | |
11119 | IFS=$as_save_IFS | |
11120 | ||
11121 | fi | |
11122 | fi | |
11123 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11124 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 | |
11126 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
11127 | else | |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11129 | $as_echo "no" >&6; } | |
11130 | fi | |
11131 | ||
11132 | ||
11133 | done | |
11134 | fi | |
11135 | ||
11136 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11137 | for ncn_progname in dlltool; do | |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11139 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11140 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11141 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11143 | $as_echo "yes" >&6; } | |
11144 | break | |
11145 | else | |
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11147 | $as_echo "no" >&6; } | |
11148 | fi | |
11149 | done | |
11150 | fi | |
11151 | ||
11152 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11153 | for ncn_progname in dlltool; do | |
11154 | if test -n "$ncn_target_tool_prefix"; then | |
11155 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11156 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11158 | $as_echo_n "checking for $ac_word... " >&6; } | |
11159 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11160 | $as_echo_n "(cached) " >&6 | |
11161 | else | |
11162 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11163 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11164 | else | |
11165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11166 | for as_dir in $PATH | |
11167 | do | |
11168 | IFS=$as_save_IFS | |
11169 | test -z "$as_dir" && as_dir=. | |
11170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11172 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
11173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11174 | break 2 | |
11175 | fi | |
11176 | done | |
11177 | done | |
11178 | IFS=$as_save_IFS | |
11179 | ||
11180 | fi | |
11181 | fi | |
11182 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11183 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 | |
11185 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
11186 | else | |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11188 | $as_echo "no" >&6; } | |
11189 | fi | |
11190 | ||
11191 | ||
11192 | fi | |
11193 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11194 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11195 | set dummy ${ncn_progname}; ac_word=$2 | |
11196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11197 | $as_echo_n "checking for $ac_word... " >&6; } | |
11198 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11199 | $as_echo_n "(cached) " >&6 | |
11200 | else | |
11201 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11202 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11203 | else | |
11204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11205 | for as_dir in $PATH | |
11206 | do | |
11207 | IFS=$as_save_IFS | |
11208 | test -z "$as_dir" && as_dir=. | |
11209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11211 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" | |
11212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11213 | break 2 | |
11214 | fi | |
11215 | done | |
11216 | done | |
11217 | IFS=$as_save_IFS | |
11218 | ||
11219 | fi | |
11220 | fi | |
11221 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11222 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 | |
11224 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
11225 | else | |
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11227 | $as_echo "no" >&6; } | |
11228 | fi | |
11229 | ||
11230 | ||
11231 | fi | |
11232 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11233 | done | |
11234 | fi | |
11235 | ||
11236 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then | |
11237 | set dummy dlltool | |
11238 | if test $build = $target ; then | |
11239 | DLLTOOL_FOR_TARGET="$2" | |
11240 | else | |
11241 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11242 | fi | |
11243 | else | |
11244 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
11245 | fi | |
11246 | ||
11247 | else | |
11248 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
11249 | fi | |
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11255 | if test -n "$with_build_time_tools"; then | |
11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 | |
11257 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
11258 | if test -x $with_build_time_tools/ld; then | |
11259 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11260 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
11261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 | |
11262 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
11263 | else | |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11265 | $as_echo "no" >&6; } | |
11266 | fi | |
11267 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
11268 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
11269 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= | |
11270 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
11271 | fi | |
11272 | fi | |
11273 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
11274 | # Extract the first word of "ld", so it can be a program name with args. | |
11275 | set dummy ld; ac_word=$2 | |
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11277 | $as_echo_n "checking for $ac_word... " >&6; } | |
11278 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11279 | $as_echo_n "(cached) " >&6 | |
11280 | else | |
11281 | case $LD_FOR_TARGET in | |
11282 | [\\/]* | ?:[\\/]*) | |
11283 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. | |
11284 | ;; | |
11285 | *) | |
11286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11287 | for as_dir in $gcc_cv_tool_dirs | |
11288 | do | |
11289 | IFS=$as_save_IFS | |
11290 | test -z "$as_dir" && as_dir=. | |
11291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11293 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
11294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11295 | break 2 | |
11296 | fi | |
11297 | done | |
11298 | done | |
11299 | IFS=$as_save_IFS | |
11300 | ||
11301 | ;; | |
11302 | esac | |
11303 | fi | |
11304 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
11305 | if test -n "$LD_FOR_TARGET"; then | |
11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 | |
11307 | $as_echo "$LD_FOR_TARGET" >&6; } | |
11308 | else | |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11310 | $as_echo "no" >&6; } | |
11311 | fi | |
11312 | ||
11313 | ||
11314 | fi | |
11315 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11316 | ||
11317 | ||
11318 | if test -n "$LD_FOR_TARGET"; then | |
11319 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11320 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11321 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11322 | fi | |
11323 | ||
11324 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11325 | for ncn_progname in ld; do | |
11326 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11327 | set dummy ${ncn_progname}; ac_word=$2 | |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11329 | $as_echo_n "checking for $ac_word... " >&6; } | |
11330 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11331 | $as_echo_n "(cached) " >&6 | |
11332 | else | |
11333 | if test -n "$LD_FOR_TARGET"; then | |
11334 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11335 | else | |
11336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11337 | for as_dir in $PATH | |
11338 | do | |
11339 | IFS=$as_save_IFS | |
11340 | test -z "$as_dir" && as_dir=. | |
11341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11343 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" | |
11344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11345 | break 2 | |
11346 | fi | |
11347 | done | |
11348 | done | |
11349 | IFS=$as_save_IFS | |
11350 | ||
11351 | fi | |
11352 | fi | |
11353 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11354 | if test -n "$LD_FOR_TARGET"; then | |
11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 | |
11356 | $as_echo "$LD_FOR_TARGET" >&6; } | |
11357 | else | |
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11359 | $as_echo "no" >&6; } | |
11360 | fi | |
11361 | ||
11362 | ||
11363 | done | |
11364 | fi | |
11365 | ||
11366 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11367 | for ncn_progname in ld; do | |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11369 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11370 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11371 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11373 | $as_echo "yes" >&6; } | |
11374 | break | |
11375 | else | |
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11377 | $as_echo "no" >&6; } | |
11378 | fi | |
11379 | done | |
11380 | fi | |
11381 | ||
11382 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11383 | for ncn_progname in ld; do | |
11384 | if test -n "$ncn_target_tool_prefix"; then | |
11385 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11386 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11388 | $as_echo_n "checking for $ac_word... " >&6; } | |
11389 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11390 | $as_echo_n "(cached) " >&6 | |
11391 | else | |
11392 | if test -n "$LD_FOR_TARGET"; then | |
11393 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11394 | else | |
11395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11396 | for as_dir in $PATH | |
11397 | do | |
11398 | IFS=$as_save_IFS | |
11399 | test -z "$as_dir" && as_dir=. | |
11400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11402 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
11403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11404 | break 2 | |
11405 | fi | |
11406 | done | |
11407 | done | |
11408 | IFS=$as_save_IFS | |
11409 | ||
11410 | fi | |
11411 | fi | |
11412 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11413 | if test -n "$LD_FOR_TARGET"; then | |
11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 | |
11415 | $as_echo "$LD_FOR_TARGET" >&6; } | |
11416 | else | |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11418 | $as_echo "no" >&6; } | |
11419 | fi | |
11420 | ||
11421 | ||
11422 | fi | |
11423 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11424 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11425 | set dummy ${ncn_progname}; ac_word=$2 | |
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11427 | $as_echo_n "checking for $ac_word... " >&6; } | |
11428 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11429 | $as_echo_n "(cached) " >&6 | |
11430 | else | |
11431 | if test -n "$LD_FOR_TARGET"; then | |
11432 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11433 | else | |
11434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11435 | for as_dir in $PATH | |
11436 | do | |
11437 | IFS=$as_save_IFS | |
11438 | test -z "$as_dir" && as_dir=. | |
11439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11441 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" | |
11442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11443 | break 2 | |
11444 | fi | |
11445 | done | |
11446 | done | |
11447 | IFS=$as_save_IFS | |
11448 | ||
11449 | fi | |
11450 | fi | |
11451 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11452 | if test -n "$LD_FOR_TARGET"; then | |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 | |
11454 | $as_echo "$LD_FOR_TARGET" >&6; } | |
11455 | else | |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11457 | $as_echo "no" >&6; } | |
11458 | fi | |
11459 | ||
11460 | ||
11461 | fi | |
11462 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11463 | done | |
11464 | fi | |
11465 | ||
11466 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then | |
11467 | set dummy ld | |
11468 | if test $build = $target ; then | |
11469 | LD_FOR_TARGET="$2" | |
11470 | else | |
11471 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11472 | fi | |
11473 | else | |
11474 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
11475 | fi | |
11476 | ||
11477 | else | |
11478 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
11479 | fi | |
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11485 | if test -n "$with_build_time_tools"; then | |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 | |
11487 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
11488 | if test -x $with_build_time_tools/lipo; then | |
11489 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11490 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 | |
11492 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
11493 | else | |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11495 | $as_echo "no" >&6; } | |
11496 | fi | |
11497 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
11498 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
11499 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= | |
11500 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11501 | fi | |
11502 | fi | |
11503 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
11504 | # Extract the first word of "lipo", so it can be a program name with args. | |
11505 | set dummy lipo; ac_word=$2 | |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11507 | $as_echo_n "checking for $ac_word... " >&6; } | |
11508 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11509 | $as_echo_n "(cached) " >&6 | |
11510 | else | |
11511 | case $LIPO_FOR_TARGET in | |
11512 | [\\/]* | ?:[\\/]*) | |
11513 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11514 | ;; | |
11515 | *) | |
11516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11517 | for as_dir in $gcc_cv_tool_dirs | |
11518 | do | |
11519 | IFS=$as_save_IFS | |
11520 | test -z "$as_dir" && as_dir=. | |
11521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11523 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
11524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11525 | break 2 | |
11526 | fi | |
11527 | done | |
11528 | done | |
11529 | IFS=$as_save_IFS | |
11530 | ||
11531 | ;; | |
11532 | esac | |
11533 | fi | |
11534 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
11535 | if test -n "$LIPO_FOR_TARGET"; then | |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 | |
11537 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
11538 | else | |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11540 | $as_echo "no" >&6; } | |
11541 | fi | |
11542 | ||
11543 | ||
11544 | fi | |
11545 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11546 | ||
11547 | ||
11548 | if test -n "$LIPO_FOR_TARGET"; then | |
11549 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11550 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11551 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11552 | fi | |
11553 | ||
11554 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11555 | for ncn_progname in lipo; do | |
11556 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11557 | set dummy ${ncn_progname}; ac_word=$2 | |
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11559 | $as_echo_n "checking for $ac_word... " >&6; } | |
11560 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11561 | $as_echo_n "(cached) " >&6 | |
11562 | else | |
11563 | if test -n "$LIPO_FOR_TARGET"; then | |
11564 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11565 | else | |
11566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11567 | for as_dir in $PATH | |
11568 | do | |
11569 | IFS=$as_save_IFS | |
11570 | test -z "$as_dir" && as_dir=. | |
11571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11573 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" | |
11574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11575 | break 2 | |
11576 | fi | |
11577 | done | |
11578 | done | |
11579 | IFS=$as_save_IFS | |
11580 | ||
11581 | fi | |
11582 | fi | |
11583 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11584 | if test -n "$LIPO_FOR_TARGET"; then | |
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 | |
11586 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
11587 | else | |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11589 | $as_echo "no" >&6; } | |
11590 | fi | |
11591 | ||
11592 | ||
11593 | done | |
11594 | fi | |
11595 | ||
11596 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11597 | for ncn_progname in lipo; do | |
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11599 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11600 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11601 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11603 | $as_echo "yes" >&6; } | |
11604 | break | |
11605 | else | |
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11607 | $as_echo "no" >&6; } | |
11608 | fi | |
11609 | done | |
11610 | fi | |
11611 | ||
11612 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11613 | for ncn_progname in lipo; do | |
11614 | if test -n "$ncn_target_tool_prefix"; then | |
11615 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11616 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11618 | $as_echo_n "checking for $ac_word... " >&6; } | |
11619 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11620 | $as_echo_n "(cached) " >&6 | |
11621 | else | |
11622 | if test -n "$LIPO_FOR_TARGET"; then | |
11623 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11624 | else | |
11625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11626 | for as_dir in $PATH | |
11627 | do | |
11628 | IFS=$as_save_IFS | |
11629 | test -z "$as_dir" && as_dir=. | |
11630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11632 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
11633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11634 | break 2 | |
11635 | fi | |
11636 | done | |
11637 | done | |
11638 | IFS=$as_save_IFS | |
11639 | ||
11640 | fi | |
11641 | fi | |
11642 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11643 | if test -n "$LIPO_FOR_TARGET"; then | |
11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 | |
11645 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
11646 | else | |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11648 | $as_echo "no" >&6; } | |
11649 | fi | |
11650 | ||
11651 | ||
11652 | fi | |
11653 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11654 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11655 | set dummy ${ncn_progname}; ac_word=$2 | |
11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11657 | $as_echo_n "checking for $ac_word... " >&6; } | |
11658 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11659 | $as_echo_n "(cached) " >&6 | |
11660 | else | |
11661 | if test -n "$LIPO_FOR_TARGET"; then | |
11662 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11663 | else | |
11664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11665 | for as_dir in $PATH | |
11666 | do | |
11667 | IFS=$as_save_IFS | |
11668 | test -z "$as_dir" && as_dir=. | |
11669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11671 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" | |
11672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11673 | break 2 | |
11674 | fi | |
11675 | done | |
11676 | done | |
11677 | IFS=$as_save_IFS | |
11678 | ||
11679 | fi | |
11680 | fi | |
11681 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11682 | if test -n "$LIPO_FOR_TARGET"; then | |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 | |
11684 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
11685 | else | |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11687 | $as_echo "no" >&6; } | |
11688 | fi | |
11689 | ||
11690 | ||
11691 | fi | |
11692 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11693 | done | |
11694 | fi | |
11695 | ||
11696 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then | |
11697 | set dummy lipo | |
11698 | if test $build = $target ; then | |
11699 | LIPO_FOR_TARGET="$2" | |
11700 | else | |
11701 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11702 | fi | |
11703 | else | |
11704 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
11705 | fi | |
11706 | ||
11707 | else | |
11708 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
11709 | fi | |
11710 | ||
11711 | ||
11712 | ||
11713 | ||
11714 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11715 | if test -n "$with_build_time_tools"; then | |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 | |
11717 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
11718 | if test -x $with_build_time_tools/nm; then | |
11719 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11720 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 | |
11722 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
11723 | else | |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11725 | $as_echo "no" >&6; } | |
11726 | fi | |
11727 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
11728 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
11729 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= | |
11730 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
11731 | fi | |
11732 | fi | |
11733 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
11734 | # Extract the first word of "nm", so it can be a program name with args. | |
11735 | set dummy nm; ac_word=$2 | |
11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11737 | $as_echo_n "checking for $ac_word... " >&6; } | |
11738 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11739 | $as_echo_n "(cached) " >&6 | |
11740 | else | |
11741 | case $NM_FOR_TARGET in | |
11742 | [\\/]* | ?:[\\/]*) | |
11743 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. | |
11744 | ;; | |
11745 | *) | |
11746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11747 | for as_dir in $gcc_cv_tool_dirs | |
11748 | do | |
11749 | IFS=$as_save_IFS | |
11750 | test -z "$as_dir" && as_dir=. | |
11751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11753 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
11754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11755 | break 2 | |
11756 | fi | |
11757 | done | |
11758 | done | |
11759 | IFS=$as_save_IFS | |
11760 | ||
11761 | ;; | |
11762 | esac | |
11763 | fi | |
11764 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
11765 | if test -n "$NM_FOR_TARGET"; then | |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 | |
11767 | $as_echo "$NM_FOR_TARGET" >&6; } | |
11768 | else | |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11770 | $as_echo "no" >&6; } | |
11771 | fi | |
11772 | ||
11773 | ||
11774 | fi | |
11775 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11776 | ||
11777 | ||
11778 | if test -n "$NM_FOR_TARGET"; then | |
11779 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11780 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11781 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11782 | fi | |
11783 | ||
11784 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11785 | for ncn_progname in nm; do | |
11786 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11787 | set dummy ${ncn_progname}; ac_word=$2 | |
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11789 | $as_echo_n "checking for $ac_word... " >&6; } | |
11790 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11791 | $as_echo_n "(cached) " >&6 | |
11792 | else | |
11793 | if test -n "$NM_FOR_TARGET"; then | |
11794 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11795 | else | |
11796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11797 | for as_dir in $PATH | |
11798 | do | |
11799 | IFS=$as_save_IFS | |
11800 | test -z "$as_dir" && as_dir=. | |
11801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11803 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" | |
11804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11805 | break 2 | |
11806 | fi | |
11807 | done | |
11808 | done | |
11809 | IFS=$as_save_IFS | |
11810 | ||
11811 | fi | |
11812 | fi | |
11813 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11814 | if test -n "$NM_FOR_TARGET"; then | |
11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 | |
11816 | $as_echo "$NM_FOR_TARGET" >&6; } | |
11817 | else | |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11819 | $as_echo "no" >&6; } | |
11820 | fi | |
11821 | ||
11822 | ||
11823 | done | |
11824 | fi | |
11825 | ||
11826 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11827 | for ncn_progname in nm; do | |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11829 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11830 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11831 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11833 | $as_echo "yes" >&6; } | |
11834 | break | |
11835 | else | |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11837 | $as_echo "no" >&6; } | |
11838 | fi | |
11839 | done | |
11840 | fi | |
11841 | ||
11842 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11843 | for ncn_progname in nm; do | |
11844 | if test -n "$ncn_target_tool_prefix"; then | |
11845 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11846 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11848 | $as_echo_n "checking for $ac_word... " >&6; } | |
11849 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11850 | $as_echo_n "(cached) " >&6 | |
11851 | else | |
11852 | if test -n "$NM_FOR_TARGET"; then | |
11853 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11854 | else | |
11855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11856 | for as_dir in $PATH | |
11857 | do | |
11858 | IFS=$as_save_IFS | |
11859 | test -z "$as_dir" && as_dir=. | |
11860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11862 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
11863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11864 | break 2 | |
11865 | fi | |
11866 | done | |
11867 | done | |
11868 | IFS=$as_save_IFS | |
11869 | ||
11870 | fi | |
11871 | fi | |
11872 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11873 | if test -n "$NM_FOR_TARGET"; then | |
11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 | |
11875 | $as_echo "$NM_FOR_TARGET" >&6; } | |
11876 | else | |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11878 | $as_echo "no" >&6; } | |
11879 | fi | |
11880 | ||
11881 | ||
11882 | fi | |
11883 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11884 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11885 | set dummy ${ncn_progname}; ac_word=$2 | |
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11887 | $as_echo_n "checking for $ac_word... " >&6; } | |
11888 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11889 | $as_echo_n "(cached) " >&6 | |
11890 | else | |
11891 | if test -n "$NM_FOR_TARGET"; then | |
11892 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11893 | else | |
11894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11895 | for as_dir in $PATH | |
11896 | do | |
11897 | IFS=$as_save_IFS | |
11898 | test -z "$as_dir" && as_dir=. | |
11899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11901 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" | |
11902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11903 | break 2 | |
11904 | fi | |
11905 | done | |
11906 | done | |
11907 | IFS=$as_save_IFS | |
11908 | ||
11909 | fi | |
11910 | fi | |
11911 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11912 | if test -n "$NM_FOR_TARGET"; then | |
11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 | |
11914 | $as_echo "$NM_FOR_TARGET" >&6; } | |
11915 | else | |
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11917 | $as_echo "no" >&6; } | |
11918 | fi | |
11919 | ||
11920 | ||
11921 | fi | |
11922 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11923 | done | |
11924 | fi | |
11925 | ||
11926 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then | |
11927 | set dummy nm | |
11928 | if test $build = $target ; then | |
11929 | NM_FOR_TARGET="$2" | |
11930 | else | |
11931 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11932 | fi | |
11933 | else | |
11934 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
11935 | fi | |
11936 | ||
11937 | else | |
11938 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
11939 | fi | |
11940 | ||
11941 | ||
11942 | ||
11943 | ||
11944 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11945 | if test -n "$with_build_time_tools"; then | |
11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 | |
11947 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
11948 | if test -x $with_build_time_tools/objdump; then | |
11949 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11950 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 | |
11952 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
11953 | else | |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11955 | $as_echo "no" >&6; } | |
11956 | fi | |
11957 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
11958 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
11959 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= | |
11960 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
11961 | fi | |
11962 | fi | |
11963 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
11964 | # Extract the first word of "objdump", so it can be a program name with args. | |
11965 | set dummy objdump; ac_word=$2 | |
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11967 | $as_echo_n "checking for $ac_word... " >&6; } | |
11968 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11969 | $as_echo_n "(cached) " >&6 | |
11970 | else | |
11971 | case $OBJDUMP_FOR_TARGET in | |
11972 | [\\/]* | ?:[\\/]*) | |
11973 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. | |
11974 | ;; | |
11975 | *) | |
11976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11977 | for as_dir in $gcc_cv_tool_dirs | |
11978 | do | |
11979 | IFS=$as_save_IFS | |
11980 | test -z "$as_dir" && as_dir=. | |
11981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11983 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
11984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11985 | break 2 | |
11986 | fi | |
11987 | done | |
11988 | done | |
11989 | IFS=$as_save_IFS | |
11990 | ||
11991 | ;; | |
11992 | esac | |
11993 | fi | |
11994 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
11995 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 | |
11997 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
11998 | else | |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12000 | $as_echo "no" >&6; } | |
12001 | fi | |
12002 | ||
12003 | ||
12004 | fi | |
12005 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
12006 | ||
12007 | ||
12008 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12009 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12010 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12011 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12012 | fi | |
12013 | ||
12014 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12015 | for ncn_progname in objdump; do | |
12016 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12017 | set dummy ${ncn_progname}; ac_word=$2 | |
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12019 | $as_echo_n "checking for $ac_word... " >&6; } | |
12020 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12021 | $as_echo_n "(cached) " >&6 | |
12022 | else | |
12023 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12024 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12025 | else | |
12026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12027 | for as_dir in $PATH | |
12028 | do | |
12029 | IFS=$as_save_IFS | |
12030 | test -z "$as_dir" && as_dir=. | |
12031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12033 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" | |
12034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12035 | break 2 | |
12036 | fi | |
12037 | done | |
12038 | done | |
12039 | IFS=$as_save_IFS | |
12040 | ||
12041 | fi | |
12042 | fi | |
12043 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12044 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 | |
12046 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
12047 | else | |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12049 | $as_echo "no" >&6; } | |
12050 | fi | |
12051 | ||
12052 | ||
12053 | done | |
12054 | fi | |
12055 | ||
12056 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12057 | for ncn_progname in objdump; do | |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12059 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12060 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12061 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12063 | $as_echo "yes" >&6; } | |
12064 | break | |
12065 | else | |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12067 | $as_echo "no" >&6; } | |
12068 | fi | |
12069 | done | |
12070 | fi | |
12071 | ||
12072 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12073 | for ncn_progname in objdump; do | |
12074 | if test -n "$ncn_target_tool_prefix"; then | |
12075 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12076 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12078 | $as_echo_n "checking for $ac_word... " >&6; } | |
12079 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12080 | $as_echo_n "(cached) " >&6 | |
12081 | else | |
12082 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12083 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12084 | else | |
12085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12086 | for as_dir in $PATH | |
12087 | do | |
12088 | IFS=$as_save_IFS | |
12089 | test -z "$as_dir" && as_dir=. | |
12090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12092 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12094 | break 2 | |
12095 | fi | |
12096 | done | |
12097 | done | |
12098 | IFS=$as_save_IFS | |
12099 | ||
12100 | fi | |
12101 | fi | |
12102 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12103 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 | |
12105 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
12106 | else | |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12108 | $as_echo "no" >&6; } | |
12109 | fi | |
12110 | ||
12111 | ||
12112 | fi | |
12113 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12114 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12115 | set dummy ${ncn_progname}; ac_word=$2 | |
12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12117 | $as_echo_n "checking for $ac_word... " >&6; } | |
12118 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12119 | $as_echo_n "(cached) " >&6 | |
12120 | else | |
12121 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12122 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12123 | else | |
12124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12125 | for as_dir in $PATH | |
12126 | do | |
12127 | IFS=$as_save_IFS | |
12128 | test -z "$as_dir" && as_dir=. | |
12129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12131 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" | |
12132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12133 | break 2 | |
12134 | fi | |
12135 | done | |
12136 | done | |
12137 | IFS=$as_save_IFS | |
12138 | ||
12139 | fi | |
12140 | fi | |
12141 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12142 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 | |
12144 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
12145 | else | |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12147 | $as_echo "no" >&6; } | |
12148 | fi | |
12149 | ||
12150 | ||
12151 | fi | |
12152 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12153 | done | |
12154 | fi | |
12155 | ||
12156 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then | |
12157 | set dummy objdump | |
12158 | if test $build = $target ; then | |
12159 | OBJDUMP_FOR_TARGET="$2" | |
12160 | else | |
12161 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12162 | fi | |
12163 | else | |
12164 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
12165 | fi | |
12166 | ||
12167 | else | |
12168 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
12169 | fi | |
12170 | ||
12171 | ||
12172 | ||
12173 | ||
12174 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12175 | if test -n "$with_build_time_tools"; then | |
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 | |
12177 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
12178 | if test -x $with_build_time_tools/ranlib; then | |
12179 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12180 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 | |
12182 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
12183 | else | |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12185 | $as_echo "no" >&6; } | |
12186 | fi | |
12187 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12188 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
12189 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= | |
12190 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12191 | fi | |
12192 | fi | |
12193 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12194 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12195 | set dummy ranlib; ac_word=$2 | |
12196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12197 | $as_echo_n "checking for $ac_word... " >&6; } | |
12198 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12199 | $as_echo_n "(cached) " >&6 | |
12200 | else | |
12201 | case $RANLIB_FOR_TARGET in | |
12202 | [\\/]* | ?:[\\/]*) | |
12203 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. | |
12204 | ;; | |
12205 | *) | |
12206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12207 | for as_dir in $gcc_cv_tool_dirs | |
12208 | do | |
12209 | IFS=$as_save_IFS | |
12210 | test -z "$as_dir" && as_dir=. | |
12211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12213 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12215 | break 2 | |
12216 | fi | |
12217 | done | |
12218 | done | |
12219 | IFS=$as_save_IFS | |
12220 | ||
12221 | ;; | |
12222 | esac | |
12223 | fi | |
12224 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
12225 | if test -n "$RANLIB_FOR_TARGET"; then | |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 | |
12227 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
12228 | else | |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12230 | $as_echo "no" >&6; } | |
12231 | fi | |
12232 | ||
12233 | ||
12234 | fi | |
12235 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12236 | ||
12237 | ||
12238 | if test -n "$RANLIB_FOR_TARGET"; then | |
12239 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12240 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12241 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12242 | fi | |
12243 | ||
12244 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12245 | for ncn_progname in ranlib; do | |
12246 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12247 | set dummy ${ncn_progname}; ac_word=$2 | |
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12249 | $as_echo_n "checking for $ac_word... " >&6; } | |
12250 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12251 | $as_echo_n "(cached) " >&6 | |
12252 | else | |
12253 | if test -n "$RANLIB_FOR_TARGET"; then | |
12254 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12255 | else | |
12256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12257 | for as_dir in $PATH | |
12258 | do | |
12259 | IFS=$as_save_IFS | |
12260 | test -z "$as_dir" && as_dir=. | |
12261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12263 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" | |
12264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12265 | break 2 | |
12266 | fi | |
12267 | done | |
12268 | done | |
12269 | IFS=$as_save_IFS | |
12270 | ||
12271 | fi | |
12272 | fi | |
12273 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12274 | if test -n "$RANLIB_FOR_TARGET"; then | |
12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 | |
12276 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
12277 | else | |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12279 | $as_echo "no" >&6; } | |
12280 | fi | |
12281 | ||
12282 | ||
12283 | done | |
12284 | fi | |
12285 | ||
12286 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12287 | for ncn_progname in ranlib; do | |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12289 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12290 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12291 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12293 | $as_echo "yes" >&6; } | |
12294 | break | |
12295 | else | |
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12297 | $as_echo "no" >&6; } | |
12298 | fi | |
12299 | done | |
12300 | fi | |
12301 | ||
12302 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12303 | for ncn_progname in ranlib; do | |
12304 | if test -n "$ncn_target_tool_prefix"; then | |
12305 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12306 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12308 | $as_echo_n "checking for $ac_word... " >&6; } | |
12309 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12310 | $as_echo_n "(cached) " >&6 | |
12311 | else | |
12312 | if test -n "$RANLIB_FOR_TARGET"; then | |
12313 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12314 | else | |
12315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12316 | for as_dir in $PATH | |
12317 | do | |
12318 | IFS=$as_save_IFS | |
12319 | test -z "$as_dir" && as_dir=. | |
12320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12322 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12324 | break 2 | |
12325 | fi | |
12326 | done | |
12327 | done | |
12328 | IFS=$as_save_IFS | |
12329 | ||
12330 | fi | |
12331 | fi | |
12332 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12333 | if test -n "$RANLIB_FOR_TARGET"; then | |
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 | |
12335 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
12336 | else | |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12338 | $as_echo "no" >&6; } | |
12339 | fi | |
12340 | ||
12341 | ||
12342 | fi | |
12343 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12344 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12345 | set dummy ${ncn_progname}; ac_word=$2 | |
12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12347 | $as_echo_n "checking for $ac_word... " >&6; } | |
12348 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12349 | $as_echo_n "(cached) " >&6 | |
12350 | else | |
12351 | if test -n "$RANLIB_FOR_TARGET"; then | |
12352 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12353 | else | |
12354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12355 | for as_dir in $PATH | |
12356 | do | |
12357 | IFS=$as_save_IFS | |
12358 | test -z "$as_dir" && as_dir=. | |
12359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12361 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" | |
12362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12363 | break 2 | |
12364 | fi | |
12365 | done | |
12366 | done | |
12367 | IFS=$as_save_IFS | |
12368 | ||
12369 | fi | |
12370 | fi | |
12371 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12372 | if test -n "$RANLIB_FOR_TARGET"; then | |
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 | |
12374 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
12375 | else | |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12377 | $as_echo "no" >&6; } | |
12378 | fi | |
12379 | ||
12380 | ||
12381 | fi | |
12382 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12383 | done | |
12384 | fi | |
12385 | ||
12386 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then | |
12387 | set dummy ranlib | |
12388 | if test $build = $target ; then | |
12389 | RANLIB_FOR_TARGET="$2" | |
12390 | else | |
12391 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12392 | fi | |
12393 | else | |
12394 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
12395 | fi | |
12396 | ||
12397 | else | |
12398 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
12399 | fi | |
12400 | ||
12401 | ||
12402 | ||
12403 | ||
12404 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12405 | if test -n "$with_build_time_tools"; then | |
12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12407 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12408 | if test -x $with_build_time_tools/readelf; then | |
12409 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12410 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12412 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12413 | else | |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12415 | $as_echo "no" >&6; } | |
12416 | fi | |
12417 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12418 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12419 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12420 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12421 | fi | |
12422 | fi | |
12423 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12424 | # Extract the first word of "readelf", so it can be a program name with args. | |
12425 | set dummy readelf; ac_word=$2 | |
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12427 | $as_echo_n "checking for $ac_word... " >&6; } | |
12428 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12429 | $as_echo_n "(cached) " >&6 | |
12430 | else | |
12431 | case $READELF_FOR_TARGET in | |
12432 | [\\/]* | ?:[\\/]*) | |
12433 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12434 | ;; | |
12435 | *) | |
12436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12437 | for as_dir in $gcc_cv_tool_dirs | |
12438 | do | |
12439 | IFS=$as_save_IFS | |
12440 | test -z "$as_dir" && as_dir=. | |
12441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12443 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12445 | break 2 | |
12446 | fi | |
12447 | done | |
12448 | done | |
12449 | IFS=$as_save_IFS | |
12450 | ||
12451 | ;; | |
12452 | esac | |
12453 | fi | |
12454 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12455 | if test -n "$READELF_FOR_TARGET"; then | |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12457 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12458 | else | |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12460 | $as_echo "no" >&6; } | |
12461 | fi | |
12462 | ||
12463 | ||
12464 | fi | |
12465 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12466 | ||
12467 | ||
12468 | if test -n "$READELF_FOR_TARGET"; then | |
12469 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12470 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12471 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12472 | fi | |
12473 | ||
12474 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12475 | for ncn_progname in readelf; do | |
12476 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12477 | set dummy ${ncn_progname}; ac_word=$2 | |
12478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12479 | $as_echo_n "checking for $ac_word... " >&6; } | |
12480 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12481 | $as_echo_n "(cached) " >&6 | |
12482 | else | |
12483 | if test -n "$READELF_FOR_TARGET"; then | |
12484 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12485 | else | |
12486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12487 | for as_dir in $PATH | |
12488 | do | |
12489 | IFS=$as_save_IFS | |
12490 | test -z "$as_dir" && as_dir=. | |
12491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12493 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12495 | break 2 | |
12496 | fi | |
12497 | done | |
12498 | done | |
12499 | IFS=$as_save_IFS | |
12500 | ||
12501 | fi | |
12502 | fi | |
12503 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12504 | if test -n "$READELF_FOR_TARGET"; then | |
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12506 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12507 | else | |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12509 | $as_echo "no" >&6; } | |
12510 | fi | |
12511 | ||
12512 | ||
12513 | done | |
12514 | fi | |
12515 | ||
12516 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12517 | for ncn_progname in readelf; do | |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12519 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12520 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12521 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12523 | $as_echo "yes" >&6; } | |
12524 | break | |
12525 | else | |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12527 | $as_echo "no" >&6; } | |
12528 | fi | |
12529 | done | |
12530 | fi | |
12531 | ||
12532 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12533 | for ncn_progname in readelf; do | |
12534 | if test -n "$ncn_target_tool_prefix"; then | |
12535 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12536 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12538 | $as_echo_n "checking for $ac_word... " >&6; } | |
12539 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12540 | $as_echo_n "(cached) " >&6 | |
12541 | else | |
12542 | if test -n "$READELF_FOR_TARGET"; then | |
12543 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12544 | else | |
12545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12546 | for as_dir in $PATH | |
12547 | do | |
12548 | IFS=$as_save_IFS | |
12549 | test -z "$as_dir" && as_dir=. | |
12550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12552 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12554 | break 2 | |
12555 | fi | |
12556 | done | |
12557 | done | |
12558 | IFS=$as_save_IFS | |
12559 | ||
12560 | fi | |
12561 | fi | |
12562 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12563 | if test -n "$READELF_FOR_TARGET"; then | |
12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12565 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12566 | else | |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12568 | $as_echo "no" >&6; } | |
12569 | fi | |
12570 | ||
12571 | ||
12572 | fi | |
12573 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12574 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12575 | set dummy ${ncn_progname}; ac_word=$2 | |
12576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12577 | $as_echo_n "checking for $ac_word... " >&6; } | |
12578 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12579 | $as_echo_n "(cached) " >&6 | |
12580 | else | |
12581 | if test -n "$READELF_FOR_TARGET"; then | |
12582 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12583 | else | |
12584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12585 | for as_dir in $PATH | |
12586 | do | |
12587 | IFS=$as_save_IFS | |
12588 | test -z "$as_dir" && as_dir=. | |
12589 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12591 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12593 | break 2 | |
12594 | fi | |
12595 | done | |
12596 | done | |
12597 | IFS=$as_save_IFS | |
12598 | ||
12599 | fi | |
12600 | fi | |
12601 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12602 | if test -n "$READELF_FOR_TARGET"; then | |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12604 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12605 | else | |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12607 | $as_echo "no" >&6; } | |
12608 | fi | |
12609 | ||
12610 | ||
12611 | fi | |
12612 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12613 | done | |
12614 | fi | |
12615 | ||
12616 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12617 | set dummy readelf | |
12618 | if test $build = $target ; then | |
12619 | READELF_FOR_TARGET="$2" | |
12620 | else | |
12621 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12622 | fi | |
12623 | else | |
12624 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12625 | fi | |
12626 | ||
12627 | else | |
12628 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12629 | fi | |
12630 | ||
12631 | ||
12632 | ||
12633 | ||
12634 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12635 | if test -n "$with_build_time_tools"; then | |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 | |
12637 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
12638 | if test -x $with_build_time_tools/strip; then | |
12639 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12640 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 | |
12642 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
12643 | else | |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12645 | $as_echo "no" >&6; } | |
12646 | fi | |
12647 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12648 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
12649 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= | |
12650 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12651 | fi | |
12652 | fi | |
12653 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12654 | # Extract the first word of "strip", so it can be a program name with args. | |
12655 | set dummy strip; ac_word=$2 | |
12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12657 | $as_echo_n "checking for $ac_word... " >&6; } | |
12658 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12659 | $as_echo_n "(cached) " >&6 | |
12660 | else | |
12661 | case $STRIP_FOR_TARGET in | |
12662 | [\\/]* | ?:[\\/]*) | |
12663 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. | |
12664 | ;; | |
12665 | *) | |
12666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12667 | for as_dir in $gcc_cv_tool_dirs | |
12668 | do | |
12669 | IFS=$as_save_IFS | |
12670 | test -z "$as_dir" && as_dir=. | |
12671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12673 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12675 | break 2 | |
12676 | fi | |
12677 | done | |
12678 | done | |
12679 | IFS=$as_save_IFS | |
12680 | ||
12681 | ;; | |
12682 | esac | |
12683 | fi | |
12684 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
12685 | if test -n "$STRIP_FOR_TARGET"; then | |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 | |
12687 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
12688 | else | |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12690 | $as_echo "no" >&6; } | |
12691 | fi | |
12692 | ||
12693 | ||
12694 | fi | |
12695 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12696 | ||
12697 | ||
12698 | if test -n "$STRIP_FOR_TARGET"; then | |
12699 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12700 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12701 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12702 | fi | |
12703 | ||
12704 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12705 | for ncn_progname in strip; do | |
12706 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12707 | set dummy ${ncn_progname}; ac_word=$2 | |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12709 | $as_echo_n "checking for $ac_word... " >&6; } | |
12710 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12711 | $as_echo_n "(cached) " >&6 | |
12712 | else | |
12713 | if test -n "$STRIP_FOR_TARGET"; then | |
12714 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12715 | else | |
12716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12717 | for as_dir in $PATH | |
12718 | do | |
12719 | IFS=$as_save_IFS | |
12720 | test -z "$as_dir" && as_dir=. | |
12721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12722 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12723 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" | |
12724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12725 | break 2 | |
12726 | fi | |
12727 | done | |
12728 | done | |
12729 | IFS=$as_save_IFS | |
12730 | ||
12731 | fi | |
12732 | fi | |
12733 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12734 | if test -n "$STRIP_FOR_TARGET"; then | |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 | |
12736 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
12737 | else | |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12739 | $as_echo "no" >&6; } | |
12740 | fi | |
12741 | ||
12742 | ||
12743 | done | |
12744 | fi | |
12745 | ||
12746 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12747 | for ncn_progname in strip; do | |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12749 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12750 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12751 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12753 | $as_echo "yes" >&6; } | |
12754 | break | |
12755 | else | |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12757 | $as_echo "no" >&6; } | |
12758 | fi | |
12759 | done | |
12760 | fi | |
12761 | ||
12762 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12763 | for ncn_progname in strip; do | |
12764 | if test -n "$ncn_target_tool_prefix"; then | |
12765 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12766 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12768 | $as_echo_n "checking for $ac_word... " >&6; } | |
12769 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12770 | $as_echo_n "(cached) " >&6 | |
12771 | else | |
12772 | if test -n "$STRIP_FOR_TARGET"; then | |
12773 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12774 | else | |
12775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12776 | for as_dir in $PATH | |
12777 | do | |
12778 | IFS=$as_save_IFS | |
12779 | test -z "$as_dir" && as_dir=. | |
12780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12782 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12784 | break 2 | |
12785 | fi | |
12786 | done | |
12787 | done | |
12788 | IFS=$as_save_IFS | |
12789 | ||
12790 | fi | |
12791 | fi | |
12792 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12793 | if test -n "$STRIP_FOR_TARGET"; then | |
12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 | |
12795 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
12796 | else | |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12798 | $as_echo "no" >&6; } | |
12799 | fi | |
12800 | ||
12801 | ||
12802 | fi | |
12803 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12804 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12805 | set dummy ${ncn_progname}; ac_word=$2 | |
12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12807 | $as_echo_n "checking for $ac_word... " >&6; } | |
12808 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12809 | $as_echo_n "(cached) " >&6 | |
12810 | else | |
12811 | if test -n "$STRIP_FOR_TARGET"; then | |
12812 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12813 | else | |
12814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12815 | for as_dir in $PATH | |
12816 | do | |
12817 | IFS=$as_save_IFS | |
12818 | test -z "$as_dir" && as_dir=. | |
12819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12821 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" | |
12822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12823 | break 2 | |
12824 | fi | |
12825 | done | |
12826 | done | |
12827 | IFS=$as_save_IFS | |
12828 | ||
12829 | fi | |
12830 | fi | |
12831 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12832 | if test -n "$STRIP_FOR_TARGET"; then | |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 | |
12834 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
12835 | else | |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12837 | $as_echo "no" >&6; } | |
12838 | fi | |
12839 | ||
12840 | ||
12841 | fi | |
12842 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12843 | done | |
12844 | fi | |
12845 | ||
12846 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then | |
12847 | set dummy strip | |
12848 | if test $build = $target ; then | |
12849 | STRIP_FOR_TARGET="$2" | |
12850 | else | |
12851 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12852 | fi | |
12853 | else | |
12854 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
12855 | fi | |
12856 | ||
12857 | else | |
12858 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
12859 | fi | |
12860 | ||
12861 | ||
12862 | ||
12863 | ||
12864 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12865 | if test -n "$with_build_time_tools"; then | |
12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 | |
12867 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
12868 | if test -x $with_build_time_tools/windres; then | |
12869 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12870 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 | |
12872 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
12873 | else | |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12875 | $as_echo "no" >&6; } | |
12876 | fi | |
12877 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12878 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
12879 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= | |
12880 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12881 | fi | |
12882 | fi | |
12883 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12884 | # Extract the first word of "windres", so it can be a program name with args. | |
12885 | set dummy windres; ac_word=$2 | |
12886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12887 | $as_echo_n "checking for $ac_word... " >&6; } | |
12888 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12889 | $as_echo_n "(cached) " >&6 | |
12890 | else | |
12891 | case $WINDRES_FOR_TARGET in | |
12892 | [\\/]* | ?:[\\/]*) | |
12893 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. | |
12894 | ;; | |
12895 | *) | |
12896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12897 | for as_dir in $gcc_cv_tool_dirs | |
12898 | do | |
12899 | IFS=$as_save_IFS | |
12900 | test -z "$as_dir" && as_dir=. | |
12901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12903 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12905 | break 2 | |
12906 | fi | |
12907 | done | |
12908 | done | |
12909 | IFS=$as_save_IFS | |
12910 | ||
12911 | ;; | |
12912 | esac | |
12913 | fi | |
12914 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
12915 | if test -n "$WINDRES_FOR_TARGET"; then | |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 | |
12917 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
12918 | else | |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12920 | $as_echo "no" >&6; } | |
12921 | fi | |
12922 | ||
12923 | ||
12924 | fi | |
12925 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12926 | ||
12927 | ||
12928 | if test -n "$WINDRES_FOR_TARGET"; then | |
12929 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12930 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12931 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12932 | fi | |
12933 | ||
12934 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12935 | for ncn_progname in windres; do | |
12936 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12937 | set dummy ${ncn_progname}; ac_word=$2 | |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12939 | $as_echo_n "checking for $ac_word... " >&6; } | |
12940 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12941 | $as_echo_n "(cached) " >&6 | |
12942 | else | |
12943 | if test -n "$WINDRES_FOR_TARGET"; then | |
12944 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12945 | else | |
12946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12947 | for as_dir in $PATH | |
12948 | do | |
12949 | IFS=$as_save_IFS | |
12950 | test -z "$as_dir" && as_dir=. | |
12951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12953 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" | |
12954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12955 | break 2 | |
12956 | fi | |
12957 | done | |
12958 | done | |
12959 | IFS=$as_save_IFS | |
12960 | ||
12961 | fi | |
12962 | fi | |
12963 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12964 | if test -n "$WINDRES_FOR_TARGET"; then | |
12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 | |
12966 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
12967 | else | |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12969 | $as_echo "no" >&6; } | |
12970 | fi | |
12971 | ||
12972 | ||
12973 | done | |
12974 | fi | |
12975 | ||
12976 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12977 | for ncn_progname in windres; do | |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12979 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12980 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12981 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12983 | $as_echo "yes" >&6; } | |
12984 | break | |
12985 | else | |
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12987 | $as_echo "no" >&6; } | |
12988 | fi | |
12989 | done | |
12990 | fi | |
12991 | ||
12992 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12993 | for ncn_progname in windres; do | |
12994 | if test -n "$ncn_target_tool_prefix"; then | |
12995 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12996 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12998 | $as_echo_n "checking for $ac_word... " >&6; } | |
12999 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13000 | $as_echo_n "(cached) " >&6 | |
13001 | else | |
13002 | if test -n "$WINDRES_FOR_TARGET"; then | |
13003 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13004 | else | |
13005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13006 | for as_dir in $PATH | |
13007 | do | |
13008 | IFS=$as_save_IFS | |
13009 | test -z "$as_dir" && as_dir=. | |
13010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13012 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13014 | break 2 | |
13015 | fi | |
13016 | done | |
13017 | done | |
13018 | IFS=$as_save_IFS | |
13019 | ||
13020 | fi | |
13021 | fi | |
13022 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13023 | if test -n "$WINDRES_FOR_TARGET"; then | |
13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 | |
13025 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
13026 | else | |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13028 | $as_echo "no" >&6; } | |
13029 | fi | |
13030 | ||
13031 | ||
13032 | fi | |
13033 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13034 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13035 | set dummy ${ncn_progname}; ac_word=$2 | |
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13037 | $as_echo_n "checking for $ac_word... " >&6; } | |
13038 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13039 | $as_echo_n "(cached) " >&6 | |
13040 | else | |
13041 | if test -n "$WINDRES_FOR_TARGET"; then | |
13042 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13043 | else | |
13044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13045 | for as_dir in $PATH | |
13046 | do | |
13047 | IFS=$as_save_IFS | |
13048 | test -z "$as_dir" && as_dir=. | |
13049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13051 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" | |
13052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13053 | break 2 | |
13054 | fi | |
13055 | done | |
13056 | done | |
13057 | IFS=$as_save_IFS | |
13058 | ||
13059 | fi | |
13060 | fi | |
13061 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13062 | if test -n "$WINDRES_FOR_TARGET"; then | |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 | |
13064 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
13065 | else | |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13067 | $as_echo "no" >&6; } | |
13068 | fi | |
13069 | ||
13070 | ||
13071 | fi | |
13072 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13073 | done | |
13074 | fi | |
13075 | ||
13076 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then | |
13077 | set dummy windres | |
13078 | if test $build = $target ; then | |
13079 | WINDRES_FOR_TARGET="$2" | |
13080 | else | |
13081 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13082 | fi | |
13083 | else | |
13084 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
13085 | fi | |
13086 | ||
13087 | else | |
13088 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
13089 | fi | |
13090 | ||
13091 | ||
13092 | ||
13093 | ||
13094 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13095 | if test -n "$with_build_time_tools"; then | |
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 | |
13097 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
13098 | if test -x $with_build_time_tools/windmc; then | |
13099 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13100 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 | |
13102 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
13103 | else | |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13105 | $as_echo "no" >&6; } | |
13106 | fi | |
13107 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13108 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13109 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13110 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13111 | fi | |
13112 | fi | |
13113 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13114 | # Extract the first word of "windmc", so it can be a program name with args. | |
13115 | set dummy windmc; ac_word=$2 | |
13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13117 | $as_echo_n "checking for $ac_word... " >&6; } | |
13118 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13119 | $as_echo_n "(cached) " >&6 | |
13120 | else | |
13121 | case $WINDMC_FOR_TARGET in | |
13122 | [\\/]* | ?:[\\/]*) | |
13123 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13124 | ;; | |
13125 | *) | |
13126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13127 | for as_dir in $gcc_cv_tool_dirs | |
13128 | do | |
13129 | IFS=$as_save_IFS | |
13130 | test -z "$as_dir" && as_dir=. | |
13131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13133 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13135 | break 2 | |
13136 | fi | |
13137 | done | |
13138 | done | |
13139 | IFS=$as_save_IFS | |
13140 | ||
13141 | ;; | |
13142 | esac | |
13143 | fi | |
13144 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13145 | if test -n "$WINDMC_FOR_TARGET"; then | |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 | |
13147 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
13148 | else | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13150 | $as_echo "no" >&6; } | |
13151 | fi | |
13152 | ||
13153 | ||
13154 | fi | |
13155 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13156 | ||
13157 | ||
13158 | if test -n "$WINDMC_FOR_TARGET"; then | |
13159 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13160 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13161 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13162 | fi | |
13163 | ||
13164 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13165 | for ncn_progname in windmc; do | |
13166 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13167 | set dummy ${ncn_progname}; ac_word=$2 | |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13169 | $as_echo_n "checking for $ac_word... " >&6; } | |
13170 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13171 | $as_echo_n "(cached) " >&6 | |
13172 | else | |
13173 | if test -n "$WINDMC_FOR_TARGET"; then | |
13174 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13175 | else | |
13176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13177 | for as_dir in $PATH | |
13178 | do | |
13179 | IFS=$as_save_IFS | |
13180 | test -z "$as_dir" && as_dir=. | |
13181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13183 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" | |
13184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13185 | break 2 | |
13186 | fi | |
13187 | done | |
13188 | done | |
13189 | IFS=$as_save_IFS | |
13190 | ||
13191 | fi | |
13192 | fi | |
13193 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13194 | if test -n "$WINDMC_FOR_TARGET"; then | |
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 | |
13196 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
13197 | else | |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13199 | $as_echo "no" >&6; } | |
13200 | fi | |
13201 | ||
13202 | ||
13203 | done | |
13204 | fi | |
13205 | ||
13206 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13207 | for ncn_progname in windmc; do | |
13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13209 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13210 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13211 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13213 | $as_echo "yes" >&6; } | |
13214 | break | |
13215 | else | |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13217 | $as_echo "no" >&6; } | |
13218 | fi | |
13219 | done | |
13220 | fi | |
13221 | ||
13222 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13223 | for ncn_progname in windmc; do | |
13224 | if test -n "$ncn_target_tool_prefix"; then | |
13225 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13226 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13228 | $as_echo_n "checking for $ac_word... " >&6; } | |
13229 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13230 | $as_echo_n "(cached) " >&6 | |
13231 | else | |
13232 | if test -n "$WINDMC_FOR_TARGET"; then | |
13233 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13234 | else | |
13235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13236 | for as_dir in $PATH | |
13237 | do | |
13238 | IFS=$as_save_IFS | |
13239 | test -z "$as_dir" && as_dir=. | |
13240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13242 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13244 | break 2 | |
13245 | fi | |
13246 | done | |
13247 | done | |
13248 | IFS=$as_save_IFS | |
13249 | ||
13250 | fi | |
13251 | fi | |
13252 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13253 | if test -n "$WINDMC_FOR_TARGET"; then | |
13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 | |
13255 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
13256 | else | |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13258 | $as_echo "no" >&6; } | |
13259 | fi | |
13260 | ||
13261 | ||
13262 | fi | |
13263 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13264 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13265 | set dummy ${ncn_progname}; ac_word=$2 | |
13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13267 | $as_echo_n "checking for $ac_word... " >&6; } | |
13268 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13269 | $as_echo_n "(cached) " >&6 | |
13270 | else | |
13271 | if test -n "$WINDMC_FOR_TARGET"; then | |
13272 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13273 | else | |
13274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13275 | for as_dir in $PATH | |
13276 | do | |
13277 | IFS=$as_save_IFS | |
13278 | test -z "$as_dir" && as_dir=. | |
13279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13281 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" | |
13282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13283 | break 2 | |
13284 | fi | |
13285 | done | |
13286 | done | |
13287 | IFS=$as_save_IFS | |
13288 | ||
13289 | fi | |
13290 | fi | |
13291 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13292 | if test -n "$WINDMC_FOR_TARGET"; then | |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 | |
13294 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
13295 | else | |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13297 | $as_echo "no" >&6; } | |
13298 | fi | |
13299 | ||
13300 | ||
13301 | fi | |
13302 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13303 | done | |
13304 | fi | |
13305 | ||
13306 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13307 | set dummy windmc | |
13308 | if test $build = $target ; then | |
13309 | WINDMC_FOR_TARGET="$2" | |
13310 | else | |
13311 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13312 | fi | |
13313 | else | |
13314 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13315 | fi | |
13316 | ||
13317 | else | |
13318 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13319 | fi | |
13320 | ||
13321 | ||
13322 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" | |
13323 | ||
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 | |
13325 | $as_echo_n "checking where to find the target ar... " >&6; } | |
13326 | if test "x${build}" != "x${host}" ; then | |
13327 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then | |
13328 | # We already found the complete path | |
13329 | ac_dir=`dirname $AR_FOR_TARGET` | |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13331 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13332 | else | |
13333 | # Canadian cross, just use what we found | |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13335 | $as_echo "pre-installed" >&6; } | |
13336 | fi | |
13337 | else | |
13338 | ok=yes | |
13339 | case " ${configdirs} " in | |
13340 | *" binutils "*) ;; | |
13341 | *) ok=no ;; | |
13342 | esac | |
13343 | ||
13344 | if test $ok = yes; then | |
13345 | # An in-tree tool is available and we can use it | |
13346 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13348 | $as_echo "just compiled" >&6; } | |
13349 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then | |
13350 | # We already found the complete path | |
13351 | ac_dir=`dirname $AR_FOR_TARGET` | |
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13353 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13354 | elif test "x$target" = "x$host"; then | |
13355 | # We can use an host tool | |
13356 | AR_FOR_TARGET='$(AR)' | |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13358 | $as_echo "host tool" >&6; } | |
13359 | else | |
13360 | # We need a cross tool | |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13362 | $as_echo "pre-installed" >&6; } | |
13363 | fi | |
13364 | fi | |
13365 | ||
13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 | |
13367 | $as_echo_n "checking where to find the target as... " >&6; } | |
13368 | if test "x${build}" != "x${host}" ; then | |
13369 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
13370 | # We already found the complete path | |
13371 | ac_dir=`dirname $AS_FOR_TARGET` | |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13373 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13374 | else | |
13375 | # Canadian cross, just use what we found | |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13377 | $as_echo "pre-installed" >&6; } | |
13378 | fi | |
13379 | else | |
13380 | ok=yes | |
13381 | case " ${configdirs} " in | |
13382 | *" gas "*) ;; | |
13383 | *) ok=no ;; | |
13384 | esac | |
13385 | ||
13386 | if test $ok = yes; then | |
13387 | # An in-tree tool is available and we can use it | |
13388 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13390 | $as_echo "just compiled" >&6; } | |
13391 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
13392 | # We already found the complete path | |
13393 | ac_dir=`dirname $AS_FOR_TARGET` | |
13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13395 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13396 | elif test "x$target" = "x$host"; then | |
13397 | # We can use an host tool | |
13398 | AS_FOR_TARGET='$(AS)' | |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13400 | $as_echo "host tool" >&6; } | |
13401 | else | |
13402 | # We need a cross tool | |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13404 | $as_echo "pre-installed" >&6; } | |
13405 | fi | |
13406 | fi | |
13407 | ||
13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 | |
13409 | $as_echo_n "checking where to find the target cc... " >&6; } | |
13410 | if test "x${build}" != "x${host}" ; then | |
13411 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
13412 | # We already found the complete path | |
13413 | ac_dir=`dirname $CC_FOR_TARGET` | |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13415 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13416 | else | |
13417 | # Canadian cross, just use what we found | |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13419 | $as_echo "pre-installed" >&6; } | |
13420 | fi | |
13421 | else | |
13422 | ok=yes | |
13423 | case " ${configdirs} " in | |
13424 | *" gcc "*) ;; | |
13425 | *) ok=no ;; | |
13426 | esac | |
13427 | ||
13428 | if test $ok = yes; then | |
13429 | # An in-tree tool is available and we can use it | |
13430 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13432 | $as_echo "just compiled" >&6; } | |
13433 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
13434 | # We already found the complete path | |
13435 | ac_dir=`dirname $CC_FOR_TARGET` | |
13436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13437 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13438 | elif test "x$target" = "x$host"; then | |
13439 | # We can use an host tool | |
13440 | CC_FOR_TARGET='$(CC)' | |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13442 | $as_echo "host tool" >&6; } | |
13443 | else | |
13444 | # We need a cross tool | |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13446 | $as_echo "pre-installed" >&6; } | |
13447 | fi | |
13448 | fi | |
13449 | ||
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 | |
13451 | $as_echo_n "checking where to find the target c++... " >&6; } | |
13452 | if test "x${build}" != "x${host}" ; then | |
13453 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then | |
13454 | # We already found the complete path | |
13455 | ac_dir=`dirname $CXX_FOR_TARGET` | |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13457 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13458 | else | |
13459 | # Canadian cross, just use what we found | |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13461 | $as_echo "pre-installed" >&6; } | |
13462 | fi | |
13463 | else | |
13464 | ok=yes | |
13465 | case " ${configdirs} " in | |
13466 | *" gcc "*) ;; | |
13467 | *) ok=no ;; | |
13468 | esac | |
13469 | case ,${enable_languages}, in | |
13470 | *,c++,*) ;; | |
13471 | *) ok=no ;; | |
13472 | esac | |
13473 | if test $ok = yes; then | |
13474 | # An in-tree tool is available and we can use it | |
13475 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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' | |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13477 | $as_echo "just compiled" >&6; } | |
13478 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then | |
13479 | # We already found the complete path | |
13480 | ac_dir=`dirname $CXX_FOR_TARGET` | |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13482 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13483 | elif test "x$target" = "x$host"; then | |
13484 | # We can use an host tool | |
13485 | CXX_FOR_TARGET='$(CXX)' | |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13487 | $as_echo "host tool" >&6; } | |
13488 | else | |
13489 | # We need a cross tool | |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13491 | $as_echo "pre-installed" >&6; } | |
13492 | fi | |
13493 | fi | |
13494 | ||
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 | |
13496 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
13497 | if test "x${build}" != "x${host}" ; then | |
13498 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then | |
13499 | # We already found the complete path | |
13500 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` | |
13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13502 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13503 | else | |
13504 | # Canadian cross, just use what we found | |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13506 | $as_echo "pre-installed" >&6; } | |
13507 | fi | |
13508 | else | |
13509 | ok=yes | |
13510 | case " ${configdirs} " in | |
13511 | *" gcc "*) ;; | |
13512 | *) ok=no ;; | |
13513 | esac | |
13514 | case ,${enable_languages}, in | |
13515 | *,c++,*) ;; | |
13516 | *) ok=no ;; | |
13517 | esac | |
13518 | if test $ok = yes; then | |
13519 | # An in-tree tool is available and we can use it | |
13520 | 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' | |
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13522 | $as_echo "just compiled" >&6; } | |
13523 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then | |
13524 | # We already found the complete path | |
13525 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` | |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13527 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13528 | elif test "x$target" = "x$host"; then | |
13529 | # We can use an host tool | |
13530 | RAW_CXX_FOR_TARGET='$(CXX)' | |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13532 | $as_echo "host tool" >&6; } | |
13533 | else | |
13534 | # We need a cross tool | |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13536 | $as_echo "pre-installed" >&6; } | |
13537 | fi | |
13538 | fi | |
13539 | ||
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 | |
13541 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
13542 | if test "x${build}" != "x${host}" ; then | |
13543 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
13544 | # We already found the complete path | |
13545 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` | |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13547 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13548 | else | |
13549 | # Canadian cross, just use what we found | |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13551 | $as_echo "pre-installed" >&6; } | |
13552 | fi | |
13553 | else | |
13554 | ok=yes | |
13555 | case " ${configdirs} " in | |
13556 | *" binutils "*) ;; | |
13557 | *) ok=no ;; | |
13558 | esac | |
13559 | ||
13560 | if test $ok = yes; then | |
13561 | # An in-tree tool is available and we can use it | |
13562 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
13563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13564 | $as_echo "just compiled" >&6; } | |
13565 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
13566 | # We already found the complete path | |
13567 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` | |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13569 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13570 | elif test "x$target" = "x$host"; then | |
13571 | # We can use an host tool | |
13572 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13574 | $as_echo "host tool" >&6; } | |
13575 | else | |
13576 | # We need a cross tool | |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13578 | $as_echo "pre-installed" >&6; } | |
13579 | fi | |
13580 | fi | |
13581 | ||
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 | |
13583 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
13584 | if test "x${build}" != "x${host}" ; then | |
13585 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then | |
13586 | # We already found the complete path | |
13587 | ac_dir=`dirname $GCC_FOR_TARGET` | |
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13589 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13590 | else | |
13591 | # Canadian cross, just use what we found | |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13593 | $as_echo "pre-installed" >&6; } | |
13594 | fi | |
13595 | else | |
13596 | ok=yes | |
13597 | case " ${configdirs} " in | |
13598 | *" gcc "*) ;; | |
13599 | *) ok=no ;; | |
13600 | esac | |
13601 | ||
13602 | if test $ok = yes; then | |
13603 | # An in-tree tool is available and we can use it | |
13604 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13606 | $as_echo "just compiled" >&6; } | |
13607 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then | |
13608 | # We already found the complete path | |
13609 | ac_dir=`dirname $GCC_FOR_TARGET` | |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13611 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13612 | elif test "x$target" = "x$host"; then | |
13613 | # We can use an host tool | |
13614 | GCC_FOR_TARGET='$()' | |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13616 | $as_echo "host tool" >&6; } | |
13617 | else | |
13618 | # We need a cross tool | |
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13620 | $as_echo "pre-installed" >&6; } | |
13621 | fi | |
13622 | fi | |
13623 | ||
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 | |
13625 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
13626 | if test "x${build}" != "x${host}" ; then | |
13627 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then | |
13628 | # We already found the complete path | |
13629 | ac_dir=`dirname $GCJ_FOR_TARGET` | |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13631 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13632 | else | |
13633 | # Canadian cross, just use what we found | |
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13635 | $as_echo "pre-installed" >&6; } | |
13636 | fi | |
13637 | else | |
13638 | ok=yes | |
13639 | case " ${configdirs} " in | |
13640 | *" gcc "*) ;; | |
13641 | *) ok=no ;; | |
13642 | esac | |
13643 | case ,${enable_languages}, in | |
13644 | *,java,*) ;; | |
13645 | *) ok=no ;; | |
13646 | esac | |
13647 | if test $ok = yes; then | |
13648 | # An in-tree tool is available and we can use it | |
13649 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13651 | $as_echo "just compiled" >&6; } | |
13652 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then | |
13653 | # We already found the complete path | |
13654 | ac_dir=`dirname $GCJ_FOR_TARGET` | |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13656 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13657 | elif test "x$target" = "x$host"; then | |
13658 | # We can use an host tool | |
13659 | GCJ_FOR_TARGET='$(GCJ)' | |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13661 | $as_echo "host tool" >&6; } | |
13662 | else | |
13663 | # We need a cross tool | |
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13665 | $as_echo "pre-installed" >&6; } | |
13666 | fi | |
13667 | fi | |
13668 | ||
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 | |
13670 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
13671 | if test "x${build}" != "x${host}" ; then | |
13672 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then | |
13673 | # We already found the complete path | |
13674 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` | |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13676 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13677 | else | |
13678 | # Canadian cross, just use what we found | |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13680 | $as_echo "pre-installed" >&6; } | |
13681 | fi | |
13682 | else | |
13683 | ok=yes | |
13684 | case " ${configdirs} " in | |
13685 | *" gcc "*) ;; | |
13686 | *) ok=no ;; | |
13687 | esac | |
13688 | case ,${enable_languages}, in | |
13689 | *,fortran,*) ;; | |
13690 | *) ok=no ;; | |
13691 | esac | |
13692 | if test $ok = yes; then | |
13693 | # An in-tree tool is available and we can use it | |
13694 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13696 | $as_echo "just compiled" >&6; } | |
13697 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then | |
13698 | # We already found the complete path | |
13699 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` | |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13701 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13702 | elif test "x$target" = "x$host"; then | |
13703 | # We can use an host tool | |
13704 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13706 | $as_echo "host tool" >&6; } | |
13707 | else | |
13708 | # We need a cross tool | |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13710 | $as_echo "pre-installed" >&6; } | |
13711 | fi | |
13712 | fi | |
13713 | ||
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 | |
13715 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13716 | if test "x${build}" != "x${host}" ; then | |
13717 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13718 | # We already found the complete path | |
13719 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13721 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13722 | else | |
13723 | # Canadian cross, just use what we found | |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13725 | $as_echo "pre-installed" >&6; } | |
13726 | fi | |
13727 | else | |
13728 | ok=yes | |
13729 | case " ${configdirs} " in | |
13730 | *" gcc "*) ;; | |
13731 | *) ok=no ;; | |
13732 | esac | |
13733 | case ,${enable_languages}, in | |
13734 | *,go,*) ;; | |
13735 | *) ok=no ;; | |
13736 | esac | |
13737 | if test $ok = yes; then | |
13738 | # An in-tree tool is available and we can use it | |
13739 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13741 | $as_echo "just compiled" >&6; } | |
13742 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13743 | # We already found the complete path | |
13744 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13746 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13747 | elif test "x$target" = "x$host"; then | |
13748 | # We can use an host tool | |
13749 | GOC_FOR_TARGET='$(GOC)' | |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13751 | $as_echo "host tool" >&6; } | |
13752 | else | |
13753 | # We need a cross tool | |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13755 | $as_echo "pre-installed" >&6; } | |
13756 | fi | |
13757 | fi | |
13758 | ||
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 | |
13760 | $as_echo_n "checking where to find the target ld... " >&6; } | |
13761 | if test "x${build}" != "x${host}" ; then | |
13762 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
13763 | # We already found the complete path | |
13764 | ac_dir=`dirname $LD_FOR_TARGET` | |
13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13766 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13767 | else | |
13768 | # Canadian cross, just use what we found | |
13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13770 | $as_echo "pre-installed" >&6; } | |
13771 | fi | |
13772 | else | |
13773 | ok=yes | |
13774 | case " ${configdirs} " in | |
13775 | *" ld "*) ;; | |
13776 | *) ok=no ;; | |
13777 | esac | |
13778 | ||
13779 | if test $ok = yes; then | |
13780 | # An in-tree tool is available and we can use it | |
13781 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13783 | $as_echo "just compiled" >&6; } | |
13784 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
13785 | # We already found the complete path | |
13786 | ac_dir=`dirname $LD_FOR_TARGET` | |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13788 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13789 | elif test "x$target" = "x$host"; then | |
13790 | # We can use an host tool | |
13791 | LD_FOR_TARGET='$(LD)' | |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13793 | $as_echo "host tool" >&6; } | |
13794 | else | |
13795 | # We need a cross tool | |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13797 | $as_echo "pre-installed" >&6; } | |
13798 | fi | |
13799 | fi | |
13800 | ||
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 | |
13802 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
13803 | if test "x${build}" != "x${host}" ; then | |
13804 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then | |
13805 | # We already found the complete path | |
13806 | ac_dir=`dirname $LIPO_FOR_TARGET` | |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13808 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13809 | else | |
13810 | # Canadian cross, just use what we found | |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13812 | $as_echo "pre-installed" >&6; } | |
13813 | fi | |
13814 | else | |
13815 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then | |
13816 | # We already found the complete path | |
13817 | ac_dir=`dirname $LIPO_FOR_TARGET` | |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13819 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13820 | elif test "x$target" = "x$host"; then | |
13821 | # We can use an host tool | |
13822 | LIPO_FOR_TARGET='$(LIPO)' | |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13824 | $as_echo "host tool" >&6; } | |
13825 | else | |
13826 | # We need a cross tool | |
13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13828 | $as_echo "pre-installed" >&6; } | |
13829 | fi | |
13830 | fi | |
13831 | ||
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 | |
13833 | $as_echo_n "checking where to find the target nm... " >&6; } | |
13834 | if test "x${build}" != "x${host}" ; then | |
13835 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then | |
13836 | # We already found the complete path | |
13837 | ac_dir=`dirname $NM_FOR_TARGET` | |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13839 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13840 | else | |
13841 | # Canadian cross, just use what we found | |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13843 | $as_echo "pre-installed" >&6; } | |
13844 | fi | |
13845 | else | |
13846 | ok=yes | |
13847 | case " ${configdirs} " in | |
13848 | *" binutils "*) ;; | |
13849 | *) ok=no ;; | |
13850 | esac | |
13851 | ||
13852 | if test $ok = yes; then | |
13853 | # An in-tree tool is available and we can use it | |
13854 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13856 | $as_echo "just compiled" >&6; } | |
13857 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then | |
13858 | # We already found the complete path | |
13859 | ac_dir=`dirname $NM_FOR_TARGET` | |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13861 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13862 | elif test "x$target" = "x$host"; then | |
13863 | # We can use an host tool | |
13864 | NM_FOR_TARGET='$(NM)' | |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13866 | $as_echo "host tool" >&6; } | |
13867 | else | |
13868 | # We need a cross tool | |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13870 | $as_echo "pre-installed" >&6; } | |
13871 | fi | |
13872 | fi | |
13873 | ||
13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 | |
13875 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
13876 | if test "x${build}" != "x${host}" ; then | |
13877 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then | |
13878 | # We already found the complete path | |
13879 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` | |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13881 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13882 | else | |
13883 | # Canadian cross, just use what we found | |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13885 | $as_echo "pre-installed" >&6; } | |
13886 | fi | |
13887 | else | |
13888 | ok=yes | |
13889 | case " ${configdirs} " in | |
13890 | *" binutils "*) ;; | |
13891 | *) ok=no ;; | |
13892 | esac | |
13893 | ||
13894 | if test $ok = yes; then | |
13895 | # An in-tree tool is available and we can use it | |
13896 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13898 | $as_echo "just compiled" >&6; } | |
13899 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then | |
13900 | # We already found the complete path | |
13901 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` | |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13903 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13904 | elif test "x$target" = "x$host"; then | |
13905 | # We can use an host tool | |
13906 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13908 | $as_echo "host tool" >&6; } | |
13909 | else | |
13910 | # We need a cross tool | |
13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13912 | $as_echo "pre-installed" >&6; } | |
13913 | fi | |
13914 | fi | |
13915 | ||
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 | |
13917 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
13918 | if test "x${build}" != "x${host}" ; then | |
13919 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then | |
13920 | # We already found the complete path | |
13921 | ac_dir=`dirname $RANLIB_FOR_TARGET` | |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13923 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13924 | else | |
13925 | # Canadian cross, just use what we found | |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13927 | $as_echo "pre-installed" >&6; } | |
13928 | fi | |
13929 | else | |
13930 | ok=yes | |
13931 | case " ${configdirs} " in | |
13932 | *" binutils "*) ;; | |
13933 | *) ok=no ;; | |
13934 | esac | |
13935 | ||
13936 | if test $ok = yes; then | |
13937 | # An in-tree tool is available and we can use it | |
13938 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13940 | $as_echo "just compiled" >&6; } | |
13941 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then | |
13942 | # We already found the complete path | |
13943 | ac_dir=`dirname $RANLIB_FOR_TARGET` | |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13945 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13946 | elif test "x$target" = "x$host"; then | |
13947 | # We can use an host tool | |
13948 | RANLIB_FOR_TARGET='$(RANLIB)' | |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13950 | $as_echo "host tool" >&6; } | |
13951 | else | |
13952 | # We need a cross tool | |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13954 | $as_echo "pre-installed" >&6; } | |
13955 | fi | |
13956 | fi | |
13957 | ||
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 | |
13959 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
13960 | if test "x${build}" != "x${host}" ; then | |
13961 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
13962 | # We already found the complete path | |
13963 | ac_dir=`dirname $READELF_FOR_TARGET` | |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13965 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13966 | else | |
13967 | # Canadian cross, just use what we found | |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13969 | $as_echo "pre-installed" >&6; } | |
13970 | fi | |
13971 | else | |
13972 | ok=yes | |
13973 | case " ${configdirs} " in | |
13974 | *" binutils "*) ;; | |
13975 | *) ok=no ;; | |
13976 | esac | |
13977 | ||
13978 | if test $ok = yes; then | |
13979 | # An in-tree tool is available and we can use it | |
13980 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13982 | $as_echo "just compiled" >&6; } | |
13983 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
13984 | # We already found the complete path | |
13985 | ac_dir=`dirname $READELF_FOR_TARGET` | |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13987 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13988 | elif test "x$target" = "x$host"; then | |
13989 | # We can use an host tool | |
13990 | READELF_FOR_TARGET='$(READELF)' | |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13992 | $as_echo "host tool" >&6; } | |
13993 | else | |
13994 | # We need a cross tool | |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13996 | $as_echo "pre-installed" >&6; } | |
13997 | fi | |
13998 | fi | |
13999 | ||
14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 | |
14001 | $as_echo_n "checking where to find the target strip... " >&6; } | |
14002 | if test "x${build}" != "x${host}" ; then | |
14003 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then | |
14004 | # We already found the complete path | |
14005 | ac_dir=`dirname $STRIP_FOR_TARGET` | |
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14007 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14008 | else | |
14009 | # Canadian cross, just use what we found | |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14011 | $as_echo "pre-installed" >&6; } | |
14012 | fi | |
14013 | else | |
14014 | ok=yes | |
14015 | case " ${configdirs} " in | |
14016 | *" binutils "*) ;; | |
14017 | *) ok=no ;; | |
14018 | esac | |
14019 | ||
14020 | if test $ok = yes; then | |
14021 | # An in-tree tool is available and we can use it | |
14022 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' | |
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14024 | $as_echo "just compiled" >&6; } | |
14025 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then | |
14026 | # We already found the complete path | |
14027 | ac_dir=`dirname $STRIP_FOR_TARGET` | |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14029 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14030 | elif test "x$target" = "x$host"; then | |
14031 | # We can use an host tool | |
14032 | STRIP_FOR_TARGET='$(STRIP)' | |
14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14034 | $as_echo "host tool" >&6; } | |
14035 | else | |
14036 | # We need a cross tool | |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14038 | $as_echo "pre-installed" >&6; } | |
14039 | fi | |
14040 | fi | |
14041 | ||
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 | |
14043 | $as_echo_n "checking where to find the target windres... " >&6; } | |
14044 | if test "x${build}" != "x${host}" ; then | |
14045 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then | |
14046 | # We already found the complete path | |
14047 | ac_dir=`dirname $WINDRES_FOR_TARGET` | |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14049 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14050 | else | |
14051 | # Canadian cross, just use what we found | |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14053 | $as_echo "pre-installed" >&6; } | |
14054 | fi | |
14055 | else | |
14056 | ok=yes | |
14057 | case " ${configdirs} " in | |
14058 | *" binutils "*) ;; | |
14059 | *) ok=no ;; | |
14060 | esac | |
14061 | ||
14062 | if test $ok = yes; then | |
14063 | # An in-tree tool is available and we can use it | |
14064 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14066 | $as_echo "just compiled" >&6; } | |
14067 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then | |
14068 | # We already found the complete path | |
14069 | ac_dir=`dirname $WINDRES_FOR_TARGET` | |
14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14071 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14072 | elif test "x$target" = "x$host"; then | |
14073 | # We can use an host tool | |
14074 | WINDRES_FOR_TARGET='$(WINDRES)' | |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14076 | $as_echo "host tool" >&6; } | |
14077 | else | |
14078 | # We need a cross tool | |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14080 | $as_echo "pre-installed" >&6; } | |
14081 | fi | |
14082 | fi | |
14083 | ||
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 | |
14085 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
14086 | if test "x${build}" != "x${host}" ; then | |
14087 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14088 | # We already found the complete path | |
14089 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14091 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14092 | else | |
14093 | # Canadian cross, just use what we found | |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14095 | $as_echo "pre-installed" >&6; } | |
14096 | fi | |
14097 | else | |
14098 | ok=yes | |
14099 | case " ${configdirs} " in | |
14100 | *" binutils "*) ;; | |
14101 | *) ok=no ;; | |
14102 | esac | |
14103 | ||
14104 | if test $ok = yes; then | |
14105 | # An in-tree tool is available and we can use it | |
14106 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14108 | $as_echo "just compiled" >&6; } | |
14109 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14110 | # We already found the complete path | |
14111 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14113 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14114 | elif test "x$target" = "x$host"; then | |
14115 | # We can use an host tool | |
14116 | WINDMC_FOR_TARGET='$(WINDMC)' | |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14118 | $as_echo "host tool" >&6; } | |
14119 | else | |
14120 | # We need a cross tool | |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14122 | $as_echo "pre-installed" >&6; } | |
14123 | fi | |
14124 | fi | |
14125 | ||
14126 | ||
14127 | ||
14128 | ||
14129 | ||
14130 | # Certain tools may need extra flags. | |
14131 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14132 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14133 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14134 | ||
14135 | # When building target libraries, except in a Canadian cross, we use | |
14136 | # the same toolchain as the compiler we just built. | |
14137 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14138 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14139 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14140 | if test $host = $build; then | |
14141 | case " $configdirs " in | |
14142 | *" gcc "*) | |
14143 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14144 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14145 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14146 | ;; | |
14147 | esac | |
14148 | fi | |
14149 | ||
14150 | ||
14151 | ||
14152 | ||
14153 | ||
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
14155 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14156 | # Check whether --enable-maintainer-mode was given. | |
14157 | if test "${enable_maintainer_mode+set}" = set; then : | |
14158 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
14159 | else | |
14160 | USE_MAINTAINER_MODE=no | |
14161 | fi | |
14162 | ||
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14164 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
14165 | ||
14166 | ||
14167 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14168 | MAINTAINER_MODE_TRUE= | |
14169 | MAINTAINER_MODE_FALSE='#' | |
14170 | else | |
14171 | MAINTAINER_MODE_TRUE='#' | |
14172 | MAINTAINER_MODE_FALSE= | |
14173 | fi | |
14174 | MAINT=$MAINTAINER_MODE_TRUE | |
14175 | ||
14176 | # --------------------- | |
14177 | # GCC bootstrap support | |
14178 | # --------------------- | |
14179 | ||
14180 | # Stage specific cflags for build. | |
14181 | stage1_cflags="-g" | |
14182 | case $build in | |
14183 | vax-*-*) | |
14184 | case ${GCC} in | |
14185 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14186 | *) stage1_cflags="-g -J" ;; | |
14187 | esac ;; | |
14188 | esac | |
14189 | ||
14190 | ||
14191 | ||
14192 | # Enable --enable-checking in stage1 of the compiler. | |
14193 | # Check whether --enable-stage1-checking was given. | |
14194 | if test "${enable_stage1_checking+set}" = set; then : | |
14195 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
14196 | else | |
14197 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then | |
14198 | stage1_checking=--enable-checking=yes,types | |
14199 | else | |
14200 | stage1_checking=--enable-checking=$enable_checking,types | |
14201 | fi | |
14202 | fi | |
14203 | ||
14204 | ||
14205 | ||
14206 | # Enable -Werror in bootstrap stage2 and later. | |
14207 | # Check whether --enable-werror was given. | |
14208 | if test "${enable_werror+set}" = set; then : | |
14209 | enableval=$enable_werror; | |
14210 | else | |
14211 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then | |
14212 | enable_werror=yes | |
14213 | else | |
14214 | enable_werror=no | |
14215 | fi | |
14216 | fi | |
14217 | ||
14218 | case ${enable_werror} in | |
14219 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14220 | *) stage2_werror_flag="" ;; | |
14221 | esac | |
14222 | ||
14223 | ||
14224 | # Specify what files to not compare during bootstrap. | |
14225 | ||
14226 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14227 | case "$target" in | |
14228 | hppa*64*-*-hpux*) ;; | |
14229 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14230 | esac | |
14231 | ||
14232 | ||
14233 | ac_config_files="$ac_config_files Makefile" | |
14234 | ||
14235 | cat >confcache <<\_ACEOF | |
14236 | # This file is a shell script that caches the results of configure | |
14237 | # tests run on this system so they can be shared between configure | |
14238 | # scripts and configure runs, see configure's option --config-cache. | |
14239 | # It is not useful on other systems. If it contains results you don't | |
14240 | # want to keep, you may remove or edit it. | |
14241 | # | |
14242 | # config.status only pays attention to the cache file if you give it | |
14243 | # the --recheck option to rerun configure. | |
14244 | # | |
14245 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14246 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14247 | # following values. | |
14248 | ||
14249 | _ACEOF | |
14250 | ||
14251 | # The following way of writing the cache mishandles newlines in values, | |
14252 | # but we know of no workaround that is simple, portable, and efficient. | |
14253 | # So, we kill variables containing newlines. | |
14254 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14255 | # and sets the high bit in the cache file unless we assign to the vars. | |
14256 | ( | |
14257 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14258 | eval ac_val=\$$ac_var | |
14259 | case $ac_val in #( | |
14260 | *${as_nl}*) | |
14261 | case $ac_var in #( | |
14262 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14263 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14264 | esac | |
14265 | case $ac_var in #( | |
14266 | _ | IFS | as_nl) ;; #( | |
14267 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14268 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14269 | esac ;; | |
14270 | esac | |
14271 | done | |
14272 | ||
14273 | (set) 2>&1 | | |
14274 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
14275 | *${as_nl}ac_space=\ *) | |
14276 | # `set' does not quote correctly, so add quotes: double-quote | |
14277 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
14278 | sed -n \ | |
14279 | "s/'/'\\\\''/g; | |
14280 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14281 | ;; #( | |
14282 | *) | |
14283 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14284 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
14285 | ;; | |
14286 | esac | | |
14287 | sort | |
14288 | ) | | |
14289 | sed ' | |
14290 | /^ac_cv_env_/b end | |
14291 | t clear | |
14292 | :clear | |
14293 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14294 | t end | |
14295 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14296 | :end' >>confcache | |
14297 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14298 | if test -w "$cache_file"; then | |
14299 | test "x$cache_file" != "x/dev/null" && | |
14300 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14301 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
14302 | cat confcache >$cache_file | |
14303 | else | |
14304 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
14305 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
14306 | fi | |
14307 | fi | |
14308 | rm -f confcache | |
14309 | ||
14310 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14311 | # Let make expand exec_prefix. | |
14312 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14313 | ||
14314 | # Transform confdefs.h into DEFS. | |
14315 | # Protect against shell expansion while executing Makefile rules. | |
14316 | # Protect against Makefile macro expansion. | |
14317 | # | |
14318 | # If the first sed substitution is executed (which looks for macros that | |
14319 | # take arguments), then branch to the quote section. Otherwise, | |
14320 | # look for a macro that doesn't take arguments. | |
14321 | ac_script=' | |
14322 | :mline | |
14323 | /\\$/{ | |
14324 | N | |
14325 | s,\\\n,, | |
14326 | b mline | |
14327 | } | |
14328 | t clear | |
14329 | :clear | |
14330 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
14331 | t quote | |
14332 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
14333 | t quote | |
14334 | b any | |
14335 | :quote | |
14336 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14337 | s/\[/\\&/g | |
14338 | s/\]/\\&/g | |
14339 | s/\$/$$/g | |
14340 | H | |
14341 | :any | |
14342 | ${ | |
14343 | g | |
14344 | s/^\n// | |
14345 | s/\n/ /g | |
14346 | p | |
14347 | } | |
14348 | ' | |
14349 | DEFS=`sed -n "$ac_script" confdefs.h` | |
14350 | ||
14351 | ||
14352 | ac_libobjs= | |
14353 | ac_ltlibobjs= | |
14354 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14355 | # 1. Remove the extension, and $U if already installed. | |
14356 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
14357 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14358 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14359 | # will be set to the directory where LIBOBJS objects are built. | |
14360 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14361 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
14362 | done | |
14363 | LIBOBJS=$ac_libobjs | |
14364 | ||
14365 | LTLIBOBJS=$ac_ltlibobjs | |
14366 | ||
14367 | ||
14368 | ||
14369 | : ${CONFIG_STATUS=./config.status} | |
14370 | ac_write_fail=0 | |
14371 | ac_clean_files_save=$ac_clean_files | |
14372 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
14374 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14375 | as_write_fail=0 | |
14376 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
14377 | #! $SHELL | |
14378 | # Generated by $as_me. | |
14379 | # Run this file to recreate the current configuration. | |
14380 | # Compiler output produced by configure, useful for debugging | |
14381 | # configure, is in config.log if it exists. | |
14382 | ||
14383 | debug=false | |
14384 | ac_cs_recheck=false | |
14385 | ac_cs_silent=false | |
14386 | ||
14387 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14388 | export SHELL | |
14389 | _ASEOF | |
14390 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14391 | ## -------------------- ## | |
14392 | ## M4sh Initialization. ## | |
14393 | ## -------------------- ## | |
14394 | ||
14395 | # Be more Bourne compatible | |
14396 | DUALCASE=1; export DUALCASE # for MKS sh | |
14397 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
14398 | emulate sh | |
14399 | NULLCMD=: | |
14400 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
14401 | # is contrary to our usage. Disable this feature. | |
14402 | alias -g '${1+"$@"}'='"$@"' | |
14403 | setopt NO_GLOB_SUBST | |
14404 | else | |
14405 | case `(set -o) 2>/dev/null` in #( | |
14406 | *posix*) : | |
14407 | set -o posix ;; #( | |
14408 | *) : | |
14409 | ;; | |
14410 | esac | |
14411 | fi | |
14412 | ||
14413 | ||
14414 | as_nl=' | |
14415 | ' | |
14416 | export as_nl | |
14417 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14418 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14419 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14420 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14421 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14422 | # but without wasting forks for bash or zsh. | |
14423 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14424 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14425 | as_echo='print -r --' | |
14426 | as_echo_n='print -rn --' | |
14427 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14428 | as_echo='printf %s\n' | |
14429 | as_echo_n='printf %s' | |
14430 | else | |
14431 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14432 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14433 | as_echo_n='/usr/ucb/echo -n' | |
14434 | else | |
14435 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14436 | as_echo_n_body='eval | |
14437 | arg=$1; | |
14438 | case $arg in #( | |
14439 | *"$as_nl"*) | |
14440 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14441 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14442 | esac; | |
14443 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14444 | ' | |
14445 | export as_echo_n_body | |
14446 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14447 | fi | |
14448 | export as_echo_body | |
14449 | as_echo='sh -c $as_echo_body as_echo' | |
14450 | fi | |
14451 | ||
14452 | # The user is always right. | |
14453 | if test "${PATH_SEPARATOR+set}" != set; then | |
14454 | PATH_SEPARATOR=: | |
14455 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14456 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14457 | PATH_SEPARATOR=';' | |
14458 | } | |
14459 | fi | |
14460 | ||
14461 | ||
14462 | # IFS | |
14463 | # We need space, tab and new line, in precisely that order. Quoting is | |
14464 | # there to prevent editors from complaining about space-tab. | |
14465 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14466 | # splitting by setting IFS to empty value.) | |
14467 | IFS=" "" $as_nl" | |
14468 | ||
14469 | # Find who we are. Look in the path if we contain no directory separator. | |
14470 | case $0 in #(( | |
14471 | *[\\/]* ) as_myself=$0 ;; | |
14472 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14473 | for as_dir in $PATH | |
14474 | do | |
14475 | IFS=$as_save_IFS | |
14476 | test -z "$as_dir" && as_dir=. | |
14477 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14478 | done | |
14479 | IFS=$as_save_IFS | |
14480 | ||
14481 | ;; | |
14482 | esac | |
14483 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14484 | # in which case we are not to be found in the path. | |
14485 | if test "x$as_myself" = x; then | |
14486 | as_myself=$0 | |
14487 | fi | |
14488 | if test ! -f "$as_myself"; then | |
14489 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14490 | exit 1 | |
14491 | fi | |
14492 | ||
14493 | # Unset variables that we do not need and which cause bugs (e.g. in | |
14494 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14495 | # suppresses any "Segmentation fault" message there. '((' could | |
14496 | # trigger a bug in pdksh 5.2.14. | |
14497 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14498 | do eval test x\${$as_var+set} = xset \ | |
14499 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14500 | done | |
14501 | PS1='$ ' | |
14502 | PS2='> ' | |
14503 | PS4='+ ' | |
14504 | ||
14505 | # NLS nuisances. | |
14506 | LC_ALL=C | |
14507 | export LC_ALL | |
14508 | LANGUAGE=C | |
14509 | export LANGUAGE | |
14510 | ||
14511 | # CDPATH. | |
14512 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14513 | ||
14514 | ||
14515 | # as_fn_error ERROR [LINENO LOG_FD] | |
14516 | # --------------------------------- | |
14517 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14518 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14519 | # script with status $?, using 1 if that was 0. | |
14520 | as_fn_error () | |
14521 | { | |
14522 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14523 | if test "$3"; then | |
14524 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14525 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
14526 | fi | |
14527 | $as_echo "$as_me: error: $1" >&2 | |
14528 | as_fn_exit $as_status | |
14529 | } # as_fn_error | |
14530 | ||
14531 | ||
14532 | # as_fn_set_status STATUS | |
14533 | # ----------------------- | |
14534 | # Set $? to STATUS, without forking. | |
14535 | as_fn_set_status () | |
14536 | { | |
14537 | return $1 | |
14538 | } # as_fn_set_status | |
14539 | ||
14540 | # as_fn_exit STATUS | |
14541 | # ----------------- | |
14542 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14543 | as_fn_exit () | |
14544 | { | |
14545 | set +e | |
14546 | as_fn_set_status $1 | |
14547 | exit $1 | |
14548 | } # as_fn_exit | |
14549 | ||
14550 | # as_fn_unset VAR | |
14551 | # --------------- | |
14552 | # Portably unset VAR. | |
14553 | as_fn_unset () | |
14554 | { | |
14555 | { eval $1=; unset $1;} | |
14556 | } | |
14557 | as_unset=as_fn_unset | |
14558 | # as_fn_append VAR VALUE | |
14559 | # ---------------------- | |
14560 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14561 | # advantage of any shell optimizations that allow amortized linear growth over | |
14562 | # repeated appends, instead of the typical quadratic growth present in naive | |
14563 | # implementations. | |
14564 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14565 | eval 'as_fn_append () | |
14566 | { | |
14567 | eval $1+=\$2 | |
14568 | }' | |
14569 | else | |
14570 | as_fn_append () | |
14571 | { | |
14572 | eval $1=\$$1\$2 | |
14573 | } | |
14574 | fi # as_fn_append | |
14575 | ||
14576 | # as_fn_arith ARG... | |
14577 | # ------------------ | |
14578 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14579 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14580 | # must be portable across $(()) and expr. | |
14581 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14582 | eval 'as_fn_arith () | |
14583 | { | |
14584 | as_val=$(( $* )) | |
14585 | }' | |
14586 | else | |
14587 | as_fn_arith () | |
14588 | { | |
14589 | as_val=`expr "$@" || test $? -eq 1` | |
14590 | } | |
14591 | fi # as_fn_arith | |
14592 | ||
14593 | ||
14594 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
14595 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
14596 | as_expr=expr | |
14597 | else | |
14598 | as_expr=false | |
14599 | fi | |
14600 | ||
14601 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
14602 | as_basename=basename | |
14603 | else | |
14604 | as_basename=false | |
14605 | fi | |
14606 | ||
14607 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
14608 | as_dirname=dirname | |
14609 | else | |
14610 | as_dirname=false | |
14611 | fi | |
14612 | ||
14613 | as_me=`$as_basename -- "$0" || | |
14614 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14615 | X"$0" : 'X\(//\)$' \| \ | |
14616 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
14617 | $as_echo X/"$0" | | |
14618 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14619 | s//\1/ | |
14620 | q | |
14621 | } | |
14622 | /^X\/\(\/\/\)$/{ | |
14623 | s//\1/ | |
14624 | q | |
14625 | } | |
14626 | /^X\/\(\/\).*/{ | |
14627 | s//\1/ | |
14628 | q | |
14629 | } | |
14630 | s/.*/./; q'` | |
14631 | ||
14632 | # Avoid depending upon Character Ranges. | |
14633 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14634 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14635 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14636 | as_cr_digits='0123456789' | |
14637 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14638 | ||
14639 | ECHO_C= ECHO_N= ECHO_T= | |
14640 | case `echo -n x` in #((((( | |
14641 | -n*) | |
14642 | case `echo 'xy\c'` in | |
14643 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14644 | xy) ECHO_C='\c';; | |
14645 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14646 | ECHO_T=' ';; | |
14647 | esac;; | |
14648 | *) | |
14649 | ECHO_N='-n';; | |
14650 | esac | |
14651 | ||
14652 | rm -f conf$$ conf$$.exe conf$$.file | |
14653 | if test -d conf$$.dir; then | |
14654 | rm -f conf$$.dir/conf$$.file | |
14655 | else | |
14656 | rm -f conf$$.dir | |
14657 | mkdir conf$$.dir 2>/dev/null | |
14658 | fi | |
14659 | if (echo >conf$$.file) 2>/dev/null; then | |
14660 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14661 | as_ln_s='ln -s' | |
14662 | # ... but there are two gotchas: | |
14663 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14664 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14665 | # In both cases, we have to default to `cp -p'. | |
14666 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14667 | as_ln_s='cp -p' | |
14668 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14669 | as_ln_s=ln | |
14670 | else | |
14671 | as_ln_s='cp -p' | |
14672 | fi | |
14673 | else | |
14674 | as_ln_s='cp -p' | |
14675 | fi | |
14676 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
14677 | rmdir conf$$.dir 2>/dev/null | |
14678 | ||
14679 | ||
14680 | # as_fn_mkdir_p | |
14681 | # ------------- | |
14682 | # Create "$as_dir" as a directory, including parents if necessary. | |
14683 | as_fn_mkdir_p () | |
14684 | { | |
14685 | ||
14686 | case $as_dir in #( | |
14687 | -*) as_dir=./$as_dir;; | |
14688 | esac | |
14689 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14690 | as_dirs= | |
14691 | while :; do | |
14692 | case $as_dir in #( | |
14693 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14694 | *) as_qdir=$as_dir;; | |
14695 | esac | |
14696 | as_dirs="'$as_qdir' $as_dirs" | |
14697 | as_dir=`$as_dirname -- "$as_dir" || | |
14698 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14699 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14700 | X"$as_dir" : 'X\(//\)$' \| \ | |
14701 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14702 | $as_echo X"$as_dir" | | |
14703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14704 | s//\1/ | |
14705 | q | |
14706 | } | |
14707 | /^X\(\/\/\)[^/].*/{ | |
14708 | s//\1/ | |
14709 | q | |
14710 | } | |
14711 | /^X\(\/\/\)$/{ | |
14712 | s//\1/ | |
14713 | q | |
14714 | } | |
14715 | /^X\(\/\).*/{ | |
14716 | s//\1/ | |
14717 | q | |
14718 | } | |
14719 | s/.*/./; q'` | |
14720 | test -d "$as_dir" && break | |
14721 | done | |
14722 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14723 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14724 | ||
14725 | ||
14726 | } # as_fn_mkdir_p | |
14727 | if mkdir -p . 2>/dev/null; then | |
14728 | as_mkdir_p='mkdir -p "$as_dir"' | |
14729 | else | |
14730 | test -d ./-p && rmdir ./-p | |
14731 | as_mkdir_p=false | |
14732 | fi | |
14733 | ||
14734 | if test -x / >/dev/null 2>&1; then | |
14735 | as_test_x='test -x' | |
14736 | else | |
14737 | if ls -dL / >/dev/null 2>&1; then | |
14738 | as_ls_L_option=L | |
14739 | else | |
14740 | as_ls_L_option= | |
14741 | fi | |
14742 | as_test_x=' | |
14743 | eval sh -c '\'' | |
14744 | if test -d "$1"; then | |
14745 | test -d "$1/."; | |
14746 | else | |
14747 | case $1 in #( | |
14748 | -*)set "./$1";; | |
14749 | esac; | |
14750 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14751 | ???[sx]*):;;*)false;;esac;fi | |
14752 | '\'' sh | |
14753 | ' | |
14754 | fi | |
14755 | as_executable_p=$as_test_x | |
14756 | ||
14757 | # Sed expression to map a string onto a valid CPP name. | |
14758 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14759 | ||
14760 | # Sed expression to map a string onto a valid variable name. | |
14761 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14762 | ||
14763 | ||
14764 | exec 6>&1 | |
14765 | ## ----------------------------------- ## | |
14766 | ## Main body of $CONFIG_STATUS script. ## | |
14767 | ## ----------------------------------- ## | |
14768 | _ASEOF | |
14769 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14770 | ||
14771 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14772 | # Save the log message, to keep $0 and so on meaningful, and to | |
14773 | # report actual input values of CONFIG_FILES etc. instead of their | |
14774 | # values after options handling. | |
14775 | ac_log=" | |
14776 | This file was extended by $as_me, which was | |
14777 | generated by GNU Autoconf 2.64. Invocation command line was | |
14778 | ||
14779 | CONFIG_FILES = $CONFIG_FILES | |
14780 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14781 | CONFIG_LINKS = $CONFIG_LINKS | |
14782 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14783 | $ $0 $@ | |
14784 | ||
14785 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
14786 | " | |
14787 | ||
14788 | _ACEOF | |
14789 | ||
14790 | case $ac_config_files in *" | |
14791 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14792 | esac | |
14793 | ||
14794 | ||
14795 | ||
14796 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14797 | # Files that config.status was made for. | |
14798 | config_files="$ac_config_files" | |
14799 | ||
14800 | _ACEOF | |
14801 | ||
14802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14803 | ac_cs_usage="\ | |
14804 | \`$as_me' instantiates files and other configuration actions | |
14805 | from templates according to the current configuration. Unless the files | |
14806 | and actions are specified as TAGs, all are instantiated by default. | |
14807 | ||
14808 | Usage: $0 [OPTION]... [TAG]... | |
14809 | ||
14810 | -h, --help print this help, then exit | |
14811 | -V, --version print version number and configuration settings, then exit | |
14812 | -q, --quiet, --silent | |
14813 | do not print progress messages | |
14814 | -d, --debug don't remove temporary files | |
14815 | --recheck update $as_me by reconfiguring in the same conditions | |
14816 | --file=FILE[:TEMPLATE] | |
14817 | instantiate the configuration file FILE | |
14818 | ||
14819 | Configuration files: | |
14820 | $config_files | |
14821 | ||
14822 | Report bugs to the package provider." | |
14823 | ||
14824 | _ACEOF | |
14825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14826 | ac_cs_version="\\ | |
14827 | config.status | |
14828 | configured by $0, generated by GNU Autoconf 2.64, | |
14829 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
14830 | ||
14831 | Copyright (C) 2009 Free Software Foundation, Inc. | |
14832 | This config.status script is free software; the Free Software Foundation | |
14833 | gives unlimited permission to copy, distribute and modify it." | |
14834 | ||
14835 | ac_pwd='$ac_pwd' | |
14836 | srcdir='$srcdir' | |
14837 | INSTALL='$INSTALL' | |
14838 | AWK='$AWK' | |
14839 | test -n "\$AWK" || AWK=awk | |
14840 | _ACEOF | |
14841 | ||
14842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14843 | # The default lists apply if the user does not specify any file. | |
14844 | ac_need_defaults=: | |
14845 | while test $# != 0 | |
14846 | do | |
14847 | case $1 in | |
14848 | --*=*) | |
14849 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14850 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
14851 | ac_shift=: | |
14852 | ;; | |
14853 | *) | |
14854 | ac_option=$1 | |
14855 | ac_optarg=$2 | |
14856 | ac_shift=shift | |
14857 | ;; | |
14858 | esac | |
14859 | ||
14860 | case $ac_option in | |
14861 | # Handling of the options. | |
14862 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14863 | ac_cs_recheck=: ;; | |
14864 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
14865 | $as_echo "$ac_cs_version"; exit ;; | |
14866 | --debug | --debu | --deb | --de | --d | -d ) | |
14867 | debug=: ;; | |
14868 | --file | --fil | --fi | --f ) | |
14869 | $ac_shift | |
14870 | case $ac_optarg in | |
14871 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14872 | esac | |
14873 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
14874 | ac_need_defaults=false;; | |
14875 | --he | --h | --help | --hel | -h ) | |
14876 | $as_echo "$ac_cs_usage"; exit ;; | |
14877 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14878 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14879 | ac_cs_silent=: ;; | |
14880 | ||
14881 | # This is an error. | |
14882 | -*) as_fn_error "unrecognized option: \`$1' | |
14883 | Try \`$0 --help' for more information." ;; | |
14884 | ||
14885 | *) as_fn_append ac_config_targets " $1" | |
14886 | ac_need_defaults=false ;; | |
14887 | ||
14888 | esac | |
14889 | shift | |
14890 | done | |
14891 | ||
14892 | ac_configure_extra_args= | |
14893 | ||
14894 | if $ac_cs_silent; then | |
14895 | exec 6>/dev/null | |
14896 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14897 | fi | |
14898 | ||
14899 | _ACEOF | |
14900 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14901 | if \$ac_cs_recheck; then | |
14902 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
14903 | shift | |
14904 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14905 | CONFIG_SHELL='$SHELL' | |
14906 | export CONFIG_SHELL | |
14907 | exec "\$@" | |
14908 | fi | |
14909 | ||
14910 | _ACEOF | |
14911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14912 | exec 5>>config.log | |
14913 | { | |
14914 | echo | |
14915 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14916 | ## Running $as_me. ## | |
14917 | _ASBOX | |
14918 | $as_echo "$ac_log" | |
14919 | } >&5 | |
14920 | ||
14921 | _ACEOF | |
14922 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14923 | # | |
14924 | # INIT-COMMANDS | |
14925 | # | |
14926 | extrasub_build="$extrasub_build" | |
14927 | extrasub_host="$extrasub_host" | |
14928 | extrasub_target="$extrasub_target" | |
14929 | ||
14930 | _ACEOF | |
14931 | ||
14932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14933 | ||
14934 | # Handling of arguments. | |
14935 | for ac_config_target in $ac_config_targets | |
14936 | do | |
14937 | case $ac_config_target in | |
14938 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14939 | ||
14940 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
14941 | esac | |
14942 | done | |
14943 | ||
14944 | ||
14945 | # If the user did not use the arguments to specify the items to instantiate, | |
14946 | # then the envvar interface is used. Set only those that are not. | |
14947 | # We use the long form for the default assignment because of an extremely | |
14948 | # bizarre bug on SunOS 4.1.3. | |
14949 | if $ac_need_defaults; then | |
14950 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14951 | fi | |
14952 | ||
14953 | # Have a temporary directory for convenience. Make it in the build tree | |
14954 | # simply because there is no reason against having it here, and in addition, | |
14955 | # creating and moving files from /tmp can sometimes cause problems. | |
14956 | # Hook for its removal unless debugging. | |
14957 | # Note that there is a small window in which the directory will not be cleaned: | |
14958 | # after its creation but before its name has been assigned to `$tmp'. | |
14959 | $debug || | |
14960 | { | |
14961 | tmp= | |
14962 | trap 'exit_status=$? | |
14963 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14964 | ' 0 | |
14965 | trap 'as_fn_exit 1' 1 2 13 15 | |
14966 | } | |
14967 | # Create a (secure) tmp directory for tmp files. | |
14968 | ||
14969 | { | |
14970 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
14971 | test -n "$tmp" && test -d "$tmp" | |
14972 | } || | |
14973 | { | |
14974 | tmp=./conf$$-$RANDOM | |
14975 | (umask 077 && mkdir "$tmp") | |
14976 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14977 | ||
14978 | # Set up the scripts for CONFIG_FILES section. | |
14979 | # No need to generate them if there are no CONFIG_FILES. | |
14980 | # This happens for instance with `./config.status config.h'. | |
14981 | if test -n "$CONFIG_FILES"; then | |
14982 | ||
14983 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14984 | ac_cs_awk_getline=: | |
14985 | ac_cs_awk_pipe_init= | |
14986 | ac_cs_awk_read_file=' | |
14987 | while ((getline aline < (F[key])) > 0) | |
14988 | print(aline) | |
14989 | close(F[key])' | |
14990 | ac_cs_awk_pipe_fini= | |
14991 | else | |
14992 | ac_cs_awk_getline=false | |
14993 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14994 | ac_cs_awk_read_file=' | |
14995 | print "|#_!!_#|" | |
14996 | print "cat " F[key] " &&" | |
14997 | '$ac_cs_awk_pipe_init | |
14998 | # The final `:' finishes the AND list. | |
14999 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15000 | fi | |
15001 | ac_cr=`echo X | tr X '\015'` | |
15002 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15003 | # But we know of no other shell where ac_cr would be empty at this | |
15004 | # point, so we can use a bashism as a fallback. | |
15005 | if test "x$ac_cr" = x; then | |
15006 | eval ac_cr=\$\'\\r\' | |
15007 | fi | |
15008 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15009 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15010 | ac_cs_awk_cr='\r' | |
15011 | else | |
15012 | ac_cs_awk_cr=$ac_cr | |
15013 | fi | |
15014 | ||
15015 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15016 | _ACEOF | |
15017 | ||
15018 | # Create commands to substitute file output variables. | |
15019 | { | |
15020 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
15021 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15022 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15023 | echo "_ACAWK" && | |
15024 | echo "_ACEOF" | |
15025 | } >conf$$files.sh && | |
15026 | . ./conf$$files.sh || | |
15027 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15028 | rm -f conf$$files.sh | |
15029 | ||
15030 | { | |
15031 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15032 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15033 | echo "_ACEOF" | |
15034 | } >conf$$subs.sh || | |
15035 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15036 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15037 | ac_delim='%!_!# ' | |
15038 | for ac_last_try in false false false false false :; do | |
15039 | . ./conf$$subs.sh || | |
15040 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15041 | ||
15042 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15043 | if test $ac_delim_n = $ac_delim_num; then | |
15044 | break | |
15045 | elif $ac_last_try; then | |
15046 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15047 | else | |
15048 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15049 | fi | |
15050 | done | |
15051 | rm -f conf$$subs.sh | |
15052 | ||
15053 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15054 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
15055 | _ACEOF | |
15056 | sed -n ' | |
15057 | h | |
15058 | s/^/S["/; s/!.*/"]=/ | |
15059 | p | |
15060 | g | |
15061 | s/^[^!]*!// | |
15062 | :repl | |
15063 | t repl | |
15064 | s/'"$ac_delim"'$// | |
15065 | t delim | |
15066 | :nl | |
15067 | h | |
15068 | s/\(.\{148\}\).*/\1/ | |
15069 | t more1 | |
15070 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15071 | p | |
15072 | n | |
15073 | b repl | |
15074 | :more1 | |
15075 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15076 | p | |
15077 | g | |
15078 | s/.\{148\}// | |
15079 | t nl | |
15080 | :delim | |
15081 | h | |
15082 | s/\(.\{148\}\).*/\1/ | |
15083 | t more2 | |
15084 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15085 | p | |
15086 | b | |
15087 | :more2 | |
15088 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15089 | p | |
15090 | g | |
15091 | s/.\{148\}// | |
15092 | t delim | |
15093 | ' <conf$$subs.awk | sed ' | |
15094 | /^[^""]/{ | |
15095 | N | |
15096 | s/\n// | |
15097 | } | |
15098 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15099 | rm -f conf$$subs.awk | |
15100 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15101 | _ACAWK | |
15102 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15103 | for (key in S) S_is_set[key] = 1 | |
15104 | FS = "\a" | |
15105 | \$ac_cs_awk_pipe_init | |
15106 | } | |
15107 | { | |
15108 | line = $ 0 | |
15109 | nfields = split(line, field, "@") | |
15110 | substed = 0 | |
15111 | len = length(field[1]) | |
15112 | for (i = 2; i < nfields; i++) { | |
15113 | key = field[i] | |
15114 | keylen = length(key) | |
15115 | if (S_is_set[key]) { | |
15116 | value = S[key] | |
15117 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15118 | len += length(value) + length(field[++i]) | |
15119 | substed = 1 | |
15120 | } else | |
15121 | len += 1 + keylen | |
15122 | } | |
15123 | if (nfields == 3 && !substed) { | |
15124 | key = field[2] | |
15125 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15126 | \$ac_cs_awk_read_file | |
15127 | next | |
15128 | } | |
15129 | } | |
15130 | print line | |
15131 | } | |
15132 | \$ac_cs_awk_pipe_fini | |
15133 | _ACAWK | |
15134 | _ACEOF | |
15135 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15136 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15137 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15138 | else | |
15139 | cat | |
15140 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15141 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15142 | _ACEOF | |
15143 | ||
15144 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15145 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15146 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15147 | # (actually we leave an empty line to preserve line numbers). | |
15148 | if test "x$srcdir" = x.; then | |
15149 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15150 | s/:*\$(srcdir):*/:/ | |
15151 | s/:*\${srcdir}:*/:/ | |
15152 | s/:*@srcdir@:*/:/ | |
15153 | s/^\([^=]*=[ ]*\):*/\1/ | |
15154 | s/:*$// | |
15155 | s/^[^=]*=[ ]*$// | |
15156 | }' | |
15157 | fi | |
15158 | ||
15159 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15160 | fi # test -n "$CONFIG_FILES" | |
15161 | ||
15162 | ||
15163 | eval set X " :F $CONFIG_FILES " | |
15164 | shift | |
15165 | for ac_tag | |
15166 | do | |
15167 | case $ac_tag in | |
15168 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15169 | esac | |
15170 | case $ac_mode$ac_tag in | |
15171 | :[FHL]*:*);; | |
15172 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15173 | :[FH]-) ac_tag=-:-;; | |
15174 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15175 | esac | |
15176 | ac_save_IFS=$IFS | |
15177 | IFS=: | |
15178 | set x $ac_tag | |
15179 | IFS=$ac_save_IFS | |
15180 | shift | |
15181 | ac_file=$1 | |
15182 | shift | |
15183 | ||
15184 | case $ac_mode in | |
15185 | :L) ac_source=$1;; | |
15186 | :[FH]) | |
15187 | ac_file_inputs= | |
15188 | for ac_f | |
15189 | do | |
15190 | case $ac_f in | |
15191 | -) ac_f="$tmp/stdin";; | |
15192 | *) # Look for the file first in the build tree, then in the source tree | |
15193 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15194 | # because $ac_f cannot contain `:'. | |
15195 | test -f "$ac_f" || | |
15196 | case $ac_f in | |
15197 | [\\/$]*) false;; | |
15198 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15199 | esac || | |
15200 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15201 | esac | |
15202 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15203 | as_fn_append ac_file_inputs " '$ac_f'" | |
15204 | done | |
15205 | ||
15206 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15207 | # use $as_me), people would be surprised to read: | |
15208 | # /* config.h. Generated by config.status. */ | |
15209 | configure_input='Generated from '` | |
15210 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15211 | `' by configure.' | |
15212 | if test x"$ac_file" != x-; then | |
15213 | configure_input="$ac_file. $configure_input" | |
15214 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15215 | $as_echo "$as_me: creating $ac_file" >&6;} | |
15216 | fi | |
15217 | # Neutralize special characters interpreted by sed in replacement strings. | |
15218 | case $configure_input in #( | |
15219 | *\&* | *\|* | *\\* ) | |
15220 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15221 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15222 | *) ac_sed_conf_input=$configure_input;; | |
15223 | esac | |
15224 | ||
15225 | case $ac_tag in | |
15226 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15227 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15228 | esac | |
15229 | ;; | |
15230 | esac | |
15231 | ||
15232 | ac_dir=`$as_dirname -- "$ac_file" || | |
15233 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15234 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15235 | X"$ac_file" : 'X\(//\)$' \| \ | |
15236 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
15237 | $as_echo X"$ac_file" | | |
15238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15239 | s//\1/ | |
15240 | q | |
15241 | } | |
15242 | /^X\(\/\/\)[^/].*/{ | |
15243 | s//\1/ | |
15244 | q | |
15245 | } | |
15246 | /^X\(\/\/\)$/{ | |
15247 | s//\1/ | |
15248 | q | |
15249 | } | |
15250 | /^X\(\/\).*/{ | |
15251 | s//\1/ | |
15252 | q | |
15253 | } | |
15254 | s/.*/./; q'` | |
15255 | as_dir="$ac_dir"; as_fn_mkdir_p | |
15256 | ac_builddir=. | |
15257 | ||
15258 | case "$ac_dir" in | |
15259 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15260 | *) | |
15261 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15262 | # A ".." for each directory in $ac_dir_suffix. | |
15263 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15264 | case $ac_top_builddir_sub in | |
15265 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15266 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15267 | esac ;; | |
15268 | esac | |
15269 | ac_abs_top_builddir=$ac_pwd | |
15270 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15271 | # for backward compatibility: | |
15272 | ac_top_builddir=$ac_top_build_prefix | |
15273 | ||
15274 | case $srcdir in | |
15275 | .) # We are building in place. | |
15276 | ac_srcdir=. | |
15277 | ac_top_srcdir=$ac_top_builddir_sub | |
15278 | ac_abs_top_srcdir=$ac_pwd ;; | |
15279 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15280 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15281 | ac_top_srcdir=$srcdir | |
15282 | ac_abs_top_srcdir=$srcdir ;; | |
15283 | *) # Relative name. | |
15284 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15285 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15286 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15287 | esac | |
15288 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15289 | ||
15290 | ||
15291 | case $ac_mode in | |
15292 | :F) | |
15293 | # | |
15294 | # CONFIG_FILE | |
15295 | # | |
15296 | ||
15297 | case $INSTALL in | |
15298 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15299 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
15300 | esac | |
15301 | _ACEOF | |
15302 | ||
15303 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15304 | # If the template does not know about datarootdir, expand it. | |
15305 | # FIXME: This hack should be removed a few years after 2.60. | |
15306 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15307 | ac_sed_dataroot=' | |
15308 | /datarootdir/ { | |
15309 | p | |
15310 | q | |
15311 | } | |
15312 | /@datadir@/p | |
15313 | /@docdir@/p | |
15314 | /@infodir@/p | |
15315 | /@localedir@/p | |
15316 | /@mandir@/p' | |
15317 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15318 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15319 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15321 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15322 | _ACEOF | |
15323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15324 | ac_datarootdir_hack=' | |
15325 | s&@datadir@&$datadir&g | |
15326 | s&@docdir@&$docdir&g | |
15327 | s&@infodir@&$infodir&g | |
15328 | s&@localedir@&$localedir&g | |
15329 | s&@mandir@&$mandir&g | |
15330 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15331 | esac | |
15332 | _ACEOF | |
15333 | ||
15334 | # Neutralize VPATH when `$srcdir' = `.'. | |
15335 | # Shell code in configure.ac might set extrasub. | |
15336 | # FIXME: do we really want to maintain this feature? | |
15337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15338 | ac_sed_extra="$ac_vpsub | |
15339 | $extrasub | |
15340 | _ACEOF | |
15341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15342 | :t | |
15343 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15344 | s|@configure_input@|$ac_sed_conf_input|;t t | |
15345 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15346 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15347 | s&@srcdir@&$ac_srcdir&;t t | |
15348 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15349 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15350 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15351 | s&@builddir@&$ac_builddir&;t t | |
15352 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15353 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15354 | s&@INSTALL@&$ac_INSTALL&;t t | |
15355 | $ac_datarootdir_hack | |
15356 | " | |
15357 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15358 | if $ac_cs_awk_getline; then | |
15359 | $AWK -f "$tmp/subs.awk" | |
15360 | else | |
15361 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15362 | fi >$tmp/out \ | |
15363 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15364 | ||
15365 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15366 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15367 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15369 | which seems to be undefined. Please make sure it is defined." >&5 | |
15370 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15371 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15372 | ||
15373 | rm -f "$tmp/stdin" | |
15374 | case $ac_file in | |
15375 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15376 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15377 | esac \ | |
15378 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15379 | ;; | |
15380 | ||
15381 | ||
15382 | ||
15383 | esac | |
15384 | ||
15385 | ||
15386 | case $ac_file$ac_mode in | |
15387 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15388 | sed "$extrasub_host" | | |
15389 | sed "$extrasub_target" > mf$$ | |
15390 | mv -f mf$$ Makefile ;; | |
15391 | ||
15392 | esac | |
15393 | done # for ac_tag | |
15394 | ||
15395 | ||
15396 | as_fn_exit 0 | |
15397 | _ACEOF | |
15398 | ac_clean_files=$ac_clean_files_save | |
15399 | ||
15400 | test $ac_write_fail = 0 || | |
15401 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15402 | ||
15403 | ||
15404 | # configure is writing to config.log, and then calls config.status. | |
15405 | # config.status does its own redirection, appending to config.log. | |
15406 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15407 | # by configure, so config.status won't be able to write to it; its | |
15408 | # output is simply discarded. So we exec the FD to /dev/null, | |
15409 | # effectively closing config.log, so it can be properly (re)opened and | |
15410 | # appended to by config.status. When coming back to configure, we | |
15411 | # need to make the FD available again. | |
15412 | if test "$no_create" != yes; then | |
15413 | ac_cs_success=: | |
15414 | ac_config_status_args= | |
15415 | test "$silent" = yes && | |
15416 | ac_config_status_args="$ac_config_status_args --quiet" | |
15417 | exec 5>/dev/null | |
15418 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15419 | exec 5>>config.log | |
15420 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15421 | # would make configure fail if this is the last instruction. | |
15422 | $ac_cs_success || as_fn_exit $? | |
15423 | fi | |
15424 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15426 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
15427 | fi | |
15428 |