]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
11a67599 | 3 | # Generated by GNU Autoconf 2.61. |
671aa708 | 4 | # |
11a67599 ZW |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
671aa708 NN |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
1c710c3c DJ |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
11a67599 ZW |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
1c710c3c DJ |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
11a67599 ZW |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
1c710c3c | 51 | fi |
1c710c3c DJ |
52 | |
53 | # Support unset when possible. | |
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
55 | as_unset=unset | |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
11a67599 ZW |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
1c710c3c | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
11a67599 ZW |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
1c710c3c DJ |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
103 | for as_var in \ | |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
109 | eval $as_var=C; export $as_var | |
110 | else | |
11a67599 | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
1c710c3c DJ |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
11a67599 ZW |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
11a67599 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
11a67599 | 131 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
11a67599 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1c710c3c | 135 | echo X/"$0" | |
11a67599 ZW |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
1c710c3c | 149 | |
11a67599 ZW |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
1c710c3c | 152 | |
1c710c3c | 153 | |
11a67599 ZW |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
1c710c3c DJ |
159 | fi |
160 | ||
11a67599 ZW |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
1c710c3c | 177 | |
11a67599 ZW |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
1c710c3c | 185 | |
11a67599 ZW |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
1c710c3c DJ |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
11a67599 | 226 | case $as_dir in |
1c710c3c | 227 | /*) |
11a67599 ZW |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
248 | case `(set -o) 2>/dev/null` in | |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
252 | fi | |
253 | ||
254 | ||
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
1c710c3c DJ |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
1c710c3c | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
11a67599 ZW |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
1c710c3c DJ |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11a67599 ZW |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
1c710c3c | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
11a67599 ZW |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
1c710c3c | 442 | sed ' |
11a67599 ZW |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
1c710c3c | 447 | N |
11a67599 ZW |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 450 | t loop |
11a67599 | 451 | s/-\n.*// |
1c710c3c | 452 | ' >$as_me.lineno && |
11a67599 | 453 | chmod +x "$as_me.lineno" || |
1c710c3c DJ |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
11a67599 ZW |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
1c710c3c DJ |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
464 | ||
465 | ||
11a67599 ZW |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
1c710c3c DJ |
481 | esac |
482 | ||
11a67599 ZW |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
11a67599 ZW |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
1c710c3c DJ |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11a67599 ZW |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
1c710c3c | 505 | as_ln_s='cp -p' |
1c710c3c DJ |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
11a67599 ZW |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
517 | test -d ./-p && rmdir ./-p | |
518 | as_mkdir_p=false | |
519 | fi | |
520 | ||
11a67599 ZW |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
523 | else | |
524 | if ls -dL / >/dev/null 2>&1; then | |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
541 | fi | |
542 | as_executable_p=$as_test_x | |
0b0dc272 | 543 | |
1c710c3c DJ |
544 | # Sed expression to map a string onto a valid CPP name. |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
546 | ||
547 | # Sed expression to map a string onto a valid variable name. | |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
549 | ||
550 | ||
1c710c3c | 551 | |
11a67599 | 552 | exec 7<&0 </dev/null 6>&1 |
1c710c3c DJ |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
1c710c3c DJ |
559 | # |
560 | # Initializations. | |
561 | # | |
671aa708 | 562 | ac_default_prefix=/usr/local |
11a67599 | 563 | ac_clean_files= |
1c710c3c | 564 | ac_config_libobj_dir=. |
11a67599 | 565 | LIBOBJS= |
1c710c3c DJ |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
1c710c3c DJ |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="move-if-change" | |
11a67599 ZW |
580 | ac_subst_vars='SHELL |
581 | PATH_SEPARATOR | |
582 | PACKAGE_NAME | |
583 | PACKAGE_TARNAME | |
584 | PACKAGE_VERSION | |
585 | PACKAGE_STRING | |
586 | PACKAGE_BUGREPORT | |
587 | exec_prefix | |
588 | prefix | |
589 | program_transform_name | |
590 | bindir | |
591 | sbindir | |
592 | libexecdir | |
593 | datarootdir | |
594 | datadir | |
595 | sysconfdir | |
596 | sharedstatedir | |
597 | localstatedir | |
598 | includedir | |
599 | oldincludedir | |
600 | docdir | |
601 | infodir | |
602 | htmldir | |
603 | dvidir | |
604 | pdfdir | |
605 | psdir | |
606 | libdir | |
607 | localedir | |
608 | mandir | |
609 | DEFS | |
610 | ECHO_C | |
611 | ECHO_N | |
612 | ECHO_T | |
613 | LIBS | |
614 | build_alias | |
615 | host_alias | |
616 | target_alias | |
617 | build | |
618 | build_cpu | |
619 | build_vendor | |
620 | build_os | |
621 | build_noncanonical | |
622 | host_noncanonical | |
623 | target_noncanonical | |
624 | host | |
625 | host_cpu | |
626 | host_vendor | |
627 | host_os | |
628 | target | |
629 | target_cpu | |
630 | target_vendor | |
631 | target_os | |
632 | INSTALL_PROGRAM | |
633 | INSTALL_SCRIPT | |
634 | INSTALL_DATA | |
635 | LN | |
636 | LN_S | |
637 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
638 | build_libsubdir | |
639 | build_subdir | |
640 | host_subdir | |
641 | target_subdir | |
642 | CC | |
643 | CFLAGS | |
644 | LDFLAGS | |
645 | CPPFLAGS | |
646 | ac_ct_CC | |
647 | EXEEXT | |
648 | OBJEXT | |
649 | CXX | |
650 | CXXFLAGS | |
651 | ac_ct_CXX | |
652 | GNATBIND | |
653 | GNATMAKE | |
654 | do_compare | |
655 | gmplibs | |
656 | gmpinc | |
657 | stage1_languages | |
658 | SYSROOT_CFLAGS_FOR_TARGET | |
659 | RPATH_ENVVAR | |
660 | tooldir | |
661 | build_tooldir | |
662 | CONFIGURE_GDB_TK | |
663 | GDB_TK | |
664 | INSTALL_GDB_TK | |
665 | build_configargs | |
666 | build_configdirs | |
667 | host_configargs | |
668 | configdirs | |
669 | target_configargs | |
670 | CC_FOR_BUILD | |
671 | config_shell | |
672 | YACC | |
673 | BISON | |
674 | M4 | |
675 | LEX | |
676 | FLEX | |
677 | MAKEINFO | |
678 | EXPECT | |
679 | RUNTEST | |
680 | AR | |
681 | AS | |
682 | DLLTOOL | |
683 | LD | |
684 | LIPO | |
685 | NM | |
686 | RANLIB | |
687 | STRIP | |
688 | WINDRES | |
689 | OBJCOPY | |
690 | OBJDUMP | |
691 | CFLAGS_FOR_BUILD | |
692 | CC_FOR_TARGET | |
693 | CXX_FOR_TARGET | |
694 | GCC_FOR_TARGET | |
695 | GCJ_FOR_TARGET | |
696 | GFORTRAN_FOR_TARGET | |
697 | AR_FOR_TARGET | |
698 | AS_FOR_TARGET | |
699 | DLLTOOL_FOR_TARGET | |
700 | LD_FOR_TARGET | |
701 | LIPO_FOR_TARGET | |
702 | NM_FOR_TARGET | |
703 | OBJDUMP_FOR_TARGET | |
704 | RANLIB_FOR_TARGET | |
705 | STRIP_FOR_TARGET | |
706 | WINDRES_FOR_TARGET | |
707 | RAW_CXX_FOR_TARGET | |
708 | FLAGS_FOR_TARGET | |
709 | COMPILER_AS_FOR_TARGET | |
710 | COMPILER_LD_FOR_TARGET | |
711 | COMPILER_NM_FOR_TARGET | |
712 | MAINTAINER_MODE_TRUE | |
713 | MAINTAINER_MODE_FALSE | |
714 | MAINT | |
715 | stage1_cflags | |
716 | stage1_checking | |
717 | stage2_werror_flag | |
718 | LIBOBJS | |
719 | LTLIBOBJS' | |
720 | ac_subst_files='serialization_dependencies | |
721 | host_makefile_frag | |
722 | target_makefile_frag | |
723 | alphaieee_frag | |
724 | ospace_frag' | |
725 | ac_precious_vars='build_alias | |
726 | host_alias | |
727 | target_alias | |
728 | CC | |
729 | CFLAGS | |
730 | LDFLAGS | |
731 | LIBS | |
732 | CPPFLAGS | |
733 | CXX | |
734 | CXXFLAGS | |
735 | CCC | |
736 | AR | |
737 | AS | |
738 | DLLTOOL | |
739 | LD | |
740 | LIPO | |
741 | NM | |
742 | RANLIB | |
743 | STRIP | |
744 | WINDRES | |
745 | OBJCOPY | |
746 | OBJDUMP | |
747 | CC_FOR_TARGET | |
748 | CXX_FOR_TARGET | |
749 | GCC_FOR_TARGET | |
750 | GCJ_FOR_TARGET | |
751 | GFORTRAN_FOR_TARGET | |
752 | AR_FOR_TARGET | |
753 | AS_FOR_TARGET | |
754 | DLLTOOL_FOR_TARGET | |
755 | LD_FOR_TARGET | |
756 | LIPO_FOR_TARGET | |
757 | NM_FOR_TARGET | |
758 | OBJDUMP_FOR_TARGET | |
759 | RANLIB_FOR_TARGET | |
760 | STRIP_FOR_TARGET | |
761 | WINDRES_FOR_TARGET' | |
762 | ||
671aa708 NN |
763 | |
764 | # Initialize some variables set by options. | |
1c710c3c DJ |
765 | ac_init_help= |
766 | ac_init_version=false | |
671aa708 NN |
767 | # The variables have the same names as the options, with |
768 | # dashes changed to underlines. | |
1c710c3c | 769 | cache_file=/dev/null |
671aa708 | 770 | exec_prefix=NONE |
671aa708 | 771 | no_create= |
671aa708 NN |
772 | no_recursion= |
773 | prefix=NONE | |
774 | program_prefix=NONE | |
775 | program_suffix=NONE | |
776 | program_transform_name=s,x,x, | |
777 | silent= | |
778 | site= | |
779 | srcdir= | |
671aa708 NN |
780 | verbose= |
781 | x_includes=NONE | |
782 | x_libraries=NONE | |
1c710c3c DJ |
783 | |
784 | # Installation directory options. | |
785 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
786 | # and all the variables that are supposed to be based on exec_prefix | |
787 | # by default will actually change. | |
788 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
11a67599 | 789 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
790 | bindir='${exec_prefix}/bin' |
791 | sbindir='${exec_prefix}/sbin' | |
792 | libexecdir='${exec_prefix}/libexec' | |
11a67599 ZW |
793 | datarootdir='${prefix}/share' |
794 | datadir='${datarootdir}' | |
671aa708 NN |
795 | sysconfdir='${prefix}/etc' |
796 | sharedstatedir='${prefix}/com' | |
797 | localstatedir='${prefix}/var' | |
671aa708 NN |
798 | includedir='${prefix}/include' |
799 | oldincludedir='/usr/include' | |
11a67599 ZW |
800 | docdir='${datarootdir}/doc/${PACKAGE}' |
801 | infodir='${datarootdir}/info' | |
802 | htmldir='${docdir}' | |
803 | dvidir='${docdir}' | |
804 | pdfdir='${docdir}' | |
805 | psdir='${docdir}' | |
806 | libdir='${exec_prefix}/lib' | |
807 | localedir='${datarootdir}/locale' | |
808 | mandir='${datarootdir}/man' | |
79c06341 | 809 | |
671aa708 | 810 | ac_prev= |
11a67599 | 811 | ac_dashdash= |
671aa708 NN |
812 | for ac_option |
813 | do | |
671aa708 NN |
814 | # If the previous option needs an argument, assign it. |
815 | if test -n "$ac_prev"; then | |
11a67599 | 816 | eval $ac_prev=\$ac_option |
671aa708 NN |
817 | ac_prev= |
818 | continue | |
819 | fi | |
79c06341 | 820 | |
11a67599 ZW |
821 | case $ac_option in |
822 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
823 | *) ac_optarg=yes ;; | |
824 | esac | |
671aa708 NN |
825 | |
826 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
827 | ||
11a67599 ZW |
828 | case $ac_dashdash$ac_option in |
829 | --) | |
830 | ac_dashdash=yes ;; | |
671aa708 NN |
831 | |
832 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
833 | ac_prev=bindir ;; | |
834 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 835 | bindir=$ac_optarg ;; |
671aa708 NN |
836 | |
837 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 838 | ac_prev=build_alias ;; |
671aa708 | 839 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 840 | build_alias=$ac_optarg ;; |
671aa708 NN |
841 | |
842 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
843 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
844 | ac_prev=cache_file ;; | |
845 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
846 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
847 | cache_file=$ac_optarg ;; |
848 | ||
849 | --config-cache | -C) | |
850 | cache_file=config.cache ;; | |
671aa708 | 851 | |
11a67599 | 852 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 853 | ac_prev=datadir ;; |
11a67599 | 854 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 855 | datadir=$ac_optarg ;; |
671aa708 | 856 | |
11a67599 ZW |
857 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
858 | | --dataroo | --dataro | --datar) | |
859 | ac_prev=datarootdir ;; | |
860 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
861 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
862 | datarootdir=$ac_optarg ;; | |
863 | ||
671aa708 | 864 | -disable-* | --disable-*) |
1c710c3c | 865 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 866 | # Reject names that are not valid shell variable names. |
11a67599 | 867 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
868 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
869 | { (exit 1); exit 1; }; } | |
11a67599 ZW |
870 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
871 | eval enable_$ac_feature=no ;; | |
872 | ||
873 | -docdir | --docdir | --docdi | --doc | --do) | |
874 | ac_prev=docdir ;; | |
875 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
876 | docdir=$ac_optarg ;; | |
877 | ||
878 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
879 | ac_prev=dvidir ;; | |
880 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
881 | dvidir=$ac_optarg ;; | |
671aa708 NN |
882 | |
883 | -enable-* | --enable-*) | |
1c710c3c | 884 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 885 | # Reject names that are not valid shell variable names. |
11a67599 | 886 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
887 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
888 | { (exit 1); exit 1; }; } | |
11a67599 ZW |
889 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
890 | eval enable_$ac_feature=\$ac_optarg ;; | |
671aa708 NN |
891 | |
892 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
893 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
894 | | --exec | --exe | --ex) | |
895 | ac_prev=exec_prefix ;; | |
896 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
897 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
898 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 899 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
900 | |
901 | -gas | --gas | --ga | --g) | |
902 | # Obsolete; use --with-gas. | |
903 | with_gas=yes ;; | |
904 | ||
1c710c3c DJ |
905 | -help | --help | --hel | --he | -h) |
906 | ac_init_help=long ;; | |
907 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
908 | ac_init_help=recursive ;; | |
909 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
910 | ac_init_help=short ;; | |
671aa708 NN |
911 | |
912 | -host | --host | --hos | --ho) | |
1c710c3c | 913 | ac_prev=host_alias ;; |
671aa708 | 914 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 915 | host_alias=$ac_optarg ;; |
671aa708 | 916 | |
11a67599 ZW |
917 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
918 | ac_prev=htmldir ;; | |
919 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
920 | | --ht=*) | |
921 | htmldir=$ac_optarg ;; | |
922 | ||
671aa708 NN |
923 | -includedir | --includedir | --includedi | --included | --include \ |
924 | | --includ | --inclu | --incl | --inc) | |
925 | ac_prev=includedir ;; | |
926 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
927 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 928 | includedir=$ac_optarg ;; |
671aa708 NN |
929 | |
930 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
931 | ac_prev=infodir ;; | |
932 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 933 | infodir=$ac_optarg ;; |
671aa708 NN |
934 | |
935 | -libdir | --libdir | --libdi | --libd) | |
936 | ac_prev=libdir ;; | |
937 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 938 | libdir=$ac_optarg ;; |
671aa708 NN |
939 | |
940 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
941 | | --libexe | --libex | --libe) | |
942 | ac_prev=libexecdir ;; | |
943 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
944 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 945 | libexecdir=$ac_optarg ;; |
671aa708 | 946 | |
11a67599 ZW |
947 | -localedir | --localedir | --localedi | --localed | --locale) |
948 | ac_prev=localedir ;; | |
949 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
950 | localedir=$ac_optarg ;; | |
951 | ||
671aa708 | 952 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
11a67599 | 953 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
954 | ac_prev=localstatedir ;; |
955 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
11a67599 | 956 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 957 | localstatedir=$ac_optarg ;; |
671aa708 NN |
958 | |
959 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
960 | ac_prev=mandir ;; | |
961 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 962 | mandir=$ac_optarg ;; |
671aa708 NN |
963 | |
964 | -nfp | --nfp | --nf) | |
965 | # Obsolete; use --without-fp. | |
966 | with_fp=no ;; | |
967 | ||
968 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 969 | | --no-cr | --no-c | -n) |
671aa708 NN |
970 | no_create=yes ;; |
971 | ||
972 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
973 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
974 | no_recursion=yes ;; | |
975 | ||
976 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
977 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
978 | | --oldin | --oldi | --old | --ol | --o) | |
979 | ac_prev=oldincludedir ;; | |
980 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
981 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
982 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 983 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
984 | |
985 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
986 | ac_prev=prefix ;; | |
987 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 988 | prefix=$ac_optarg ;; |
671aa708 NN |
989 | |
990 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
991 | | --program-pre | --program-pr | --program-p) | |
992 | ac_prev=program_prefix ;; | |
993 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
994 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 995 | program_prefix=$ac_optarg ;; |
671aa708 NN |
996 | |
997 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
998 | | --program-suf | --program-su | --program-s) | |
999 | ac_prev=program_suffix ;; | |
1000 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1001 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1002 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1003 | |
1004 | -program-transform-name | --program-transform-name \ | |
1005 | | --program-transform-nam | --program-transform-na \ | |
1006 | | --program-transform-n | --program-transform- \ | |
1007 | | --program-transform | --program-transfor \ | |
1008 | | --program-transfo | --program-transf \ | |
1009 | | --program-trans | --program-tran \ | |
1010 | | --progr-tra | --program-tr | --program-t) | |
1011 | ac_prev=program_transform_name ;; | |
1012 | -program-transform-name=* | --program-transform-name=* \ | |
1013 | | --program-transform-nam=* | --program-transform-na=* \ | |
1014 | | --program-transform-n=* | --program-transform-=* \ | |
1015 | | --program-transform=* | --program-transfor=* \ | |
1016 | | --program-transfo=* | --program-transf=* \ | |
1017 | | --program-trans=* | --program-tran=* \ | |
1018 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1019 | program_transform_name=$ac_optarg ;; |
671aa708 | 1020 | |
11a67599 ZW |
1021 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1022 | ac_prev=pdfdir ;; | |
1023 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1024 | pdfdir=$ac_optarg ;; | |
1025 | ||
1026 | -psdir | --psdir | --psdi | --psd | --ps) | |
1027 | ac_prev=psdir ;; | |
1028 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1029 | psdir=$ac_optarg ;; | |
1030 | ||
671aa708 NN |
1031 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1032 | | -silent | --silent | --silen | --sile | --sil) | |
1033 | silent=yes ;; | |
1034 | ||
1035 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1036 | ac_prev=sbindir ;; | |
1037 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1038 | | --sbi=* | --sb=*) | |
1c710c3c | 1039 | sbindir=$ac_optarg ;; |
671aa708 NN |
1040 | |
1041 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1042 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1043 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1044 | | --sha | --sh) | |
1045 | ac_prev=sharedstatedir ;; | |
1046 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1047 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1048 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1049 | | --sha=* | --sh=*) | |
1c710c3c | 1050 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1051 | |
1052 | -site | --site | --sit) | |
1053 | ac_prev=site ;; | |
1054 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1055 | site=$ac_optarg ;; |
671aa708 NN |
1056 | |
1057 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1058 | ac_prev=srcdir ;; | |
1059 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1060 | srcdir=$ac_optarg ;; |
671aa708 NN |
1061 | |
1062 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1063 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1064 | ac_prev=sysconfdir ;; | |
1065 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1066 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1067 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1068 | |
1069 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1070 | ac_prev=target_alias ;; |
671aa708 | 1071 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1072 | target_alias=$ac_optarg ;; |
671aa708 NN |
1073 | |
1074 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1075 | verbose=yes ;; | |
1076 | ||
1c710c3c DJ |
1077 | -version | --version | --versio | --versi | --vers | -V) |
1078 | ac_init_version=: ;; | |
671aa708 NN |
1079 | |
1080 | -with-* | --with-*) | |
1c710c3c | 1081 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1082 | # Reject names that are not valid shell variable names. |
11a67599 | 1083 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
1084 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1085 | { (exit 1); exit 1; }; } | |
11a67599 ZW |
1086 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1087 | eval with_$ac_package=\$ac_optarg ;; | |
671aa708 NN |
1088 | |
1089 | -without-* | --without-*) | |
1c710c3c | 1090 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1091 | # Reject names that are not valid shell variable names. |
11a67599 | 1092 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
1093 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1094 | { (exit 1); exit 1; }; } | |
11a67599 ZW |
1095 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1096 | eval with_$ac_package=no ;; | |
671aa708 NN |
1097 | |
1098 | --x) | |
1099 | # Obsolete; use --with-x. | |
1100 | with_x=yes ;; | |
1101 | ||
1102 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1103 | | --x-incl | --x-inc | --x-in | --x-i) | |
1104 | ac_prev=x_includes ;; | |
1105 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1106 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1107 | x_includes=$ac_optarg ;; |
671aa708 NN |
1108 | |
1109 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1110 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1111 | ac_prev=x_libraries ;; | |
1112 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1113 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1114 | x_libraries=$ac_optarg ;; |
671aa708 | 1115 | |
1c710c3c DJ |
1116 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1117 | Try \`$0 --help' for more information." >&2 | |
1118 | { (exit 1); exit 1; }; } | |
671aa708 NN |
1119 | ;; |
1120 | ||
1c710c3c DJ |
1121 | *=*) |
1122 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1123 | # Reject names that are not valid shell variable names. | |
1124 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1125 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1126 | { (exit 1); exit 1; }; } | |
11a67599 | 1127 | eval $ac_envvar=\$ac_optarg |
1c710c3c DJ |
1128 | export $ac_envvar ;; |
1129 | ||
671aa708 | 1130 | *) |
1c710c3c DJ |
1131 | # FIXME: should be removed in autoconf 3.0. |
1132 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1133 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1134 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1135 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
671aa708 NN |
1136 | ;; |
1137 | ||
1138 | esac | |
1139 | done | |
1140 | ||
1141 | if test -n "$ac_prev"; then | |
1c710c3c DJ |
1142 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1143 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1144 | { (exit 1); exit 1; }; } | |
af71363e | 1145 | fi |
af71363e | 1146 | |
11a67599 ZW |
1147 | # Be sure to have absolute directory names. |
1148 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1149 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1150 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1151 | libdir localedir mandir | |
671aa708 | 1152 | do |
11a67599 | 1153 | eval ac_val=\$$ac_var |
1c710c3c | 1154 | case $ac_val in |
11a67599 ZW |
1155 | [\\/$]* | ?:[\\/]* ) continue;; |
1156 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1157 | esac |
11a67599 ZW |
1158 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1159 | { (exit 1); exit 1; }; } | |
671aa708 NN |
1160 | done |
1161 | ||
1c710c3c DJ |
1162 | # There might be people who depend on the old broken behavior: `$host' |
1163 | # used to hold the argument of --host etc. | |
1164 | # FIXME: To remove some day. | |
1165 | build=$build_alias | |
1166 | host=$host_alias | |
1167 | target=$target_alias | |
0b0dc272 | 1168 | |
1c710c3c DJ |
1169 | # FIXME: To remove some day. |
1170 | if test "x$host_alias" != x; then | |
1171 | if test "x$build_alias" = x; then | |
1172 | cross_compiling=maybe | |
1173 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1174 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1175 | elif test "x$build_alias" != "x$host_alias"; then | |
1176 | cross_compiling=yes | |
1177 | fi | |
1178 | fi | |
1179 | ||
1180 | ac_tool_prefix= | |
1181 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1182 | ||
1183 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1184 | |
671aa708 | 1185 | |
11a67599 ZW |
1186 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1187 | ac_ls_di=`ls -di .` && | |
1188 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1189 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1190 | { (exit 1); exit 1; }; } | |
1191 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1192 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1193 | { (exit 1); exit 1; }; } | |
1194 | ||
1195 | ||
671aa708 NN |
1196 | # Find the source files, if location was not specified. |
1197 | if test -z "$srcdir"; then | |
1198 | ac_srcdir_defaulted=yes | |
11a67599 ZW |
1199 | # Try the directory containing this script, then the parent directory. |
1200 | ac_confdir=`$as_dirname -- "$0" || | |
1c710c3c DJ |
1201 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1202 | X"$0" : 'X\(//\)[^/]' \| \ | |
1203 | X"$0" : 'X\(//\)$' \| \ | |
11a67599 | 1204 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1c710c3c | 1205 | echo X"$0" | |
11a67599 ZW |
1206 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1207 | s//\1/ | |
1208 | q | |
1209 | } | |
1210 | /^X\(\/\/\)[^/].*/{ | |
1211 | s//\1/ | |
1212 | q | |
1213 | } | |
1214 | /^X\(\/\/\)$/{ | |
1215 | s//\1/ | |
1216 | q | |
1217 | } | |
1218 | /^X\(\/\).*/{ | |
1219 | s//\1/ | |
1220 | q | |
1221 | } | |
1222 | s/.*/./; q'` | |
671aa708 | 1223 | srcdir=$ac_confdir |
11a67599 | 1224 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1225 | srcdir=.. |
1226 | fi | |
1227 | else | |
1228 | ac_srcdir_defaulted=no | |
1229 | fi | |
11a67599 ZW |
1230 | if test ! -r "$srcdir/$ac_unique_file"; then |
1231 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1232 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1c710c3c | 1233 | { (exit 1); exit 1; }; } |
1c710c3c | 1234 | fi |
11a67599 ZW |
1235 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1236 | ac_abs_confdir=`( | |
1237 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1c710c3c | 1238 | { (exit 1); exit 1; }; } |
11a67599 ZW |
1239 | pwd)` |
1240 | # When building in place, set srcdir=. | |
1241 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1242 | srcdir=. | |
1243 | fi | |
1244 | # Remove unnecessary trailing slashes from srcdir. | |
1245 | # Double slashes in file names in object file debugging info | |
1246 | # mess up M-x gdb in Emacs. | |
1247 | case $srcdir in | |
1248 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1249 | esac | |
1250 | for ac_var in $ac_precious_vars; do | |
1251 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1252 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1253 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1254 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1255 | done | |
1c710c3c DJ |
1256 | |
1257 | # | |
1258 | # Report the --help message. | |
1259 | # | |
1260 | if test "$ac_init_help" = "long"; then | |
1261 | # Omit some internal or obsolete options to make the list less imposing. | |
1262 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1263 | cat <<_ACEOF | |
1264 | \`configure' configures this package to adapt to many kinds of systems. | |
1265 | ||
1266 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1267 | ||
1268 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1269 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1270 | ||
1271 | Defaults for the options are specified in brackets. | |
1272 | ||
1273 | Configuration: | |
1274 | -h, --help display this help and exit | |
1275 | --help=short display options specific to this package | |
1276 | --help=recursive display the short help of all the included packages | |
1277 | -V, --version display version information and exit | |
1278 | -q, --quiet, --silent do not print \`checking...' messages | |
1279 | --cache-file=FILE cache test results in FILE [disabled] | |
1280 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1281 | -n, --no-create do not create output files | |
1282 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1283 | ||
1c710c3c DJ |
1284 | Installation directories: |
1285 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1286 | [$ac_default_prefix] | |
1287 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1288 | [PREFIX] | |
1289 | ||
1290 | By default, \`make install' will install all the files in | |
1291 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1292 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1293 | for instance \`--prefix=\$HOME'. | |
1294 | ||
1295 | For better control, use the options below. | |
1296 | ||
1297 | Fine tuning of the installation directories: | |
1298 | --bindir=DIR user executables [EPREFIX/bin] | |
1299 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1300 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1c710c3c DJ |
1301 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1302 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1303 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1304 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1305 | --includedir=DIR C header files [PREFIX/include] | |
1306 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
11a67599 ZW |
1307 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1308 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1309 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1310 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1311 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1312 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1313 | --htmldir=DIR html documentation [DOCDIR] | |
1314 | --dvidir=DIR dvi documentation [DOCDIR] | |
1315 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1316 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1317 | _ACEOF |
1318 | ||
1319 | cat <<\_ACEOF | |
1320 | ||
1321 | Program names: | |
1322 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1323 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1324 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1325 | ||
1326 | System types: | |
1327 | --build=BUILD configure for building on BUILD [guessed] | |
1328 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1329 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1330 | _ACEOF | |
1331 | fi | |
1332 | ||
1333 | if test -n "$ac_init_help"; then | |
1334 | ||
1335 | cat <<\_ACEOF | |
1336 | ||
1337 | Optional Features: | |
1338 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1339 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1340 | --enable-libada Builds libada directory | |
1341 | --enable-libssp Builds libssp directory | |
1342 | --enable-stage1-languages=all choose additional languages to build during | |
1343 | stage1. Mostly useful for compiler development. | |
1344 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
1345 | the GNU Objective-C runtime. | |
1346 | --enable-bootstrap Enable bootstrapping yes if native build | |
1347 | --enable-serial-{host,target,build}-configure | |
1348 | Force sequential configuration of | |
1349 | sub-packages for the host, target or build | |
1350 | machine, or all sub-packages | |
1351 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1352 | (and sometimes confusing) to the casual installer | |
1353 | --enable-stage1-checking=all choose additional checking for stage1 | |
1354 | of the compiler. | |
1355 | --enable-werror enable -Werror in bootstrap stage2 and later | |
1356 | ||
1357 | Optional Packages: | |
1358 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1359 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1360 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
1361 | --with-mpfr-dir=PATH This option has been REMOVED | |
1362 | --with-mpfr=PATH Specify prefix directory for installed MPFR package | |
1363 | Equivalent to --with-mpfr-include=PATH/include | |
1364 | plus --with-mpfr-lib=PATH/lib | |
1365 | --with-mpfr-include=PATH | |
1366 | Specify directory for installed MPFR include files | |
1367 | --with-mpfr-lib=PATH Specify the directory for the installed MPFR library | |
1368 | --with-gmp-dir=PATH This option has been REMOVED | |
1369 | --with-gmp=PATH Specify prefix directory for the installed GMP package | |
1370 | Equivalent to --with-gmp-include=PATH/include | |
1371 | plus --with-gmp-lib=PATH/lib | |
1372 | --with-gmp-include=PATH Specify directory for installed GMP include files | |
1373 | --with-gmp-lib=PATH Specify the directory for the installed GMP library | |
1374 | --with-build-sysroot=sysroot | |
1375 | use sysroot as the system root during the build | |
1376 | --with-build-time-tools=path | |
1377 | use given path to find target tools during the build | |
1378 | --with-datarootdir Use datarootdir as the data root directory. | |
1379 | --with-docdir Install documentation in this directory. | |
9c4d2493 | 1380 | --with-pdfdir Install pdf in this directory. |
1c710c3c DJ |
1381 | --with-htmldir Install html in this directory. |
1382 | ||
1383 | Some influential environment variables: | |
1384 | CC C compiler command | |
1385 | CFLAGS C compiler flags | |
1386 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1387 | nonstandard directory <lib dir> | |
11a67599 ZW |
1388 | LIBS libraries to pass to the linker, e.g. -l<library> |
1389 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1390 | you have headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
1391 | CXX C++ compiler command |
1392 | CXXFLAGS C++ compiler flags | |
278a7a38 AO |
1393 | AR AR for the host |
1394 | AS AS for the host | |
1395 | DLLTOOL DLLTOOL for the host | |
1396 | LD LD for the host | |
1397 | LIPO LIPO for the host | |
1398 | NM NM for the host | |
1399 | RANLIB RANLIB for the host | |
1400 | STRIP STRIP for the host | |
1401 | WINDRES WINDRES for the host | |
1402 | OBJCOPY OBJCOPY for the host | |
1403 | OBJDUMP OBJDUMP for the host | |
1404 | CC_FOR_TARGET | |
1405 | CC for the target | |
1406 | CXX_FOR_TARGET | |
1407 | CXX for the target | |
1408 | GCC_FOR_TARGET | |
1409 | GCC for the target | |
1410 | GCJ_FOR_TARGET | |
1411 | GCJ for the target | |
1412 | GFORTRAN_FOR_TARGET | |
1413 | GFORTRAN for the target | |
1414 | AR_FOR_TARGET | |
1415 | AR for the target | |
1416 | AS_FOR_TARGET | |
1417 | AS for the target | |
1418 | DLLTOOL_FOR_TARGET | |
1419 | DLLTOOL for the target | |
1420 | LD_FOR_TARGET | |
1421 | LD for the target | |
1422 | LIPO_FOR_TARGET | |
1423 | LIPO for the target | |
1424 | NM_FOR_TARGET | |
1425 | NM for the target | |
1426 | OBJDUMP_FOR_TARGET | |
1427 | OBJDUMP for the target | |
1428 | RANLIB_FOR_TARGET | |
1429 | RANLIB for the target | |
1430 | STRIP_FOR_TARGET | |
1431 | STRIP for the target | |
1432 | WINDRES_FOR_TARGET | |
1433 | WINDRES for the target | |
1c710c3c DJ |
1434 | |
1435 | Use these variables to override the choices made by `configure' or to help | |
1436 | it to find libraries and programs with nonstandard names/locations. | |
1437 | ||
1438 | _ACEOF | |
11a67599 | 1439 | ac_status=$? |
1c710c3c DJ |
1440 | fi |
1441 | ||
1442 | if test "$ac_init_help" = "recursive"; then | |
1443 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1444 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
11a67599 | 1445 | test -d "$ac_dir" || continue |
1c710c3c DJ |
1446 | ac_builddir=. |
1447 | ||
11a67599 ZW |
1448 | case "$ac_dir" in |
1449 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1450 | *) | |
1c710c3c | 1451 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
11a67599 ZW |
1452 | # A ".." for each directory in $ac_dir_suffix. |
1453 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1454 | case $ac_top_builddir_sub in | |
1455 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1456 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1457 | esac ;; | |
1458 | esac | |
1459 | ac_abs_top_builddir=$ac_pwd | |
1460 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1461 | # for backward compatibility: | |
1462 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1463 | |
1464 | case $srcdir in | |
11a67599 | 1465 | .) # We are building in place. |
1c710c3c | 1466 | ac_srcdir=. |
11a67599 ZW |
1467 | ac_top_srcdir=$ac_top_builddir_sub |
1468 | ac_abs_top_srcdir=$ac_pwd ;; | |
1469 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1470 | ac_srcdir=$srcdir$ac_dir_suffix; |
11a67599 ZW |
1471 | ac_top_srcdir=$srcdir |
1472 | ac_abs_top_srcdir=$srcdir ;; | |
1473 | *) # Relative name. | |
1474 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1475 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1476 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 1477 | esac |
11a67599 ZW |
1478 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1479 | ||
1480 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1481 | # Check for guested configure. | |
1482 | if test -f "$ac_srcdir/configure.gnu"; then | |
1483 | echo && | |
1484 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1485 | elif test -f "$ac_srcdir/configure"; then | |
1486 | echo && | |
1487 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c DJ |
1488 | else |
1489 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
11a67599 ZW |
1490 | fi || ac_status=$? |
1491 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1492 | done |
1493 | fi | |
1494 | ||
11a67599 | 1495 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1496 | if $ac_init_version; then |
1497 | cat <<\_ACEOF | |
11a67599 ZW |
1498 | configure |
1499 | generated by GNU Autoconf 2.61 | |
1c710c3c | 1500 | |
11a67599 ZW |
1501 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1502 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1c710c3c DJ |
1503 | This configure script is free software; the Free Software Foundation |
1504 | gives unlimited permission to copy, distribute and modify it. | |
1505 | _ACEOF | |
11a67599 | 1506 | exit |
0b0dc272 | 1507 | fi |
11a67599 | 1508 | cat >config.log <<_ACEOF |
1c710c3c DJ |
1509 | This file contains any messages produced by compilers while |
1510 | running configure, to aid debugging if configure makes a mistake. | |
1511 | ||
1512 | It was created by $as_me, which was | |
11a67599 | 1513 | generated by GNU Autoconf 2.61. Invocation command line was |
1c710c3c DJ |
1514 | |
1515 | $ $0 $@ | |
1516 | ||
1517 | _ACEOF | |
11a67599 | 1518 | exec 5>>config.log |
1c710c3c DJ |
1519 | { |
1520 | cat <<_ASUNAME | |
1521 | ## --------- ## | |
1522 | ## Platform. ## | |
1523 | ## --------- ## | |
1524 | ||
1525 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1526 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1527 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1528 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1529 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1530 | ||
1531 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1532 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1533 | ||
1534 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1535 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1536 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
11a67599 | 1537 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1538 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1539 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1540 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1541 | ||
1542 | _ASUNAME | |
1543 | ||
1544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1545 | for as_dir in $PATH | |
1546 | do | |
1547 | IFS=$as_save_IFS | |
1548 | test -z "$as_dir" && as_dir=. | |
1549 | echo "PATH: $as_dir" | |
1550 | done | |
11a67599 | 1551 | IFS=$as_save_IFS |
1c710c3c DJ |
1552 | |
1553 | } >&5 | |
1554 | ||
1555 | cat >&5 <<_ACEOF | |
1556 | ||
1557 | ||
1558 | ## ----------- ## | |
1559 | ## Core tests. ## | |
1560 | ## ----------- ## | |
1561 | ||
1562 | _ACEOF | |
1563 | ||
1564 | ||
1565 | # Keep a trace of the command line. | |
1566 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1567 | # Strip out --silent because we don't want to record it for future runs. | |
1568 | # Also quote any args containing shell meta-characters. | |
1569 | # Make two passes to allow for proper duplicate-argument suppression. | |
1570 | ac_configure_args= | |
1571 | ac_configure_args0= | |
1572 | ac_configure_args1= | |
1c710c3c DJ |
1573 | ac_must_keep_next=false |
1574 | for ac_pass in 1 2 | |
1575 | do | |
1576 | for ac_arg | |
1577 | do | |
1578 | case $ac_arg in | |
1579 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1580 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1581 | | -silent | --silent | --silen | --sile | --sil) | |
1582 | continue ;; | |
11a67599 | 1583 | *\'*) |
1c710c3c DJ |
1584 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1585 | esac | |
1586 | case $ac_pass in | |
1587 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1588 | 2) | |
1589 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1590 | if test $ac_must_keep_next = true; then | |
1591 | ac_must_keep_next=false # Got value, back to normal. | |
1592 | else | |
1593 | case $ac_arg in | |
1594 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1595 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1596 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1597 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1598 | case "$ac_configure_args0 " in | |
1599 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1600 | esac | |
1601 | ;; | |
1602 | -* ) ac_must_keep_next=true ;; | |
1603 | esac | |
1604 | fi | |
11a67599 | 1605 | ac_configure_args="$ac_configure_args '$ac_arg'" |
1c710c3c DJ |
1606 | ;; |
1607 | esac | |
1608 | done | |
1609 | done | |
1610 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1611 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1612 | ||
1613 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1614 | # config.log. We remove comments because anyway the quotes in there | |
1615 | # would cause problems or look ugly. | |
11a67599 ZW |
1616 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1617 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
1618 | trap 'exit_status=$? |
1619 | # Save into config.log some information that might help in debugging. | |
1620 | { | |
1621 | echo | |
1622 | ||
1623 | cat <<\_ASBOX | |
1624 | ## ---------------- ## | |
1625 | ## Cache variables. ## | |
1626 | ## ---------------- ## | |
1627 | _ASBOX | |
1628 | echo | |
1629 | # The following way of writing the cache mishandles newlines in values, | |
11a67599 ZW |
1630 | ( |
1631 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1632 | eval ac_val=\$$ac_var | |
1633 | case $ac_val in #( | |
1634 | *${as_nl}*) | |
1635 | case $ac_var in #( | |
1636 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1637 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1638 | esac | |
1639 | case $ac_var in #( | |
1640 | _ | IFS | as_nl) ;; #( | |
1641 | *) $as_unset $ac_var ;; | |
1642 | esac ;; | |
1643 | esac | |
1644 | done | |
1c710c3c | 1645 | (set) 2>&1 | |
11a67599 ZW |
1646 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1647 | *${as_nl}ac_space=\ *) | |
1c710c3c | 1648 | sed -n \ |
11a67599 ZW |
1649 | "s/'\''/'\''\\\\'\'''\''/g; |
1650 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1651 | ;; #( | |
1c710c3c | 1652 | *) |
11a67599 | 1653 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 1654 | ;; |
11a67599 ZW |
1655 | esac | |
1656 | sort | |
1657 | ) | |
1c710c3c DJ |
1658 | echo |
1659 | ||
1660 | cat <<\_ASBOX | |
1661 | ## ----------------- ## | |
1662 | ## Output variables. ## | |
1663 | ## ----------------- ## | |
1664 | _ASBOX | |
1665 | echo | |
1666 | for ac_var in $ac_subst_vars | |
1667 | do | |
11a67599 ZW |
1668 | eval ac_val=\$$ac_var |
1669 | case $ac_val in | |
1670 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1671 | esac | |
1672 | echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
1673 | done | sort |
1674 | echo | |
1675 | ||
1676 | if test -n "$ac_subst_files"; then | |
1677 | cat <<\_ASBOX | |
11a67599 ZW |
1678 | ## ------------------- ## |
1679 | ## File substitutions. ## | |
1680 | ## ------------------- ## | |
1c710c3c DJ |
1681 | _ASBOX |
1682 | echo | |
1683 | for ac_var in $ac_subst_files | |
1684 | do | |
11a67599 ZW |
1685 | eval ac_val=\$$ac_var |
1686 | case $ac_val in | |
1687 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1688 | esac | |
1689 | echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
1690 | done | sort |
1691 | echo | |
1692 | fi | |
1693 | ||
1694 | if test -s confdefs.h; then | |
1695 | cat <<\_ASBOX | |
1696 | ## ----------- ## | |
1697 | ## confdefs.h. ## | |
1698 | ## ----------- ## | |
1699 | _ASBOX | |
1700 | echo | |
11a67599 | 1701 | cat confdefs.h |
1c710c3c DJ |
1702 | echo |
1703 | fi | |
1704 | test "$ac_signal" != 0 && | |
1705 | echo "$as_me: caught signal $ac_signal" | |
1706 | echo "$as_me: exit $exit_status" | |
1707 | } >&5 | |
11a67599 ZW |
1708 | rm -f core *.core core.conftest.* && |
1709 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 1710 | exit $exit_status |
11a67599 | 1711 | ' 0 |
1c710c3c DJ |
1712 | for ac_signal in 1 2 13 15; do |
1713 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1714 | done | |
1715 | ac_signal=0 | |
1716 | ||
1717 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
11a67599 | 1718 | rm -f -r conftest* confdefs.h |
1c710c3c DJ |
1719 | |
1720 | # Predefined preprocessor variables. | |
1721 | ||
1722 | cat >>confdefs.h <<_ACEOF | |
1723 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1724 | _ACEOF | |
1725 | ||
1726 | ||
1727 | cat >>confdefs.h <<_ACEOF | |
1728 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1729 | _ACEOF | |
1730 | ||
1731 | ||
1732 | cat >>confdefs.h <<_ACEOF | |
1733 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1734 | _ACEOF | |
0b0dc272 | 1735 | |
1c710c3c DJ |
1736 | |
1737 | cat >>confdefs.h <<_ACEOF | |
1738 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1739 | _ACEOF | |
1740 | ||
1741 | ||
1742 | cat >>confdefs.h <<_ACEOF | |
1743 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1744 | _ACEOF | |
1745 | ||
1746 | ||
1747 | # Let the site file select an alternate cache file if it wants to. | |
671aa708 | 1748 | # Prefer explicitly selected file to automatically selected ones. |
11a67599 ZW |
1749 | if test -n "$CONFIG_SITE"; then |
1750 | set x "$CONFIG_SITE" | |
1751 | elif test "x$prefix" != xNONE; then | |
1752 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1753 | else | |
1754 | set x "$ac_default_prefix/share/config.site" \ | |
1755 | "$ac_default_prefix/etc/config.site" | |
671aa708 | 1756 | fi |
11a67599 ZW |
1757 | shift |
1758 | for ac_site_file | |
1759 | do | |
671aa708 | 1760 | if test -r "$ac_site_file"; then |
1c710c3c DJ |
1761 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1762 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1763 | sed 's/^/| /' "$ac_site_file" >&5 | |
671aa708 NN |
1764 | . "$ac_site_file" |
1765 | fi | |
1766 | done | |
1767 | ||
1768 | if test -r "$cache_file"; then | |
1c710c3c DJ |
1769 | # Some versions of bash will fail to source /dev/null (special |
1770 | # files actually), so we avoid doing that. | |
1771 | if test -f "$cache_file"; then | |
1772 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1773 | echo "$as_me: loading cache $cache_file" >&6;} | |
1774 | case $cache_file in | |
11a67599 ZW |
1775 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1776 | *) . "./$cache_file";; | |
1c710c3c DJ |
1777 | esac |
1778 | fi | |
671aa708 | 1779 | else |
1c710c3c DJ |
1780 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1781 | echo "$as_me: creating cache $cache_file" >&6;} | |
1782 | >$cache_file | |
1783 | fi | |
1784 | ||
1785 | # Check that the precious variables saved in the cache have kept the same | |
1786 | # value. | |
1787 | ac_cache_corrupted=false | |
11a67599 | 1788 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
1789 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1790 | eval ac_new_set=\$ac_env_${ac_var}_set | |
11a67599 ZW |
1791 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1792 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
1793 | case $ac_old_set,$ac_new_set in |
1794 | set,) | |
1795 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1796 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1797 | ac_cache_corrupted=: ;; | |
1798 | ,set) | |
1799 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1800 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1801 | ac_cache_corrupted=: ;; | |
1802 | ,);; | |
1803 | *) | |
1804 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1805 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1806 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1807 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1808 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1809 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1810 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1811 | ac_cache_corrupted=: | |
1812 | fi;; | |
1813 | esac | |
1814 | # Pass precious variables to config.status. | |
1815 | if test "$ac_new_set" = set; then | |
1816 | case $ac_new_val in | |
11a67599 | 1817 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
1818 | *) ac_arg=$ac_var=$ac_new_val ;; |
1819 | esac | |
1820 | case " $ac_configure_args " in | |
1821 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1822 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1823 | esac | |
1824 | fi | |
1825 | done | |
1826 | if $ac_cache_corrupted; then | |
1827 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1828 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1829 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1830 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1831 | { (exit 1); exit 1; }; } | |
671aa708 NN |
1832 | fi |
1833 | ||
1c710c3c DJ |
1834 | |
1835 | ||
1836 | ||
1837 | ||
671aa708 NN |
1838 | |
1839 | ||
d02c69be | 1840 | |
1c710c3c DJ |
1841 | |
1842 | ||
1843 | ||
1844 | ||
1845 | ||
1846 | ||
1847 | ||
1848 | ||
1849 | ||
11a67599 ZW |
1850 | ac_ext=c |
1851 | ac_cpp='$CPP $CPPFLAGS' | |
1852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1c710c3c DJ |
1855 | |
1856 | ||
1857 | ||
1858 | ||
1859 | # Find the build, host, and target systems. | |
671aa708 | 1860 | ac_aux_dir= |
11a67599 ZW |
1861 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1862 | if test -f "$ac_dir/install-sh"; then | |
671aa708 NN |
1863 | ac_aux_dir=$ac_dir |
1864 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1865 | break | |
11a67599 | 1866 | elif test -f "$ac_dir/install.sh"; then |
671aa708 NN |
1867 | ac_aux_dir=$ac_dir |
1868 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1869 | break | |
11a67599 | 1870 | elif test -f "$ac_dir/shtool"; then |
1c710c3c DJ |
1871 | ac_aux_dir=$ac_dir |
1872 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1873 | break | |
671aa708 NN |
1874 | fi |
1875 | done | |
1876 | if test -z "$ac_aux_dir"; then | |
11a67599 ZW |
1877 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1878 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1c710c3c | 1879 | { (exit 1); exit 1; }; } |
671aa708 | 1880 | fi |
11a67599 ZW |
1881 | |
1882 | # These three variables are undocumented and unsupported, | |
1883 | # and are intended to be withdrawn in a future Autoconf release. | |
1884 | # They can cause serious problems if a builder's source tree is in a directory | |
1885 | # whose full name contains unusual characters. | |
1886 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1887 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1888 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1889 | ||
671aa708 | 1890 | |
1c710c3c | 1891 | # Make sure we can run config.sub. |
11a67599 ZW |
1892 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1893 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1894 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
1c710c3c DJ |
1895 | { (exit 1); exit 1; }; } |
1896 | ||
11a67599 ZW |
1897 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1898 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
1c710c3c DJ |
1899 | if test "${ac_cv_build+set}" = set; then |
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1901 | else | |
11a67599 ZW |
1902 | ac_build_alias=$build_alias |
1903 | test "x$ac_build_alias" = x && | |
1904 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1905 | test "x$ac_build_alias" = x && | |
1c710c3c DJ |
1906 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1907 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1908 | { (exit 1); exit 1; }; } | |
11a67599 ZW |
1909 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1910 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1911 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
1c710c3c DJ |
1912 | { (exit 1); exit 1; }; } |
1913 | ||
1914 | fi | |
11a67599 ZW |
1915 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1916 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1917 | case $ac_cv_build in | |
1918 | *-*-*) ;; | |
1919 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1920 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1921 | { (exit 1); exit 1; }; };; | |
1922 | esac | |
1c710c3c | 1923 | build=$ac_cv_build |
11a67599 ZW |
1924 | ac_save_IFS=$IFS; IFS='-' |
1925 | set x $ac_cv_build | |
1926 | shift | |
1927 | build_cpu=$1 | |
1928 | build_vendor=$2 | |
1929 | shift; shift | |
1930 | # Remember, the first character of IFS is used to create $*, | |
1931 | # except with old shells: | |
1932 | build_os=$* | |
1933 | IFS=$ac_save_IFS | |
1934 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 1935 | |
671aa708 | 1936 | |
1c710c3c DJ |
1937 | case ${build_alias} in |
1938 | "") build_noncanonical=${build} ;; | |
1939 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
1940 | esac |
1941 | ||
1942 | ||
af71363e | 1943 | |
1c710c3c DJ |
1944 | case ${host_alias} in |
1945 | "") host_noncanonical=${build_noncanonical} ;; | |
1946 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
1947 | esac |
1948 | ||
af71363e | 1949 | |
1c710c3c DJ |
1950 | |
1951 | case ${target_alias} in | |
1952 | "") target_noncanonical=${host_noncanonical} ;; | |
1953 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
1954 | esac |
1955 | ||
af71363e | 1956 | |
1c710c3c DJ |
1957 | |
1958 | ||
1959 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
1960 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1961 | NONENONEs,x,x, && | |
1c710c3c | 1962 | program_transform_name=s,y,y, |
af71363e | 1963 | |
11a67599 ZW |
1964 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1965 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
1c710c3c DJ |
1966 | if test "${ac_cv_host+set}" = set; then |
1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af71363e | 1968 | else |
11a67599 ZW |
1969 | if test "x$host_alias" = x; then |
1970 | ac_cv_host=$ac_cv_build | |
1971 | else | |
1972 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1973 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1974 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
1c710c3c | 1975 | { (exit 1); exit 1; }; } |
11a67599 | 1976 | fi |
1c710c3c | 1977 | |
af71363e | 1978 | fi |
11a67599 ZW |
1979 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1980 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1981 | case $ac_cv_host in | |
1982 | *-*-*) ;; | |
1983 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1984 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1985 | { (exit 1); exit 1; }; };; | |
1986 | esac | |
1c710c3c | 1987 | host=$ac_cv_host |
11a67599 ZW |
1988 | ac_save_IFS=$IFS; IFS='-' |
1989 | set x $ac_cv_host | |
1990 | shift | |
1991 | host_cpu=$1 | |
1992 | host_vendor=$2 | |
1993 | shift; shift | |
1994 | # Remember, the first character of IFS is used to create $*, | |
1995 | # except with old shells: | |
1996 | host_os=$* | |
1997 | IFS=$ac_save_IFS | |
1998 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
1999 | ||
2000 | ||
2001 | { echo "$as_me:$LINENO: checking target system type" >&5 | |
2002 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
1c710c3c DJ |
2003 | if test "${ac_cv_target+set}" = set; then |
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2005 | else | |
11a67599 ZW |
2006 | if test "x$target_alias" = x; then |
2007 | ac_cv_target=$ac_cv_host | |
2008 | else | |
2009 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2010 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
2011 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
1c710c3c | 2012 | { (exit 1); exit 1; }; } |
11a67599 | 2013 | fi |
1c710c3c DJ |
2014 | |
2015 | fi | |
11a67599 ZW |
2016 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2017 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
2018 | case $ac_cv_target in | |
2019 | *-*-*) ;; | |
2020 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
2021 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
2022 | { (exit 1); exit 1; }; };; | |
2023 | esac | |
1c710c3c | 2024 | target=$ac_cv_target |
11a67599 ZW |
2025 | ac_save_IFS=$IFS; IFS='-' |
2026 | set x $ac_cv_target | |
2027 | shift | |
2028 | target_cpu=$1 | |
2029 | target_vendor=$2 | |
2030 | shift; shift | |
2031 | # Remember, the first character of IFS is used to create $*, | |
2032 | # except with old shells: | |
2033 | target_os=$* | |
2034 | IFS=$ac_save_IFS | |
2035 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2036 | |
2037 | ||
2038 | # The aliases save the names the user supplied, while $host etc. | |
2039 | # will get canonicalized. | |
2040 | test -n "$target_alias" && | |
2041 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2042 | NONENONEs,x,x, && | |
2043 | program_prefix=${target_alias}- | |
671aa708 | 2044 | test "$program_prefix" != NONE && |
11a67599 | 2045 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2046 | # Use a double $ so make ignores it. |
2047 | test "$program_suffix" != NONE && | |
11a67599 | 2048 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
1c710c3c DJ |
2049 | # Double any \ or $. echo might interpret backslashes. |
2050 | # By default was `s,x,x', remove it if useless. | |
2051 | cat <<\_ACEOF >conftest.sed | |
2052 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2053 | _ACEOF | |
2054 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
11a67599 | 2055 | rm -f conftest.sed |
af71363e | 2056 | |
671aa708 NN |
2057 | |
2058 | ||
775956d0 NN |
2059 | # Get 'install' or 'install-sh' and its variants. |
2060 | # Find a good install program. We prefer a C program (faster), | |
2061 | # so one script is as good as another. But avoid the broken or | |
2062 | # incompatible versions: | |
2063 | # SysV /etc/install, /usr/sbin/install | |
2064 | # SunOS /usr/etc/install | |
2065 | # IRIX /sbin/install | |
2066 | # AIX /bin/install | |
1c710c3c | 2067 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2068 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2069 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2070 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2071 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2072 | # ./install, which can be erroneously created by make from ./install.sh. |
11a67599 ZW |
2073 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2074 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
775956d0 | 2075 | if test -z "$INSTALL"; then |
1c710c3c DJ |
2076 | if test "${ac_cv_path_install+set}" = set; then |
2077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2078 | else | |
2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2080 | for as_dir in $PATH | |
2081 | do | |
2082 | IFS=$as_save_IFS | |
2083 | test -z "$as_dir" && as_dir=. | |
2084 | # Account for people who put trailing slashes in PATH elements. | |
2085 | case $as_dir/ in | |
2086 | ./ | .// | /cC/* | \ | |
2087 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2088 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2089 | /usr/ucb/* ) ;; | |
2090 | *) | |
2091 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2092 | # Don't use installbsd from OSF since it installs stuff as root | |
2093 | # by default. | |
2094 | for ac_prog in ginstall scoinst install; do | |
2095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 2096 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
775956d0 | 2097 | if test $ac_prog = install && |
1c710c3c | 2098 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2099 | # AIX install. It has an incompatible calling convention. |
2100 | : | |
1c710c3c DJ |
2101 | elif test $ac_prog = install && |
2102 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2103 | # program-specific install script used by HP pwplus--don't use. | |
2104 | : | |
775956d0 | 2105 | else |
1c710c3c DJ |
2106 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2107 | break 3 | |
775956d0 NN |
2108 | fi |
2109 | fi | |
2110 | done | |
1c710c3c DJ |
2111 | done |
2112 | ;; | |
2113 | esac | |
2114 | done | |
11a67599 | 2115 | IFS=$as_save_IFS |
1c710c3c | 2116 | |
775956d0 NN |
2117 | |
2118 | fi | |
2119 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2120 | INSTALL=$ac_cv_path_install |
775956d0 | 2121 | else |
11a67599 ZW |
2122 | # As a last resort, use the slow shell script. Don't cache a |
2123 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2124 | # break other packages using the cache if that directory is |
11a67599 | 2125 | # removed, or if the value is a relative name. |
1c710c3c | 2126 | INSTALL=$ac_install_sh |
775956d0 NN |
2127 | fi |
2128 | fi | |
11a67599 ZW |
2129 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2130 | echo "${ECHO_T}$INSTALL" >&6; } | |
775956d0 NN |
2131 | |
2132 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2133 | # It thinks the first close brace ends the variable substitution. | |
2134 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2135 | ||
1c710c3c | 2136 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2137 | |
2138 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2139 | ||
11a67599 ZW |
2140 | { echo "$as_me:$LINENO: checking whether ln works" >&5 |
2141 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; } | |
1c710c3c DJ |
2142 | if test "${acx_cv_prog_LN+set}" = set; then |
2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ad6717df PB |
2144 | else |
2145 | rm -f conftestdata_t | |
2146 | echo >conftestdata_f | |
2147 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2148 | then | |
2149 | acx_cv_prog_LN=ln | |
2150 | else | |
2151 | acx_cv_prog_LN=no | |
2152 | fi | |
2153 | rm -f conftestdata_f conftestdata_t | |
2154 | ||
2155 | fi | |
2156 | if test $acx_cv_prog_LN = no; then | |
2157 | LN="cp" | |
11a67599 ZW |
2158 | { echo "$as_me:$LINENO: result: no, using $LN" >&5 |
2159 | echo "${ECHO_T}no, using $LN" >&6; } | |
ad6717df PB |
2160 | else |
2161 | LN="$acx_cv_prog_LN" | |
11a67599 ZW |
2162 | { echo "$as_me:$LINENO: result: yes" >&5 |
2163 | echo "${ECHO_T}yes" >&6; } | |
ad6717df PB |
2164 | fi |
2165 | ||
11a67599 ZW |
2166 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2167 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
1c710c3c DJ |
2168 | LN_S=$as_ln_s |
2169 | if test "$LN_S" = "ln -s"; then | |
11a67599 ZW |
2170 | { echo "$as_me:$LINENO: result: yes" >&5 |
2171 | echo "${ECHO_T}yes" >&6; } | |
fb0103e5 | 2172 | else |
11a67599 ZW |
2173 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2174 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
148907ea PB |
2175 | fi |
2176 | ||
775956d0 | 2177 | |
79c06341 | 2178 | ### we might need to use some other shell than /bin/sh for running subshells |
79c06341 JL |
2179 | ### If we are on Windows, search for the shell. This will permit people |
2180 | ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure | |
2181 | ### without also having to set CONFIG_SHELL. This code will work when | |
2182 | ### using bash, which sets OSTYPE. | |
2183 | case "${OSTYPE}" in | |
2184 | *win32*) | |
671aa708 NN |
2185 | if test x${CONFIG_SHELL} = x ; then |
2186 | if test ! -f /bin/sh ; then | |
2187 | if test x${SHELL} != x && test -f ${SHELL} ; then | |
79c06341 JL |
2188 | CONFIG_SHELL=${SHELL} |
2189 | export CONFIG_SHELL | |
2190 | else | |
2191 | for prog in sh sh.exe bash bash.exe; do | |
2192 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
2193 | for dir in $PATH; do | |
2194 | test -z "$dir" && dir=. | |
2195 | if test -f $dir/$prog; then | |
2196 | CONFIG_SHELL=$dir/$prog | |
2197 | export CONFIG_SHELL | |
2198 | break | |
2199 | fi | |
2200 | done | |
2201 | IFS="$save_ifs" | |
2202 | test -n "${CONFIG_SHELL}" && break | |
2203 | done | |
2204 | fi | |
2205 | fi | |
2206 | fi | |
2207 | ;; | |
2208 | esac | |
2209 | ||
2210 | config_shell=${CONFIG_SHELL-/bin/sh} | |
2211 | ||
79c06341 JL |
2212 | progname=$0 |
2213 | # if PWD already has a value, it is probably wrong. | |
671aa708 | 2214 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi |
79c06341 | 2215 | |
beeaf216 MM |
2216 | # Export original configure arguments for use by sub-configures. |
2217 | # Quote arguments with shell meta charatcers. | |
2218 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2219 | set -- "$progname" "$@" | |
9f8c6739 JM |
2220 | for ac_arg |
2221 | do | |
beeaf216 | 2222 | case "$ac_arg" in |
8c79f3c4 | 2223 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) |
beeaf216 MM |
2224 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
2225 | # if the argument is of the form -foo=baz, quote the baz part only | |
2226 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2227 | *) ;; | |
2228 | esac | |
2229 | # Add the quoted argument to the list. | |
2230 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2231 | done | |
2232 | # Remove the initial space we just introduced and, as these will be | |
2233 | # expanded by make, quote '$'. | |
2234 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
3dfabf63 | 2235 | |
cc1e60ea | 2236 | |
671aa708 | 2237 | moveifchange=${srcdir}/move-if-change |
79c06341 | 2238 | |
ee6a22df L |
2239 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2240 | ||
2241 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2242 | # a relative path. | |
2243 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2244 | INSTALL="${srcpwd}/install-sh -c" | |
2245 | fi | |
2246 | ||
671aa708 NN |
2247 | # Set srcdir to "." if that's what it is. |
2248 | # This is important for multilib support. | |
2249 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2250 | if test "${pwd}" = "${srcpwd}" ; then |
2251 | srcdir=. | |
79c06341 JL |
2252 | fi |
2253 | ||
671aa708 | 2254 | topsrcdir=$srcpwd |
5d4a5ee6 | 2255 | |
671aa708 | 2256 | extra_host_args= |
afabd8e6 | 2257 | |
671aa708 NN |
2258 | ### To add a new directory to the tree, first choose whether it is a target |
2259 | ### or a host dependent tool. Then put it into the appropriate list | |
2260 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2261 | |
1c710c3c | 2262 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2263 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2264 | |
1c710c3c DJ |
2265 | # Dependency sorting is only needed when *configuration* must be done in |
2266 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2267 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2268 | |
671aa708 NN |
2269 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2270 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2271 | |
23f6b2f9 PB |
2272 | # these library is used by various programs built for the build |
2273 | # environment | |
2274 | # | |
2275 | build_libs="build-libiberty" | |
2276 | ||
2277 | # these tools are built for the build environment | |
71b5d516 | 2278 | build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2279 | |
671aa708 NN |
2280 | # these libraries are used by various programs built for the host environment |
2281 | # | |
e69bf64b | 2282 | host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr" |
671aa708 | 2283 | |
671aa708 NN |
2284 | # these tools are built for the host environment |
2285 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2286 | # know that we are building the simulator. | |
2287 | # binutils, gas and ld appear in that order because it makes sense to run | |
2288 | # "make check" in that particular order. | |
5395b47b | 2289 | host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" |
671aa708 NN |
2290 | |
2291 | # libgcj represents the runtime libraries only used by gcj. | |
2292 | libgcj="target-libffi \ | |
671aa708 NN |
2293 | target-zlib \ |
2294 | target-qthreads \ | |
2295 | target-libjava" | |
2296 | ||
2297 | # these libraries are built for the target environment, and are built after | |
2298 | # the host libraries and the host tools (which may be a cross compiler) | |
2299 | # | |
291f172e DJ |
2300 | target_libraries="target-libgcc \ |
2301 | target-libiberty \ | |
671aa708 NN |
2302 | target-libgloss \ |
2303 | target-newlib \ | |
cb543528 | 2304 | target-libstdc++-v3 \ |
6de9cd9a | 2305 | target-libmudflap \ |
77008252 | 2306 | target-libssp \ |
6de9cd9a | 2307 | target-libgfortran \ |
7cd0cf9c | 2308 | target-boehm-gc \ |
77d187bc | 2309 | ${libgcj} \ |
d9cdb878 | 2310 | target-libobjc \ |
953ff289 DN |
2311 | target-libada \ |
2312 | target-libgomp" | |
671aa708 | 2313 | |
4dbda6f0 NN |
2314 | # these tools are built using the target libraries, and are intended to |
2315 | # run only in the target environment | |
671aa708 | 2316 | # |
4dbda6f0 | 2317 | # note: any program that *uses* libraries that are in the "target_libraries" |
671aa708 NN |
2318 | # list belongs in this list. those programs are also very likely |
2319 | # candidates for the "native_only" list which follows | |
2320 | # | |
97286f7f | 2321 | target_tools="target-examples target-groff target-gperf target-rda" |
79c06341 | 2322 | |
671aa708 | 2323 | ################################################################################ |
79c06341 | 2324 | |
671aa708 NN |
2325 | ## All tools belong in one of the four categories, and are assigned above |
2326 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2327 | ## is important because configure will choke if they ever get through. | |
2328 | ## ${configdirs} is directories we build using the host tools. | |
2329 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2330 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2331 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2332 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2333 | |
671aa708 | 2334 | ################################################################################ |
79c06341 | 2335 | |
671aa708 | 2336 | srcname="gnu development package" |
79c06341 | 2337 | |
671aa708 NN |
2338 | # This gets set non-empty for some net releases of packages. |
2339 | appdirs="" | |
79c06341 | 2340 | |
671aa708 NN |
2341 | # Define is_cross_compiler to save on calls to 'test'. |
2342 | is_cross_compiler= | |
2343 | if test x"${host}" = x"${target}" ; then | |
2344 | is_cross_compiler=no | |
79c06341 | 2345 | else |
671aa708 | 2346 | is_cross_compiler=yes |
1c710c3c | 2347 | fi |
79c06341 | 2348 | |
b4acb5ef | 2349 | # Find the build and target subdir names. |
8b87bb96 | 2350 | |
2e9e6f68 DJ |
2351 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2352 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2353 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2354 | # However, they still use the build modules, because the corresponding | |
2355 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2356 | # finishes. So: | |
2357 | # - build_subdir is where we find build modules, and never changes. | |
2358 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2359 | ||
2360 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2361 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2362 | |
11a67599 | 2363 | # Check whether --with-build-libsubdir was given. |
2e9e6f68 | 2364 | if test "${with_build_libsubdir+set}" = set; then |
11a67599 | 2365 | withval=$with_build_libsubdir; build_libsubdir="$withval" |
2e9e6f68 DJ |
2366 | else |
2367 | build_libsubdir="$build_subdir" | |
11a67599 ZW |
2368 | fi |
2369 | ||
215c351a PB |
2370 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2371 | if ( test $srcdir = . && test -d gcc ) \ | |
2372 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2373 | host_subdir="host-${host_noncanonical}" | |
2374 | else | |
2375 | host_subdir=. | |
2376 | fi | |
8b87bb96 NN |
2377 | # No prefix. |
2378 | target_subdir=${target_noncanonical} | |
1c710c3c | 2379 | |
79c06341 | 2380 | |
671aa708 NN |
2381 | # Skipdirs are removed silently. |
2382 | skipdirs= | |
2383 | # Noconfigdirs are removed loudly. | |
2384 | noconfigdirs="" | |
79c06341 | 2385 | |
671aa708 NN |
2386 | use_gnu_ld= |
2387 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2388 | if test x$with_gnu_ld = xno ; then | |
2389 | use_gnu_ld=no | |
2390 | noconfigdirs="$noconfigdirs ld" | |
79c06341 JL |
2391 | fi |
2392 | ||
671aa708 NN |
2393 | use_gnu_as= |
2394 | # Make sure we don't let GNU as be added if we didn't want it. | |
2395 | if test x$with_gnu_as = xno ; then | |
2396 | use_gnu_as=no | |
2397 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2398 | fi |
2399 | ||
1c710c3c | 2400 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2401 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2402 | |
671aa708 NN |
2403 | case ${with_x} in |
2404 | yes | "") ;; # the default value for this tree is that X11 is available | |
2405 | no) | |
b4f96efe | 2406 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2407 | # We won't be able to build gdbtk without X. |
1c710c3c | 2408 | enable_gdbtk=no |
671aa708 NN |
2409 | ;; |
2410 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2411 | esac | |
79c06341 | 2412 | |
671aa708 | 2413 | # Some tools are only suitable for building in a "native" situation. |
1c710c3c | 2414 | # Remove these if host!=target. |
9e299237 | 2415 | native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" |
79c06341 | 2416 | |
671aa708 NN |
2417 | # Similarly, some are only suitable for cross toolchains. |
2418 | # Remove these if host=target. | |
2419 | cross_only="target-libgloss target-newlib target-opcodes" | |
2420 | ||
2421 | case $is_cross_compiler in | |
2422 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
2423 | yes) skipdirs="${skipdirs} ${native_only}" ;; | |
2424 | esac | |
79c06341 | 2425 | |
671aa708 NN |
2426 | # If both --with-headers and --with-libs are specified, default to |
2427 | # --without-newlib. | |
ee6a22df L |
2428 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2429 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2430 | if test x"${with_newlib}" = x ; then |
2431 | with_newlib=no | |
2432 | fi | |
79c06341 JL |
2433 | fi |
2434 | ||
671aa708 NN |
2435 | # Recognize --with-newlib/--without-newlib. |
2436 | case ${with_newlib} in | |
2437 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2438 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2439 | esac | |
79c06341 | 2440 | |
671aa708 | 2441 | # Configure extra directories which are host specific |
79c06341 | 2442 | |
671aa708 NN |
2443 | case "${host}" in |
2444 | *-cygwin*) | |
2445 | configdirs="$configdirs libtermcap" ;; | |
2446 | esac | |
79c06341 | 2447 | |
4fab7234 HPN |
2448 | # A target can indicate whether a language isn't supported for some reason. |
2449 | # Only spaces may be used in this macro; not newlines or tabs. | |
2450 | unsupported_languages= | |
2451 | ||
1c710c3c | 2452 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
2453 | # target this usually means that a port of the program doesn't |
2454 | # exist yet. | |
ec8d6ddc | 2455 | |
671aa708 NN |
2456 | case "${host}" in |
2457 | hppa*64*-*-*) | |
2458 | noconfigdirs="$noconfigdirs byacc" | |
2459 | ;; | |
f2a0e225 | 2460 | i[3456789]86-*-vsta) |
b4f96efe | 2461 | noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext" |
671aa708 | 2462 | ;; |
f2a0e225 | 2463 | i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) |
b4f96efe | 2464 | noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi" |
3aa83176 | 2465 | ;; |
95af8923 KT |
2466 | x86_64-*-mingw*) |
2467 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" | |
2468 | ;; | |
f2a0e225 | 2469 | i[3456789]86-*-mingw32*) |
b4f96efe | 2470 | # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv" |
b91f0a41 | 2471 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" |
3aa83176 | 2472 | ;; |
f2a0e225 | 2473 | i[3456789]86-*-beos*) |
b4f96efe | 2474 | noconfigdirs="$noconfigdirs tk itcl libgui gdb" |
3aa83176 | 2475 | ;; |
671aa708 | 2476 | *-*-cygwin*) |
a22c2d8d | 2477 | noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" |
671aa708 NN |
2478 | ;; |
2479 | *-*-netbsd*) | |
a22c2d8d | 2480 | noconfigdirs="$noconfigdirs rcs" |
671aa708 NN |
2481 | ;; |
2482 | ppc*-*-pe) | |
b4f96efe | 2483 | noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv" |
671aa708 NN |
2484 | ;; |
2485 | powerpc-*-beos*) | |
b4f96efe | 2486 | noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" |
671aa708 | 2487 | ;; |
671aa708 | 2488 | esac |
ec8d6ddc | 2489 | |
6de9cd9a | 2490 | |
11a67599 | 2491 | # Check whether --enable-libada was given. |
d9cdb878 | 2492 | if test "${enable_libada+set}" = set; then |
11a67599 | 2493 | enableval=$enable_libada; ENABLE_LIBADA=$enableval |
d9cdb878 AC |
2494 | else |
2495 | ENABLE_LIBADA=yes | |
11a67599 ZW |
2496 | fi |
2497 | ||
d9cdb878 | 2498 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 2499 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
2500 | fi |
2501 | ||
11a67599 | 2502 | # Check whether --enable-libssp was given. |
ef0087a7 | 2503 | if test "${enable_libssp+set}" = set; then |
11a67599 | 2504 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval |
ef0087a7 KH |
2505 | else |
2506 | ENABLE_LIBSSP=yes | |
11a67599 ZW |
2507 | fi |
2508 | ||
ef0087a7 | 2509 | |
671aa708 NN |
2510 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2511 | # front-end isn't enabled, we still get libgcj disabled. | |
2512 | libgcj_saved=$libgcj | |
2513 | case $enable_libgcj in | |
2514 | yes) | |
2515 | # If we reset it here, it won't get added to noconfigdirs in the | |
2516 | # target-specific build rules, so it will be forcibly enabled | |
2517 | # (unless the Java language itself isn't enabled). | |
2518 | libgcj= | |
2519 | ;; | |
2520 | no) | |
2521 | # Make sure we get it printed in the list of not supported target libs. | |
2522 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2523 | ;; | |
2524 | esac | |
ec8d6ddc | 2525 | |
6de9cd9a | 2526 | |
27079765 AH |
2527 | # Disable libmudflap on some systems. |
2528 | if test x$enable_libmudflap = x ; then | |
dfcada9a | 2529 | case "${target}" in |
670cbfcf | 2530 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
98a5bb3b | 2531 | # Enable libmudflap by default in GNU and friends. |
dfcada9a | 2532 | ;; |
a3e8d8b4 LR |
2533 | *-*-freebsd*) |
2534 | # Enable libmudflap by default in FreeBSD. | |
2535 | ;; | |
dfcada9a MM |
2536 | *) |
2537 | # Disable it by default everywhere else. | |
2538 | noconfigdirs="$noconfigdirs target-libmudflap" | |
2539 | ;; | |
2540 | esac | |
27079765 | 2541 | fi |
6de9cd9a | 2542 | |
27079765 AH |
2543 | # Disable libgomp on non POSIX hosted systems. |
2544 | if test x$enable_libgomp = x ; then | |
953ff289 DN |
2545 | # Enable libgomp by default on hosted POSIX systems. |
2546 | case "${target}" in | |
670cbfcf | 2547 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
953ff289 DN |
2548 | ;; |
2549 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*) | |
2550 | ;; | |
04879af3 | 2551 | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
953ff289 | 2552 | ;; |
cac90078 | 2553 | *-*-darwin* | *-*-aix*) |
953ff289 DN |
2554 | ;; |
2555 | *) | |
2556 | noconfigdirs="$noconfigdirs target-libgomp" | |
2557 | ;; | |
2558 | esac | |
27079765 | 2559 | fi |
953ff289 | 2560 | |
6de9cd9a | 2561 | |
671aa708 NN |
2562 | case "${target}" in |
2563 | *-*-chorusos) | |
cb253473 | 2564 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2565 | ;; |
42c1cd8a | 2566 | powerpc-*-darwin* | i[3456789]86-*-darwin*) |
55eb837d | 2567 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" |
9c8f9ec2 | 2568 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 2569 | ;; |
42c1cd8a AT |
2570 | *-*-darwin*) |
2571 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
2572 | noconfigdirs="$noconfigdirs sim target-rda" | |
2573 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2574 | ;; | |
671aa708 | 2575 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
cb253473 | 2576 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2577 | ;; |
c3f84f61 | 2578 | *-*-freebsd*) |
6de9cd9a DN |
2579 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
2580 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
2581 | && test -f /usr/local/include/gmp.h; then | |
2582 | with_gmp=/usr/local | |
2583 | fi | |
2584 | ||
2585 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
2586 | case "${target}" in | |
2587 | i*86-*-*) ;; | |
2588 | alpha*-*-*) ;; | |
2589 | *) | |
cb253473 | 2590 | noconfigdirs="$noconfigdirs ${libgcj}" |
6de9cd9a DN |
2591 | ;; |
2592 | esac | |
2593 | ;; | |
ef4e7569 US |
2594 | *-*-kaos*) |
2595 | # Remove unsupported stuff on all kaOS configurations. | |
cb253473 | 2596 | skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" |
ef4e7569 US |
2597 | skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" |
2598 | skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" | |
2599 | noconfigdirs="$noconfigdirs target-libgloss" | |
2600 | ;; | |
671aa708 NN |
2601 | *-*-netbsd*) |
2602 | # Skip some stuff on all NetBSD configurations. | |
2603 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" | |
2604 | ||
2605 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
2606 | case "${target}" in | |
2607 | i*86-*-netbsdelf*) ;; | |
0590b963 | 2608 | arm*-*-netbsdelf*) ;; |
671aa708 | 2609 | *) |
cb253473 | 2610 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2611 | ;; |
2612 | esac | |
2613 | ;; | |
61fec9ff | 2614 | *-*-netware*) |
cb253473 | 2615 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" |
671aa708 NN |
2616 | ;; |
2617 | *-*-rtems*) | |
cb253473 | 2618 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2619 | ;; |
a8ba31f2 EC |
2620 | # The tpf target doesn't support gdb yet. |
2621 | *-*-tpf*) | |
cb253473 | 2622 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" |
a8ba31f2 | 2623 | ;; |
5785c0ed | 2624 | *-*-uclinux*) |
cb253473 | 2625 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" |
5785c0ed | 2626 | ;; |
671aa708 | 2627 | *-*-vxworks*) |
cb253473 | 2628 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
2629 | ;; |
2630 | alpha*-dec-osf*) | |
2631 | # ld works, but does not support shared libraries. | |
2632 | # newlib is not 64 bit ready. I'm not sure about fileutils. | |
2633 | # gas doesn't generate exception information. | |
2634 | noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" | |
2635 | ;; | |
2636 | alpha*-*-*vms*) | |
cb253473 | 2637 | noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" |
671aa708 NN |
2638 | ;; |
2639 | alpha*-*-linux*) | |
2640 | # newlib is not 64 bit ready | |
2641 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2642 | ;; | |
671aa708 NN |
2643 | alpha*-*-*) |
2644 | # newlib is not 64 bit ready | |
cb253473 | 2645 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2646 | ;; |
33952f6f | 2647 | am33_2.0-*-linux*) |
cb253473 | 2648 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
33952f6f | 2649 | ;; |
671aa708 | 2650 | sh-*-linux*) |
cb253473 | 2651 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
1c710c3c | 2652 | ;; |
671aa708 | 2653 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
cb253473 | 2654 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2655 | noconfigdirs="$noconfigdirs target-examples" |
2656 | noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" | |
b4f96efe | 2657 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 NN |
2658 | noconfigdirs="$noconfigdirs expect dejagnu" |
2659 | # the C++ libraries don't build on top of CE's C libraries | |
cb543528 | 2660 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
671aa708 NN |
2661 | noconfigdirs="$noconfigdirs target-newlib" |
2662 | case "${host}" in | |
2663 | *-*-cygwin*) ;; # keep gdb and readline | |
aa9c3ab4 | 2664 | *) noconfigdirs="$noconfigdirs gdb readline" |
671aa708 NN |
2665 | ;; |
2666 | esac | |
2667 | ;; | |
2668 | arc-*-*) | |
cb253473 | 2669 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2670 | ;; |
ee6a22df | 2671 | arm-semi-aof ) |
ee6a22df | 2672 | ;; |
671aa708 | 2673 | arm-*-coff | strongarm-*-coff | xscale-*-coff) |
cb253473 | 2674 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2675 | ;; |
b3f8d95d | 2676 | arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) |
671aa708 NN |
2677 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" |
2678 | ;; | |
077fc835 KH |
2679 | arm*-*-linux-gnueabi) |
2680 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | |
2681 | noconfigdirs="$noconfigdirs target-libjava target-libobjc" | |
2682 | ;; | |
972974fc | 2683 | arm*-*-symbianelf*) |
cb253473 | 2684 | noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" |
972974fc | 2685 | ;; |
671aa708 | 2686 | arm-*-pe*) |
cb253473 | 2687 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2688 | ;; |
671aa708 | 2689 | thumb-*-coff) |
cb253473 | 2690 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2691 | ;; |
2692 | thumb-*-elf) | |
cb253473 | 2693 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2694 | ;; |
671aa708 | 2695 | thumb-*-pe) |
cb253473 | 2696 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2697 | ;; |
2698 | arm-*-riscix*) | |
cb253473 | 2699 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" |
671aa708 NN |
2700 | ;; |
2701 | avr-*-*) | |
cb253473 | 2702 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 2703 | ;; |
6b65a26d | 2704 | bfin-*-*) |
8b3c6c5a | 2705 | noconfigdirs="$noconfigdirs gdb" |
61efc800 | 2706 | if test x${is_cross_compiler} != xno ; then |
6b65a26d CM |
2707 | target_configdirs="${target_configdirs} target-bsp target-cygmon" |
2708 | fi | |
2709 | ;; | |
671aa708 | 2710 | c4x-*-* | tic4x-*-*) |
cb253473 | 2711 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2712 | ;; |
2713 | c54x*-*-* | tic54x-*-*) | |
cb253473 | 2714 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" |
671aa708 | 2715 | ;; |
40d64b5a | 2716 | cris-*-* | crisv32-*-*) |
4fab7234 | 2717 | unsupported_languages="$unsupported_languages java" |
40d64b5a | 2718 | case "${target}" in |
c2e0d3a9 | 2719 | *-*-aout) |
7f26dfa3 | 2720 | unsupported_languages="$unsupported_languages fortran" |
4fab7234 | 2721 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; |
c2e0d3a9 | 2722 | *-*-elf) |
7f26dfa3 | 2723 | unsupported_languages="$unsupported_languages fortran" |
789ec619 | 2724 | noconfigdirs="$noconfigdirs target-boehm-gc";; |
c2e0d3a9 | 2725 | *-*-linux*) |
789ec619 | 2726 | noconfigdirs="$noconfigdirs target-newlib target-libgloss";; |
40d64b5a | 2727 | *) |
7f26dfa3 | 2728 | unsupported_languages="$unsupported_languages fortran" |
cb253473 | 2729 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; |
40d64b5a | 2730 | esac |
671aa708 | 2731 | ;; |
25b656e7 | 2732 | crx-*-*) |
cb253473 | 2733 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" |
25b656e7 | 2734 | ;; |
671aa708 | 2735 | d10v-*-*) |
cb253473 | 2736 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2737 | ;; |
2738 | d30v-*-*) | |
cb253473 | 2739 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
2740 | ;; |
2741 | fr30-*-elf*) | |
cb253473 | 2742 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
2743 | ;; |
2744 | frv-*-*) | |
cb253473 | 2745 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2746 | ;; |
2747 | h8300*-*-*) | |
cb253473 | 2748 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2749 | ;; |
2750 | h8500-*-*) | |
cb253473 | 2751 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2752 | ;; |
ee6a22df | 2753 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 2754 | ;; |
671aa708 NN |
2755 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
2756 | # In this case, it's because the hppa64-linux target is for | |
2757 | # the kernel only at this point and has no libc, and thus no | |
2758 | # headers, crt*.o, etc., all of which are needed by these. | |
2759 | noconfigdirs="$noconfigdirs target-zlib" | |
2760 | ;; | |
3e732ba0 JDA |
2761 | parisc*-*-linux* | hppa*-*-linux*) |
2762 | ;; | |
671aa708 | 2763 | hppa*-*-*elf* | \ |
671aa708 NN |
2764 | hppa*-*-lites* | \ |
2765 | hppa*-*-openbsd* | \ | |
2766 | hppa*64*-*-*) | |
cb253473 | 2767 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2768 | ;; |
2a332582 JDA |
2769 | hppa*-hp-hpux11*) |
2770 | noconfigdirs="$noconfigdirs ld shellutils" | |
2771 | ;; | |
671aa708 NN |
2772 | hppa*-*-*) |
2773 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
2774 | # build on HP-UX 10.20. | |
cb253473 | 2775 | noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" |
671aa708 | 2776 | ;; |
fb87ad5d | 2777 | i960-*-*) |
cb253473 | 2778 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
fb87ad5d | 2779 | ;; |
671aa708 NN |
2780 | ia64*-*-elf*) |
2781 | # No gdb support yet. | |
b4f96efe | 2782 | noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" |
671aa708 NN |
2783 | ;; |
2784 | ia64*-**-hpux*) | |
2785 | # No gdb or ld support yet. | |
cb253473 | 2786 | noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" |
671aa708 | 2787 | ;; |
ee6a22df | 2788 | i370-*-opened*) |
ee6a22df | 2789 | ;; |
f2a0e225 | 2790 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
cb253473 | 2791 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2792 | ;; |
f2a0e225 | 2793 | i[3456789]86-*-linux*) |
671aa708 NN |
2794 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's |
2795 | # not build java stuff by default. | |
2796 | case "${target}" in | |
2797 | *-*-*libc1*) | |
cb253473 | 2798 | noconfigdirs="$noconfigdirs ${libgcj}";; |
671aa708 NN |
2799 | esac |
2800 | ||
2801 | # This section makes it possible to build newlib natively on linux. | |
2802 | # If we are using a cross compiler then don't configure newlib. | |
2803 | if test x${is_cross_compiler} != xno ; then | |
3aa83176 | 2804 | noconfigdirs="$noconfigdirs target-newlib" |
671aa708 NN |
2805 | fi |
2806 | noconfigdirs="$noconfigdirs target-libgloss" | |
2807 | # If we are not using a cross compiler, do configure newlib. | |
2808 | # Note however, that newlib will only be configured in this situation | |
2809 | # if the --with-newlib option has been given, because otherwise | |
2810 | # 'target-newlib' will appear in skipdirs. | |
2811 | ;; | |
f2a0e225 | 2812 | i[3456789]86-*-mingw32*) |
b91f0a41 CV |
2813 | target_configdirs="$target_configdirs target-winsup" |
2814 | noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" | |
1c710c3c | 2815 | ;; |
95af8923 KT |
2816 | x86_64-*-mingw*) |
2817 | target_configdirs="$target_configdirs target-winsup" | |
2818 | noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" | |
1c710c3c | 2819 | ;; |
671aa708 NN |
2820 | *-*-cygwin*) |
2821 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
cb253473 | 2822 | noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" |
801e2270 | 2823 | # always build newlib if winsup directory is present. |
b91f0a41 | 2824 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 2825 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 2826 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 2827 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 2828 | fi |
1c710c3c | 2829 | ;; |
ee6a22df L |
2830 | i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \ |
2831 | i[3456789]86-*-uwin* | i[3456789]86-*-interix* ) | |
ee6a22df | 2832 | ;; |
f2a0e225 | 2833 | i[3456789]86-*-pe) |
cb253473 | 2834 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2835 | ;; |
f2a0e225 | 2836 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
2837 | # The linker does not yet know about weak symbols in COFF, |
2838 | # and is not configured to handle mixed ELF and COFF. | |
cb253473 | 2839 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" |
671aa708 | 2840 | ;; |
f2a0e225 | 2841 | i[3456789]86-*-sco*) |
cb253473 | 2842 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2843 | ;; |
f2a0e225 | 2844 | i[3456789]86-*-solaris2*) |
671aa708 NN |
2845 | noconfigdirs="$noconfigdirs target-libgloss" |
2846 | ;; | |
f2a0e225 | 2847 | i[3456789]86-*-sysv4*) |
cb253473 | 2848 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2849 | ;; |
f2a0e225 | 2850 | i[3456789]86-*-beos*) |
cb253473 | 2851 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
3aa83176 | 2852 | ;; |
d1f8db0c PB |
2853 | i[3456789]86-*-rdos*) |
2854 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
2855 | ;; | |
fb87ad5d | 2856 | m32r-*-*) |
cb253473 | 2857 | noconfigdirs="$noconfigdirs ${libgcj}" |
fb87ad5d | 2858 | ;; |
671aa708 | 2859 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
cb253473 | 2860 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
2861 | ;; |
2862 | m68k-*-elf*) | |
cb253473 | 2863 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2864 | ;; |
2865 | m68k-*-coff*) | |
cb253473 | 2866 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2867 | ;; |
2868 | mcore-*-pe*) | |
2869 | # The EPOC C++ environment does not support exceptions or rtti, | |
2870 | # and so building libstdc++-v3 tends not to always work. | |
2871 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
2872 | ;; | |
2873 | mmix-*-*) | |
4fab7234 | 2874 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" |
7f26dfa3 | 2875 | unsupported_languages="$unsupported_languages fortran java" |
671aa708 NN |
2876 | ;; |
2877 | mn10200-*-*) | |
cb253473 | 2878 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2879 | ;; |
2880 | mn10300-*-*) | |
cb253473 | 2881 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2882 | ;; |
ab34901f | 2883 | mt-*-*) |
79dd769c AH |
2884 | noconfigdirs="$noconfigdirs sim" |
2885 | ;; | |
671aa708 NN |
2886 | powerpc-*-aix*) |
2887 | # copied from rs6000-*-* entry | |
cb253473 | 2888 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2889 | ;; |
2890 | powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) | |
2891 | target_configdirs="$target_configdirs target-winsup" | |
cb253473 | 2892 | noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}" |
671aa708 NN |
2893 | # always build newlib. |
2894 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
2895 | ;; | |
2896 | # This is temporary until we can link against shared libraries | |
2897 | powerpcle-*-solaris*) | |
cb253473 | 2898 | noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" |
671aa708 NN |
2899 | ;; |
2900 | powerpc-*-beos*) | |
cb253473 | 2901 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
671aa708 | 2902 | ;; |
671aa708 | 2903 | powerpc-*-eabi) |
cb253473 | 2904 | noconfigdirs="$noconfigdirs ${libgcj}" |
ee6a22df L |
2905 | ;; |
2906 | powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) | |
671aa708 | 2907 | ;; |
671aa708 | 2908 | rs6000-*-lynxos*) |
cb253473 | 2909 | noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" |
671aa708 NN |
2910 | ;; |
2911 | rs6000-*-aix*) | |
cb253473 | 2912 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2913 | ;; |
2914 | rs6000-*-*) | |
cb253473 | 2915 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
671aa708 NN |
2916 | ;; |
2917 | m68k-apollo-*) | |
cb253473 | 2918 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" |
671aa708 NN |
2919 | ;; |
2920 | mips*-*-irix5*) | |
cb253473 | 2921 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
2922 | ;; |
2923 | mips*-*-irix6*) | |
671aa708 NN |
2924 | # Linking libjava exceeds command-line length limits on at least |
2925 | # IRIX 6.2, but not on IRIX 6.5. | |
2926 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
2927 | # <oldham@codesourcery.com> | |
cb253473 | 2928 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2929 | ;; |
671aa708 | 2930 | mips*-*-bsd*) |
cb253473 | 2931 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2932 | ;; |
d0fe5ad3 | 2933 | mips64*-*-linux*) |
1ee4c5a0 | 2934 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
d0fe5ad3 | 2935 | ;; |
671aa708 NN |
2936 | mips*-*-linux*) |
2937 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2938 | ;; | |
2939 | mips*-*-*) | |
cb253473 | 2940 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
671aa708 NN |
2941 | ;; |
2942 | romp-*-*) | |
cb253473 | 2943 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" |
671aa708 | 2944 | ;; |
669f01d8 | 2945 | sh-*-* | sh64-*-*) |
671aa708 | 2946 | case "${host}" in |
f2a0e225 KC |
2947 | i[3456789]86-*-vsta) ;; # don't add gprof back in |
2948 | i[3456789]86-*-go32*) ;; # don't add gprof back in | |
2949 | i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in | |
671aa708 NN |
2950 | *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; |
2951 | esac | |
cb253473 | 2952 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2953 | ;; |
671aa708 | 2954 | sparc-*-elf*) |
cb253473 | 2955 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2956 | ;; |
2957 | sparc64-*-elf*) | |
cb253473 | 2958 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2959 | ;; |
2960 | sparclite-*-*) | |
cb253473 | 2961 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2962 | ;; |
2963 | sparc-*-sunos4*) | |
cb253473 | 2964 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2965 | if test x${is_cross_compiler} != xno ; then |
2966 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
2967 | else | |
2968 | use_gnu_ld=no | |
2969 | fi | |
2970 | ;; | |
bba5e0ca | 2971 | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
cb253473 | 2972 | noconfigdirs="$noconfigdirs ${libgcj}" |
bba5e0ca | 2973 | ;; |
671aa708 NN |
2974 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) |
2975 | ;; | |
85d9c13c | 2976 | spu-*-*) |
ea6f5c57 | 2977 | skipdirs="target-libssp" |
85d9c13c | 2978 | ;; |
671aa708 | 2979 | v810-*-*) |
cb253473 | 2980 | noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" |
671aa708 NN |
2981 | ;; |
2982 | v850-*-*) | |
cb253473 | 2983 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2984 | ;; |
2985 | v850e-*-*) | |
cb253473 | 2986 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2987 | ;; |
2988 | v850ea-*-*) | |
cb253473 | 2989 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2990 | ;; |
2991 | vax-*-vms) | |
cb253473 | 2992 | noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" |
671aa708 NN |
2993 | ;; |
2994 | vax-*-*) | |
cb253473 | 2995 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2996 | ;; |
0d4f1b4e | 2997 | xtensa-*-*) |
cb253473 | 2998 | noconfigdirs="$noconfigdirs ${libgcj}" |
0d4f1b4e | 2999 | ;; |
671aa708 | 3000 | ip2k-*-*) |
cb253473 | 3001 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 3002 | ;; |
c3f84f61 | 3003 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
671aa708 NN |
3004 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
3005 | ;; | |
3006 | *-*-lynxos*) | |
cb253473 | 3007 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
1c710c3c | 3008 | ;; |
671aa708 | 3009 | *-*-*) |
cb253473 | 3010 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
3011 | ;; |
3012 | esac | |
79c06341 | 3013 | |
671aa708 NN |
3014 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3015 | # depends upon some newlib header files. | |
3016 | case "${noconfigdirs}" in | |
3017 | *target-libgloss*) ;; | |
3018 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3019 | esac | |
3020 | ||
671aa708 NN |
3021 | # Work in distributions that contain no compiler tools, like Autoconf. |
3022 | tentative_cc="" | |
3023 | host_makefile_frag=/dev/null | |
3024 | if test -d ${srcdir}/config ; then | |
3025 | case "${host}" in | |
3026 | m68k-hp-hpux*) | |
3027 | # Avoid "too much defining" errors from HPUX compiler. | |
3028 | tentative_cc="cc -Wp,-H256000" | |
3029 | # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. | |
3030 | # If it's HP/UX ar, this should be harmless. | |
3031 | RANLIB="ar ts" | |
3032 | ;; | |
3033 | m68k-apollo-sysv*) | |
3034 | tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" | |
3035 | ;; | |
3036 | m68k-apollo-bsd*) | |
3037 | #None of the Apollo compilers can compile gas or binutils. The preprocessor | |
3038 | # chokes on bfd, the compiler won't let you assign integers to enums, and | |
3039 | # other problems. Defining CC to gcc is a questionable way to say "don't use | |
3040 | # the apollo compiler" (the preferred version of GCC could be called cc, | |
3041 | # or whatever), but I'm not sure leaving CC as cc is any better... | |
3042 | #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG | |
3043 | # Used to have BISON=yacc. | |
3044 | tentative_cc=gcc | |
3045 | ;; | |
3046 | m88k-dg-dgux*) | |
3047 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" | |
671aa708 NN |
3048 | ;; |
3049 | m88k-harris-cxux*) | |
3050 | # Under CX/UX, we want to tell the compiler to use ANSI mode. | |
3051 | tentative_cc="cc -Xa" | |
3052 | host_makefile_frag="config/mh-cxux" | |
3053 | ;; | |
3054 | m88k-motorola-sysv*) | |
3055 | ;; | |
3056 | mips*-dec-ultrix*) | |
3057 | tentative_cc="cc -Wf,-XNg1000" | |
3058 | host_makefile_frag="config/mh-decstation" | |
3059 | ;; | |
3060 | mips*-nec-sysv4*) | |
3061 | # The C compiler on NEC MIPS SVR4 needs bigger tables. | |
3062 | tentative_cc="cc -ZXNd=5000 -ZXNg=1000" | |
3063 | host_makefile_frag="config/mh-necv4" | |
3064 | ;; | |
3065 | mips*-sgi-irix4*) | |
3066 | # Tell compiler to use K&R C. We can't compile under the SGI Ansi | |
3067 | # environment. Also bump switch table size so that cp-parse will | |
3068 | # compile. Bump string length limit so linker builds. | |
3069 | tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" | |
3070 | ;; | |
3071 | mips*-*-sysv4*) | |
3072 | host_makefile_frag="config/mh-sysv4" | |
3073 | ;; | |
3074 | mips*-*-sysv*) | |
3075 | # This is for a MIPS running RISC/os 4.52C. | |
3076 | ||
3077 | # This is needed for GDB, but needs to be in the top-level make because | |
3078 | # if a library is compiled with the bsd headers and gets linked with the | |
3079 | # sysv system libraries all hell can break loose (e.g. a jmp_buf might be | |
3080 | # a different size). | |
3081 | # ptrace(2) apparently has problems in the BSD environment. No workaround is | |
3082 | # known except to select the sysv environment. Could we use /proc instead? | |
3083 | # These "sysv environments" and "bsd environments" often end up being a pain. | |
3084 | # | |
3085 | # This is not part of CFLAGS because perhaps not all C compilers have this | |
3086 | # option. | |
3087 | tentative_cc="cc -systype sysv" | |
3088 | ;; | |
3089 | i370-ibm-opened*) | |
3090 | tentative_cc="c89" | |
3091 | ;; | |
f2a0e225 | 3092 | i[3456789]86-*-sysv5*) |
671aa708 NN |
3093 | host_makefile_frag="config/mh-sysv5" |
3094 | ;; | |
f2a0e225 | 3095 | i[3456789]86-*-dgux*) |
671aa708 NN |
3096 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" |
3097 | host_makefile_frag="config/mh-dgux386" | |
3098 | ;; | |
f2a0e225 | 3099 | i[3456789]86-ncr-sysv4.3*) |
671aa708 NN |
3100 | # The MetaWare compiler will generate a copyright message unless you |
3101 | # turn it off by adding the -Hnocopyr flag. | |
3102 | tentative_cc="cc -Hnocopyr" | |
3103 | ;; | |
f2a0e225 | 3104 | i[3456789]86-ncr-sysv4*) |
671aa708 NN |
3105 | # for an NCR 3000 (i486/SVR4) system. |
3106 | # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. | |
3107 | # This compiler not only emits obnoxious copyright messages every time | |
3108 | # you run it, but it chokes and dies on a whole bunch of GNU source | |
3109 | # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. | |
3110 | tentative_cc="/usr/ccs/ATT/cc" | |
3111 | host_makefile_frag="config/mh-ncr3000" | |
3112 | ;; | |
f2a0e225 | 3113 | i[3456789]86-*-sco3.2v5*) |
671aa708 | 3114 | ;; |
f2a0e225 | 3115 | i[3456789]86-*-sco*) |
671aa708 NN |
3116 | # The native C compiler botches some simple uses of const. Unfortunately, |
3117 | # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. | |
3118 | tentative_cc="cc -Dconst=" | |
3119 | host_makefile_frag="config/mh-sco" | |
3120 | ;; | |
f2a0e225 | 3121 | i[3456789]86-*-udk*) |
671aa708 NN |
3122 | host_makefile_frag="config/mh-sysv5" |
3123 | ;; | |
f2a0e225 | 3124 | i[3456789]86-*-solaris2*) |
671aa708 NN |
3125 | host_makefile_frag="config/mh-sysv4" |
3126 | ;; | |
f2a0e225 | 3127 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3128 | host_makefile_frag="config/mh-djgpp" |
3129 | ;; | |
3130 | *-cygwin*) | |
3131 | host_makefile_frag="config/mh-cygwin" | |
3132 | ;; | |
3133 | *-mingw32*) | |
671aa708 | 3134 | ;; |
95af8923 KT |
3135 | *-mingw64*) |
3136 | ;; | |
671aa708 NN |
3137 | *-interix*) |
3138 | host_makefile_frag="config/mh-interix" | |
3139 | ;; | |
3140 | vax-*-ultrix2*) | |
3141 | # The old BSD pcc isn't up to compiling parts of gdb so use gcc | |
3142 | tentative_cc=gcc | |
3143 | ;; | |
3144 | *-*-solaris2*) | |
3145 | host_makefile_frag="config/mh-solaris" | |
3146 | ;; | |
3147 | m68k-sun-sunos*) | |
3148 | # Sun's C compiler needs the -J flag to be able to compile cp-parse.c | |
3149 | # without overflowing the jump tables (-J says to use a 32 bit table) | |
3150 | tentative_cc="cc -J" | |
3151 | ;; | |
3152 | *-hp-hpux*) | |
3153 | tentative_cc="cc -Wp,-H256000" | |
3154 | ;; | |
3155 | *-*-hiux*) | |
3156 | tentative_cc="cc -Wp,-H256000" | |
3157 | ;; | |
3158 | rs6000-*-lynxos*) | |
3159 | # /bin/cc is less than useful for our purposes. Always use GCC | |
3160 | tentative_cc="/usr/cygnus/progressive/bin/gcc" | |
3161 | host_makefile_frag="config/mh-lynxrs6k" | |
3162 | ;; | |
45f366ab | 3163 | powerpc-*-darwin*) |
be8fff81 RB |
3164 | host_makefile_frag="config/mh-ppc-darwin" |
3165 | ;; | |
d19bca38 PB |
3166 | powerpc-*-aix*) |
3167 | host_makefile_frag="config/mh-ppc-aix" | |
3168 | ;; | |
3169 | rs6000-*-aix*) | |
3170 | host_makefile_frag="config/mh-ppc-aix" | |
3171 | ;; | |
671aa708 NN |
3172 | *-*-lynxos*) |
3173 | # /bin/cc is less than useful for our purposes. Always use GCC | |
3174 | tentative_cc="/bin/gcc" | |
3175 | ;; | |
3176 | *-*-sysv4*) | |
3177 | host_makefile_frag="config/mh-sysv4" | |
3178 | ;; | |
95c53c62 RS |
3179 | # This is placed last to prevent interfering with the cases above. |
3180 | i[3456789]86-*-*) | |
3181 | # Build the stage2 and stage3 compilers with -fomit-frame-pointer. | |
3182 | host_makefile_frag="config/mh-x86omitfp" | |
3183 | ;; | |
671aa708 NN |
3184 | esac |
3185 | fi | |
3186 | ||
55ffb5ed NN |
3187 | # If we aren't going to be using gcc, see if we can extract a definition |
3188 | # of CC from the fragment. | |
3189 | # Actually, use the 'pre-extracted' version above. | |
3190 | if test -z "${CC}" && test "${build}" = "${host}" ; then | |
3191 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
3192 | found= | |
3193 | for dir in $PATH; do | |
3194 | test -z "$dir" && dir=. | |
3195 | if test -f $dir/gcc; then | |
3196 | found=yes | |
3197 | break | |
3198 | fi | |
3199 | done | |
3200 | IFS="$save_ifs" | |
3201 | if test -z "${found}" && test -n "${tentative_cc}" ; then | |
3202 | CC=$tentative_cc | |
3203 | fi | |
3204 | fi | |
3205 | ||
3206 | if test "${build}" != "${host}" ; then | |
55ffb5ed | 3207 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
55ffb5ed | 3208 | else |
fb0103e5 | 3209 | CC_FOR_BUILD="\$(CC)" |
c3a86da9 DJ |
3210 | fi |
3211 | ||
3212 | ac_ext=c | |
1c710c3c DJ |
3213 | ac_cpp='$CPP $CPPFLAGS' |
3214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3217 | if test -n "$ac_tool_prefix"; then | |
3218 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3219 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11a67599 ZW |
3220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
3222 | if test "${ac_cv_prog_CC+set}" = set; then |
3223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3224 | else | |
3225 | if test -n "$CC"; then | |
3226 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3227 | else | |
3228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3229 | for as_dir in $PATH | |
3230 | do | |
3231 | IFS=$as_save_IFS | |
3232 | test -z "$as_dir" && as_dir=. | |
3233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 3234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
3235 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3237 | break 2 | |
3238 | fi | |
3239 | done | |
3240 | done | |
11a67599 | 3241 | IFS=$as_save_IFS |
1c710c3c DJ |
3242 | |
3243 | fi | |
3244 | fi | |
3245 | CC=$ac_cv_prog_CC | |
3246 | if test -n "$CC"; then | |
11a67599 ZW |
3247 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3248 | echo "${ECHO_T}$CC" >&6; } | |
1c710c3c | 3249 | else |
11a67599 ZW |
3250 | { echo "$as_me:$LINENO: result: no" >&5 |
3251 | echo "${ECHO_T}no" >&6; } | |
1c710c3c DJ |
3252 | fi |
3253 | ||
11a67599 | 3254 | |
1c710c3c DJ |
3255 | fi |
3256 | if test -z "$ac_cv_prog_CC"; then | |
3257 | ac_ct_CC=$CC | |
fb0103e5 RG |
3258 | # Extract the first word of "gcc", so it can be a program name with args. |
3259 | set dummy gcc; ac_word=$2 | |
11a67599 ZW |
3260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
3262 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3264 | else | |
3265 | if test -n "$ac_ct_CC"; then | |
3266 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3267 | else | |
3268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3269 | for as_dir in $PATH | |
3270 | do | |
3271 | IFS=$as_save_IFS | |
3272 | test -z "$as_dir" && as_dir=. | |
3273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 3274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
3275 | ac_cv_prog_ac_ct_CC="gcc" |
3276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3277 | break 2 | |
3278 | fi | |
3279 | done | |
3280 | done | |
11a67599 | 3281 | IFS=$as_save_IFS |
1c710c3c DJ |
3282 | |
3283 | fi | |
3284 | fi | |
3285 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3286 | if test -n "$ac_ct_CC"; then | |
11a67599 ZW |
3287 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3288 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1c710c3c | 3289 | else |
11a67599 ZW |
3290 | { echo "$as_me:$LINENO: result: no" >&5 |
3291 | echo "${ECHO_T}no" >&6; } | |
1c710c3c DJ |
3292 | fi |
3293 | ||
11a67599 ZW |
3294 | if test "x$ac_ct_CC" = x; then |
3295 | CC="" | |
3296 | else | |
3297 | case $cross_compiling:$ac_tool_warned in | |
3298 | yes:) | |
3299 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3300 | whose name does not start with the host triplet. If you think this | |
3301 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3302 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3303 | whose name does not start with the host triplet. If you think this | |
3304 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3305 | ac_tool_warned=yes ;; | |
3306 | esac | |
3307 | CC=$ac_ct_CC | |
3308 | fi | |
1c710c3c DJ |
3309 | else |
3310 | CC="$ac_cv_prog_CC" | |
3311 | fi | |
3312 | ||
3313 | if test -z "$CC"; then | |
11a67599 ZW |
3314 | if test -n "$ac_tool_prefix"; then |
3315 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 3316 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
11a67599 ZW |
3317 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3318 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
3319 | if test "${ac_cv_prog_CC+set}" = set; then |
3320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3321 | else |
3322 | if test -n "$CC"; then | |
3323 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3324 | else | |
1c710c3c DJ |
3325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3326 | for as_dir in $PATH | |
3327 | do | |
3328 | IFS=$as_save_IFS | |
3329 | test -z "$as_dir" && as_dir=. | |
3330 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 3331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
3332 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3333 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3334 | break 2 | |
3335 | fi | |
3336 | done | |
3337 | done | |
11a67599 | 3338 | IFS=$as_save_IFS |
1c710c3c | 3339 | |
0b0dc272 | 3340 | fi |
0b0dc272 | 3341 | fi |
1c710c3c | 3342 | CC=$ac_cv_prog_CC |
af71363e | 3343 | if test -n "$CC"; then |
11a67599 ZW |
3344 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3345 | echo "${ECHO_T}$CC" >&6; } | |
0b0dc272 | 3346 | else |
11a67599 ZW |
3347 | { echo "$as_me:$LINENO: result: no" >&5 |
3348 | echo "${ECHO_T}no" >&6; } | |
0b0dc272 AM |
3349 | fi |
3350 | ||
1c710c3c | 3351 | |
11a67599 | 3352 | fi |
1c710c3c | 3353 | fi |
55ffb5ed NN |
3354 | if test -z "$CC"; then |
3355 | # Extract the first word of "cc", so it can be a program name with args. | |
3356 | set dummy cc; ac_word=$2 | |
11a67599 ZW |
3357 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
3359 | if test "${ac_cv_prog_CC+set}" = set; then |
3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3361 | else |
3362 | if test -n "$CC"; then | |
3363 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3364 | else | |
0b0dc272 | 3365 | ac_prog_rejected=no |
1c710c3c DJ |
3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3367 | for as_dir in $PATH | |
3368 | do | |
3369 | IFS=$as_save_IFS | |
3370 | test -z "$as_dir" && as_dir=. | |
3371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 3372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
3373 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3374 | ac_prog_rejected=yes | |
3375 | continue | |
3376 | fi | |
3377 | ac_cv_prog_CC="cc" | |
3378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3379 | break 2 | |
3380 | fi | |
3381 | done | |
3382 | done | |
11a67599 | 3383 | IFS=$as_save_IFS |
1c710c3c | 3384 | |
55ffb5ed NN |
3385 | if test $ac_prog_rejected = yes; then |
3386 | # We found a bogon in the path, so make sure we never use it. | |
3387 | set dummy $ac_cv_prog_CC | |
3388 | shift | |
1c710c3c | 3389 | if test $# != 0; then |
55ffb5ed NN |
3390 | # We chose a different compiler from the bogus one. |
3391 | # However, it has the same basename, so the bogon will be chosen | |
3392 | # first if we set CC to just the basename; use the full file name. | |
3393 | shift | |
1c710c3c | 3394 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
3395 | fi |
3396 | fi | |
3397 | fi | |
3398 | fi | |
1c710c3c | 3399 | CC=$ac_cv_prog_CC |
55ffb5ed | 3400 | if test -n "$CC"; then |
11a67599 ZW |
3401 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3402 | echo "${ECHO_T}$CC" >&6; } | |
55ffb5ed | 3403 | else |
11a67599 ZW |
3404 | { echo "$as_me:$LINENO: result: no" >&5 |
3405 | echo "${ECHO_T}no" >&6; } | |
55ffb5ed NN |
3406 | fi |
3407 | ||
11a67599 | 3408 | |
1c710c3c DJ |
3409 | fi |
3410 | if test -z "$CC"; then | |
3411 | if test -n "$ac_tool_prefix"; then | |
11a67599 | 3412 | for ac_prog in cl.exe |
1c710c3c DJ |
3413 | do |
3414 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3415 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11a67599 ZW |
3416 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
3418 | if test "${ac_cv_prog_CC+set}" = set; then |
3419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3420 | else |
3421 | if test -n "$CC"; then | |
3422 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3423 | else | |
1c710c3c DJ |
3424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3425 | for as_dir in $PATH | |
3426 | do | |
3427 | IFS=$as_save_IFS | |
3428 | test -z "$as_dir" && as_dir=. | |
3429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 3430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
3431 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3433 | break 2 | |
3434 | fi | |
3435 | done | |
3436 | done | |
11a67599 | 3437 | IFS=$as_save_IFS |
1c710c3c | 3438 | |
55ffb5ed NN |
3439 | fi |
3440 | fi | |
1c710c3c | 3441 | CC=$ac_cv_prog_CC |
55ffb5ed | 3442 | if test -n "$CC"; then |
11a67599 ZW |
3443 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3444 | echo "${ECHO_T}$CC" >&6; } | |
a4b9e93e | 3445 | else |
11a67599 ZW |
3446 | { echo "$as_me:$LINENO: result: no" >&5 |
3447 | echo "${ECHO_T}no" >&6; } | |
fb0103e5 | 3448 | fi |
af71363e | 3449 | |
11a67599 | 3450 | |
1c710c3c DJ |
3451 | test -n "$CC" && break |
3452 | done | |
af71363e | 3453 | fi |
1c710c3c DJ |
3454 | if test -z "$CC"; then |
3455 | ac_ct_CC=$CC | |
11a67599 | 3456 | for ac_prog in cl.exe |
1c710c3c DJ |
3457 | do |
3458 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3459 | set dummy $ac_prog; ac_word=$2 | |
11a67599 ZW |
3460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
3462 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0b0dc272 | 3464 | else |
1c710c3c DJ |
3465 | if test -n "$ac_ct_CC"; then |
3466 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 3467 | else |
1c710c3c DJ |
3468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3469 | for as_dir in $PATH | |
3470 | do | |
3471 | IFS=$as_save_IFS | |
3472 | test -z "$as_dir" && as_dir=. | |
3473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 3474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
3475 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3477 | break 2 | |
3478 | fi | |
3479 | done | |
3480 | done | |
11a67599 | 3481 | IFS=$as_save_IFS |
1c710c3c | 3482 | |
af71363e AS |
3483 | fi |
3484 | fi | |
1c710c3c DJ |
3485 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3486 | if test -n "$ac_ct_CC"; then | |
11a67599 ZW |
3487 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3488 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
fb0103e5 | 3489 | else |
11a67599 ZW |
3490 | { echo "$as_me:$LINENO: result: no" >&5 |
3491 | echo "${ECHO_T}no" >&6; } | |
af71363e | 3492 | fi |
0b0dc272 | 3493 | |
11a67599 | 3494 | |
1c710c3c DJ |
3495 | test -n "$ac_ct_CC" && break |
3496 | done | |
3497 | ||
11a67599 ZW |
3498 | if test "x$ac_ct_CC" = x; then |
3499 | CC="" | |
3500 | else | |
3501 | case $cross_compiling:$ac_tool_warned in | |
3502 | yes:) | |
3503 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3504 | whose name does not start with the host triplet. If you think this | |
3505 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3506 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3507 | whose name does not start with the host triplet. If you think this | |
3508 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3509 | ac_tool_warned=yes ;; | |
3510 | esac | |
3511 | CC=$ac_ct_CC | |
3512 | fi | |
1c710c3c DJ |
3513 | fi |
3514 | ||
3515 | fi | |
3516 | ||
3517 | ||
3518 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3519 | See \`config.log' for more details." >&5 | |
3520 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3521 | See \`config.log' for more details." >&2;} | |
3522 | { (exit 1); exit 1; }; } | |
3523 | ||
3524 | # Provide some information about the compiler. | |
11a67599 | 3525 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
1c710c3c | 3526 | ac_compiler=`set X $ac_compile; echo $2` |
11a67599 ZW |
3527 | { (ac_try="$ac_compiler --version >&5" |
3528 | case "(($ac_try" in | |
3529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3530 | *) ac_try_echo=$ac_try;; | |
3531 | esac | |
3532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3533 | (eval "$ac_compiler --version >&5") 2>&5 | |
1c710c3c DJ |
3534 | ac_status=$? |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3536 | (exit $ac_status); } | |
11a67599 ZW |
3537 | { (ac_try="$ac_compiler -v >&5" |
3538 | case "(($ac_try" in | |
3539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3540 | *) ac_try_echo=$ac_try;; | |
3541 | esac | |
3542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3543 | (eval "$ac_compiler -v >&5") 2>&5 | |
1c710c3c DJ |
3544 | ac_status=$? |
3545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3546 | (exit $ac_status); } | |
11a67599 ZW |
3547 | { (ac_try="$ac_compiler -V >&5" |
3548 | case "(($ac_try" in | |
3549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3550 | *) ac_try_echo=$ac_try;; | |
3551 | esac | |
3552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3553 | (eval "$ac_compiler -V >&5") 2>&5 | |
1c710c3c DJ |
3554 | ac_status=$? |
3555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3556 | (exit $ac_status); } | |
3557 | ||
3558 | cat >conftest.$ac_ext <<_ACEOF | |
3559 | /* confdefs.h. */ | |
3560 | _ACEOF | |
3561 | cat confdefs.h >>conftest.$ac_ext | |
3562 | cat >>conftest.$ac_ext <<_ACEOF | |
3563 | /* end confdefs.h. */ | |
3564 | ||
3565 | int | |
3566 | main () | |
3567 | { | |
3568 | ||
3569 | ; | |
3570 | return 0; | |
3571 | } | |
3572 | _ACEOF | |
3573 | ac_clean_files_save=$ac_clean_files | |
3574 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3575 | # Try to create an executable without -o first, disregard a.out. | |
3576 | # It will help us diagnose broken compilers, and finding out an intuition | |
3577 | # of exeext. | |
11a67599 ZW |
3578 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3579 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
1c710c3c | 3580 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11a67599 ZW |
3581 | # |
3582 | # List of possible output files, starting from the most likely. | |
3583 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
3584 | # only as a last resort. b.out is created by i960 compilers. | |
3585 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
3586 | # | |
3587 | # The IRIX 6 linker writes into existing files which may not be | |
3588 | # executable, retaining their permissions. Remove them first so a | |
3589 | # subsequent execution test works. | |
3590 | ac_rmfiles= | |
3591 | for ac_file in $ac_files | |
3592 | do | |
3593 | case $ac_file in | |
3594 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3595 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3596 | esac | |
3597 | done | |
3598 | rm -f $ac_rmfiles | |
3599 | ||
3600 | if { (ac_try="$ac_link_default" | |
3601 | case "(($ac_try" in | |
3602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3603 | *) ac_try_echo=$ac_try;; | |
3604 | esac | |
3605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3606 | (eval "$ac_link_default") 2>&5 | |
1c710c3c DJ |
3607 | ac_status=$? |
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3609 | (exit $ac_status); }; then | |
11a67599 ZW |
3610 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3611 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3612 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3613 | # so that the user can short-circuit this test for compilers unknown to | |
3614 | # Autoconf. | |
3615 | for ac_file in $ac_files '' | |
1c710c3c DJ |
3616 | do |
3617 | test -f "$ac_file" || continue | |
3618 | case $ac_file in | |
11a67599 | 3619 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
1c710c3c DJ |
3620 | ;; |
3621 | [ab].out ) | |
3622 | # We found the default executable, but exeext='' is most | |
3623 | # certainly right. | |
3624 | break;; | |
3625 | *.* ) | |
11a67599 ZW |
3626 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3627 | then :; else | |
3628 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3629 | fi | |
3630 | # We set ac_cv_exeext here because the later test for it is not | |
3631 | # safe: cross compilers may not add the suffix if given an `-o' | |
3632 | # argument, so we may need to know it at that point already. | |
3633 | # Even if this section looks crufty: it has the advantage of | |
3634 | # actually working. | |
1c710c3c DJ |
3635 | break;; |
3636 | * ) | |
3637 | break;; | |
3638 | esac | |
3639 | done | |
11a67599 ZW |
3640 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3641 | ||
1c710c3c | 3642 | else |
11a67599 ZW |
3643 | ac_file='' |
3644 | fi | |
3645 | ||
3646 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3647 | echo "${ECHO_T}$ac_file" >&6; } | |
3648 | if test -z "$ac_file"; then | |
1c710c3c DJ |
3649 | echo "$as_me: failed program was:" >&5 |
3650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3651 | ||
3652 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3653 | See \`config.log' for more details." >&5 | |
3654 | echo "$as_me: error: C compiler cannot create executables | |
3655 | See \`config.log' for more details." >&2;} | |
3656 | { (exit 77); exit 77; }; } | |
3657 | fi | |
3658 | ||
3659 | ac_exeext=$ac_cv_exeext | |
1c710c3c | 3660 | |
11a67599 | 3661 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 3662 | # the compiler is broken, or we cross compile. |
11a67599 ZW |
3663 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3664 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
1c710c3c DJ |
3665 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3666 | # If not cross compiling, check that we can run a simple program. | |
3667 | if test "$cross_compiling" != yes; then | |
3668 | if { ac_try='./$ac_file' | |
11a67599 ZW |
3669 | { (case "(($ac_try" in |
3670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3671 | *) ac_try_echo=$ac_try;; | |
3672 | esac | |
3673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3674 | (eval "$ac_try") 2>&5 | |
1c710c3c DJ |
3675 | ac_status=$? |
3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3677 | (exit $ac_status); }; }; then | |
3678 | cross_compiling=no | |
3679 | else | |
3680 | if test "$cross_compiling" = maybe; then | |
3681 | cross_compiling=yes | |
3682 | else | |
3683 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3684 | If you meant to cross compile, use \`--host'. | |
3685 | See \`config.log' for more details." >&5 | |
3686 | echo "$as_me: error: cannot run C compiled programs. | |
3687 | If you meant to cross compile, use \`--host'. | |
3688 | See \`config.log' for more details." >&2;} | |
3689 | { (exit 1); exit 1; }; } | |
3690 | fi | |
3691 | fi | |
3692 | fi | |
11a67599 ZW |
3693 | { echo "$as_me:$LINENO: result: yes" >&5 |
3694 | echo "${ECHO_T}yes" >&6; } | |
1c710c3c DJ |
3695 | |
3696 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3697 | ac_clean_files=$ac_clean_files_save | |
11a67599 | 3698 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 3699 | # the compiler is broken, or we cross compile. |
11a67599 ZW |
3700 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3701 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3702 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3703 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3704 | ||
3705 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3706 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3707 | if { (ac_try="$ac_link" | |
3708 | case "(($ac_try" in | |
3709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3710 | *) ac_try_echo=$ac_try;; | |
3711 | esac | |
3712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3713 | (eval "$ac_link") 2>&5 | |
1c710c3c DJ |
3714 | ac_status=$? |
3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3716 | (exit $ac_status); }; then | |
3717 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3718 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3719 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3720 | # `rm'. | |
3721 | for ac_file in conftest.exe conftest conftest.*; do | |
3722 | test -f "$ac_file" || continue | |
3723 | case $ac_file in | |
11a67599 | 3724 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
1c710c3c | 3725 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
3726 | break;; |
3727 | * ) break;; | |
3728 | esac | |
3729 | done | |
af71363e | 3730 | else |
1c710c3c DJ |
3731 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3732 | See \`config.log' for more details." >&5 | |
3733 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3734 | See \`config.log' for more details." >&2;} | |
3735 | { (exit 1); exit 1; }; } | |
3736 | fi | |
3737 | ||
3738 | rm -f conftest$ac_cv_exeext | |
11a67599 ZW |
3739 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3740 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
3741 | |
3742 | rm -f conftest.$ac_ext | |
3743 | EXEEXT=$ac_cv_exeext | |
3744 | ac_exeext=$EXEEXT | |
11a67599 ZW |
3745 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3746 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
1c710c3c DJ |
3747 | if test "${ac_cv_objext+set}" = set; then |
3748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3749 | else | |
3750 | cat >conftest.$ac_ext <<_ACEOF | |
3751 | /* confdefs.h. */ | |
3752 | _ACEOF | |
3753 | cat confdefs.h >>conftest.$ac_ext | |
3754 | cat >>conftest.$ac_ext <<_ACEOF | |
3755 | /* end confdefs.h. */ | |
3756 | ||
3757 | int | |
3758 | main () | |
3759 | { | |
3760 | ||
3761 | ; | |
3762 | return 0; | |
3763 | } | |
3764 | _ACEOF | |
3765 | rm -f conftest.o conftest.obj | |
11a67599 ZW |
3766 | if { (ac_try="$ac_compile" |
3767 | case "(($ac_try" in | |
3768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3769 | *) ac_try_echo=$ac_try;; | |
3770 | esac | |
3771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3772 | (eval "$ac_compile") 2>&5 | |
1c710c3c DJ |
3773 | ac_status=$? |
3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3775 | (exit $ac_status); }; then | |
11a67599 ZW |
3776 | for ac_file in conftest.o conftest.obj conftest.*; do |
3777 | test -f "$ac_file" || continue; | |
1c710c3c | 3778 | case $ac_file in |
11a67599 | 3779 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
1c710c3c DJ |
3780 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3781 | break;; | |
3782 | esac | |
3783 | done | |
3784 | else | |
3785 | echo "$as_me: failed program was:" >&5 | |
3786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3787 | ||
3788 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3789 | See \`config.log' for more details." >&5 | |
3790 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3791 | See \`config.log' for more details." >&2;} | |
3792 | { (exit 1); exit 1; }; } | |
3793 | fi | |
3794 | ||
3795 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3796 | fi | |
11a67599 ZW |
3797 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3798 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
1c710c3c DJ |
3799 | OBJEXT=$ac_cv_objext |
3800 | ac_objext=$OBJEXT | |
11a67599 ZW |
3801 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3802 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
1c710c3c DJ |
3803 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3805 | else | |
3806 | cat >conftest.$ac_ext <<_ACEOF | |
3807 | /* confdefs.h. */ | |
3808 | _ACEOF | |
3809 | cat confdefs.h >>conftest.$ac_ext | |
3810 | cat >>conftest.$ac_ext <<_ACEOF | |
3811 | /* end confdefs.h. */ | |
3812 | ||
3813 | int | |
3814 | main () | |
3815 | { | |
3816 | #ifndef __GNUC__ | |
3817 | choke me | |
3818 | #endif | |
3819 | ||
3820 | ; | |
3821 | return 0; | |
3822 | } | |
3823 | _ACEOF | |
3824 | rm -f conftest.$ac_objext | |
11a67599 ZW |
3825 | if { (ac_try="$ac_compile" |
3826 | case "(($ac_try" in | |
3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3828 | *) ac_try_echo=$ac_try;; | |
3829 | esac | |
3830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3831 | (eval "$ac_compile") 2>conftest.er1 | |
1c710c3c DJ |
3832 | ac_status=$? |
3833 | grep -v '^ *+' conftest.er1 >conftest.err | |
3834 | rm -f conftest.er1 | |
3835 | cat conftest.err >&5 | |
3836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
3837 | (exit $ac_status); } && { |
3838 | test -z "$ac_c_werror_flag" || | |
3839 | test ! -s conftest.err | |
3840 | } && test -s conftest.$ac_objext; then | |
1c710c3c DJ |
3841 | ac_compiler_gnu=yes |
3842 | else | |
3843 | echo "$as_me: failed program was:" >&5 | |
3844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3845 | ||
11a67599 | 3846 | ac_compiler_gnu=no |
1c710c3c | 3847 | fi |
11a67599 ZW |
3848 | |
3849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c DJ |
3850 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3851 | ||
3852 | fi | |
11a67599 ZW |
3853 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3854 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
1c710c3c DJ |
3855 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3856 | ac_test_CFLAGS=${CFLAGS+set} | |
3857 | ac_save_CFLAGS=$CFLAGS | |
11a67599 ZW |
3858 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3859 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
1c710c3c DJ |
3860 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862 | else | |
11a67599 ZW |
3863 | ac_save_c_werror_flag=$ac_c_werror_flag |
3864 | ac_c_werror_flag=yes | |
3865 | ac_cv_prog_cc_g=no | |
3866 | CFLAGS="-g" | |
3867 | cat >conftest.$ac_ext <<_ACEOF | |
1c710c3c DJ |
3868 | /* confdefs.h. */ |
3869 | _ACEOF | |
3870 | cat confdefs.h >>conftest.$ac_ext | |
3871 | cat >>conftest.$ac_ext <<_ACEOF | |
3872 | /* end confdefs.h. */ | |
3873 | ||
3874 | int | |
3875 | main () | |
3876 | { | |
3877 | ||
3878 | ; | |
3879 | return 0; | |
3880 | } | |
3881 | _ACEOF | |
3882 | rm -f conftest.$ac_objext | |
11a67599 ZW |
3883 | if { (ac_try="$ac_compile" |
3884 | case "(($ac_try" in | |
3885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3886 | *) ac_try_echo=$ac_try;; | |
3887 | esac | |
3888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3889 | (eval "$ac_compile") 2>conftest.er1 | |
1c710c3c DJ |
3890 | ac_status=$? |
3891 | grep -v '^ *+' conftest.er1 >conftest.err | |
3892 | rm -f conftest.er1 | |
3893 | cat conftest.err >&5 | |
3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
3895 | (exit $ac_status); } && { |
3896 | test -z "$ac_c_werror_flag" || | |
3897 | test ! -s conftest.err | |
3898 | } && test -s conftest.$ac_objext; then | |
3899 | ac_cv_prog_cc_g=yes | |
3900 | else | |
3901 | echo "$as_me: failed program was:" >&5 | |
3902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3903 | ||
3904 | CFLAGS="" | |
3905 | cat >conftest.$ac_ext <<_ACEOF | |
3906 | /* confdefs.h. */ | |
3907 | _ACEOF | |
3908 | cat confdefs.h >>conftest.$ac_ext | |
3909 | cat >>conftest.$ac_ext <<_ACEOF | |
3910 | /* end confdefs.h. */ | |
3911 | ||
3912 | int | |
3913 | main () | |
3914 | { | |
3915 | ||
3916 | ; | |
3917 | return 0; | |
3918 | } | |
3919 | _ACEOF | |
3920 | rm -f conftest.$ac_objext | |
3921 | if { (ac_try="$ac_compile" | |
3922 | case "(($ac_try" in | |
3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3924 | *) ac_try_echo=$ac_try;; | |
3925 | esac | |
3926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3927 | (eval "$ac_compile") 2>conftest.er1 | |
1c710c3c | 3928 | ac_status=$? |
11a67599 ZW |
3929 | grep -v '^ *+' conftest.er1 >conftest.err |
3930 | rm -f conftest.er1 | |
3931 | cat conftest.err >&5 | |
1c710c3c | 3932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11a67599 ZW |
3933 | (exit $ac_status); } && { |
3934 | test -z "$ac_c_werror_flag" || | |
3935 | test ! -s conftest.err | |
3936 | } && test -s conftest.$ac_objext; then | |
3937 | : | |
3938 | else | |
3939 | echo "$as_me: failed program was:" >&5 | |
3940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3941 | ||
3942 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3943 | CFLAGS="-g" | |
3944 | cat >conftest.$ac_ext <<_ACEOF | |
3945 | /* confdefs.h. */ | |
3946 | _ACEOF | |
3947 | cat confdefs.h >>conftest.$ac_ext | |
3948 | cat >>conftest.$ac_ext <<_ACEOF | |
3949 | /* end confdefs.h. */ | |
3950 | ||
3951 | int | |
3952 | main () | |
3953 | { | |
3954 | ||
3955 | ; | |
3956 | return 0; | |
3957 | } | |
3958 | _ACEOF | |
3959 | rm -f conftest.$ac_objext | |
3960 | if { (ac_try="$ac_compile" | |
3961 | case "(($ac_try" in | |
3962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3963 | *) ac_try_echo=$ac_try;; | |
3964 | esac | |
3965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3966 | (eval "$ac_compile") 2>conftest.er1 | |
1c710c3c | 3967 | ac_status=$? |
11a67599 ZW |
3968 | grep -v '^ *+' conftest.er1 >conftest.err |
3969 | rm -f conftest.er1 | |
3970 | cat conftest.err >&5 | |
1c710c3c | 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11a67599 ZW |
3972 | (exit $ac_status); } && { |
3973 | test -z "$ac_c_werror_flag" || | |
3974 | test ! -s conftest.err | |
3975 | } && test -s conftest.$ac_objext; then | |
55ffb5ed NN |
3976 | ac_cv_prog_cc_g=yes |
3977 | else | |
1c710c3c DJ |
3978 | echo "$as_me: failed program was:" >&5 |
3979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
af71363e | 3980 | |
11a67599 ZW |
3981 | |
3982 | fi | |
3983 | ||
3984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 3985 | fi |
11a67599 ZW |
3986 | |
3987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3988 | fi | |
3989 | ||
3990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3991 | ac_c_werror_flag=$ac_save_c_werror_flag | |
1c710c3c | 3992 | fi |
11a67599 ZW |
3993 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3994 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 3995 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 3996 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
3997 | elif test $ac_cv_prog_cc_g = yes; then |
3998 | if test "$GCC" = yes; then | |
3999 | CFLAGS="-g -O2" | |
4000 | else | |
4001 | CFLAGS="-g" | |
4002 | fi | |
4003 | else | |
4004 | if test "$GCC" = yes; then | |
4005 | CFLAGS="-O2" | |
4006 | else | |
4007 | CFLAGS= | |
4008 | fi | |
4009 | fi | |
11a67599 ZW |
4010 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4011 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4012 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
1c710c3c DJ |
4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4014 | else | |
11a67599 | 4015 | ac_cv_prog_cc_c89=no |
1c710c3c DJ |
4016 | ac_save_CC=$CC |
4017 | cat >conftest.$ac_ext <<_ACEOF | |
4018 | /* confdefs.h. */ | |
4019 | _ACEOF | |
4020 | cat confdefs.h >>conftest.$ac_ext | |
4021 | cat >>conftest.$ac_ext <<_ACEOF | |
4022 | /* end confdefs.h. */ | |
4023 | #include <stdarg.h> | |
4024 | #include <stdio.h> | |
4025 | #include <sys/types.h> | |
4026 | #include <sys/stat.h> | |
4027 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4028 | struct buf { int x; }; | |
4029 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4030 | static char *e (p, i) | |
4031 | char **p; | |
4032 | int i; | |
4033 | { | |
4034 | return p[i]; | |
4035 | } | |
4036 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4037 | { | |
4038 | char *s; | |
4039 | va_list v; | |
4040 | va_start (v,p); | |
4041 | s = g (p, va_arg (v,int)); | |
4042 | va_end (v); | |
4043 | return s; | |
4044 | } | |
4045 | ||
4046 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4047 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4048 | These don't provoke an error unfortunately, instead are silently treated | |
11a67599 | 4049 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4050 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4051 | array size at least. It's necessary to write '\x00'==0 to get something | |
11a67599 | 4052 | that's true only with -std. */ |
1c710c3c DJ |
4053 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4054 | ||
11a67599 ZW |
4055 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4056 | inside strings and character constants. */ | |
4057 | #define FOO(x) 'x' | |
4058 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4059 | ||
1c710c3c DJ |
4060 | int test (int i, double x); |
4061 | struct s1 {int (*f) (int a);}; | |
4062 | struct s2 {int (*f) (double a);}; | |
4063 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4064 | int argc; | |
4065 | char **argv; | |
4066 | int | |
4067 | main () | |
4068 | { | |
4069 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4070 | ; | |
4071 | return 0; | |
4072 | } | |
4073 | _ACEOF | |
11a67599 ZW |
4074 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4075 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4076 | do |
4077 | CC="$ac_save_CC $ac_arg" | |
4078 | rm -f conftest.$ac_objext | |
11a67599 ZW |
4079 | if { (ac_try="$ac_compile" |
4080 | case "(($ac_try" in | |
4081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4082 | *) ac_try_echo=$ac_try;; | |
4083 | esac | |
4084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4085 | (eval "$ac_compile") 2>conftest.er1 | |
1c710c3c DJ |
4086 | ac_status=$? |
4087 | grep -v '^ *+' conftest.er1 >conftest.err | |
4088 | rm -f conftest.er1 | |
4089 | cat conftest.err >&5 | |
4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
4091 | (exit $ac_status); } && { |
4092 | test -z "$ac_c_werror_flag" || | |
4093 | test ! -s conftest.err | |
4094 | } && test -s conftest.$ac_objext; then | |
4095 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c DJ |
4096 | else |
4097 | echo "$as_me: failed program was:" >&5 | |
4098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4099 | ||
11a67599 | 4100 | |
1c710c3c | 4101 | fi |
11a67599 ZW |
4102 | |
4103 | rm -f core conftest.err conftest.$ac_objext | |
4104 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4105 | done |
11a67599 | 4106 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4107 | CC=$ac_save_CC |
4108 | ||
4109 | fi | |
11a67599 ZW |
4110 | # AC_CACHE_VAL |
4111 | case "x$ac_cv_prog_cc_c89" in | |
4112 | x) | |
4113 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4114 | echo "${ECHO_T}none needed" >&6; } ;; | |
4115 | xno) | |
4116 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4117 | echo "${ECHO_T}unsupported" >&6; } ;; | |
1c710c3c | 4118 | *) |
11a67599 ZW |
4119 | CC="$CC $ac_cv_prog_cc_c89" |
4120 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4121 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c DJ |
4122 | esac |
4123 | ||
1c710c3c | 4124 | |
1c710c3c DJ |
4125 | ac_ext=c |
4126 | ac_cpp='$CPP $CPPFLAGS' | |
4127 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4128 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4129 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
55ffb5ed | 4130 | |
11a67599 | 4131 | ac_ext=cpp |
c3a86da9 DJ |
4132 | ac_cpp='$CXXCPP $CPPFLAGS' |
4133 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4134 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4135 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11a67599 ZW |
4136 | if test -z "$CXX"; then |
4137 | if test -n "$CCC"; then | |
4138 | CXX=$CCC | |
4139 | else | |
4140 | if test -n "$ac_tool_prefix"; then | |
4141 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
c3a86da9 DJ |
4142 | do |
4143 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4144 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11a67599 ZW |
4145 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
c3a86da9 DJ |
4147 | if test "${ac_cv_prog_CXX+set}" = set; then |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4149 | else | |
4150 | if test -n "$CXX"; then | |
4151 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4152 | else | |
4153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4154 | for as_dir in $PATH | |
4155 | do | |
4156 | IFS=$as_save_IFS | |
4157 | test -z "$as_dir" && as_dir=. | |
4158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 4159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c3a86da9 DJ |
4160 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4162 | break 2 | |
4163 | fi | |
4164 | done | |
4165 | done | |
11a67599 | 4166 | IFS=$as_save_IFS |
55ffb5ed | 4167 | |
c3a86da9 DJ |
4168 | fi |
4169 | fi | |
4170 | CXX=$ac_cv_prog_CXX | |
4171 | if test -n "$CXX"; then | |
11a67599 ZW |
4172 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
4173 | echo "${ECHO_T}$CXX" >&6; } | |
c3a86da9 | 4174 | else |
11a67599 ZW |
4175 | { echo "$as_me:$LINENO: result: no" >&5 |
4176 | echo "${ECHO_T}no" >&6; } | |
c3a86da9 DJ |
4177 | fi |
4178 | ||
11a67599 | 4179 | |
c3a86da9 DJ |
4180 | test -n "$CXX" && break |
4181 | done | |
4182 | fi | |
4183 | if test -z "$CXX"; then | |
4184 | ac_ct_CXX=$CXX | |
11a67599 | 4185 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4186 | do |
4187 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4188 | set dummy $ac_prog; ac_word=$2 | |
11a67599 ZW |
4189 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
c3a86da9 DJ |
4191 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4193 | else | |
4194 | if test -n "$ac_ct_CXX"; then | |
4195 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4196 | else | |
4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4198 | for as_dir in $PATH | |
4199 | do | |
4200 | IFS=$as_save_IFS | |
4201 | test -z "$as_dir" && as_dir=. | |
4202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 4203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c3a86da9 DJ |
4204 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4206 | break 2 | |
4207 | fi | |
4208 | done | |
4209 | done | |
11a67599 | 4210 | IFS=$as_save_IFS |
c3a86da9 DJ |
4211 | |
4212 | fi | |
4213 | fi | |
4214 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4215 | if test -n "$ac_ct_CXX"; then | |
11a67599 ZW |
4216 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4217 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
c3a86da9 | 4218 | else |
11a67599 ZW |
4219 | { echo "$as_me:$LINENO: result: no" >&5 |
4220 | echo "${ECHO_T}no" >&6; } | |
c3a86da9 DJ |
4221 | fi |
4222 | ||
11a67599 | 4223 | |
c3a86da9 DJ |
4224 | test -n "$ac_ct_CXX" && break |
4225 | done | |
c3a86da9 | 4226 | |
11a67599 ZW |
4227 | if test "x$ac_ct_CXX" = x; then |
4228 | CXX="g++" | |
4229 | else | |
4230 | case $cross_compiling:$ac_tool_warned in | |
4231 | yes:) | |
4232 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4233 | whose name does not start with the host triplet. If you think this | |
4234 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4235 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4236 | whose name does not start with the host triplet. If you think this | |
4237 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4238 | ac_tool_warned=yes ;; | |
4239 | esac | |
4240 | CXX=$ac_ct_CXX | |
4241 | fi | |
c3a86da9 DJ |
4242 | fi |
4243 | ||
11a67599 ZW |
4244 | fi |
4245 | fi | |
c3a86da9 | 4246 | # Provide some information about the compiler. |
11a67599 | 4247 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
c3a86da9 | 4248 | ac_compiler=`set X $ac_compile; echo $2` |
11a67599 ZW |
4249 | { (ac_try="$ac_compiler --version >&5" |
4250 | case "(($ac_try" in | |
4251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4252 | *) ac_try_echo=$ac_try;; | |
4253 | esac | |
4254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4255 | (eval "$ac_compiler --version >&5") 2>&5 | |
c3a86da9 DJ |
4256 | ac_status=$? |
4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4258 | (exit $ac_status); } | |
11a67599 ZW |
4259 | { (ac_try="$ac_compiler -v >&5" |
4260 | case "(($ac_try" in | |
4261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4262 | *) ac_try_echo=$ac_try;; | |
4263 | esac | |
4264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4265 | (eval "$ac_compiler -v >&5") 2>&5 | |
c3a86da9 DJ |
4266 | ac_status=$? |
4267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4268 | (exit $ac_status); } | |
11a67599 ZW |
4269 | { (ac_try="$ac_compiler -V >&5" |
4270 | case "(($ac_try" in | |
4271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4272 | *) ac_try_echo=$ac_try;; | |
4273 | esac | |
4274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4275 | (eval "$ac_compiler -V >&5") 2>&5 | |
c3a86da9 DJ |
4276 | ac_status=$? |
4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4278 | (exit $ac_status); } | |
4279 | ||
11a67599 ZW |
4280 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4281 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
c3a86da9 DJ |
4282 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4284 | else | |
4285 | cat >conftest.$ac_ext <<_ACEOF | |
4286 | /* confdefs.h. */ | |
4287 | _ACEOF | |
4288 | cat confdefs.h >>conftest.$ac_ext | |
4289 | cat >>conftest.$ac_ext <<_ACEOF | |
4290 | /* end confdefs.h. */ | |
4291 | ||
4292 | int | |
4293 | main () | |
4294 | { | |
4295 | #ifndef __GNUC__ | |
4296 | choke me | |
4297 | #endif | |
4298 | ||
4299 | ; | |
4300 | return 0; | |
4301 | } | |
4302 | _ACEOF | |
4303 | rm -f conftest.$ac_objext | |
11a67599 ZW |
4304 | if { (ac_try="$ac_compile" |
4305 | case "(($ac_try" in | |
4306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4307 | *) ac_try_echo=$ac_try;; | |
4308 | esac | |
4309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4310 | (eval "$ac_compile") 2>conftest.er1 | |
c3a86da9 DJ |
4311 | ac_status=$? |
4312 | grep -v '^ *+' conftest.er1 >conftest.err | |
4313 | rm -f conftest.er1 | |
4314 | cat conftest.err >&5 | |
4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
4316 | (exit $ac_status); } && { |
4317 | test -z "$ac_cxx_werror_flag" || | |
4318 | test ! -s conftest.err | |
4319 | } && test -s conftest.$ac_objext; then | |
c3a86da9 DJ |
4320 | ac_compiler_gnu=yes |
4321 | else | |
4322 | echo "$as_me: failed program was:" >&5 | |
4323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4324 | ||
11a67599 | 4325 | ac_compiler_gnu=no |
c3a86da9 | 4326 | fi |
11a67599 ZW |
4327 | |
4328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c3a86da9 DJ |
4329 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4330 | ||
4331 | fi | |
11a67599 ZW |
4332 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4333 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
c3a86da9 DJ |
4334 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4335 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4336 | ac_save_CXXFLAGS=$CXXFLAGS | |
11a67599 ZW |
4337 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4338 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
c3a86da9 DJ |
4339 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4341 | else | |
11a67599 ZW |
4342 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4343 | ac_cxx_werror_flag=yes | |
4344 | ac_cv_prog_cxx_g=no | |
4345 | CXXFLAGS="-g" | |
4346 | cat >conftest.$ac_ext <<_ACEOF | |
c3a86da9 DJ |
4347 | /* confdefs.h. */ |
4348 | _ACEOF | |
4349 | cat confdefs.h >>conftest.$ac_ext | |
4350 | cat >>conftest.$ac_ext <<_ACEOF | |
4351 | /* end confdefs.h. */ | |
4352 | ||
4353 | int | |
4354 | main () | |
4355 | { | |
4356 | ||
4357 | ; | |
4358 | return 0; | |
4359 | } | |
4360 | _ACEOF | |
4361 | rm -f conftest.$ac_objext | |
11a67599 ZW |
4362 | if { (ac_try="$ac_compile" |
4363 | case "(($ac_try" in | |
4364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4365 | *) ac_try_echo=$ac_try;; | |
4366 | esac | |
4367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4368 | (eval "$ac_compile") 2>conftest.er1 | |
c3a86da9 DJ |
4369 | ac_status=$? |
4370 | grep -v '^ *+' conftest.er1 >conftest.err | |
4371 | rm -f conftest.er1 | |
4372 | cat conftest.err >&5 | |
4373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
4374 | (exit $ac_status); } && { |
4375 | test -z "$ac_cxx_werror_flag" || | |
4376 | test ! -s conftest.err | |
4377 | } && test -s conftest.$ac_objext; then | |
c3a86da9 DJ |
4378 | ac_cv_prog_cxx_g=yes |
4379 | else | |
4380 | echo "$as_me: failed program was:" >&5 | |
4381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4382 | ||
11a67599 ZW |
4383 | CXXFLAGS="" |
4384 | cat >conftest.$ac_ext <<_ACEOF | |
c3a86da9 DJ |
4385 | /* confdefs.h. */ |
4386 | _ACEOF | |
4387 | cat confdefs.h >>conftest.$ac_ext | |
4388 | cat >>conftest.$ac_ext <<_ACEOF | |
4389 | /* end confdefs.h. */ | |
11a67599 | 4390 | |
c3a86da9 DJ |
4391 | int |
4392 | main () | |
4393 | { | |
11a67599 | 4394 | |
c3a86da9 DJ |
4395 | ; |
4396 | return 0; | |
4397 | } | |
4398 | _ACEOF | |
4399 | rm -f conftest.$ac_objext | |
11a67599 ZW |
4400 | if { (ac_try="$ac_compile" |
4401 | case "(($ac_try" in | |
4402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4403 | *) ac_try_echo=$ac_try;; | |
4404 | esac | |
4405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4406 | (eval "$ac_compile") 2>conftest.er1 | |
c3a86da9 DJ |
4407 | ac_status=$? |
4408 | grep -v '^ *+' conftest.er1 >conftest.err | |
4409 | rm -f conftest.er1 | |
4410 | cat conftest.err >&5 | |
4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
4412 | (exit $ac_status); } && { |
4413 | test -z "$ac_cxx_werror_flag" || | |
4414 | test ! -s conftest.err | |
4415 | } && test -s conftest.$ac_objext; then | |
c3a86da9 DJ |
4416 | : |
4417 | else | |
4418 | echo "$as_me: failed program was:" >&5 | |
4419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23f6b2f9 | 4420 | |
11a67599 ZW |
4421 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4422 | CXXFLAGS="-g" | |
4423 | cat >conftest.$ac_ext <<_ACEOF | |
c3a86da9 DJ |
4424 | /* confdefs.h. */ |
4425 | _ACEOF | |
4426 | cat confdefs.h >>conftest.$ac_ext | |
4427 | cat >>conftest.$ac_ext <<_ACEOF | |
4428 | /* end confdefs.h. */ | |
11a67599 | 4429 | |
c3a86da9 DJ |
4430 | int |
4431 | main () | |
4432 | { | |
11a67599 | 4433 | |
c3a86da9 DJ |
4434 | ; |
4435 | return 0; | |
4436 | } | |
4437 | _ACEOF | |
4438 | rm -f conftest.$ac_objext | |
11a67599 ZW |
4439 | if { (ac_try="$ac_compile" |
4440 | case "(($ac_try" in | |
4441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4442 | *) ac_try_echo=$ac_try;; | |
4443 | esac | |
4444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4445 | (eval "$ac_compile") 2>conftest.er1 | |
c3a86da9 DJ |
4446 | ac_status=$? |
4447 | grep -v '^ *+' conftest.er1 >conftest.err | |
4448 | rm -f conftest.er1 | |
4449 | cat conftest.err >&5 | |
4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
4451 | (exit $ac_status); } && { |
4452 | test -z "$ac_cxx_werror_flag" || | |
4453 | test ! -s conftest.err | |
4454 | } && test -s conftest.$ac_objext; then | |
4455 | ac_cv_prog_cxx_g=yes | |
c3a86da9 DJ |
4456 | else |
4457 | echo "$as_me: failed program was:" >&5 | |
4458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4459 | ||
11a67599 | 4460 | |
c3a86da9 | 4461 | fi |
11a67599 ZW |
4462 | |
4463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4464 | fi | |
4465 | ||
4466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c3a86da9 DJ |
4467 | fi |
4468 | ||
11a67599 ZW |
4469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4470 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4471 | fi | |
4472 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
4473 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
4474 | if test "$ac_test_CXXFLAGS" = set; then | |
4475 | CXXFLAGS=$ac_save_CXXFLAGS | |
4476 | elif test $ac_cv_prog_cxx_g = yes; then | |
4477 | if test "$GXX" = yes; then | |
4478 | CXXFLAGS="-g -O2" | |
4479 | else | |
4480 | CXXFLAGS="-g" | |
4481 | fi | |
4482 | else | |
4483 | if test "$GXX" = yes; then | |
4484 | CXXFLAGS="-O2" | |
4485 | else | |
4486 | CXXFLAGS= | |
4487 | fi | |
4488 | fi | |
c3a86da9 DJ |
4489 | ac_ext=c |
4490 | ac_cpp='$CPP $CPPFLAGS' | |
4491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4494 | ||
4495 | ||
4496 | # We must set the default linker to the linker used by gcc for the correct | |
4497 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4498 | # set the LD default to the ld used by gcc. | |
4499 | if test -z "$LD"; then | |
4500 | if test "$GCC" = yes; then | |
4501 | case $build in | |
4502 | *-*-mingw*) | |
4503 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4504 | *) | |
4505 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4506 | esac | |
4507 | case $gcc_prog_ld in | |
4508 | # Accept absolute paths. | |
4509 | [\\/]* | [A-Za-z]:[\\/]*) | |
4510 | LD="$gcc_prog_ld" ;; | |
4511 | esac | |
4512 | fi | |
23f6b2f9 PB |
4513 | fi |
4514 | ||
23f6b2f9 PB |
4515 | |
4516 | ||
55ffb5ed | 4517 | |
1c710c3c DJ |
4518 | if test -n "$ac_tool_prefix"; then |
4519 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 4520 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
11a67599 ZW |
4521 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
4523 | if test "${ac_cv_prog_GNATBIND+set}" = set; then |
4524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
4525 | else |
4526 | if test -n "$GNATBIND"; then | |
4527 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4528 | else | |
1c710c3c DJ |
4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4530 | for as_dir in $PATH | |
4531 | do | |
4532 | IFS=$as_save_IFS | |
4533 | test -z "$as_dir" && as_dir=. | |
4534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 4535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
4536 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
4537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4538 | break 2 | |
4539 | fi | |
4540 | done | |
4541 | done | |
11a67599 | 4542 | IFS=$as_save_IFS |
1c710c3c | 4543 | |
55ffb5ed NN |
4544 | fi |
4545 | fi | |
1c710c3c | 4546 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 4547 | if test -n "$GNATBIND"; then |
11a67599 ZW |
4548 | { echo "$as_me:$LINENO: result: $GNATBIND" >&5 |
4549 | echo "${ECHO_T}$GNATBIND" >&6; } | |
55ffb5ed | 4550 | else |
11a67599 ZW |
4551 | { echo "$as_me:$LINENO: result: no" >&5 |
4552 | echo "${ECHO_T}no" >&6; } | |
55ffb5ed NN |
4553 | fi |
4554 | ||
11a67599 | 4555 | |
1c710c3c | 4556 | fi |
55ffb5ed | 4557 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 4558 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
4559 | # Extract the first word of "gnatbind", so it can be a program name with args. |
4560 | set dummy gnatbind; ac_word=$2 | |
11a67599 ZW |
4561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
4563 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then |
4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed | 4565 | else |
1c710c3c DJ |
4566 | if test -n "$ac_ct_GNATBIND"; then |
4567 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 4568 | else |
1c710c3c DJ |
4569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4570 | for as_dir in $PATH | |
4571 | do | |
4572 | IFS=$as_save_IFS | |
4573 | test -z "$as_dir" && as_dir=. | |
4574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 4575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
4576 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
4577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4578 | break 2 | |
4579 | fi | |
4580 | done | |
4581 | done | |
11a67599 | 4582 | IFS=$as_save_IFS |
1c710c3c | 4583 | |
55ffb5ed NN |
4584 | fi |
4585 | fi | |
1c710c3c DJ |
4586 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4587 | if test -n "$ac_ct_GNATBIND"; then | |
11a67599 ZW |
4588 | { echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5 |
4589 | echo "${ECHO_T}$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 4590 | else |
11a67599 ZW |
4591 | { echo "$as_me:$LINENO: result: no" >&5 |
4592 | echo "${ECHO_T}no" >&6; } | |
55ffb5ed NN |
4593 | fi |
4594 | ||
11a67599 ZW |
4595 | if test "x$ac_ct_GNATBIND" = x; then |
4596 | GNATBIND="no" | |
4597 | else | |
4598 | case $cross_compiling:$ac_tool_warned in | |
4599 | yes:) | |
4600 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4601 | whose name does not start with the host triplet. If you think this | |
4602 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4603 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4604 | whose name does not start with the host triplet. If you think this | |
4605 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4606 | ac_tool_warned=yes ;; | |
4607 | esac | |
4608 | GNATBIND=$ac_ct_GNATBIND | |
4609 | fi | |
55ffb5ed | 4610 | else |
1c710c3c | 4611 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
4612 | fi |
4613 | ||
1c710c3c DJ |
4614 | if test -n "$ac_tool_prefix"; then |
4615 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 4616 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
11a67599 ZW |
4617 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
4619 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then |
4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5305be7e RG |
4621 | else |
4622 | if test -n "$GNATMAKE"; then | |
4623 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4624 | else | |
1c710c3c DJ |
4625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4626 | for as_dir in $PATH | |
4627 | do | |
4628 | IFS=$as_save_IFS | |
4629 | test -z "$as_dir" && as_dir=. | |
4630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 4631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
4632 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
4633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4634 | break 2 | |
4635 | fi | |
4636 | done | |
4637 | done | |
11a67599 | 4638 | IFS=$as_save_IFS |
1c710c3c | 4639 | |
5305be7e RG |
4640 | fi |
4641 | fi | |
1c710c3c | 4642 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 4643 | if test -n "$GNATMAKE"; then |
11a67599 ZW |
4644 | { echo "$as_me:$LINENO: result: $GNATMAKE" >&5 |
4645 | echo "${ECHO_T}$GNATMAKE" >&6; } | |
5305be7e | 4646 | else |
11a67599 ZW |
4647 | { echo "$as_me:$LINENO: result: no" >&5 |
4648 | echo "${ECHO_T}no" >&6; } | |
5305be7e RG |
4649 | fi |
4650 | ||
11a67599 | 4651 | |
1c710c3c | 4652 | fi |
5305be7e | 4653 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 4654 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
4655 | # Extract the first word of "gnatmake", so it can be a program name with args. |
4656 | set dummy gnatmake; ac_word=$2 | |
11a67599 ZW |
4657 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
4659 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then |
4660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5305be7e | 4661 | else |
1c710c3c DJ |
4662 | if test -n "$ac_ct_GNATMAKE"; then |
4663 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 4664 | else |
1c710c3c DJ |
4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4666 | for as_dir in $PATH | |
4667 | do | |
4668 | IFS=$as_save_IFS | |
4669 | test -z "$as_dir" && as_dir=. | |
4670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 4671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
4672 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
4673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4674 | break 2 | |
4675 | fi | |
4676 | done | |
4677 | done | |
11a67599 | 4678 | IFS=$as_save_IFS |
1c710c3c | 4679 | |
5305be7e RG |
4680 | fi |
4681 | fi | |
1c710c3c DJ |
4682 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4683 | if test -n "$ac_ct_GNATMAKE"; then | |
11a67599 ZW |
4684 | { echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5 |
4685 | echo "${ECHO_T}$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 4686 | else |
11a67599 ZW |
4687 | { echo "$as_me:$LINENO: result: no" >&5 |
4688 | echo "${ECHO_T}no" >&6; } | |
5305be7e RG |
4689 | fi |
4690 | ||
11a67599 ZW |
4691 | if test "x$ac_ct_GNATMAKE" = x; then |
4692 | GNATMAKE="no" | |
4693 | else | |
4694 | case $cross_compiling:$ac_tool_warned in | |
4695 | yes:) | |
4696 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4697 | whose name does not start with the host triplet. If you think this | |
4698 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4699 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4700 | whose name does not start with the host triplet. If you think this | |
4701 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4702 | ac_tool_warned=yes ;; | |
4703 | esac | |
4704 | GNATMAKE=$ac_ct_GNATMAKE | |
4705 | fi | |
5305be7e | 4706 | else |
1c710c3c | 4707 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
4708 | fi |
4709 | ||
11a67599 ZW |
4710 | { echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5 |
4711 | echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6; } | |
1c710c3c DJ |
4712 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then |
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
4714 | else |
4715 | cat >conftest.adb <<EOF | |
4716 | procedure conftest is begin null; end conftest; | |
4717 | EOF | |
4718 | acx_cv_cc_gcc_supports_ada=no | |
4719 | # There is a bug in old released versions of GCC which causes the | |
4720 | # driver to exit successfully when the appropriate language module | |
4721 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4722 | # Therefore we must check for the error message as well as an | |
4723 | # unsuccessful exit. | |
1db673ca RO |
4724 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4725 | # given a .adb file, but produce no object file. So we must check | |
4726 | # if an object file was really produced to guard against this. | |
55ffb5ed | 4727 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 4728 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 4729 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
4730 | fi |
4731 | rm -f conftest.* | |
4732 | fi | |
11a67599 ZW |
4733 | { echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4734 | echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 4735 | |
5305be7e | 4736 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
4737 | have_gnat=yes |
4738 | else | |
4739 | have_gnat=no | |
4740 | fi | |
4741 | ||
11a67599 ZW |
4742 | { echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5 |
4743 | echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6; } | |
1c710c3c DJ |
4744 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then |
4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a76494aa PB |
4746 | else |
4747 | echo abfoo >t1 | |
4748 | echo cdfoo >t2 | |
4749 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
4750 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4751 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4752 | : | |
4753 | else | |
4754 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4755 | fi | |
4756 | fi | |
a76494aa PB |
4757 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4758 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 4759 | : |
a76494aa PB |
4760 | else |
4761 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4762 | fi | |
4763 | fi | |
4764 | rm t1 t2 | |
4765 | ||
4766 | fi | |
11a67599 ZW |
4767 | { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5 |
4768 | echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
4769 | do_compare="$gcc_cv_prog_cmp_skip" |
4770 | ||
4771 | ||
55ffb5ed | 4772 | |
bebf829d | 4773 | # Check for GMP and MPFR |
e69bf64b | 4774 | gmplibs="-lmpfr -lgmp" |
6de9cd9a | 4775 | gmpinc= |
e69bf64b PB |
4776 | have_gmp=no |
4777 | ||
bebf829d PB |
4778 | # Specify a location for mpfr |
4779 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 4780 | |
11a67599 | 4781 | # Check whether --with-mpfr-dir was given. |
bebf829d | 4782 | if test "${with_mpfr_dir+set}" = set; then |
11a67599 | 4783 | withval=$with_mpfr_dir; { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed. |
1c710c3c DJ |
4784 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5 |
4785 | echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed. | |
4786 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;} | |
4787 | { (exit 1); exit 1; }; } | |
11a67599 | 4788 | fi |
bebf829d PB |
4789 | |
4790 | ||
11a67599 ZW |
4791 | |
4792 | # Check whether --with-mpfr was given. | |
bebf829d | 4793 | if test "${with_mpfr+set}" = set; then |
11a67599 ZW |
4794 | withval=$with_mpfr; |
4795 | fi | |
1c710c3c | 4796 | |
bebf829d | 4797 | |
11a67599 | 4798 | # Check whether --with-mpfr_include was given. |
8a877c9c | 4799 | if test "${with_mpfr_include+set}" = set; then |
11a67599 ZW |
4800 | withval=$with_mpfr_include; |
4801 | fi | |
1c710c3c | 4802 | |
8a877c9c | 4803 | |
11a67599 | 4804 | # Check whether --with-mpfr_lib was given. |
8a877c9c | 4805 | if test "${with_mpfr_lib+set}" = set; then |
11a67599 ZW |
4806 | withval=$with_mpfr_lib; |
4807 | fi | |
8a877c9c | 4808 | |
bebf829d PB |
4809 | |
4810 | if test "x$with_mpfr" != x; then | |
4811 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
4812 | gmpinc="-I$with_mpfr/include" | |
4813 | fi | |
8a877c9c KG |
4814 | if test "x$with_mpfr_include" != x; then |
4815 | gmpinc="-I$with_mpfr_include" | |
4816 | fi | |
4817 | if test "x$with_mpfr_lib" != x; then | |
4818 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
4819 | fi | |
e69bf64b PB |
4820 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
4821 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs" | |
4822 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
4823 | # Do not test the mpfr version. Assume that it is sufficient, since | |
4824 | # it is in the source tree, and the library has not been built yet | |
4825 | # but it would be included on the link line in the version check below | |
4826 | # hence making the test fail. | |
4827 | have_gmp=yes | |
4828 | fi | |
bebf829d | 4829 | |
6de9cd9a | 4830 | # Specify a location for gmp |
1c710c3c | 4831 | |
11a67599 | 4832 | # Check whether --with-gmp-dir was given. |
6de9cd9a | 4833 | if test "${with_gmp_dir+set}" = set; then |
11a67599 | 4834 | withval=$with_gmp_dir; { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed. |
1c710c3c DJ |
4835 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5 |
4836 | echo "$as_me: error: The --with-gmp-dir=PATH option has been removed. | |
4837 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;} | |
4838 | { (exit 1); exit 1; }; } | |
11a67599 ZW |
4839 | fi |
4840 | ||
6de9cd9a | 4841 | |
6de9cd9a | 4842 | |
11a67599 | 4843 | # Check whether --with-gmp was given. |
6de9cd9a | 4844 | if test "${with_gmp+set}" = set; then |
11a67599 ZW |
4845 | withval=$with_gmp; |
4846 | fi | |
1c710c3c | 4847 | |
6de9cd9a | 4848 | |
11a67599 | 4849 | # Check whether --with-gmp_include was given. |
8a877c9c | 4850 | if test "${with_gmp_include+set}" = set; then |
11a67599 ZW |
4851 | withval=$with_gmp_include; |
4852 | fi | |
1c710c3c | 4853 | |
8a877c9c | 4854 | |
11a67599 | 4855 | # Check whether --with-gmp_lib was given. |
8a877c9c | 4856 | if test "${with_gmp_lib+set}" = set; then |
11a67599 ZW |
4857 | withval=$with_gmp_lib; |
4858 | fi | |
8a877c9c KG |
4859 | |
4860 | ||
6de9cd9a | 4861 | |
bebf829d PB |
4862 | if test "x$with_gmp" != x; then |
4863 | gmplibs="-L$with_gmp/lib $gmplibs" | |
4864 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 4865 | fi |
8a877c9c KG |
4866 | if test "x$with_gmp_include" != x; then |
4867 | gmpinc="-I$with_gmp_include $gmpinc" | |
4868 | fi | |
4869 | if test "x$with_gmp_lib" != x; then | |
4870 | gmplibs="-L$with_gmp_lib $gmplibs" | |
4871 | fi | |
e69bf64b PB |
4872 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
4873 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" | |
4874 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" | |
4875 | # Do not test the gmp version. Assume that it is sufficient, since | |
4876 | # it is in the source tree, and the library has not been built yet | |
4877 | # but it would be included on the link line in the version check below | |
4878 | # hence making the test fail. | |
4879 | have_gmp=yes | |
4880 | fi | |
6de9cd9a | 4881 | |
d943d7c4 | 4882 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
4883 | have_gmp=yes |
4884 | saved_CFLAGS="$CFLAGS" | |
4885 | CFLAGS="$CFLAGS $gmpinc" | |
4886 | # Check GMP actually works | |
11a67599 ZW |
4887 | { echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5 |
4888 | echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6; } | |
1c710c3c DJ |
4889 | |
4890 | cat >conftest.$ac_ext <<_ACEOF | |
4891 | /* confdefs.h. */ | |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
6de9cd9a | 4896 | #include "gmp.h" |
1c710c3c DJ |
4897 | int |
4898 | main () | |
4899 | { | |
6de9cd9a | 4900 | |
e69bf64b PB |
4901 | #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1) |
4902 | choke me | |
4903 | #endif | |
1c710c3c DJ |
4904 | |
4905 | ; | |
4906 | return 0; | |
4907 | } | |
4908 | _ACEOF | |
4909 | rm -f conftest.$ac_objext | |
11a67599 ZW |
4910 | if { (ac_try="$ac_compile" |
4911 | case "(($ac_try" in | |
4912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4913 | *) ac_try_echo=$ac_try;; | |
4914 | esac | |
4915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4916 | (eval "$ac_compile") 2>conftest.er1 | |
1c710c3c DJ |
4917 | ac_status=$? |
4918 | grep -v '^ *+' conftest.er1 >conftest.err | |
4919 | rm -f conftest.er1 | |
4920 | cat conftest.err >&5 | |
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
4922 | (exit $ac_status); } && { |
4923 | test -z "$ac_c_werror_flag" || | |
4924 | test ! -s conftest.err | |
4925 | } && test -s conftest.$ac_objext; then | |
4926 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4927 | echo "${ECHO_T}yes" >&6; } | |
1c710c3c DJ |
4928 | else |
4929 | echo "$as_me: failed program was:" >&5 | |
4930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4931 | ||
11a67599 ZW |
4932 | { echo "$as_me:$LINENO: result: no" >&5 |
4933 | echo "${ECHO_T}no" >&6; }; have_gmp=no | |
1c710c3c | 4934 | fi |
11a67599 ZW |
4935 | |
4936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 4937 | |
e69bf64b PB |
4938 | if test x"$have_gmp" = xyes; then |
4939 | saved_LIBS="$LIBS" | |
4940 | LIBS="$LIBS $gmplibs" | |
11a67599 ZW |
4941 | { echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5 |
4942 | echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6; } | |
1c710c3c DJ |
4943 | cat >conftest.$ac_ext <<_ACEOF |
4944 | /* confdefs.h. */ | |
4945 | _ACEOF | |
4946 | cat confdefs.h >>conftest.$ac_ext | |
4947 | cat >>conftest.$ac_ext <<_ACEOF | |
4948 | /* end confdefs.h. */ | |
70ec446f | 4949 | #include <gmp.h> |
e69bf64b | 4950 | #include <mpfr.h> |
1c710c3c DJ |
4951 | int |
4952 | main () | |
4953 | { | |
e48d66a9 | 4954 | |
e69bf64b PB |
4955 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0) |
4956 | choke me | |
4957 | #endif | |
54e433bc MK |
4958 | mpfr_t n; |
4959 | mpfr_t x; | |
e69bf64b | 4960 | int t; |
54e433bc MK |
4961 | mpfr_init (n); |
4962 | mpfr_init (x); | |
e69bf64b PB |
4963 | mpfr_atan2 (n, n, x, GMP_RNDN); |
4964 | mpfr_erfc (n, x, GMP_RNDN); | |
4965 | mpfr_subnormalize (x, t, GMP_RNDN); | |
1c710c3c DJ |
4966 | |
4967 | ; | |
4968 | return 0; | |
4969 | } | |
4970 | _ACEOF | |
4971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11a67599 ZW |
4972 | if { (ac_try="$ac_link" |
4973 | case "(($ac_try" in | |
4974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4975 | *) ac_try_echo=$ac_try;; | |
4976 | esac | |
4977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4978 | (eval "$ac_link") 2>conftest.er1 | |
1c710c3c DJ |
4979 | ac_status=$? |
4980 | grep -v '^ *+' conftest.er1 >conftest.err | |
4981 | rm -f conftest.er1 | |
4982 | cat conftest.err >&5 | |
4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
4984 | (exit $ac_status); } && { |
4985 | test -z "$ac_c_werror_flag" || | |
4986 | test ! -s conftest.err | |
4987 | } && test -s conftest$ac_exeext && | |
4988 | $as_test_x conftest$ac_exeext; then | |
1c710c3c DJ |
4989 | cat >conftest.$ac_ext <<_ACEOF |
4990 | /* confdefs.h. */ | |
4991 | _ACEOF | |
4992 | cat confdefs.h >>conftest.$ac_ext | |
4993 | cat >>conftest.$ac_ext <<_ACEOF | |
4994 | /* end confdefs.h. */ | |
a3993f33 | 4995 | #include <gmp.h> |
e69bf64b | 4996 | #include <mpfr.h> |
1c710c3c DJ |
4997 | int |
4998 | main () | |
4999 | { | |
a3993f33 | 5000 | |
e69bf64b PB |
5001 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1) |
5002 | choke me | |
5003 | #endif | |
5004 | mpfr_t n; mpfr_init(n); | |
1c710c3c DJ |
5005 | |
5006 | ; | |
5007 | return 0; | |
5008 | } | |
5009 | _ACEOF | |
5010 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11a67599 ZW |
5011 | if { (ac_try="$ac_link" |
5012 | case "(($ac_try" in | |
5013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5014 | *) ac_try_echo=$ac_try;; | |
5015 | esac | |
5016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5017 | (eval "$ac_link") 2>conftest.er1 | |
1c710c3c DJ |
5018 | ac_status=$? |
5019 | grep -v '^ *+' conftest.er1 >conftest.err | |
5020 | rm -f conftest.er1 | |
5021 | cat conftest.err >&5 | |
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
5023 | (exit $ac_status); } && { |
5024 | test -z "$ac_c_werror_flag" || | |
5025 | test ! -s conftest.err | |
5026 | } && test -s conftest$ac_exeext && | |
5027 | $as_test_x conftest$ac_exeext; then | |
5028 | { echo "$as_me:$LINENO: result: yes" >&5 | |
5029 | echo "${ECHO_T}yes" >&6; } | |
1c710c3c DJ |
5030 | else |
5031 | echo "$as_me: failed program was:" >&5 | |
5032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5033 | ||
11a67599 ZW |
5034 | { echo "$as_me:$LINENO: result: buggy but acceptable" >&5 |
5035 | echo "${ECHO_T}buggy but acceptable" >&6; } | |
1c710c3c | 5036 | fi |
11a67599 ZW |
5037 | |
5038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1c710c3c DJ |
5039 | conftest$ac_exeext conftest.$ac_ext |
5040 | else | |
5041 | echo "$as_me: failed program was:" >&5 | |
5042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5043 | ||
11a67599 ZW |
5044 | { echo "$as_me:$LINENO: result: no" >&5 |
5045 | echo "${ECHO_T}no" >&6; }; have_gmp=no | |
1c710c3c | 5046 | fi |
11a67599 ZW |
5047 | |
5048 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
1c710c3c | 5049 | conftest$ac_exeext conftest.$ac_ext |
e69bf64b PB |
5050 | LIBS="$saved_LIBS" |
5051 | fi | |
5052 | CFLAGS="$saved_CFLAGS" | |
6de9cd9a | 5053 | |
e69bf64b | 5054 | if test x$have_gmp != xyes; then |
1c710c3c DJ |
5055 | { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+. |
5056 | Try the --with-gmp and/or --with-mpfr options to specify their locations. | |
5057 | Copies of these libraries' source code can be found at their respective | |
5058 | hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. | |
5059 | See also http://gcc.gnu.org/install/prerequisites.html for additional info. | |
5060 | If you obtained GMP and/or MPFR from a vendor distribution package, make | |
5061 | sure that you have installed both the libraries and the header files. | |
5062 | They may be located in separate packages." >&5 | |
5063 | echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+. | |
ca558912 KG |
5064 | Try the --with-gmp and/or --with-mpfr options to specify their locations. |
5065 | Copies of these libraries' source code can be found at their respective | |
5066 | hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. | |
dbee1fb3 KG |
5067 | See also http://gcc.gnu.org/install/prerequisites.html for additional info. |
5068 | If you obtained GMP and/or MPFR from a vendor distribution package, make | |
5069 | sure that you have installed both the libraries and the header files. | |
1c710c3c DJ |
5070 | They may be located in separate packages." >&2;} |
5071 | { (exit 1); exit 1; }; } | |
e69bf64b | 5072 | fi |
70ec446f KG |
5073 | fi |
5074 | ||
bebf829d | 5075 | # Flags needed for both GMP and/or MPFR |
6de9cd9a DN |
5076 | |
5077 | ||
5078 | ||
1e0f07d3 | 5079 | # By default, C is the only stage 1 language. |
e1888513 | 5080 | stage1_languages=,c, |
2805b53a | 5081 | |
55ffb5ed NN |
5082 | # Figure out what language subdirectories are present. |
5083 | # Look if the user specified --enable-languages="..."; if not, use | |
5084 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
5085 | # go away some day. | |
5086 | # NB: embedded tabs in this IF block -- do not untabify | |
5087 | if test -d ${srcdir}/gcc; then | |
5088 | if test x"${enable_languages+set}" != xset; then | |
5089 | if test x"${LANGUAGES+set}" = xset; then | |
5090 | enable_languages="${LANGUAGES}" | |
5091 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
5092 | else | |
5093 | enable_languages=all | |
5094 | fi | |
5095 | else | |
5096 | if test x"${enable_languages}" = x || | |
5097 | test x"${enable_languages}" = xyes; | |
5098 | then | |
5099 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
5100 | exit 1 | |
5101 | fi | |
5102 | fi | |
5103 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
5104 | ||
7f26dfa3 FXC |
5105 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
5106 | # and make the substitution. | |
5107 | case ,${enable_languages}, in | |
5108 | *,f95,*) | |
5109 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
5110 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
5111 | ;; | |
5112 | esac | |
5113 | ||
55ffb5ed NN |
5114 | # First scan to see if an enabled language requires some other language. |
5115 | # We assume that a given config-lang.in will list all the language | |
5116 | # front ends it requires, even if some are required indirectly. | |
5117 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
5118 | case ${lang_frag} in | |
5119 | ..) ;; | |
5120 | # The odd quoting in the next line works around | |
5121 | # an apparent bug in bash 1.12 on linux. | |
5122 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
5123 | *) | |
5124 | # From the config-lang.in, get $language, $lang_requires | |
5125 | language= | |
5126 | lang_requires= | |
5127 | . ${lang_frag} | |
5128 | for other in ${lang_requires} ; do | |
5129 | case ,${enable_languages}, in | |
5130 | *,$other,*) ;; | |
5131 | *,all,*) ;; | |
5132 | *,$language,*) | |
5133 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
5134 | enable_languages="${enable_languages},${other}" | |
5135 | ;; | |
5136 | esac | |
5137 | done | |
5138 | ;; | |
5139 | esac | |
5140 | done | |
5141 | ||
e1888513 | 5142 | new_enable_languages=,c, |
55ffb5ed | 5143 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 5144 | potential_languages=,c, |
55ffb5ed NN |
5145 | |
5146 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
5147 | case ${lang_frag} in | |
5148 | ..) ;; | |
5149 | # The odd quoting in the next line works around | |
5150 | # an apparent bug in bash 1.12 on linux. | |
5151 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
5152 | *) | |
1c710c3c | 5153 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 5154 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
5155 | language= |
5156 | target_libs= | |
5157 | lang_dirs= | |
1546bb64 | 5158 | subdir_requires= |
e1888513 PB |
5159 | boot_language=no |
5160 | build_by_default=yes | |
55ffb5ed | 5161 | . ${lang_frag} |
e1888513 PB |
5162 | if test x${language} = x; then |
5163 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
5164 | exit 1 | |
5165 | fi | |
5166 | ||
5167 | case ,${enable_languages}, in | |
5168 | *,${language},*) | |
55ffb5ed NN |
5169 | # Language was explicitly selected; include it. |
5170 | add_this_lang=yes | |
5171 | ;; | |
e1888513 PB |
5172 | *,all,*) |
5173 | # 'all' was selected, select it if it is a default language | |
5174 | add_this_lang=${build_by_default} | |
55ffb5ed NN |
5175 | ;; |
5176 | *) | |
5177 | add_this_lang=no | |
5178 | ;; | |
5179 | esac | |
6de9cd9a | 5180 | |
1546bb64 | 5181 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 5182 | for i in $subdir_requires; do |
b6348cb3 | 5183 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
5184 | case ,${enable_languages}, in |
5185 | *,${language},*) | |
5186 | # Specifically requested language; tell them. | |
1c710c3c DJ |
5187 | { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5 |
5188 | echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
5189 | { (exit 1); exit 1; }; } | |
1546bb64 PB |
5190 | ;; |
5191 | *) | |
5192 | # Silently disable. | |
e1888513 | 5193 | add_this_lang=unsupported |
1546bb64 PB |
5194 | ;; |
5195 | esac | |
5196 | done | |
5197 | ||
e1888513 PB |
5198 | # Disable Ada if no preexisting GNAT is available. |
5199 | case ,${enable_languages},:${language}:${have_gnat} in | |
5200 | *,${language},*:ada:no) | |
5201 | # Specifically requested language; tell them. | |
1c710c3c DJ |
5202 | { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5 |
5203 | echo "$as_me: error: GNAT is required to build $language" >&2;} | |
5204 | { (exit 1); exit 1; }; } | |
e1888513 PB |
5205 | ;; |
5206 | *:ada:no) | |
5207 | # Silently disable. | |
5208 | add_this_lang=unsupported | |
5209 | ;; | |
5210 | esac | |
5211 | ||
4fab7234 HPN |
5212 | # Disable a language that is unsupported by the target. |
5213 | case " $unsupported_languages " in | |
5214 | *" $language "*) | |
e1888513 | 5215 | add_this_lang=unsupported |
4fab7234 HPN |
5216 | ;; |
5217 | esac | |
5218 | ||
6de9cd9a | 5219 | case $add_this_lang in |
e1888513 | 5220 | unsupported) |
55ffb5ed | 5221 | # Remove language-dependent dirs. |
2805b53a NN |
5222 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" |
5223 | ;; | |
e1888513 PB |
5224 | no) |
5225 | # Remove language-dependent dirs; still show language as supported. | |
5226 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" | |
5227 | potential_languages="${potential_languages}${language}," | |
5228 | ;; | |
5229 | yes) | |
5230 | new_enable_languages="${new_enable_languages}${language}," | |
5231 | potential_languages="${potential_languages}${language}," | |
2805b53a NN |
5232 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
5233 | case ${boot_language} in | |
5234 | yes) | |
340de83f | 5235 | # Add to (comma-separated) list of stage 1 languages. |
e1888513 | 5236 | stage1_languages="${stage1_languages}${language}," |
2805b53a NN |
5237 | ;; |
5238 | esac | |
5239 | ;; | |
55ffb5ed NN |
5240 | esac |
5241 | ;; | |
5242 | esac | |
5243 | done | |
5244 | ||
11a67599 | 5245 | # Check whether --enable-stage1-languages was given. |
e1888513 | 5246 | if test "${enable_stage1_languages+set}" = set; then |
11a67599 | 5247 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in |
e1888513 PB |
5248 | ,no,|,,) |
5249 | # Set it to something that will have no effect in the loop below | |
5250 | enable_stage1_languages=c ;; | |
5251 | ,yes,) | |
5252 | enable_stage1_languages=`echo $new_enable_languages | \ | |
5253 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
5254 | *,all,*) | |
5255 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
5256 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
5257 | esac | |
5258 | ||
5259 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
5260 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
5261 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
5262 | case $potential_languages in | |
5263 | *,$i,*) | |
5264 | case $stage1_languages in | |
5265 | *,$i,*) ;; | |
5266 | *) stage1_languages="$stage1_languages$i," ;; | |
5267 | esac ;; | |
5268 | *) | |
5269 | case $missing_languages in | |
5270 | *,$i,*) ;; | |
5271 | *) missing_languages="$missing_languages$i," ;; | |
5272 | esac ;; | |
5273 | esac | |
5274 | done | |
11a67599 ZW |
5275 | fi |
5276 | ||
e1888513 PB |
5277 | |
5278 | # Remove leading/trailing commas that were added for simplicity | |
5279 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 5280 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
5281 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
5282 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
5283 | ||
55ffb5ed | 5284 | if test "x$missing_languages" != x; then |
1c710c3c | 5285 | { { echo "$as_me:$LINENO: error: |
0cf085e4 | 5286 | The following requested languages could not be built: ${missing_languages} |
1c710c3c DJ |
5287 | Supported languages are: ${potential_languages}" >&5 |
5288 | echo "$as_me: error: | |
5289 | The following requested languages could not be built: ${missing_languages} | |
5290 | Supported languages are: ${potential_languages}" >&2;} | |
5291 | { (exit 1); exit 1; }; } | |
55ffb5ed | 5292 | fi |
55ffb5ed NN |
5293 | if test "x$new_enable_languages" != "x$enable_languages"; then |
5294 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 5295 | enable_languages="$new_enable_languages" |
55ffb5ed | 5296 | fi |
e1888513 | 5297 | |
1c710c3c | 5298 | |
b2eaac4a | 5299 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
5300 | fi |
5301 | ||
27079765 AH |
5302 | # Handle --disable-<component> generically. |
5303 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
5304 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
5305 | if eval test x\${enable_${dirname}} "=" xno ; then | |
5306 | noconfigdirs="$noconfigdirs $dir" | |
5307 | fi | |
5308 | done | |
5309 | ||
7cd0cf9c | 5310 | # Check for Boehm's garbage collector |
11a67599 | 5311 | # Check whether --enable-objc-gc was given. |
7cd0cf9c | 5312 | if test "${enable_objc_gc+set}" = set; then |
11a67599 | 5313 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in |
7cd0cf9c | 5314 | *,objc,*:*:yes:*target-boehm-gc*) |
1c710c3c DJ |
5315 | { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5 |
5316 | echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;} | |
5317 | { (exit 1); exit 1; }; } | |
7cd0cf9c DA |
5318 | ;; |
5319 | esac | |
11a67599 ZW |
5320 | fi |
5321 | ||
7cd0cf9c DA |
5322 | |
5323 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
5324 | case ,${enable_languages},:${enable_objc_gc} in |
5325 | *,objc,*:yes) | |
7cd0cf9c DA |
5326 | # Keep target-boehm-gc if requested for Objective-C. |
5327 | ;; | |
7cd0cf9c | 5328 | *) |
2a79fd67 DA |
5329 | # Otherwise remove target-boehm-gc depending on target-libjava. |
5330 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
5331 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
5332 | fi | |
7cd0cf9c DA |
5333 | ;; |
5334 | esac | |
5335 | ||
ee6a22df L |
5336 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
5337 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
5338 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
5339 | ||
5340 | notsupp="" | |
5341 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 5342 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
5343 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
5344 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
5345 | if test -r $srcdir/$dirname/configure ; then | |
5346 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5347 | true | |
5348 | else | |
5349 | notsupp="$notsupp $dir" | |
5350 | fi | |
5351 | fi | |
5352 | fi | |
ee6a22df L |
5353 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
5354 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
5355 | if test -r $srcdir/$dirname/configure ; then | |
5356 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5357 | true | |
5358 | else | |
5359 | notsupp="$notsupp $dir" | |
5360 | fi | |
5361 | fi | |
5362 | fi | |
55ffb5ed NN |
5363 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
5364 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
5365 | if test -r $srcdir/$dirname/configure ; then | |
5366 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5367 | true | |
5368 | else | |
5369 | notsupp="$notsupp $dir" | |
5370 | fi | |
5371 | fi | |
5372 | fi | |
5373 | done | |
5374 | ||
5375 | # Sometimes the tools are distributed with libiberty but with no other | |
5376 | # libraries. In that case, we don't want to build target-libiberty. | |
54fdc474 | 5377 | # Don't let libgcc imply libiberty either. |
55ffb5ed | 5378 | if test -n "${target_configdirs}" ; then |
54fdc474 | 5379 | libgcc= |
55ffb5ed NN |
5380 | others= |
5381 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
54fdc474 DJ |
5382 | if test "$i" = "libgcc"; then |
5383 | libgcc=target-libgcc | |
5384 | elif test "$i" != "libiberty" ; then | |
55ffb5ed NN |
5385 | if test -r $srcdir/$i/configure ; then |
5386 | others=yes; | |
5387 | break; | |
5388 | fi | |
5389 | fi | |
5390 | done | |
5391 | if test -z "${others}" ; then | |
54fdc474 | 5392 | target_configdirs=$libgcc |
55ffb5ed NN |
5393 | fi |
5394 | fi | |
5395 | ||
5396 | # Quietly strip out all directories which aren't configurable in this tree. | |
5397 | # This relies on all configurable subdirectories being autoconfiscated, which | |
5398 | # is now the case. | |
23f6b2f9 PB |
5399 | build_configdirs_all="$build_configdirs" |
5400 | build_configdirs= | |
5401 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 5402 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
5403 | if test -f ${srcdir}/$j/configure ; then |
5404 | build_configdirs="${build_configdirs} $i" | |
5405 | fi | |
5406 | done | |
5407 | ||
55ffb5ed NN |
5408 | configdirs_all="$configdirs" |
5409 | configdirs= | |
5410 | for i in ${configdirs_all} ; do | |
5411 | if test -f ${srcdir}/$i/configure ; then | |
5412 | configdirs="${configdirs} $i" | |
5413 | fi | |
5414 | done | |
23f6b2f9 | 5415 | |
55ffb5ed NN |
5416 | target_configdirs_all="$target_configdirs" |
5417 | target_configdirs= | |
5418 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 5419 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
5420 | if test -f ${srcdir}/$j/configure ; then |
5421 | target_configdirs="${target_configdirs} $i" | |
5422 | fi | |
5423 | done | |
5424 | ||
5425 | # Produce a warning message for the subdirs we can't configure. | |
5426 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
5427 | # FSF releases, it's important to let people know when their machine isn't | |
5428 | # supported by the one or two programs in a package. | |
5429 | ||
5430 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
5431 | # If $appdirs is non-empty, at least one of those directories must still | |
5432 | # be configured, or we error out. (E.g., if the gas release supports a | |
5433 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
5434 | # pretend that all is well.) | |
5435 | if test -n "$appdirs" ; then | |
5436 | for dir in $appdirs ; do | |
5437 | if test -r $dir/Makefile.in ; then | |
5438 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5439 | appdirs="" | |
5440 | break | |
5441 | fi | |
23f6b2f9 | 5442 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
5443 | appdirs="" |
5444 | break | |
5445 | fi | |
5446 | fi | |
5447 | done | |
5448 | if test -n "$appdirs" ; then | |
5449 | echo "*** This configuration is not supported by this package." 1>&2 | |
5450 | exit 1 | |
5451 | fi | |
5452 | fi | |
5453 | # Okay, some application will build, or we don't care to check. Still | |
5454 | # notify of subdirs not getting built. | |
5455 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
5456 | echo " ${notsupp}" 1>&2 | |
5457 | echo " (Any other directories should still work fine.)" 1>&2 | |
5458 | fi | |
5459 | ||
5460 | case "$host" in | |
5461 | *msdosdjgpp*) | |
5462 | enable_gdbtk=no ;; | |
5463 | esac | |
5464 | ||
c3a86da9 DJ |
5465 | # To find our prefix, in gcc_cv_tool_prefix. |
5466 | ||
5467 | # The user is always right. | |
5468 | if test "${PATH_SEPARATOR+set}" != set; then | |
5469 | echo "#! /bin/sh" >conf$$.sh | |
5470 | echo "exit 0" >>conf$$.sh | |
5471 | chmod +x conf$$.sh | |
5472 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5473 | PATH_SEPARATOR=';' | |
5474 | else | |
5475 | PATH_SEPARATOR=: | |
5476 | fi | |
5477 | rm -f conf$$.sh | |
5478 | fi | |
5479 | ||
5480 | ||
5481 | ||
5482 | if test "x$exec_prefix" = xNONE; then | |
5483 | if test "x$prefix" = xNONE; then | |
5484 | gcc_cv_tool_prefix=$ac_default_prefix | |
5485 | else | |
5486 | gcc_cv_tool_prefix=$prefix | |
5487 | fi | |
5488 | else | |
5489 | gcc_cv_tool_prefix=$exec_prefix | |
5490 | fi | |
5491 | ||
5492 | # If there is no compiler in the tree, use the PATH only. In any | |
5493 | # case, if there is no compiler in the tree nobody should use | |
5494 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
5495 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
5496 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
5497 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5498 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
5499 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5500 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
5501 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5502 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
5503 | else | |
5504 | gcc_cv_tool_dirs= | |
5505 | fi | |
5506 | ||
5507 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
5508 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
5509 | fi | |
5510 | ||
5511 | ||
5512 | ||
55ffb5ed NN |
5513 | copy_dirs= |
5514 | ||
1c710c3c | 5515 | |
11a67599 | 5516 | # Check whether --with-build-sysroot was given. |
526635cb | 5517 | if test "${with_build_sysroot+set}" = set; then |
11a67599 | 5518 | withval=$with_build_sysroot; if test x"$withval" != x ; then |
526635cb MM |
5519 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
5520 | fi | |
5521 | else | |
5522 | SYSROOT_CFLAGS_FOR_TARGET= | |
11a67599 ZW |
5523 | fi |
5524 | ||
526635cb MM |
5525 | |
5526 | ||
55ffb5ed NN |
5527 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
5528 | # the named directory are copied to $(tooldir)/sys-include. | |
5529 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
5530 | if test x${is_cross_compiler} = xno ; then | |
5531 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
5532 | exit 1 | |
5533 | fi | |
5534 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 5535 | x=${gcc_cv_tool_prefix} |
1c710c3c | 5536 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
5537 | fi |
5538 | fi | |
5539 | ||
5540 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
5541 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
5542 | # are permitted. | |
5543 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
5544 | if test x${is_cross_compiler} = xno ; then | |
5545 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
5546 | exit 1 | |
5547 | fi | |
5548 | if test x"${with_libs}" != xyes ; then | |
5549 | # Copy the libraries in reverse order, so that files in the first named | |
5550 | # library override files in subsequent libraries. | |
c3a86da9 | 5551 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 5552 | for l in ${with_libs}; do |
1c710c3c | 5553 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
5554 | done |
5555 | fi | |
5556 | fi | |
5557 | ||
e8b05380 PB |
5558 | # Set with_gnu_as and with_gnu_ld as appropriate. |
5559 | # | |
5560 | # This is done by determining whether or not the appropriate directory | |
5561 | # is available, and by checking whether or not specific configurations | |
5562 | # have requested that this magic not happen. | |
1c710c3c DJ |
5563 | # |
5564 | # The command line options always override the explicit settings in | |
e8b05380 PB |
5565 | # configure.in, and the settings in configure.in override this magic. |
5566 | # | |
1c710c3c | 5567 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 PB |
5568 | # want to do that, then you should use the --without-gnu-as and |
5569 | # --without-gnu-ld options for the configure script. | |
5570 | ||
5571 | if test x${use_gnu_as} = x && | |
5572 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
5573 | with_gnu_as=yes | |
5574 | extra_host_args="$extra_host_args --with-gnu-as" | |
5575 | fi | |
5576 | ||
5577 | if test x${use_gnu_ld} = x && | |
5578 | echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then | |
5579 | with_gnu_ld=yes | |
5580 | extra_host_args="$extra_host_args --with-gnu-ld" | |
5581 | fi | |
5582 | ||
5583 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure | |
5584 | # can detect this case. | |
5585 | ||
5586 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
5587 | with_newlib=yes | |
5588 | extra_host_args="$extra_host_args --with-newlib" | |
5589 | fi | |
5590 | ||
55ffb5ed NN |
5591 | # Handle ${copy_dirs} |
5592 | set fnord ${copy_dirs} | |
5593 | shift | |
5594 | while test $# != 0 ; do | |
5595 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
5596 | : | |
5597 | else | |
5598 | echo Copying $1 to $2 | |
5599 | ||
5600 | # Use the install script to create the directory and all required | |
5601 | # parent directories. | |
5602 | if test -d $2 ; then | |
5603 | : | |
5604 | else | |
5605 | echo >config.temp | |
5606 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
5607 | fi | |
5608 | ||
5609 | # Copy the directory, assuming we have tar. | |
5610 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
5611 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
5612 | ||
5613 | # It is the responsibility of the user to correctly adjust all | |
5614 | # symlinks. If somebody can figure out how to handle them correctly | |
5615 | # here, feel free to add the code. | |
5616 | ||
5617 | echo $1 > $2/COPIED | |
5618 | fi | |
5619 | shift; shift | |
5620 | done | |
5621 | ||
e8b05380 PB |
5622 | # Determine a target-dependent exec_prefix that the installed |
5623 | # gcc will search in. Keep this list sorted by triplet, with | |
5624 | # the *-*-osname triplets last. | |
5625 | md_exec_prefix= | |
5626 | case "${target}" in | |
5627 | alpha*-*-*vms*) | |
5628 | md_exec_prefix=/gnu/lib/gcc-lib | |
5629 | ;; | |
5630 | i3456786-pc-msdosdjgpp*) | |
5631 | md_exec_prefix=/dev/env/DJDIR/bin | |
5632 | ;; | |
5633 | i3456786-*-sco3.2v5*) | |
5634 | if test $with_gnu_as = yes; then | |
5635 | md_exec_prefix=/usr/gnu/bin | |
5636 | else | |
5637 | md_exec_prefix=/usr/ccs/bin/elf | |
5638 | fi | |
5639 | ;; | |
5640 | ||
5641 | mn10300-*-* | \ | |
5642 | powerpc-*-chorusos* | \ | |
5643 | powerpc*-*-eabi* | \ | |
5644 | powerpc*-*-sysv* | \ | |
5645 | powerpc*-*-kaos* | \ | |
5646 | s390x-ibm-tpf*) | |
5647 | md_exec_prefix=/usr/ccs/bin | |
5648 | ;; | |
5649 | sparc64-*-elf*) | |
5650 | ;; | |
5651 | v850*-*-*) | |
5652 | md_exec_prefix=/usr/ccs/bin | |
5653 | ;; | |
5654 | xtensa-*-elf*) | |
5655 | ;; | |
5656 | ||
5657 | *-*-beos* | \ | |
5658 | *-*-elf* | \ | |
5659 | *-*-hpux* | \ | |
5660 | *-*-netware* | \ | |
5661 | *-*-nto-qnx* | \ | |
5662 | *-*-rtems* | \ | |
5663 | *-*-solaris2* | \ | |
5664 | *-*-sysv45* | \ | |
5665 | *-*-vxworks* | \ | |
5666 | *-wrs-windiss) | |
5667 | md_exec_prefix=/usr/ccs/bin | |
5668 | ;; | |
5669 | esac | |
5670 | ||
671aa708 NN |
5671 | extra_arflags_for_target= |
5672 | extra_nmflags_for_target= | |
5673 | extra_ranlibflags_for_target= | |
5674 | target_makefile_frag=/dev/null | |
5675 | case "${target}" in | |
3e19841a PB |
5676 | mep*-*-*) |
5677 | target_makefile_frag="config/mt-mep" | |
5678 | ;; | |
58e24147 AM |
5679 | spu-*-*) |
5680 | target_makefile_frag="config/mt-spu" | |
5681 | ;; | |
61fec9ff | 5682 | *-*-netware*) |
671aa708 NN |
5683 | target_makefile_frag="config/mt-netware" |
5684 | ;; | |
98a5bb3b RM |
5685 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
5686 | target_makefile_frag="config/mt-gnu" | |
671aa708 NN |
5687 | ;; |
5688 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 5689 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
5690 | # commands to handle both 32-bit and 64-bit objects. These flags are |
5691 | # harmless if we're using GNU nm or ar. | |
5692 | extra_arflags_for_target=" -X32_64" | |
5693 | extra_nmflags_for_target=" -B -X32_64" | |
5694 | ;; | |
5695 | *-*-darwin*) | |
5696 | # ranlib from Darwin requires the -c flag to look at common symbols. | |
5697 | extra_ranlibflags_for_target=" -c" | |
5698 | ;; | |
5699 | mips*-*-pe | sh*-*-pe | *arm-wince-pe) | |
5700 | target_makefile_frag="config/mt-wince" | |
5701 | ;; | |
5702 | esac | |
5703 | ||
5704 | alphaieee_frag=/dev/null | |
5705 | case $target in | |
5706 | alpha*-*-*) | |
5707 | # This just makes sure to use the -mieee option to build target libs. | |
5708 | # This should probably be set individually by each library. | |
5709 | alphaieee_frag="config/mt-alphaieee" | |
5710 | ;; | |
5711 | esac | |
5712 | ||
5713 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
5714 | # the target libraries, similarly if it is not specified, use -Os | |
5715 | # on selected platforms. | |
5716 | ospace_frag=/dev/null | |
5717 | case "${enable_target_optspace}:${target}" in | |
5718 | yes:*) | |
5719 | ospace_frag="config/mt-ospace" | |
5720 | ;; | |
5721 | :d30v-*) | |
5722 | ospace_frag="config/mt-d30v" | |
5723 | ;; | |
5724 | :m32r-* | :d10v-* | :fr30-*) | |
5725 | ospace_frag="config/mt-ospace" | |
5726 | ;; | |
5727 | no:* | :*) | |
5728 | ;; | |
5729 | *) | |
5730 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
5731 | ;; | |
5732 | esac | |
5733 | ||
671aa708 NN |
5734 | # Default to using --with-stabs for certain targets. |
5735 | if test x${with_stabs} = x ; then | |
5736 | case "${target}" in | |
89a95129 | 5737 | mips*-*-irix[56]*) |
671aa708 NN |
5738 | ;; |
5739 | mips*-*-* | alpha*-*-osf*) | |
5740 | with_stabs=yes; | |
5741 | extra_host_args="${extra_host_args} --with-stabs" | |
5742 | ;; | |
5743 | esac | |
5744 | fi | |
5745 | ||
5746 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
5747 | # them automatically. | |
5748 | case "${host}" in | |
1c710c3c | 5749 | hppa*64*-*-hpux11*) |
671aa708 NN |
5750 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" |
5751 | ;; | |
5752 | esac | |
5753 | ||
671aa708 NN |
5754 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
5755 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 5756 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
5757 | build_tooldir=${tooldir} |
5758 | ||
671aa708 NN |
5759 | # Create a .gdbinit file which runs the one in srcdir |
5760 | # and tells GDB to look there for source files. | |
5761 | ||
5762 | if test -r ${srcdir}/.gdbinit ; then | |
5763 | case ${srcdir} in | |
5764 | .) ;; | |
5765 | *) cat > ./.gdbinit <<EOF | |
5766 | # ${NO_EDIT} | |
5767 | dir ${srcdir} | |
5768 | dir . | |
5769 | source ${srcdir}/.gdbinit | |
5770 | EOF | |
5771 | ;; | |
5772 | esac | |
5773 | fi | |
5774 | ||
671aa708 NN |
5775 | # Make sure that the compiler is able to generate an executable. If it |
5776 | # can't, we are probably in trouble. We don't care whether we can run the | |
5777 | # executable--we might be using a cross compiler--we only care whether it | |
5778 | # can be created. At this point the main configure script has set CC. | |
5779 | we_are_ok=no | |
5780 | echo "int main () { return 0; }" > conftest.c | |
5781 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
5782 | if test $? = 0 ; then | |
5783 | if test -s conftest || test -s conftest.exe ; then | |
5784 | we_are_ok=yes | |
5785 | fi | |
1c710c3c | 5786 | fi |
671aa708 NN |
5787 | case $we_are_ok in |
5788 | no) | |
5789 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
5790 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
5791 | rm -f conftest* | |
5792 | exit 1 | |
5793 | ;; | |
5794 | esac | |
5795 | rm -f conftest* | |
5796 | ||
5797 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
5798 | case "${host}" in | |
5799 | sparc-sun-solaris2*) | |
5800 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
5801 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
5802 | could_use= | |
5803 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
5804 | if test -d /opt/cygnus/bin ; then | |
5805 | if test "$could_use" = "" ; then | |
5806 | could_use="/opt/cygnus/bin" | |
5807 | else | |
5808 | could_use="$could_use or /opt/cygnus/bin" | |
5809 | fi | |
5810 | fi | |
5811 | if test "$could_use" = "" ; then | |
5812 | echo "Warning: compilation may fail because you're using" | |
5813 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
5814 | echo "variable and rerun configure." | |
5815 | else | |
5816 | echo "Warning: compilation may fail because you're using" | |
5817 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
5818 | echo "$could_use. You should change your" | |
5819 | echo "PATH or CC variable and rerun configure." | |
5820 | fi | |
5821 | fi | |
5822 | ;; | |
5823 | esac | |
5824 | ||
671aa708 NN |
5825 | case "${host}" in |
5826 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
256f7136 | 5827 | *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
671aa708 NN |
5828 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
5829 | esac | |
5830 | ||
5831 | # Record target_configdirs and the configure arguments for target and | |
5832 | # build configuration in Makefile. | |
5833 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 5834 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
671aa708 | 5835 | |
671aa708 NN |
5836 | # Determine whether gdb needs tk/tcl or not. |
5837 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
5838 | # and in that case we want gdb to be built without tk. Ugh! | |
5839 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
5840 | # so we should be able to put the 'maybe's in unconditionally and | |
5841 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
5842 | # 100% sure that that's safe though. | |
e914a571 | 5843 | |
b4f96efe | 5844 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
5845 | case "$enable_gdbtk" in |
5846 | no) | |
5847 | GDB_TK="" ;; | |
e914a571 AC |
5848 | yes) |
5849 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 5850 | *) |
e914a571 AC |
5851 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
5852 | # distro. Eventually someone will fix this and move Insight, nee | |
5853 | # gdbtk to a separate directory. | |
5854 | if test -d ${srcdir}/gdb/gdbtk ; then | |
5855 | GDB_TK="${gdb_tk}" | |
5856 | else | |
5857 | GDB_TK="" | |
5858 | fi | |
5859 | ;; | |
671aa708 | 5860 | esac |
ef9db8d5 DJ |
5861 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
5862 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 5863 | |
60975492 | 5864 | # Strip out unwanted targets. |
8b87bb96 NN |
5865 | |
5866 | # While at that, we remove Makefiles if we were started for recursive | |
5867 | # configuration, so that the top-level Makefile reconfigures them, | |
5868 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 5869 | |
60975492 PB |
5870 | # Loop over modules. $extrasub must be used with care, limiting as |
5871 | # much as possible the usage of range addresses. That's because autoconf | |
5872 | # splits the sed script to overcome limits in the number of commands, | |
5873 | # and relying on carefully-timed sed passes may turn out to be very hard | |
5874 | # to maintain later. In this particular case, you just have to be careful | |
5875 | # not to nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 5876 | |
11a67599 | 5877 | # Check whether --enable-bootstrap was given. |
f516a7da | 5878 | if test "${enable_bootstrap+set}" = set; then |
11a67599 | 5879 | enableval=$enable_bootstrap; |
f516a7da | 5880 | else |
ce521a9c | 5881 | enable_bootstrap=default |
11a67599 ZW |
5882 | fi |
5883 | ||
f516a7da | 5884 | |
ce521a9c PB |
5885 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
5886 | case "$configdirs" in | |
5887 | *gcc*) have_compiler=yes ;; | |
5888 | *) have_compiler=no ;; | |
5889 | esac | |
5890 | ||
5891 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5892 | *:*:*:no) ;; | |
5893 | ||
1ca26cd2 | 5894 | # Default behavior. Enable bootstrap if we have a compiler |
ce521a9c PB |
5895 | # and we are in a native configuration. |
5896 | yes:$build:$build:default) | |
1ca26cd2 | 5897 | enable_bootstrap=yes ;; |
ce521a9c PB |
5898 | |
5899 | *:*:*:default) | |
5900 | enable_bootstrap=no ;; | |
5901 | ||
5902 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
2d309510 | 5903 | yes:$build:$build:yes) |
ce521a9c PB |
5904 | ;; |
5905 | ||
5906 | # Other configurations, but we have a compiler. Assume the user knows | |
5907 | # what he's doing. | |
2d309510 | 5908 | yes:*:*:yes) |
1c710c3c DJ |
5909 | { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5 |
5910 | echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
ce521a9c PB |
5911 | ;; |
5912 | ||
5913 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
2d309510 | 5914 | no:*:*:yes) |
1c710c3c DJ |
5915 | { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5 |
5916 | echo "$as_me: error: cannot bootstrap without a compiler" >&2;} | |
5917 | { (exit 1); exit 1; }; } ;; | |
ce521a9c PB |
5918 | |
5919 | # Fail if wrong command line | |
5920 | *) | |
1c710c3c DJ |
5921 | { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5 |
5922 | echo "$as_me: error: invalid option for --enable-bootstrap" >&2;} | |
5923 | { (exit 1); exit 1; }; } | |
ce521a9c PB |
5924 | ;; |
5925 | esac | |
5926 | ||
5927 | # Adjust the toplevel makefile according to whether bootstrap was selected. | |
f516a7da PB |
5928 | case "$enable_bootstrap" in |
5929 | yes) | |
5607edfd | 5930 | bootstrap_suffix=bootstrap ;; |
f516a7da | 5931 | no) |
5607edfd | 5932 | bootstrap_suffix=no-bootstrap ;; |
f516a7da PB |
5933 | esac |
5934 | ||
23f6b2f9 | 5935 | for module in ${build_configdirs} ; do |
5607edfd PB |
5936 | if test -z "${no_recursion}" \ |
5937 | && test -f ${build_subdir}/${module}/Makefile; then | |
5938 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
5939 | rm -f ${build_subdir}/${module}/Makefile | |
5940 | fi | |
5941 | extrasub="$extrasub | |
5942 | /^@if build-$module\$/d | |
5943 | /^@endif build-$module\$/d | |
5944 | /^@if build-$module-$bootstrap_suffix\$/d | |
5945 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
5946 | done | |
5947 | for module in ${configdirs} ; do | |
a6fbc1e2 | 5948 | if test -z "${no_recursion}"; then |
f063a9ed | 5949 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
5950 | if test -f ${file}; then |
5951 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
5952 | rm -f ${file} | |
5953 | fi | |
5954 | done | |
5607edfd PB |
5955 | fi |
5956 | extrasub="$extrasub | |
5957 | /^@if $module\$/d | |
5958 | /^@endif $module\$/d | |
5959 | /^@if $module-$bootstrap_suffix\$/d | |
5960 | /^@endif $module-$bootstrap_suffix\$/d" | |
5961 | done | |
5962 | for module in ${target_configdirs} ; do | |
5963 | if test -z "${no_recursion}" \ | |
5964 | && test -f ${target_subdir}/${module}/Makefile; then | |
5965 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
5966 | rm -f ${target_subdir}/${module}/Makefile | |
5967 | fi | |
5968 | extrasub="$extrasub | |
5969 | /^@if target-$module\$/d | |
5970 | /^@endif target-$module\$/d | |
5971 | /^@if target-$module-$bootstrap_suffix\$/d | |
5972 | /^@endif target-$module-$bootstrap_suffix\$/d" | |
5973 | done | |
5974 | ||
60975492 PB |
5975 | extrasub="$extrasub |
5976 | /^@if /,/^@endif /d" | |
671aa708 NN |
5977 | |
5978 | # Create the serialization dependencies. This uses a temporary file. | |
5979 | ||
11a67599 | 5980 | # Check whether --enable-serial-configure was given. |
ade82b16 | 5981 | if test "${enable_serial_configure+set}" = set; then |
11a67599 ZW |
5982 | enableval=$enable_serial_configure; |
5983 | fi | |
ade82b16 AO |
5984 | |
5985 | ||
bf1d3e81 NN |
5986 | case ${enable_serial_configure} in |
5987 | yes) | |
5988 | enable_serial_build_configure=yes | |
5989 | enable_serial_host_configure=yes | |
5990 | enable_serial_target_configure=yes | |
5991 | ;; | |
5992 | esac | |
5993 | ||
671aa708 NN |
5994 | # These force 'configure's to be done one at a time, to avoid problems |
5995 | # with contention over a shared config.cache. | |
5996 | rm -f serdep.tmp | |
ade82b16 | 5997 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 5998 | olditem= |
bf1d3e81 | 5999 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
6000 | for item in ${build_configdirs} ; do |
6001 | case ${olditem} in | |
6002 | "") ;; | |
ade82b16 | 6003 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6004 | esac |
6005 | olditem=${item} | |
6006 | done | |
6007 | olditem= | |
bf1d3e81 | 6008 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
6009 | for item in ${configdirs} ; do |
6010 | case ${olditem} in | |
6011 | "") ;; | |
ade82b16 | 6012 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6013 | esac |
6014 | olditem=${item} | |
6015 | done | |
6016 | olditem= | |
bf1d3e81 | 6017 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
6018 | for item in ${target_configdirs} ; do |
6019 | case ${olditem} in | |
6020 | "") ;; | |
ade82b16 | 6021 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6022 | esac |
6023 | olditem=${item} | |
6024 | done | |
6025 | serialization_dependencies=serdep.tmp | |
6026 | ||
6027 | ||
ade82b16 | 6028 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c DJ |
6029 | # target, nonopt, and variable assignments. These are the ones we |
6030 | # might not want to pass down to subconfigures. Also strip | |
6031 | # program-prefix, program-suffix, and program-transform-name, so that | |
6032 | # we can pass down a consistent program-transform-name. | |
6033 | baseargs= | |
6034 | keep_next=no | |
6035 | skip_next=no | |
6036 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
6037 | for ac_arg |
6038 | do | |
1c710c3c DJ |
6039 | if test X"$skip_next" = X"yes"; then |
6040 | skip_next=no | |
6041 | continue | |
6042 | fi | |
6043 | if test X"$keep_next" = X"yes"; then | |
6044 | case $ac_arg in | |
6045 | *\'*) | |
6046 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6047 | esac | |
6048 | baseargs="$baseargs '$ac_arg'" | |
6049 | keep_next=no | |
6050 | continue | |
6051 | fi | |
6052 | ||
6053 | # Handle separated arguments. Based on the logic generated by | |
6054 | # autoconf 2.59. | |
6055 | case $ac_arg in | |
6056 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
6057 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
6058 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
6059 | | -with-* | --with-* | -without-* | --without-* | --x) | |
6060 | separate_arg=no | |
6061 | ;; | |
6062 | -*) | |
6063 | separate_arg=yes | |
6064 | ;; | |
6065 | *) | |
6066 | separate_arg=no | |
6067 | ;; | |
6068 | esac | |
6069 | ||
6070 | case "$ac_arg" in | |
6071 | --no*) | |
6072 | continue | |
6073 | ;; | |
6074 | --c* | \ | |
6075 | --sr* | \ | |
6076 | --ho* | \ | |
6077 | --bu* | \ | |
6078 | --t* | \ | |
6079 | --program-* | \ | |
6080 | -cache_file* | \ | |
6081 | -srcdir* | \ | |
6082 | -host* | \ | |
6083 | -build* | \ | |
6084 | -target* | \ | |
6085 | -program-prefix* | \ | |
6086 | -program-suffix* | \ | |
6087 | -program-transform-name* ) | |
6088 | skip_next=$separate_arg | |
6089 | continue | |
6090 | ;; | |
6091 | -*) | |
6092 | # An option. Add it. | |
6093 | case $ac_arg in | |
6094 | *\'*) | |
6095 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6096 | esac | |
6097 | baseargs="$baseargs '$ac_arg'" | |
6098 | keep_next=$separate_arg | |
6099 | ;; | |
6100 | *) | |
6101 | # Either a variable assignment, or a nonopt (triplet). Don't | |
6102 | # pass it down; let the Makefile handle this. | |
6103 | continue | |
6104 | ;; | |
6105 | esac | |
6106 | done | |
6107 | # Remove the initial space we just introduced and, as these will be | |
6108 | # expanded by make, quote '$'. | |
6109 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 6110 | |
43bb47c2 DJ |
6111 | # Add in --program-transform-name, after --program-prefix and |
6112 | # --program-suffix have been applied to it. Autoconf has already | |
6113 | # doubled dollar signs and backslashes in program_transform_name; we want | |
6114 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 6115 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
6116 | # Also, because we want to override the logic in subdir configure scripts to |
6117 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
6118 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
6119 | ${program_transform_name} | |
6120 | EOF_SED | |
6121 | gcc_transform_name=`cat conftestsed.out` | |
6122 | rm -f conftestsed.out | |
6123 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
6124 | ||
671aa708 NN |
6125 | # For the build-side libraries, we just need to pretend we're native, |
6126 | # and not use the same cache file. Multilibs are neither needed nor | |
6127 | # desired. | |
e69bf64b | 6128 | build_configargs="--cache-file=../config.cache ${baseargs}" |
671aa708 NN |
6129 | |
6130 | # For host modules, accept cache file option, or specification as blank. | |
6131 | case "${cache_file}" in | |
6132 | "") # empty | |
6133 | cache_file_option="" ;; | |
6134 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
6135 | cache_file_option="--cache-file=${cache_file}" ;; | |
6136 | *) # relative path | |
6137 | cache_file_option="--cache-file=../${cache_file}" ;; | |
6138 | esac | |
6139 | ||
09438bde NN |
6140 | # Host dirs don't like to share a cache file either, horribly enough. |
6141 | # This seems to be due to autoconf 2.5x stupidity. | |
e69bf64b | 6142 | host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 NN |
6143 | |
6144 | target_configargs=${baseargs} | |
6145 | ||
6146 | # Passing a --with-cross-host argument lets the target libraries know | |
6147 | # whether they are being built with a cross-compiler or being built | |
6148 | # native. However, it would be better to use other mechanisms to make the | |
6149 | # sorts of decisions they want to make on this basis. Please consider | |
6150 | # this option to be deprecated. FIXME. | |
6151 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 6152 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
6153 | fi |
6154 | ||
6155 | # Default to --enable-multilib. | |
6156 | if test x${enable_multilib} = x ; then | |
6157 | target_configargs="--enable-multilib ${target_configargs}" | |
6158 | fi | |
6159 | ||
6160 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
6161 | # changed from the earlier setting of with_newlib. | |
6162 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
6163 | target_configargs="--with-newlib ${target_configargs}" | |
6164 | fi | |
6165 | ||
6b9eb62c NN |
6166 | # Different target subdirs use different values of certain variables |
6167 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
6168 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
6169 | # it doesn't automatically accept command-line overrides of them. | |
6170 | # This means it's not safe for target subdirs to share a cache file, | |
6171 | # which is disgusting, but there you have it. Hopefully this can be | |
6172 | # fixed in future. It's still worthwhile to use a cache file for each | |
6173 | # directory. I think. | |
6174 | ||
bebcd931 MS |
6175 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
6176 | # We need to pass --target, as newer autoconf's requires consistency | |
6177 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 6178 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 6179 | |
671aa708 NN |
6180 | FLAGS_FOR_TARGET= |
6181 | case " $target_configdirs " in | |
6182 | *" newlib "*) | |
6183 | case " $target_configargs " in | |
6184 | *" --with-newlib "*) | |
6185 | case "$target" in | |
6186 | *-cygwin*) | |
aa8f1f57 | 6187 | 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' ;; |
671aa708 NN |
6188 | esac |
6189 | ||
6190 | # If we're not building GCC, don't discard standard headers. | |
6191 | if test -d ${srcdir}/gcc; then | |
6192 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
6193 | ||
6194 | if test "${build}" != "${host}"; then | |
6195 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
6196 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
6197 | # to it. This is right: we don't want to search that directory | |
6198 | # for binaries, but we want the header files in there, so add | |
6199 | # them explicitly. | |
215c351a | 6200 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' |
671aa708 NN |
6201 | |
6202 | # Someone might think of using the pre-installed headers on | |
6203 | # Canadian crosses, in case the installed compiler is not fully | |
6204 | # compatible with the compiler being built. In this case, it | |
6205 | # would be better to flag an error than risking having | |
6206 | # incompatible object files being constructed. We can't | |
6207 | # guarantee that an error will be flagged, but let's hope the | |
6208 | # compiler will do it, when presented with incompatible header | |
6209 | # files. | |
6210 | fi | |
6211 | fi | |
6212 | ||
6213 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 6214 | i[3456789]86-*-linux*-no) |
671aa708 NN |
6215 | # Here host == target, so we don't need to build gcc, |
6216 | # so we don't want to discard standard headers. | |
6217 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
6218 | ;; | |
6219 | *) | |
6220 | # If we're building newlib, use its generic headers last, but search | |
6221 | # for any libc-related directories first (so make it the last -B | |
6222 | # switch). | |
6223 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
6224 | ;; | |
6225 | esac | |
6226 | ;; | |
6227 | esac | |
6228 | ;; | |
6229 | esac | |
b91f0a41 CV |
6230 | case "$target" in |
6231 | *-mingw*) | |
6232 | # Can't be handled as Cygwin above since Mingw does not use newlib. | |
6233 | 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' ;; | |
6234 | esac | |
671aa708 | 6235 | |
6691a79e ME |
6236 | # Allow the user to override the flags for |
6237 | # our build compiler if desired. | |
6238 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
6239 | ||
671aa708 NN |
6240 | # On Canadian crosses, we'll be searching the right directories for |
6241 | # the previously-installed cross compiler, so don't bother to add | |
6242 | # flags for directories within the install tree of the compiler | |
6243 | # being built; programs in there won't even run. | |
6244 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
6245 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 6246 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
6247 | fi |
6248 | ||
6249 | if test "x${use_gnu_ld}" = x && | |
6250 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
6251 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 6252 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
6253 | fi |
6254 | ||
e88a2c09 DD |
6255 | # Search for other target-specific linker scripts and such. |
6256 | case "${target}" in | |
6257 | m32c-*-* ) | |
6258 | if test -d ${srcdir}/libgloss/m32c; then | |
6259 | # This is for crt0.o | |
6260 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c' | |
6261 | # This is for r8c.ld | |
6262 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c' | |
6263 | # This is for libnosys.a | |
6264 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
6265 | fi | |
6266 | ;; | |
3e19841a PB |
6267 | mep*) |
6268 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
6269 | ;; | |
e88a2c09 DD |
6270 | esac |
6271 | ||
671aa708 | 6272 | # Makefile fragments. |
7b61653a PE |
6273 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
6274 | do | |
6275 | eval fragval=\$$frag | |
6276 | if test $fragval != /dev/null; then | |
6277 | eval $frag=${srcdir}/$fragval | |
6278 | fi | |
6279 | done | |
671aa708 NN |
6280 | |
6281 | ||
6282 | ||
6283 | ||
6284 | ||
6285 | # Miscellanea: directories, flags, etc. | |
6286 | ||
6287 | ||
6288 | ||
6289 | ||
6290 | ||
6291 | ||
6292 | ||
23f6b2f9 | 6293 | # Build module lists & subconfigure args. |
671aa708 NN |
6294 | |
6295 | ||
6296 | ||
2abefe3d PB |
6297 | # Host module lists & subconfigure args. |
6298 | ||
6299 | ||
6300 | ||
6301 | # Target module lists & subconfigure args. | |
6302 | ||
6303 | ||
6304 | ||
6305 | # Build tools. | |
6306 | ||
6307 | ||
6308 | ||
6309 | # Generate default definitions for YACC, M4, LEX and other programs that run | |
6310 | # on the build machine. These are used if the Makefile can't locate these | |
6311 | # programs in objdir. | |
6312 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
6313 | ||
6314 | for ac_prog in 'bison -y' byacc yacc | |
6315 | do | |
1c710c3c | 6316 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6317 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6318 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6319 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6320 | if test "${ac_cv_prog_YACC+set}" = set; then |
6321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6322 | else |
6323 | if test -n "$YACC"; then | |
6324 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6325 | else | |
1c710c3c DJ |
6326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6327 | for as_dir in $PATH | |
6328 | do | |
6329 | IFS=$as_save_IFS | |
6330 | test -z "$as_dir" && as_dir=. | |
6331 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6333 | ac_cv_prog_YACC="$ac_prog" |
6334 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6335 | break 2 | |
6336 | fi | |
6337 | done | |
6338 | done | |
11a67599 | 6339 | IFS=$as_save_IFS |
1c710c3c | 6340 | |
2abefe3d PB |
6341 | fi |
6342 | fi | |
1c710c3c | 6343 | YACC=$ac_cv_prog_YACC |
2abefe3d | 6344 | if test -n "$YACC"; then |
11a67599 ZW |
6345 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
6346 | echo "${ECHO_T}$YACC" >&6; } | |
2abefe3d | 6347 | else |
11a67599 ZW |
6348 | { echo "$as_me:$LINENO: result: no" >&5 |
6349 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
6350 | fi |
6351 | ||
11a67599 | 6352 | |
1c710c3c | 6353 | test -n "$YACC" && break |
2abefe3d PB |
6354 | done |
6355 | test -n "$YACC" || YACC="$MISSING bison -y" | |
6356 | ||
6357 | case " $build_configdirs " in | |
6358 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
6359 | *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;; | |
6360 | esac | |
6361 | ||
6362 | for ac_prog in bison | |
6363 | do | |
1c710c3c | 6364 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6365 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6366 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6368 | if test "${ac_cv_prog_BISON+set}" = set; then |
6369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6370 | else |
6371 | if test -n "$BISON"; then | |
6372 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
6373 | else | |
1c710c3c DJ |
6374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6375 | for as_dir in $PATH | |
6376 | do | |
6377 | IFS=$as_save_IFS | |
6378 | test -z "$as_dir" && as_dir=. | |
6379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6381 | ac_cv_prog_BISON="$ac_prog" |
6382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6383 | break 2 | |
6384 | fi | |
6385 | done | |
6386 | done | |
11a67599 | 6387 | IFS=$as_save_IFS |
1c710c3c | 6388 | |
2abefe3d PB |
6389 | fi |
6390 | fi | |
1c710c3c | 6391 | BISON=$ac_cv_prog_BISON |
2abefe3d | 6392 | if test -n "$BISON"; then |
11a67599 ZW |
6393 | { echo "$as_me:$LINENO: result: $BISON" >&5 |
6394 | echo "${ECHO_T}$BISON" >&6; } | |
2abefe3d | 6395 | else |
11a67599 ZW |
6396 | { echo "$as_me:$LINENO: result: no" >&5 |
6397 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
6398 | fi |
6399 | ||
11a67599 | 6400 | |
1c710c3c | 6401 | test -n "$BISON" && break |
2abefe3d PB |
6402 | done |
6403 | test -n "$BISON" || BISON="$MISSING bison" | |
6404 | ||
6405 | case " $build_configdirs " in | |
6406 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
6407 | esac | |
6408 | ||
6409 | for ac_prog in gm4 gnum4 m4 | |
6410 | do | |
1c710c3c | 6411 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6412 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6413 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6415 | if test "${ac_cv_prog_M4+set}" = set; then |
6416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6417 | else |
6418 | if test -n "$M4"; then | |
6419 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
6420 | else | |
1c710c3c DJ |
6421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6422 | for as_dir in $PATH | |
6423 | do | |
6424 | IFS=$as_save_IFS | |
6425 | test -z "$as_dir" && as_dir=. | |
6426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6428 | ac_cv_prog_M4="$ac_prog" |
6429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6430 | break 2 | |
6431 | fi | |
6432 | done | |
6433 | done | |
11a67599 | 6434 | IFS=$as_save_IFS |
1c710c3c | 6435 | |
2abefe3d PB |
6436 | fi |
6437 | fi | |
1c710c3c | 6438 | M4=$ac_cv_prog_M4 |
2abefe3d | 6439 | if test -n "$M4"; then |
11a67599 ZW |
6440 | { echo "$as_me:$LINENO: result: $M4" >&5 |
6441 | echo "${ECHO_T}$M4" >&6; } | |
2abefe3d | 6442 | else |
11a67599 ZW |
6443 | { echo "$as_me:$LINENO: result: no" >&5 |
6444 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
6445 | fi |
6446 | ||
11a67599 | 6447 | |
1c710c3c | 6448 | test -n "$M4" && break |
2abefe3d PB |
6449 | done |
6450 | test -n "$M4" || M4="$MISSING m4" | |
6451 | ||
6452 | case " $build_configdirs " in | |
6453 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
6454 | esac | |
6455 | ||
6456 | for ac_prog in flex lex | |
6457 | do | |
1c710c3c | 6458 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6459 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6462 | if test "${ac_cv_prog_LEX+set}" = set; then |
6463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6464 | else |
6465 | if test -n "$LEX"; then | |
6466 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6467 | else | |
1c710c3c DJ |
6468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6469 | for as_dir in $PATH | |
6470 | do | |
6471 | IFS=$as_save_IFS | |
6472 | test -z "$as_dir" && as_dir=. | |
6473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6475 | ac_cv_prog_LEX="$ac_prog" |
6476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6477 | break 2 | |
6478 | fi | |
6479 | done | |
6480 | done | |
11a67599 | 6481 | IFS=$as_save_IFS |
1c710c3c | 6482 | |
2abefe3d PB |
6483 | fi |
6484 | fi | |
1c710c3c | 6485 | LEX=$ac_cv_prog_LEX |
2abefe3d | 6486 | if test -n "$LEX"; then |
11a67599 ZW |
6487 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
6488 | echo "${ECHO_T}$LEX" >&6; } | |
2abefe3d | 6489 | else |
11a67599 ZW |
6490 | { echo "$as_me:$LINENO: result: no" >&5 |
6491 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
6492 | fi |
6493 | ||
11a67599 | 6494 | |
1c710c3c | 6495 | test -n "$LEX" && break |
2abefe3d PB |
6496 | done |
6497 | test -n "$LEX" || LEX="$MISSING flex" | |
6498 | ||
6499 | case " $build_configdirs " in | |
6500 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
6501 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
6502 | esac | |
6503 | ||
6504 | for ac_prog in flex | |
6505 | do | |
1c710c3c | 6506 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6507 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6508 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6510 | if test "${ac_cv_prog_FLEX+set}" = set; then |
6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6512 | else |
6513 | if test -n "$FLEX"; then | |
6514 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
6515 | else | |
1c710c3c DJ |
6516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6517 | for as_dir in $PATH | |
6518 | do | |
6519 | IFS=$as_save_IFS | |
6520 | test -z "$as_dir" && as_dir=. | |
6521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6523 | ac_cv_prog_FLEX="$ac_prog" |
6524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6525 | break 2 | |
6526 | fi | |
6527 | done | |
6528 | done | |
11a67599 | 6529 | IFS=$as_save_IFS |
1c710c3c | 6530 | |
2abefe3d PB |
6531 | fi |
6532 | fi | |
1c710c3c | 6533 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 6534 | if test -n "$FLEX"; then |
11a67599 ZW |
6535 | { echo "$as_me:$LINENO: result: $FLEX" >&5 |
6536 | echo "${ECHO_T}$FLEX" >&6; } | |
2abefe3d | 6537 | else |
11a67599 ZW |
6538 | { echo "$as_me:$LINENO: result: no" >&5 |
6539 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
6540 | fi |
6541 | ||
11a67599 | 6542 | |
1c710c3c | 6543 | test -n "$FLEX" && break |
2abefe3d PB |
6544 | done |
6545 | test -n "$FLEX" || FLEX="$MISSING flex" | |
6546 | ||
6547 | case " $build_configdirs " in | |
6548 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
6549 | esac | |
6550 | ||
6551 | for ac_prog in makeinfo | |
6552 | do | |
1c710c3c | 6553 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6554 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6555 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6557 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
6558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6559 | else |
6560 | if test -n "$MAKEINFO"; then | |
6561 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
6562 | else | |
1c710c3c DJ |
6563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6564 | for as_dir in $PATH | |
6565 | do | |
6566 | IFS=$as_save_IFS | |
6567 | test -z "$as_dir" && as_dir=. | |
6568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6570 | ac_cv_prog_MAKEINFO="$ac_prog" |
6571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6572 | break 2 | |
6573 | fi | |
6574 | done | |
6575 | done | |
11a67599 | 6576 | IFS=$as_save_IFS |
1c710c3c | 6577 | |
2abefe3d PB |
6578 | fi |
6579 | fi | |
1c710c3c | 6580 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 6581 | if test -n "$MAKEINFO"; then |
11a67599 ZW |
6582 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
6583 | echo "${ECHO_T}$MAKEINFO" >&6; } | |
2abefe3d | 6584 | else |
11a67599 ZW |
6585 | { echo "$as_me:$LINENO: result: no" >&5 |
6586 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
6587 | fi |
6588 | ||
11a67599 | 6589 | |
1c710c3c | 6590 | test -n "$MAKEINFO" && break |
2abefe3d PB |
6591 | done |
6592 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
6593 | ||
6594 | case " $build_configdirs " in | |
6595 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
6596 | *) | |
6597 | ||
27b6c940 | 6598 | # For an installed makeinfo, we require it to be from texinfo 4.4 or |
2abefe3d PB |
6599 | # higher, else we use the "missing" dummy. |
6600 | if ${MAKEINFO} --version \ | |
27b6c940 | 6601 | | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then |
2abefe3d PB |
6602 | : |
6603 | else | |
6604 | MAKEINFO="$MISSING makeinfo" | |
6605 | fi | |
6606 | ;; | |
6607 | ||
6608 | esac | |
671aa708 | 6609 | |
2abefe3d | 6610 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 6611 | |
2abefe3d PB |
6612 | for ac_prog in expect |
6613 | do | |
1c710c3c | 6614 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6615 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6616 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6618 | if test "${ac_cv_prog_EXPECT+set}" = set; then |
6619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6620 | else |
6621 | if test -n "$EXPECT"; then | |
6622 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
6623 | else | |
1c710c3c DJ |
6624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6625 | for as_dir in $PATH | |
6626 | do | |
6627 | IFS=$as_save_IFS | |
6628 | test -z "$as_dir" && as_dir=. | |
6629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6631 | ac_cv_prog_EXPECT="$ac_prog" |
6632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6633 | break 2 | |
6634 | fi | |
6635 | done | |
6636 | done | |
11a67599 | 6637 | IFS=$as_save_IFS |
1c710c3c | 6638 | |
2abefe3d PB |
6639 | fi |
6640 | fi | |
1c710c3c | 6641 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 6642 | if test -n "$EXPECT"; then |
11a67599 ZW |
6643 | { echo "$as_me:$LINENO: result: $EXPECT" >&5 |
6644 | echo "${ECHO_T}$EXPECT" >&6; } | |
2abefe3d | 6645 | else |
11a67599 ZW |
6646 | { echo "$as_me:$LINENO: result: no" >&5 |
6647 | echo "${ECHO_T}no" >&6; } | |
2abefe3d | 6648 | fi |
671aa708 | 6649 | |
11a67599 | 6650 | |
1c710c3c | 6651 | test -n "$EXPECT" && break |
2abefe3d PB |
6652 | done |
6653 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 6654 | |
2abefe3d PB |
6655 | case " $configdirs " in |
6656 | *" expect "*) | |
6657 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
6658 | ;; | |
6659 | esac | |
671aa708 | 6660 | |
2abefe3d PB |
6661 | for ac_prog in runtest |
6662 | do | |
1c710c3c | 6663 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6664 | set dummy $ac_prog; ac_word=$2 |
11a67599 ZW |
6665 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6667 | if test "${ac_cv_prog_RUNTEST+set}" = set; then |
6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6669 | else |
6670 | if test -n "$RUNTEST"; then | |
6671 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 6672 | else |
1c710c3c DJ |
6673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6674 | for as_dir in $PATH | |
6675 | do | |
6676 | IFS=$as_save_IFS | |
6677 | test -z "$as_dir" && as_dir=. | |
6678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6680 | ac_cv_prog_RUNTEST="$ac_prog" |
6681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6682 | break 2 | |
6683 | fi | |
6684 | done | |
6685 | done | |
11a67599 | 6686 | IFS=$as_save_IFS |
1c710c3c | 6687 | |
2abefe3d PB |
6688 | fi |
6689 | fi | |
1c710c3c | 6690 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 6691 | if test -n "$RUNTEST"; then |
11a67599 ZW |
6692 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
6693 | echo "${ECHO_T}$RUNTEST" >&6; } | |
2abefe3d | 6694 | else |
11a67599 ZW |
6695 | { echo "$as_me:$LINENO: result: no" >&5 |
6696 | echo "${ECHO_T}no" >&6; } | |
2abefe3d | 6697 | fi |
671aa708 | 6698 | |
11a67599 | 6699 | |
1c710c3c | 6700 | test -n "$RUNTEST" && break |
2abefe3d PB |
6701 | done |
6702 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 6703 | |
2abefe3d PB |
6704 | case " $configdirs " in |
6705 | *" dejagnu "*) | |
c394e891 | 6706 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
6707 | ;; |
6708 | esac | |
671aa708 NN |
6709 | |
6710 | ||
671aa708 | 6711 | # Host tools. |
ca9f4b81 AO |
6712 | ncn_tool_prefix= |
6713 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
6714 | ncn_target_tool_prefix= | |
6715 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
6716 | ||
278a7a38 AO |
6717 | |
6718 | ||
6719 | if test -n "$AR"; then | |
6720 | ac_cv_prog_AR=$AR | |
6721 | elif test -n "$ac_cv_prog_AR"; then | |
6722 | AR=$ac_cv_prog_AR | |
6723 | fi | |
6724 | ||
6725 | if test -n "$ac_cv_prog_AR"; then | |
6726 | for ncn_progname in ar; do | |
6727 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6728 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
6729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
6731 | if test "${ac_cv_prog_AR+set}" = set; then |
6732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6733 | else | |
6734 | if test -n "$AR"; then | |
6735 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6736 | else | |
6737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6738 | for as_dir in $PATH | |
6739 | do | |
6740 | IFS=$as_save_IFS | |
6741 | test -z "$as_dir" && as_dir=. | |
6742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6743 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
6744 | ac_cv_prog_AR="${ncn_progname}" |
6745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6746 | break 2 | |
6747 | fi | |
6748 | done | |
6749 | done | |
11a67599 | 6750 | IFS=$as_save_IFS |
278a7a38 AO |
6751 | |
6752 | fi | |
6753 | fi | |
6754 | AR=$ac_cv_prog_AR | |
6755 | if test -n "$AR"; then | |
11a67599 ZW |
6756 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6757 | echo "${ECHO_T}$AR" >&6; } | |
278a7a38 | 6758 | else |
11a67599 ZW |
6759 | { echo "$as_me:$LINENO: result: no" >&5 |
6760 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
6761 | fi |
6762 | ||
11a67599 | 6763 | |
278a7a38 AO |
6764 | done |
6765 | fi | |
6766 | ||
6767 | for ncn_progname in ar; do | |
2693c0b0 PB |
6768 | if test -n "$ncn_tool_prefix"; then |
6769 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6770 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
6771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6773 | if test "${ac_cv_prog_AR+set}" = set; then |
6774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6775 | else |
6776 | if test -n "$AR"; then | |
6777 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6778 | else | |
1c710c3c DJ |
6779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6780 | for as_dir in $PATH | |
6781 | do | |
6782 | IFS=$as_save_IFS | |
6783 | test -z "$as_dir" && as_dir=. | |
6784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6786 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
6787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6788 | break 2 | |
6789 | fi | |
6790 | done | |
6791 | done | |
11a67599 | 6792 | IFS=$as_save_IFS |
1c710c3c | 6793 | |
ca9f4b81 AO |
6794 | fi |
6795 | fi | |
1c710c3c | 6796 | AR=$ac_cv_prog_AR |
ca9f4b81 | 6797 | if test -n "$AR"; then |
11a67599 ZW |
6798 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6799 | echo "${ECHO_T}$AR" >&6; } | |
ca9f4b81 | 6800 | else |
11a67599 ZW |
6801 | { echo "$as_me:$LINENO: result: no" >&5 |
6802 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
6803 | fi |
6804 | ||
11a67599 | 6805 | |
2693c0b0 PB |
6806 | fi |
6807 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
6808 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6809 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
6810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6812 | if test "${ac_cv_prog_AR+set}" = set; then |
6813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6814 | else |
2693c0b0 | 6815 | if test -n "$AR"; then |
af71363e AS |
6816 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6817 | else | |
1c710c3c DJ |
6818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6819 | for as_dir in $PATH | |
6820 | do | |
6821 | IFS=$as_save_IFS | |
6822 | test -z "$as_dir" && as_dir=. | |
6823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6825 | ac_cv_prog_AR="${ncn_progname}" |
6826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6827 | break 2 | |
6828 | fi | |
6829 | done | |
6830 | done | |
11a67599 | 6831 | IFS=$as_save_IFS |
1c710c3c | 6832 | |
ca9f4b81 AO |
6833 | fi |
6834 | fi | |
1c710c3c | 6835 | AR=$ac_cv_prog_AR |
2693c0b0 | 6836 | if test -n "$AR"; then |
11a67599 ZW |
6837 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6838 | echo "${ECHO_T}$AR" >&6; } | |
ca9f4b81 | 6839 | else |
11a67599 ZW |
6840 | { echo "$as_me:$LINENO: result: no" >&5 |
6841 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 6842 | fi |
1c710c3c | 6843 | |
11a67599 | 6844 | |
2693c0b0 PB |
6845 | fi |
6846 | test -n "$ac_cv_prog_AR" && break | |
6847 | done | |
6848 | ||
6849 | if test -z "$ac_cv_prog_AR" ; then | |
6850 | set dummy ar | |
6851 | if test $build = $host ; then | |
6852 | AR="$2" | |
ca9f4b81 | 6853 | else |
2693c0b0 | 6854 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 6855 | fi |
ca9f4b81 AO |
6856 | fi |
6857 | ||
278a7a38 AO |
6858 | |
6859 | ||
6860 | if test -n "$AS"; then | |
6861 | ac_cv_prog_AS=$AS | |
6862 | elif test -n "$ac_cv_prog_AS"; then | |
6863 | AS=$ac_cv_prog_AS | |
6864 | fi | |
6865 | ||
6866 | if test -n "$ac_cv_prog_AS"; then | |
6867 | for ncn_progname in as; do | |
6868 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6869 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
6870 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
6872 | if test "${ac_cv_prog_AS+set}" = set; then |
6873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6874 | else | |
6875 | if test -n "$AS"; then | |
6876 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6877 | else | |
6878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6879 | for as_dir in $PATH | |
6880 | do | |
6881 | IFS=$as_save_IFS | |
6882 | test -z "$as_dir" && as_dir=. | |
6883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
6885 | ac_cv_prog_AS="${ncn_progname}" |
6886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6887 | break 2 | |
6888 | fi | |
6889 | done | |
6890 | done | |
11a67599 | 6891 | IFS=$as_save_IFS |
278a7a38 AO |
6892 | |
6893 | fi | |
6894 | fi | |
6895 | AS=$ac_cv_prog_AS | |
6896 | if test -n "$AS"; then | |
11a67599 ZW |
6897 | { echo "$as_me:$LINENO: result: $AS" >&5 |
6898 | echo "${ECHO_T}$AS" >&6; } | |
278a7a38 | 6899 | else |
11a67599 ZW |
6900 | { echo "$as_me:$LINENO: result: no" >&5 |
6901 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
6902 | fi |
6903 | ||
11a67599 | 6904 | |
278a7a38 AO |
6905 | done |
6906 | fi | |
6907 | ||
6908 | for ncn_progname in as; do | |
2693c0b0 PB |
6909 | if test -n "$ncn_tool_prefix"; then |
6910 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6911 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
6912 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6914 | if test "${ac_cv_prog_AS+set}" = set; then |
6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6916 | else |
6917 | if test -n "$AS"; then | |
6918 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 6919 | else |
1c710c3c DJ |
6920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6921 | for as_dir in $PATH | |
6922 | do | |
6923 | IFS=$as_save_IFS | |
6924 | test -z "$as_dir" && as_dir=. | |
6925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6927 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
6928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6929 | break 2 | |
6930 | fi | |
6931 | done | |
6932 | done | |
11a67599 | 6933 | IFS=$as_save_IFS |
1c710c3c | 6934 | |
ca9f4b81 AO |
6935 | fi |
6936 | fi | |
1c710c3c | 6937 | AS=$ac_cv_prog_AS |
ca9f4b81 | 6938 | if test -n "$AS"; then |
11a67599 ZW |
6939 | { echo "$as_me:$LINENO: result: $AS" >&5 |
6940 | echo "${ECHO_T}$AS" >&6; } | |
ca9f4b81 | 6941 | else |
11a67599 ZW |
6942 | { echo "$as_me:$LINENO: result: no" >&5 |
6943 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
6944 | fi |
6945 | ||
11a67599 | 6946 | |
2693c0b0 PB |
6947 | fi |
6948 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
6949 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6950 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
6951 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
6953 | if test "${ac_cv_prog_AS+set}" = set; then |
6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6955 | else |
2693c0b0 PB |
6956 | if test -n "$AS"; then |
6957 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 6958 | else |
1c710c3c DJ |
6959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6960 | for as_dir in $PATH | |
6961 | do | |
6962 | IFS=$as_save_IFS | |
6963 | test -z "$as_dir" && as_dir=. | |
6964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 6965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
6966 | ac_cv_prog_AS="${ncn_progname}" |
6967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6968 | break 2 | |
6969 | fi | |
6970 | done | |
6971 | done | |
11a67599 | 6972 | IFS=$as_save_IFS |
1c710c3c | 6973 | |
ca9f4b81 AO |
6974 | fi |
6975 | fi | |
1c710c3c | 6976 | AS=$ac_cv_prog_AS |
2693c0b0 | 6977 | if test -n "$AS"; then |
11a67599 ZW |
6978 | { echo "$as_me:$LINENO: result: $AS" >&5 |
6979 | echo "${ECHO_T}$AS" >&6; } | |
ca9f4b81 | 6980 | else |
11a67599 ZW |
6981 | { echo "$as_me:$LINENO: result: no" >&5 |
6982 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 6983 | fi |
1c710c3c | 6984 | |
11a67599 | 6985 | |
2693c0b0 PB |
6986 | fi |
6987 | test -n "$ac_cv_prog_AS" && break | |
6988 | done | |
6989 | ||
6990 | if test -z "$ac_cv_prog_AS" ; then | |
6991 | set dummy as | |
6992 | if test $build = $host ; then | |
6993 | AS="$2" | |
ca9f4b81 | 6994 | else |
2693c0b0 | 6995 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 6996 | fi |
ca9f4b81 AO |
6997 | fi |
6998 | ||
278a7a38 AO |
6999 | |
7000 | ||
7001 | if test -n "$DLLTOOL"; then | |
7002 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
7003 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
7004 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7005 | fi | |
7006 | ||
7007 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
7008 | for ncn_progname in dlltool; do | |
7009 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7010 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7011 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7013 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
7014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7015 | else | |
7016 | if test -n "$DLLTOOL"; then | |
7017 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7018 | else | |
7019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7020 | for as_dir in $PATH | |
7021 | do | |
7022 | IFS=$as_save_IFS | |
7023 | test -z "$as_dir" && as_dir=. | |
7024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
7026 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
7027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7028 | break 2 | |
7029 | fi | |
7030 | done | |
7031 | done | |
11a67599 | 7032 | IFS=$as_save_IFS |
278a7a38 AO |
7033 | |
7034 | fi | |
7035 | fi | |
7036 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7037 | if test -n "$DLLTOOL"; then | |
11a67599 ZW |
7038 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
7039 | echo "${ECHO_T}$DLLTOOL" >&6; } | |
278a7a38 | 7040 | else |
11a67599 ZW |
7041 | { echo "$as_me:$LINENO: result: no" >&5 |
7042 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
7043 | fi |
7044 | ||
11a67599 | 7045 | |
278a7a38 AO |
7046 | done |
7047 | fi | |
7048 | ||
7049 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
7050 | if test -n "$ncn_tool_prefix"; then |
7051 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7052 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7053 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7055 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
7056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7057 | else |
7058 | if test -n "$DLLTOOL"; then | |
7059 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7060 | else | |
1c710c3c DJ |
7061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7062 | for as_dir in $PATH | |
7063 | do | |
7064 | IFS=$as_save_IFS | |
7065 | test -z "$as_dir" && as_dir=. | |
7066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7068 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
7069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7070 | break 2 | |
7071 | fi | |
7072 | done | |
7073 | done | |
11a67599 | 7074 | IFS=$as_save_IFS |
1c710c3c | 7075 | |
ca9f4b81 AO |
7076 | fi |
7077 | fi | |
1c710c3c | 7078 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 7079 | if test -n "$DLLTOOL"; then |
11a67599 ZW |
7080 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
7081 | echo "${ECHO_T}$DLLTOOL" >&6; } | |
ca9f4b81 | 7082 | else |
11a67599 ZW |
7083 | { echo "$as_me:$LINENO: result: no" >&5 |
7084 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
7085 | fi |
7086 | ||
11a67599 | 7087 | |
2693c0b0 PB |
7088 | fi |
7089 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
7090 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7091 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7092 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7094 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
7095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7096 | else |
2693c0b0 PB |
7097 | if test -n "$DLLTOOL"; then |
7098 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 7099 | else |
1c710c3c DJ |
7100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7101 | for as_dir in $PATH | |
7102 | do | |
7103 | IFS=$as_save_IFS | |
7104 | test -z "$as_dir" && as_dir=. | |
7105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7107 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
7108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7109 | break 2 | |
7110 | fi | |
7111 | done | |
7112 | done | |
11a67599 | 7113 | IFS=$as_save_IFS |
1c710c3c | 7114 | |
ca9f4b81 AO |
7115 | fi |
7116 | fi | |
1c710c3c | 7117 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 7118 | if test -n "$DLLTOOL"; then |
11a67599 ZW |
7119 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
7120 | echo "${ECHO_T}$DLLTOOL" >&6; } | |
ca9f4b81 | 7121 | else |
11a67599 ZW |
7122 | { echo "$as_me:$LINENO: result: no" >&5 |
7123 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 7124 | fi |
1c710c3c | 7125 | |
11a67599 | 7126 | |
2693c0b0 PB |
7127 | fi |
7128 | test -n "$ac_cv_prog_DLLTOOL" && break | |
7129 | done | |
7130 | ||
7131 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
7132 | set dummy dlltool | |
7133 | if test $build = $host ; then | |
7134 | DLLTOOL="$2" | |
ca9f4b81 | 7135 | else |
2693c0b0 | 7136 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 7137 | fi |
ca9f4b81 AO |
7138 | fi |
7139 | ||
278a7a38 AO |
7140 | |
7141 | ||
7142 | if test -n "$LD"; then | |
7143 | ac_cv_prog_LD=$LD | |
7144 | elif test -n "$ac_cv_prog_LD"; then | |
7145 | LD=$ac_cv_prog_LD | |
7146 | fi | |
7147 | ||
7148 | if test -n "$ac_cv_prog_LD"; then | |
7149 | for ncn_progname in ld; do | |
7150 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7151 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7152 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7154 | if test "${ac_cv_prog_LD+set}" = set; then |
7155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7156 | else | |
7157 | if test -n "$LD"; then | |
7158 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7159 | else | |
7160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7161 | for as_dir in $PATH | |
7162 | do | |
7163 | IFS=$as_save_IFS | |
7164 | test -z "$as_dir" && as_dir=. | |
7165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
7167 | ac_cv_prog_LD="${ncn_progname}" |
7168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7169 | break 2 | |
7170 | fi | |
7171 | done | |
7172 | done | |
11a67599 | 7173 | IFS=$as_save_IFS |
278a7a38 AO |
7174 | |
7175 | fi | |
7176 | fi | |
7177 | LD=$ac_cv_prog_LD | |
7178 | if test -n "$LD"; then | |
11a67599 ZW |
7179 | { echo "$as_me:$LINENO: result: $LD" >&5 |
7180 | echo "${ECHO_T}$LD" >&6; } | |
278a7a38 | 7181 | else |
11a67599 ZW |
7182 | { echo "$as_me:$LINENO: result: no" >&5 |
7183 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
7184 | fi |
7185 | ||
11a67599 | 7186 | |
278a7a38 AO |
7187 | done |
7188 | fi | |
7189 | ||
7190 | for ncn_progname in ld; do | |
2693c0b0 PB |
7191 | if test -n "$ncn_tool_prefix"; then |
7192 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7193 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7194 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7196 | if test "${ac_cv_prog_LD+set}" = set; then |
7197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7198 | else |
7199 | if test -n "$LD"; then | |
7200 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7201 | else | |
1c710c3c DJ |
7202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7203 | for as_dir in $PATH | |
7204 | do | |
7205 | IFS=$as_save_IFS | |
7206 | test -z "$as_dir" && as_dir=. | |
7207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7209 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
7210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7211 | break 2 | |
7212 | fi | |
7213 | done | |
7214 | done | |
11a67599 | 7215 | IFS=$as_save_IFS |
1c710c3c | 7216 | |
ca9f4b81 AO |
7217 | fi |
7218 | fi | |
1c710c3c | 7219 | LD=$ac_cv_prog_LD |
ca9f4b81 | 7220 | if test -n "$LD"; then |
11a67599 ZW |
7221 | { echo "$as_me:$LINENO: result: $LD" >&5 |
7222 | echo "${ECHO_T}$LD" >&6; } | |
ca9f4b81 | 7223 | else |
11a67599 ZW |
7224 | { echo "$as_me:$LINENO: result: no" >&5 |
7225 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
7226 | fi |
7227 | ||
11a67599 | 7228 | |
2693c0b0 PB |
7229 | fi |
7230 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
7231 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7232 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7233 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7235 | if test "${ac_cv_prog_LD+set}" = set; then |
7236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7237 | else |
2693c0b0 PB |
7238 | if test -n "$LD"; then |
7239 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 7240 | else |
1c710c3c DJ |
7241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7242 | for as_dir in $PATH | |
7243 | do | |
7244 | IFS=$as_save_IFS | |
7245 | test -z "$as_dir" && as_dir=. | |
7246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7248 | ac_cv_prog_LD="${ncn_progname}" |
7249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7250 | break 2 | |
7251 | fi | |
7252 | done | |
7253 | done | |
11a67599 | 7254 | IFS=$as_save_IFS |
1c710c3c | 7255 | |
ca9f4b81 AO |
7256 | fi |
7257 | fi | |
1c710c3c | 7258 | LD=$ac_cv_prog_LD |
2693c0b0 | 7259 | if test -n "$LD"; then |
11a67599 ZW |
7260 | { echo "$as_me:$LINENO: result: $LD" >&5 |
7261 | echo "${ECHO_T}$LD" >&6; } | |
ca9f4b81 | 7262 | else |
11a67599 ZW |
7263 | { echo "$as_me:$LINENO: result: no" >&5 |
7264 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 7265 | fi |
1c710c3c | 7266 | |
11a67599 | 7267 | |
2693c0b0 PB |
7268 | fi |
7269 | test -n "$ac_cv_prog_LD" && break | |
7270 | done | |
7271 | ||
7272 | if test -z "$ac_cv_prog_LD" ; then | |
7273 | set dummy ld | |
7274 | if test $build = $host ; then | |
7275 | LD="$2" | |
ca9f4b81 | 7276 | else |
2693c0b0 | 7277 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 7278 | fi |
ca9f4b81 AO |
7279 | fi |
7280 | ||
278a7a38 AO |
7281 | |
7282 | ||
7283 | if test -n "$LIPO"; then | |
7284 | ac_cv_prog_LIPO=$LIPO | |
7285 | elif test -n "$ac_cv_prog_LIPO"; then | |
7286 | LIPO=$ac_cv_prog_LIPO | |
7287 | fi | |
7288 | ||
7289 | if test -n "$ac_cv_prog_LIPO"; then | |
7290 | for ncn_progname in lipo; do | |
7291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7292 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7293 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7295 | if test "${ac_cv_prog_LIPO+set}" = set; then |
7296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7297 | else | |
7298 | if test -n "$LIPO"; then | |
7299 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7300 | else | |
7301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7302 | for as_dir in $PATH | |
7303 | do | |
7304 | IFS=$as_save_IFS | |
7305 | test -z "$as_dir" && as_dir=. | |
7306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
7308 | ac_cv_prog_LIPO="${ncn_progname}" |
7309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7310 | break 2 | |
7311 | fi | |
7312 | done | |
7313 | done | |
11a67599 | 7314 | IFS=$as_save_IFS |
278a7a38 AO |
7315 | |
7316 | fi | |
7317 | fi | |
7318 | LIPO=$ac_cv_prog_LIPO | |
7319 | if test -n "$LIPO"; then | |
11a67599 ZW |
7320 | { echo "$as_me:$LINENO: result: $LIPO" >&5 |
7321 | echo "${ECHO_T}$LIPO" >&6; } | |
278a7a38 | 7322 | else |
11a67599 ZW |
7323 | { echo "$as_me:$LINENO: result: no" >&5 |
7324 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
7325 | fi |
7326 | ||
11a67599 | 7327 | |
278a7a38 AO |
7328 | done |
7329 | fi | |
7330 | ||
7331 | for ncn_progname in lipo; do | |
2abefe3d PB |
7332 | if test -n "$ncn_tool_prefix"; then |
7333 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7334 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7335 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7337 | if test "${ac_cv_prog_LIPO+set}" = set; then |
7338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7339 | else |
7340 | if test -n "$LIPO"; then | |
7341 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7342 | else | |
1c710c3c DJ |
7343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7344 | for as_dir in $PATH | |
7345 | do | |
7346 | IFS=$as_save_IFS | |
7347 | test -z "$as_dir" && as_dir=. | |
7348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7350 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
7351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7352 | break 2 | |
7353 | fi | |
7354 | done | |
7355 | done | |
11a67599 | 7356 | IFS=$as_save_IFS |
1c710c3c | 7357 | |
2abefe3d PB |
7358 | fi |
7359 | fi | |
1c710c3c | 7360 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 7361 | if test -n "$LIPO"; then |
11a67599 ZW |
7362 | { echo "$as_me:$LINENO: result: $LIPO" >&5 |
7363 | echo "${ECHO_T}$LIPO" >&6; } | |
2abefe3d | 7364 | else |
11a67599 ZW |
7365 | { echo "$as_me:$LINENO: result: no" >&5 |
7366 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
7367 | fi |
7368 | ||
11a67599 | 7369 | |
2abefe3d PB |
7370 | fi |
7371 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
7372 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7373 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7376 | if test "${ac_cv_prog_LIPO+set}" = set; then |
7377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7378 | else |
7379 | if test -n "$LIPO"; then | |
7380 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7381 | else | |
1c710c3c DJ |
7382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7383 | for as_dir in $PATH | |
7384 | do | |
7385 | IFS=$as_save_IFS | |
7386 | test -z "$as_dir" && as_dir=. | |
7387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7389 | ac_cv_prog_LIPO="${ncn_progname}" |
7390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7391 | break 2 | |
7392 | fi | |
7393 | done | |
7394 | done | |
11a67599 | 7395 | IFS=$as_save_IFS |
1c710c3c | 7396 | |
2abefe3d PB |
7397 | fi |
7398 | fi | |
1c710c3c | 7399 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 7400 | if test -n "$LIPO"; then |
11a67599 ZW |
7401 | { echo "$as_me:$LINENO: result: $LIPO" >&5 |
7402 | echo "${ECHO_T}$LIPO" >&6; } | |
2abefe3d | 7403 | else |
11a67599 ZW |
7404 | { echo "$as_me:$LINENO: result: no" >&5 |
7405 | echo "${ECHO_T}no" >&6; } | |
2abefe3d | 7406 | fi |
1c710c3c | 7407 | |
11a67599 | 7408 | |
2abefe3d PB |
7409 | fi |
7410 | test -n "$ac_cv_prog_LIPO" && break | |
7411 | done | |
7412 | ||
7413 | if test -z "$ac_cv_prog_LIPO" ; then | |
7414 | set dummy lipo | |
7415 | if test $build = $host ; then | |
7416 | LIPO="$2" | |
7417 | else | |
7418 | LIPO="${ncn_tool_prefix}$2" | |
7419 | fi | |
7420 | fi | |
7421 | ||
278a7a38 AO |
7422 | |
7423 | ||
7424 | if test -n "$NM"; then | |
7425 | ac_cv_prog_NM=$NM | |
7426 | elif test -n "$ac_cv_prog_NM"; then | |
7427 | NM=$ac_cv_prog_NM | |
7428 | fi | |
7429 | ||
7430 | if test -n "$ac_cv_prog_NM"; then | |
7431 | for ncn_progname in nm; do | |
7432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7433 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7434 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7436 | if test "${ac_cv_prog_NM+set}" = set; then |
7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7438 | else |
7439 | if test -n "$NM"; then | |
7440 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
7441 | else | |
1c710c3c DJ |
7442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7443 | for as_dir in $PATH | |
7444 | do | |
7445 | IFS=$as_save_IFS | |
7446 | test -z "$as_dir" && as_dir=. | |
7447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 | 7449 | ac_cv_prog_NM="${ncn_progname}" |
1c710c3c DJ |
7450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7451 | break 2 | |
7452 | fi | |
7453 | done | |
7454 | done | |
11a67599 | 7455 | IFS=$as_save_IFS |
1c710c3c | 7456 | |
ca9f4b81 AO |
7457 | fi |
7458 | fi | |
1c710c3c | 7459 | NM=$ac_cv_prog_NM |
ca9f4b81 | 7460 | if test -n "$NM"; then |
11a67599 ZW |
7461 | { echo "$as_me:$LINENO: result: $NM" >&5 |
7462 | echo "${ECHO_T}$NM" >&6; } | |
ca9f4b81 | 7463 | else |
11a67599 ZW |
7464 | { echo "$as_me:$LINENO: result: no" >&5 |
7465 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
7466 | fi |
7467 | ||
11a67599 | 7468 | |
278a7a38 AO |
7469 | done |
7470 | fi | |
7471 | ||
7472 | for ncn_progname in nm; do | |
7473 | if test -n "$ncn_tool_prefix"; then | |
7474 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7475 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7478 | if test "${ac_cv_prog_NM+set}" = set; then |
7479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7480 | else |
2693c0b0 PB |
7481 | if test -n "$NM"; then |
7482 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 7483 | else |
1c710c3c DJ |
7484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7485 | for as_dir in $PATH | |
7486 | do | |
7487 | IFS=$as_save_IFS | |
7488 | test -z "$as_dir" && as_dir=. | |
7489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 | 7491 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
1c710c3c DJ |
7492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7493 | break 2 | |
7494 | fi | |
7495 | done | |
7496 | done | |
11a67599 | 7497 | IFS=$as_save_IFS |
1c710c3c | 7498 | |
ca9f4b81 AO |
7499 | fi |
7500 | fi | |
1c710c3c | 7501 | NM=$ac_cv_prog_NM |
2693c0b0 | 7502 | if test -n "$NM"; then |
11a67599 ZW |
7503 | { echo "$as_me:$LINENO: result: $NM" >&5 |
7504 | echo "${ECHO_T}$NM" >&6; } | |
ca9f4b81 | 7505 | else |
11a67599 ZW |
7506 | { echo "$as_me:$LINENO: result: no" >&5 |
7507 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 7508 | fi |
1c710c3c | 7509 | |
11a67599 | 7510 | |
2693c0b0 | 7511 | fi |
278a7a38 AO |
7512 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
7513 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7514 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7515 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7517 | if test "${ac_cv_prog_NM+set}" = set; then |
7518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7519 | else | |
7520 | if test -n "$NM"; then | |
7521 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
7522 | else | |
7523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7524 | for as_dir in $PATH | |
7525 | do | |
7526 | IFS=$as_save_IFS | |
7527 | test -z "$as_dir" && as_dir=. | |
7528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
7530 | ac_cv_prog_NM="${ncn_progname}" |
7531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7532 | break 2 | |
7533 | fi | |
7534 | done | |
7535 | done | |
11a67599 | 7536 | IFS=$as_save_IFS |
278a7a38 AO |
7537 | |
7538 | fi | |
7539 | fi | |
7540 | NM=$ac_cv_prog_NM | |
7541 | if test -n "$NM"; then | |
11a67599 ZW |
7542 | { echo "$as_me:$LINENO: result: $NM" >&5 |
7543 | echo "${ECHO_T}$NM" >&6; } | |
278a7a38 | 7544 | else |
11a67599 ZW |
7545 | { echo "$as_me:$LINENO: result: no" >&5 |
7546 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
7547 | fi |
7548 | ||
11a67599 | 7549 | |
278a7a38 AO |
7550 | fi |
7551 | test -n "$ac_cv_prog_NM" && break | |
7552 | done | |
7553 | ||
7554 | if test -z "$ac_cv_prog_NM" ; then | |
7555 | set dummy nm | |
7556 | if test $build = $host ; then | |
7557 | NM="$2" | |
7558 | else | |
7559 | NM="${ncn_tool_prefix}$2" | |
7560 | fi | |
7561 | fi | |
7562 | ||
7563 | ||
7564 | ||
7565 | if test -n "$RANLIB"; then | |
7566 | ac_cv_prog_RANLIB=$RANLIB | |
7567 | elif test -n "$ac_cv_prog_RANLIB"; then | |
7568 | RANLIB=$ac_cv_prog_RANLIB | |
7569 | fi | |
7570 | ||
7571 | if test -n "$ac_cv_prog_RANLIB"; then | |
7572 | for ncn_progname in ranlib; do | |
7573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7574 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7575 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7577 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7579 | else | |
7580 | if test -n "$RANLIB"; then | |
7581 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7582 | else | |
7583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7584 | for as_dir in $PATH | |
7585 | do | |
7586 | IFS=$as_save_IFS | |
7587 | test -z "$as_dir" && as_dir=. | |
7588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
7590 | ac_cv_prog_RANLIB="${ncn_progname}" |
7591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7592 | break 2 | |
7593 | fi | |
7594 | done | |
7595 | done | |
11a67599 | 7596 | IFS=$as_save_IFS |
278a7a38 AO |
7597 | |
7598 | fi | |
7599 | fi | |
7600 | RANLIB=$ac_cv_prog_RANLIB | |
7601 | if test -n "$RANLIB"; then | |
11a67599 ZW |
7602 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7603 | echo "${ECHO_T}$RANLIB" >&6; } | |
278a7a38 | 7604 | else |
11a67599 ZW |
7605 | { echo "$as_me:$LINENO: result: no" >&5 |
7606 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
7607 | fi |
7608 | ||
11a67599 | 7609 | |
278a7a38 AO |
7610 | done |
7611 | fi | |
ca9f4b81 | 7612 | |
278a7a38 | 7613 | for ncn_progname in ranlib; do |
2693c0b0 PB |
7614 | if test -n "$ncn_tool_prefix"; then |
7615 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7616 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7617 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7619 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7621 | else |
7622 | if test -n "$RANLIB"; then | |
7623 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7624 | else | |
1c710c3c DJ |
7625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7626 | for as_dir in $PATH | |
7627 | do | |
7628 | IFS=$as_save_IFS | |
7629 | test -z "$as_dir" && as_dir=. | |
7630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7632 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
7633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7634 | break 2 | |
7635 | fi | |
7636 | done | |
7637 | done | |
11a67599 | 7638 | IFS=$as_save_IFS |
1c710c3c | 7639 | |
ca9f4b81 AO |
7640 | fi |
7641 | fi | |
1c710c3c | 7642 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 7643 | if test -n "$RANLIB"; then |
11a67599 ZW |
7644 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7645 | echo "${ECHO_T}$RANLIB" >&6; } | |
ca9f4b81 | 7646 | else |
11a67599 ZW |
7647 | { echo "$as_me:$LINENO: result: no" >&5 |
7648 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
7649 | fi |
7650 | ||
11a67599 | 7651 | |
2693c0b0 PB |
7652 | fi |
7653 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
7654 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7655 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7658 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7660 | else |
2693c0b0 PB |
7661 | if test -n "$RANLIB"; then |
7662 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 7663 | else |
1c710c3c DJ |
7664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7665 | for as_dir in $PATH | |
7666 | do | |
7667 | IFS=$as_save_IFS | |
7668 | test -z "$as_dir" && as_dir=. | |
7669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7671 | ac_cv_prog_RANLIB="${ncn_progname}" |
7672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7673 | break 2 | |
7674 | fi | |
7675 | done | |
7676 | done | |
11a67599 | 7677 | IFS=$as_save_IFS |
1c710c3c | 7678 | |
ca9f4b81 AO |
7679 | fi |
7680 | fi | |
1c710c3c | 7681 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 7682 | if test -n "$RANLIB"; then |
11a67599 ZW |
7683 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7684 | echo "${ECHO_T}$RANLIB" >&6; } | |
ca9f4b81 | 7685 | else |
11a67599 ZW |
7686 | { echo "$as_me:$LINENO: result: no" >&5 |
7687 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 7688 | fi |
1c710c3c | 7689 | |
11a67599 | 7690 | |
ca9f4b81 | 7691 | fi |
2693c0b0 PB |
7692 | test -n "$ac_cv_prog_RANLIB" && break |
7693 | done | |
7694 | ||
7695 | if test -z "$ac_cv_prog_RANLIB" ; then | |
7696 | RANLIB=":" | |
ca9f4b81 AO |
7697 | fi |
7698 | ||
278a7a38 AO |
7699 | |
7700 | ||
7701 | if test -n "$STRIP"; then | |
7702 | ac_cv_prog_STRIP=$STRIP | |
7703 | elif test -n "$ac_cv_prog_STRIP"; then | |
7704 | STRIP=$ac_cv_prog_STRIP | |
7705 | fi | |
7706 | ||
7707 | if test -n "$ac_cv_prog_STRIP"; then | |
7708 | for ncn_progname in strip; do | |
7709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7710 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7711 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7713 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7715 | else | |
7716 | if test -n "$STRIP"; then | |
7717 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7718 | else | |
7719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7720 | for as_dir in $PATH | |
7721 | do | |
7722 | IFS=$as_save_IFS | |
7723 | test -z "$as_dir" && as_dir=. | |
7724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
7726 | ac_cv_prog_STRIP="${ncn_progname}" |
7727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7728 | break 2 | |
7729 | fi | |
7730 | done | |
7731 | done | |
11a67599 | 7732 | IFS=$as_save_IFS |
278a7a38 AO |
7733 | |
7734 | fi | |
7735 | fi | |
7736 | STRIP=$ac_cv_prog_STRIP | |
7737 | if test -n "$STRIP"; then | |
11a67599 ZW |
7738 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
7739 | echo "${ECHO_T}$STRIP" >&6; } | |
278a7a38 | 7740 | else |
11a67599 ZW |
7741 | { echo "$as_me:$LINENO: result: no" >&5 |
7742 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
7743 | fi |
7744 | ||
11a67599 | 7745 | |
278a7a38 AO |
7746 | done |
7747 | fi | |
7748 | ||
7749 | for ncn_progname in strip; do | |
2abefe3d PB |
7750 | if test -n "$ncn_tool_prefix"; then |
7751 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7752 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7753 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7755 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7757 | else |
7758 | if test -n "$STRIP"; then | |
7759 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7760 | else | |
1c710c3c DJ |
7761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7762 | for as_dir in $PATH | |
7763 | do | |
7764 | IFS=$as_save_IFS | |
7765 | test -z "$as_dir" && as_dir=. | |
7766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7768 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
7769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7770 | break 2 | |
7771 | fi | |
7772 | done | |
7773 | done | |
11a67599 | 7774 | IFS=$as_save_IFS |
1c710c3c | 7775 | |
2abefe3d PB |
7776 | fi |
7777 | fi | |
1c710c3c | 7778 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 7779 | if test -n "$STRIP"; then |
11a67599 ZW |
7780 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
7781 | echo "${ECHO_T}$STRIP" >&6; } | |
2abefe3d | 7782 | else |
11a67599 ZW |
7783 | { echo "$as_me:$LINENO: result: no" >&5 |
7784 | echo "${ECHO_T}no" >&6; } | |
2abefe3d PB |
7785 | fi |
7786 | ||
11a67599 | 7787 | |
2abefe3d PB |
7788 | fi |
7789 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
7790 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7791 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7792 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7794 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7796 | else |
7797 | if test -n "$STRIP"; then | |
7798 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7799 | else | |
1c710c3c DJ |
7800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7801 | for as_dir in $PATH | |
7802 | do | |
7803 | IFS=$as_save_IFS | |
7804 | test -z "$as_dir" && as_dir=. | |
7805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7807 | ac_cv_prog_STRIP="${ncn_progname}" |
7808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7809 | break 2 | |
7810 | fi | |
7811 | done | |
7812 | done | |
11a67599 | 7813 | IFS=$as_save_IFS |
1c710c3c | 7814 | |
2abefe3d PB |
7815 | fi |
7816 | fi | |
1c710c3c | 7817 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 7818 | if test -n "$STRIP"; then |
11a67599 ZW |
7819 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
7820 | echo "${ECHO_T}$STRIP" >&6; } | |
2abefe3d | 7821 | else |
11a67599 ZW |
7822 | { echo "$as_me:$LINENO: result: no" >&5 |
7823 | echo "${ECHO_T}no" >&6; } | |
2abefe3d | 7824 | fi |
1c710c3c | 7825 | |
11a67599 | 7826 | |
2abefe3d PB |
7827 | fi |
7828 | test -n "$ac_cv_prog_STRIP" && break | |
7829 | done | |
7830 | ||
7831 | if test -z "$ac_cv_prog_STRIP" ; then | |
7832 | STRIP=":" | |
7833 | fi | |
7834 | ||
278a7a38 AO |
7835 | |
7836 | ||
7837 | if test -n "$WINDRES"; then | |
7838 | ac_cv_prog_WINDRES=$WINDRES | |
7839 | elif test -n "$ac_cv_prog_WINDRES"; then | |
7840 | WINDRES=$ac_cv_prog_WINDRES | |
7841 | fi | |
7842 | ||
7843 | if test -n "$ac_cv_prog_WINDRES"; then | |
7844 | for ncn_progname in windres; do | |
7845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7846 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7847 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7849 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7851 | else | |
7852 | if test -n "$WINDRES"; then | |
7853 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7854 | else | |
7855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7856 | for as_dir in $PATH | |
7857 | do | |
7858 | IFS=$as_save_IFS | |
7859 | test -z "$as_dir" && as_dir=. | |
7860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
7862 | ac_cv_prog_WINDRES="${ncn_progname}" |
7863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7864 | break 2 | |
7865 | fi | |
7866 | done | |
7867 | done | |
11a67599 | 7868 | IFS=$as_save_IFS |
278a7a38 AO |
7869 | |
7870 | fi | |
7871 | fi | |
7872 | WINDRES=$ac_cv_prog_WINDRES | |
7873 | if test -n "$WINDRES"; then | |
11a67599 ZW |
7874 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7875 | echo "${ECHO_T}$WINDRES" >&6; } | |
278a7a38 | 7876 | else |
11a67599 ZW |
7877 | { echo "$as_me:$LINENO: result: no" >&5 |
7878 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
7879 | fi |
7880 | ||
11a67599 | 7881 | |
278a7a38 AO |
7882 | done |
7883 | fi | |
7884 | ||
7885 | for ncn_progname in windres; do | |
2693c0b0 PB |
7886 | if test -n "$ncn_tool_prefix"; then |
7887 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7888 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7891 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7893 | else |
7894 | if test -n "$WINDRES"; then | |
7895 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7896 | else | |
1c710c3c DJ |
7897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7898 | for as_dir in $PATH | |
7899 | do | |
7900 | IFS=$as_save_IFS | |
7901 | test -z "$as_dir" && as_dir=. | |
7902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7904 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
7905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7906 | break 2 | |
7907 | fi | |
7908 | done | |
7909 | done | |
11a67599 | 7910 | IFS=$as_save_IFS |
1c710c3c | 7911 | |
ca9f4b81 AO |
7912 | fi |
7913 | fi | |
1c710c3c | 7914 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 7915 | if test -n "$WINDRES"; then |
11a67599 ZW |
7916 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7917 | echo "${ECHO_T}$WINDRES" >&6; } | |
ca9f4b81 | 7918 | else |
11a67599 ZW |
7919 | { echo "$as_me:$LINENO: result: no" >&5 |
7920 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
7921 | fi |
7922 | ||
11a67599 | 7923 | |
2693c0b0 PB |
7924 | fi |
7925 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
7926 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7927 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
7930 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7932 | else |
2693c0b0 PB |
7933 | if test -n "$WINDRES"; then |
7934 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 7935 | else |
1c710c3c DJ |
7936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7937 | for as_dir in $PATH | |
7938 | do | |
7939 | IFS=$as_save_IFS | |
7940 | test -z "$as_dir" && as_dir=. | |
7941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 7942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
7943 | ac_cv_prog_WINDRES="${ncn_progname}" |
7944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7945 | break 2 | |
7946 | fi | |
7947 | done | |
7948 | done | |
11a67599 | 7949 | IFS=$as_save_IFS |
1c710c3c | 7950 | |
ca9f4b81 AO |
7951 | fi |
7952 | fi | |
1c710c3c | 7953 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 7954 | if test -n "$WINDRES"; then |
11a67599 ZW |
7955 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7956 | echo "${ECHO_T}$WINDRES" >&6; } | |
ca9f4b81 | 7957 | else |
11a67599 ZW |
7958 | { echo "$as_me:$LINENO: result: no" >&5 |
7959 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 7960 | fi |
1c710c3c | 7961 | |
11a67599 | 7962 | |
2693c0b0 PB |
7963 | fi |
7964 | test -n "$ac_cv_prog_WINDRES" && break | |
7965 | done | |
7966 | ||
7967 | if test -z "$ac_cv_prog_WINDRES" ; then | |
7968 | set dummy windres | |
7969 | if test $build = $host ; then | |
7970 | WINDRES="$2" | |
ca9f4b81 | 7971 | else |
2693c0b0 | 7972 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 7973 | fi |
ca9f4b81 AO |
7974 | fi |
7975 | ||
278a7a38 AO |
7976 | |
7977 | ||
7978 | if test -n "$OBJCOPY"; then | |
7979 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
7980 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
7981 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
7982 | fi | |
7983 | ||
7984 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
7985 | for ncn_progname in objcopy; do | |
7986 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7987 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
7988 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
7990 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
7991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7992 | else | |
7993 | if test -n "$OBJCOPY"; then | |
7994 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
7995 | else | |
7996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7997 | for as_dir in $PATH | |
7998 | do | |
7999 | IFS=$as_save_IFS | |
8000 | test -z "$as_dir" && as_dir=. | |
8001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
8003 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
8004 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8005 | break 2 | |
8006 | fi | |
8007 | done | |
8008 | done | |
11a67599 | 8009 | IFS=$as_save_IFS |
278a7a38 AO |
8010 | |
8011 | fi | |
8012 | fi | |
8013 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
8014 | if test -n "$OBJCOPY"; then | |
11a67599 ZW |
8015 | { echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
8016 | echo "${ECHO_T}$OBJCOPY" >&6; } | |
278a7a38 | 8017 | else |
11a67599 ZW |
8018 | { echo "$as_me:$LINENO: result: no" >&5 |
8019 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8020 | fi |
8021 | ||
11a67599 | 8022 | |
278a7a38 AO |
8023 | done |
8024 | fi | |
8025 | ||
8026 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
8027 | if test -n "$ncn_tool_prefix"; then |
8028 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8029 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8030 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8032 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
8033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
8034 | else |
8035 | if test -n "$OBJCOPY"; then | |
8036 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
8037 | else | |
1c710c3c DJ |
8038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8039 | for as_dir in $PATH | |
8040 | do | |
8041 | IFS=$as_save_IFS | |
8042 | test -z "$as_dir" && as_dir=. | |
8043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8045 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
8046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8047 | break 2 | |
8048 | fi | |
8049 | done | |
8050 | done | |
11a67599 | 8051 | IFS=$as_save_IFS |
1c710c3c | 8052 | |
ca9f4b81 AO |
8053 | fi |
8054 | fi | |
1c710c3c | 8055 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 8056 | if test -n "$OBJCOPY"; then |
11a67599 ZW |
8057 | { echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
8058 | echo "${ECHO_T}$OBJCOPY" >&6; } | |
ca9f4b81 | 8059 | else |
11a67599 ZW |
8060 | { echo "$as_me:$LINENO: result: no" >&5 |
8061 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
8062 | fi |
8063 | ||
11a67599 | 8064 | |
2693c0b0 PB |
8065 | fi |
8066 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
8067 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8068 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8069 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8071 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
8072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8073 | else |
2693c0b0 PB |
8074 | if test -n "$OBJCOPY"; then |
8075 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 8076 | else |
1c710c3c DJ |
8077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8078 | for as_dir in $PATH | |
8079 | do | |
8080 | IFS=$as_save_IFS | |
8081 | test -z "$as_dir" && as_dir=. | |
8082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8084 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
8085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8086 | break 2 | |
8087 | fi | |
8088 | done | |
8089 | done | |
11a67599 | 8090 | IFS=$as_save_IFS |
1c710c3c | 8091 | |
ca9f4b81 AO |
8092 | fi |
8093 | fi | |
1c710c3c | 8094 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 8095 | if test -n "$OBJCOPY"; then |
11a67599 ZW |
8096 | { echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
8097 | echo "${ECHO_T}$OBJCOPY" >&6; } | |
ca9f4b81 | 8098 | else |
11a67599 ZW |
8099 | { echo "$as_me:$LINENO: result: no" >&5 |
8100 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 8101 | fi |
1c710c3c | 8102 | |
11a67599 | 8103 | |
2693c0b0 PB |
8104 | fi |
8105 | test -n "$ac_cv_prog_OBJCOPY" && break | |
8106 | done | |
8107 | ||
8108 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
8109 | set dummy objcopy | |
8110 | if test $build = $host ; then | |
8111 | OBJCOPY="$2" | |
ca9f4b81 | 8112 | else |
2693c0b0 | 8113 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 8114 | fi |
ca9f4b81 AO |
8115 | fi |
8116 | ||
278a7a38 AO |
8117 | |
8118 | ||
8119 | if test -n "$OBJDUMP"; then | |
8120 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
8121 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
8122 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
8123 | fi | |
8124 | ||
8125 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
8126 | for ncn_progname in objdump; do | |
8127 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8128 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
8131 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
8132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8133 | else | |
8134 | if test -n "$OBJDUMP"; then | |
8135 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
8136 | else | |
8137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8138 | for as_dir in $PATH | |
8139 | do | |
8140 | IFS=$as_save_IFS | |
8141 | test -z "$as_dir" && as_dir=. | |
8142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
8144 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
8145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8146 | break 2 | |
8147 | fi | |
8148 | done | |
8149 | done | |
11a67599 | 8150 | IFS=$as_save_IFS |
278a7a38 AO |
8151 | |
8152 | fi | |
8153 | fi | |
8154 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
8155 | if test -n "$OBJDUMP"; then | |
11a67599 ZW |
8156 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
8157 | echo "${ECHO_T}$OBJDUMP" >&6; } | |
278a7a38 | 8158 | else |
11a67599 ZW |
8159 | { echo "$as_me:$LINENO: result: no" >&5 |
8160 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8161 | fi |
8162 | ||
11a67599 | 8163 | |
278a7a38 AO |
8164 | done |
8165 | fi | |
8166 | ||
8167 | for ncn_progname in objdump; do | |
2693c0b0 PB |
8168 | if test -n "$ncn_tool_prefix"; then |
8169 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8170 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8171 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8173 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
8175 | else |
8176 | if test -n "$OBJDUMP"; then | |
8177 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
8178 | else | |
1c710c3c DJ |
8179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8180 | for as_dir in $PATH | |
8181 | do | |
8182 | IFS=$as_save_IFS | |
8183 | test -z "$as_dir" && as_dir=. | |
8184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8186 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
8187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8188 | break 2 | |
8189 | fi | |
8190 | done | |
8191 | done | |
11a67599 | 8192 | IFS=$as_save_IFS |
1c710c3c | 8193 | |
ca9f4b81 AO |
8194 | fi |
8195 | fi | |
1c710c3c | 8196 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 8197 | if test -n "$OBJDUMP"; then |
11a67599 ZW |
8198 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
8199 | echo "${ECHO_T}$OBJDUMP" >&6; } | |
ca9f4b81 | 8200 | else |
11a67599 ZW |
8201 | { echo "$as_me:$LINENO: result: no" >&5 |
8202 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
8203 | fi |
8204 | ||
11a67599 | 8205 | |
2693c0b0 PB |
8206 | fi |
8207 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
8208 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8209 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8212 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
8213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8214 | else |
2693c0b0 PB |
8215 | if test -n "$OBJDUMP"; then |
8216 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 8217 | else |
1c710c3c DJ |
8218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8219 | for as_dir in $PATH | |
8220 | do | |
8221 | IFS=$as_save_IFS | |
8222 | test -z "$as_dir" && as_dir=. | |
8223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8225 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
8226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8227 | break 2 | |
8228 | fi | |
8229 | done | |
8230 | done | |
11a67599 | 8231 | IFS=$as_save_IFS |
1c710c3c | 8232 | |
ca9f4b81 AO |
8233 | fi |
8234 | fi | |
1c710c3c | 8235 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 8236 | if test -n "$OBJDUMP"; then |
11a67599 ZW |
8237 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
8238 | echo "${ECHO_T}$OBJDUMP" >&6; } | |
ca9f4b81 | 8239 | else |
11a67599 ZW |
8240 | { echo "$as_me:$LINENO: result: no" >&5 |
8241 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 8242 | fi |
1c710c3c | 8243 | |
11a67599 | 8244 | |
2693c0b0 PB |
8245 | fi |
8246 | test -n "$ac_cv_prog_OBJDUMP" && break | |
8247 | done | |
8248 | ||
8249 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
8250 | set dummy objdump | |
8251 | if test $build = $host ; then | |
8252 | OBJDUMP="$2" | |
ca9f4b81 | 8253 | else |
2693c0b0 | 8254 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 8255 | fi |
ca9f4b81 AO |
8256 | fi |
8257 | ||
671aa708 NN |
8258 | |
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | ||
2abefe3d | 8264 | # Target tools. |
1c710c3c | 8265 | |
11a67599 | 8266 | # Check whether --with-build-time-tools was given. |
e8b05380 | 8267 | if test "${with_build_time_tools+set}" = set; then |
11a67599 | 8268 | withval=$with_build_time_tools; case x"$withval" in |
e8b05380 PB |
8269 | x/*) ;; |
8270 | *) | |
8271 | with_build_time_tools= | |
1c710c3c DJ |
8272 | { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
8273 | echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
8274 | ;; |
8275 | esac | |
ca9f4b81 | 8276 | else |
e8b05380 | 8277 | with_build_time_tools= |
11a67599 ZW |
8278 | fi |
8279 | ||
ca9f4b81 | 8280 | |
278a7a38 AO |
8281 | |
8282 | ||
8283 | if test -n "$CC_FOR_TARGET"; then | |
8284 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
8285 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
8286 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
8287 | fi | |
8288 | ||
8289 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
8290 | for ncn_progname in cc gcc; do | |
8291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8292 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8293 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
8295 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
8296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8297 | else | |
8298 | if test -n "$CC_FOR_TARGET"; then | |
8299 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
8300 | else | |
8301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8302 | for as_dir in $PATH | |
8303 | do | |
8304 | IFS=$as_save_IFS | |
8305 | test -z "$as_dir" && as_dir=. | |
8306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
8308 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
8309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8310 | break 2 | |
8311 | fi | |
8312 | done | |
8313 | done | |
11a67599 | 8314 | IFS=$as_save_IFS |
278a7a38 AO |
8315 | |
8316 | fi | |
8317 | fi | |
8318 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
8319 | if test -n "$CC_FOR_TARGET"; then | |
11a67599 ZW |
8320 | { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
8321 | echo "${ECHO_T}$CC_FOR_TARGET" >&6; } | |
278a7a38 | 8322 | else |
11a67599 ZW |
8323 | { echo "$as_me:$LINENO: result: no" >&5 |
8324 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8325 | fi |
8326 | ||
11a67599 | 8327 | |
278a7a38 AO |
8328 | done |
8329 | fi | |
8330 | ||
8331 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8332 | for ncn_progname in cc gcc; do |
11a67599 ZW |
8333 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8334 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
8335 | if test -x $with_build_time_tools/${ncn_progname}; then |
8336 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
8337 | { echo "$as_me:$LINENO: result: yes" >&5 |
8338 | echo "${ECHO_T}yes" >&6; } | |
72a7ab82 | 8339 | break |
e8b05380 | 8340 | else |
11a67599 ZW |
8341 | { echo "$as_me:$LINENO: result: no" >&5 |
8342 | echo "${ECHO_T}no" >&6; } | |
72a7ab82 AP |
8343 | fi |
8344 | done | |
4de997d1 PB |
8345 | fi |
8346 | ||
e8b05380 PB |
8347 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
8348 | for ncn_progname in cc gcc; do | |
8349 | if test -n "$ncn_target_tool_prefix"; then | |
8350 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8351 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
8352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8354 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
8356 | else |
8357 | if test -n "$CC_FOR_TARGET"; then | |
8358 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
8359 | else | |
1c710c3c DJ |
8360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8361 | for as_dir in $PATH | |
8362 | do | |
8363 | IFS=$as_save_IFS | |
8364 | test -z "$as_dir" && as_dir=. | |
8365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8367 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8369 | break 2 | |
8370 | fi | |
8371 | done | |
8372 | done | |
11a67599 | 8373 | IFS=$as_save_IFS |
1c710c3c | 8374 | |
4de997d1 PB |
8375 | fi |
8376 | fi | |
1c710c3c | 8377 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 8378 | if test -n "$CC_FOR_TARGET"; then |
11a67599 ZW |
8379 | { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
8380 | echo "${ECHO_T}$CC_FOR_TARGET" >&6; } | |
4de997d1 | 8381 | else |
11a67599 ZW |
8382 | { echo "$as_me:$LINENO: result: no" >&5 |
8383 | echo "${ECHO_T}no" >&6; } | |
4de997d1 PB |
8384 | fi |
8385 | ||
11a67599 | 8386 | |
e8b05380 PB |
8387 | fi |
8388 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
8389 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8390 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
8391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8393 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
8394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 8395 | else |
2693c0b0 PB |
8396 | if test -n "$CC_FOR_TARGET"; then |
8397 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 8398 | else |
1c710c3c DJ |
8399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8400 | for as_dir in $PATH | |
8401 | do | |
8402 | IFS=$as_save_IFS | |
8403 | test -z "$as_dir" && as_dir=. | |
8404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8406 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
8407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8408 | break 2 | |
8409 | fi | |
8410 | done | |
8411 | done | |
11a67599 | 8412 | IFS=$as_save_IFS |
1c710c3c | 8413 | |
4de997d1 PB |
8414 | fi |
8415 | fi | |
1c710c3c | 8416 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 8417 | if test -n "$CC_FOR_TARGET"; then |
11a67599 ZW |
8418 | { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
8419 | echo "${ECHO_T}$CC_FOR_TARGET" >&6; } | |
4de997d1 | 8420 | else |
11a67599 ZW |
8421 | { echo "$as_me:$LINENO: result: no" >&5 |
8422 | echo "${ECHO_T}no" >&6; } | |
4de997d1 | 8423 | fi |
1c710c3c | 8424 | |
11a67599 | 8425 | |
e8b05380 PB |
8426 | fi |
8427 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
8428 | done | |
8429 | fi | |
1c710c3c | 8430 | |
2693c0b0 PB |
8431 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
8432 | set dummy cc gcc | |
8433 | if test $build = $target ; then | |
8434 | CC_FOR_TARGET="$2" | |
4de997d1 | 8435 | else |
2693c0b0 | 8436 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 8437 | fi |
4de997d1 PB |
8438 | fi |
8439 | ||
278a7a38 AO |
8440 | |
8441 | ||
8442 | if test -n "$CXX_FOR_TARGET"; then | |
8443 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
8444 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8445 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
8446 | fi | |
8447 | ||
8448 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8449 | for ncn_progname in c++ g++ cxx gxx; do | |
8450 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8451 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8452 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
8454 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8456 | else | |
8457 | if test -n "$CXX_FOR_TARGET"; then | |
8458 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
8459 | else | |
8460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8461 | for as_dir in $PATH | |
8462 | do | |
8463 | IFS=$as_save_IFS | |
8464 | test -z "$as_dir" && as_dir=. | |
8465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
8467 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
8468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8469 | break 2 | |
8470 | fi | |
8471 | done | |
8472 | done | |
11a67599 | 8473 | IFS=$as_save_IFS |
278a7a38 AO |
8474 | |
8475 | fi | |
8476 | fi | |
8477 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
8478 | if test -n "$CXX_FOR_TARGET"; then | |
11a67599 ZW |
8479 | { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8480 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 8481 | else |
11a67599 ZW |
8482 | { echo "$as_me:$LINENO: result: no" >&5 |
8483 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8484 | fi |
8485 | ||
11a67599 | 8486 | |
278a7a38 AO |
8487 | done |
8488 | fi | |
8489 | ||
8490 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8491 | for ncn_progname in c++ g++ cxx gxx; do |
11a67599 ZW |
8492 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8493 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
8494 | if test -x $with_build_time_tools/${ncn_progname}; then |
8495 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
8496 | { echo "$as_me:$LINENO: result: yes" >&5 |
8497 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
8498 | break |
8499 | else | |
11a67599 ZW |
8500 | { echo "$as_me:$LINENO: result: no" >&5 |
8501 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
8502 | fi |
8503 | done | |
8504 | fi | |
8505 | ||
8506 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8507 | for ncn_progname in c++ g++ cxx gxx; do | |
8508 | if test -n "$ncn_target_tool_prefix"; then | |
8509 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8510 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
8511 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8513 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
8515 | else |
8516 | if test -n "$CXX_FOR_TARGET"; then | |
8517 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
8518 | else | |
1c710c3c DJ |
8519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8520 | for as_dir in $PATH | |
8521 | do | |
8522 | IFS=$as_save_IFS | |
8523 | test -z "$as_dir" && as_dir=. | |
8524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8526 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8528 | break 2 | |
8529 | fi | |
8530 | done | |
8531 | done | |
11a67599 | 8532 | IFS=$as_save_IFS |
1c710c3c | 8533 | |
4de997d1 PB |
8534 | fi |
8535 | fi | |
1c710c3c | 8536 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 8537 | if test -n "$CXX_FOR_TARGET"; then |
11a67599 ZW |
8538 | { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8539 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 8540 | else |
11a67599 ZW |
8541 | { echo "$as_me:$LINENO: result: no" >&5 |
8542 | echo "${ECHO_T}no" >&6; } | |
4de997d1 PB |
8543 | fi |
8544 | ||
11a67599 | 8545 | |
e8b05380 PB |
8546 | fi |
8547 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
8548 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8549 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
8550 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8552 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 8554 | else |
2693c0b0 PB |
8555 | if test -n "$CXX_FOR_TARGET"; then |
8556 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 8557 | else |
1c710c3c DJ |
8558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8559 | for as_dir in $PATH | |
8560 | do | |
8561 | IFS=$as_save_IFS | |
8562 | test -z "$as_dir" && as_dir=. | |
8563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8565 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
8566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8567 | break 2 | |
8568 | fi | |
8569 | done | |
8570 | done | |
11a67599 | 8571 | IFS=$as_save_IFS |
1c710c3c | 8572 | |
4de997d1 PB |
8573 | fi |
8574 | fi | |
1c710c3c | 8575 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 8576 | if test -n "$CXX_FOR_TARGET"; then |
11a67599 ZW |
8577 | { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8578 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 8579 | else |
11a67599 ZW |
8580 | { echo "$as_me:$LINENO: result: no" >&5 |
8581 | echo "${ECHO_T}no" >&6; } | |
4de997d1 | 8582 | fi |
1c710c3c | 8583 | |
11a67599 | 8584 | |
e8b05380 PB |
8585 | fi |
8586 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
8587 | done | |
8588 | fi | |
1c710c3c | 8589 | |
2693c0b0 PB |
8590 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
8591 | set dummy c++ g++ cxx gxx | |
8592 | if test $build = $target ; then | |
8593 | CXX_FOR_TARGET="$2" | |
4de997d1 | 8594 | else |
2693c0b0 | 8595 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 8596 | fi |
ca9f4b81 AO |
8597 | fi |
8598 | ||
278a7a38 AO |
8599 | |
8600 | ||
8601 | if test -n "$GCC_FOR_TARGET"; then | |
8602 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
8603 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8604 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
8605 | fi | |
8606 | ||
8607 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8608 | for ncn_progname in gcc; do | |
8609 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8610 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
8613 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8615 | else | |
8616 | if test -n "$GCC_FOR_TARGET"; then | |
8617 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
8618 | else | |
8619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8620 | for as_dir in $PATH | |
8621 | do | |
8622 | IFS=$as_save_IFS | |
8623 | test -z "$as_dir" && as_dir=. | |
8624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
8626 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
8627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8628 | break 2 | |
8629 | fi | |
8630 | done | |
8631 | done | |
11a67599 | 8632 | IFS=$as_save_IFS |
278a7a38 AO |
8633 | |
8634 | fi | |
8635 | fi | |
8636 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
8637 | if test -n "$GCC_FOR_TARGET"; then | |
11a67599 ZW |
8638 | { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8639 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 8640 | else |
11a67599 ZW |
8641 | { echo "$as_me:$LINENO: result: no" >&5 |
8642 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8643 | fi |
8644 | ||
11a67599 | 8645 | |
278a7a38 AO |
8646 | done |
8647 | fi | |
8648 | ||
8649 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8650 | for ncn_progname in gcc; do |
11a67599 ZW |
8651 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8652 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
8653 | if test -x $with_build_time_tools/${ncn_progname}; then |
8654 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
8655 | { echo "$as_me:$LINENO: result: yes" >&5 |
8656 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
8657 | break |
8658 | else | |
11a67599 ZW |
8659 | { echo "$as_me:$LINENO: result: no" >&5 |
8660 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
8661 | fi |
8662 | done | |
8663 | fi | |
8664 | ||
8665 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8666 | for ncn_progname in gcc; do | |
8667 | if test -n "$ncn_target_tool_prefix"; then | |
8668 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8669 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
8670 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8672 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8674 | else |
e8b05380 PB |
8675 | if test -n "$GCC_FOR_TARGET"; then |
8676 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 8677 | else |
1c710c3c DJ |
8678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8679 | for as_dir in $PATH | |
8680 | do | |
8681 | IFS=$as_save_IFS | |
8682 | test -z "$as_dir" && as_dir=. | |
8683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8685 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8687 | break 2 | |
8688 | fi | |
8689 | done | |
8690 | done | |
11a67599 | 8691 | IFS=$as_save_IFS |
1c710c3c | 8692 | |
ca9f4b81 AO |
8693 | fi |
8694 | fi | |
1c710c3c | 8695 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 8696 | if test -n "$GCC_FOR_TARGET"; then |
11a67599 ZW |
8697 | { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8698 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 8699 | else |
11a67599 ZW |
8700 | { echo "$as_me:$LINENO: result: no" >&5 |
8701 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
8702 | fi |
8703 | ||
11a67599 | 8704 | |
e8b05380 PB |
8705 | fi |
8706 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
8707 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8708 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
8709 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8711 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8713 | else |
e8b05380 PB |
8714 | if test -n "$GCC_FOR_TARGET"; then |
8715 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 8716 | else |
1c710c3c DJ |
8717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8718 | for as_dir in $PATH | |
8719 | do | |
8720 | IFS=$as_save_IFS | |
8721 | test -z "$as_dir" && as_dir=. | |
8722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8724 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
8725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8726 | break 2 | |
8727 | fi | |
8728 | done | |
8729 | done | |
11a67599 | 8730 | IFS=$as_save_IFS |
1c710c3c | 8731 | |
ca9f4b81 AO |
8732 | fi |
8733 | fi | |
1c710c3c | 8734 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 8735 | if test -n "$GCC_FOR_TARGET"; then |
11a67599 ZW |
8736 | { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8737 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 8738 | else |
11a67599 ZW |
8739 | { echo "$as_me:$LINENO: result: no" >&5 |
8740 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 8741 | fi |
1c710c3c | 8742 | |
11a67599 | 8743 | |
e8b05380 PB |
8744 | fi |
8745 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
8746 | done | |
8747 | fi | |
1c710c3c | 8748 | |
e8b05380 PB |
8749 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
8750 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
8751 | fi | |
8752 | ||
278a7a38 AO |
8753 | |
8754 | ||
8755 | if test -n "$GCJ_FOR_TARGET"; then | |
8756 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
8757 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8758 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8759 | fi | |
8760 | ||
8761 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8762 | for ncn_progname in gcj; do | |
8763 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8764 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8765 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
8767 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8769 | else | |
8770 | if test -n "$GCJ_FOR_TARGET"; then | |
8771 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8772 | else | |
8773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8774 | for as_dir in $PATH | |
8775 | do | |
8776 | IFS=$as_save_IFS | |
8777 | test -z "$as_dir" && as_dir=. | |
8778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
8780 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
8781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8782 | break 2 | |
8783 | fi | |
8784 | done | |
8785 | done | |
11a67599 | 8786 | IFS=$as_save_IFS |
278a7a38 AO |
8787 | |
8788 | fi | |
8789 | fi | |
8790 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8791 | if test -n "$GCJ_FOR_TARGET"; then | |
11a67599 ZW |
8792 | { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8793 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 8794 | else |
11a67599 ZW |
8795 | { echo "$as_me:$LINENO: result: no" >&5 |
8796 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8797 | fi |
8798 | ||
11a67599 | 8799 | |
278a7a38 AO |
8800 | done |
8801 | fi | |
8802 | ||
8803 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8804 | for ncn_progname in gcj; do |
11a67599 ZW |
8805 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8806 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
8807 | if test -x $with_build_time_tools/${ncn_progname}; then |
8808 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
8809 | { echo "$as_me:$LINENO: result: yes" >&5 |
8810 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
8811 | break |
8812 | else | |
11a67599 ZW |
8813 | { echo "$as_me:$LINENO: result: no" >&5 |
8814 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
8815 | fi |
8816 | done | |
8817 | fi | |
8818 | ||
8819 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8820 | for ncn_progname in gcj; do | |
8821 | if test -n "$ncn_target_tool_prefix"; then | |
8822 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8823 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8826 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 8828 | else |
fb0103e5 RG |
8829 | if test -n "$GCJ_FOR_TARGET"; then |
8830 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8831 | else | |
1c710c3c DJ |
8832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8833 | for as_dir in $PATH | |
8834 | do | |
8835 | IFS=$as_save_IFS | |
8836 | test -z "$as_dir" && as_dir=. | |
8837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8839 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8841 | break 2 | |
8842 | fi | |
8843 | done | |
8844 | done | |
11a67599 | 8845 | IFS=$as_save_IFS |
1c710c3c | 8846 | |
e8b05380 PB |
8847 | fi |
8848 | fi | |
278a7a38 AO |
8849 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
8850 | if test -n "$GCJ_FOR_TARGET"; then | |
11a67599 ZW |
8851 | { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8852 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 8853 | else |
11a67599 ZW |
8854 | { echo "$as_me:$LINENO: result: no" >&5 |
8855 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8856 | fi |
8857 | ||
11a67599 | 8858 | |
278a7a38 AO |
8859 | fi |
8860 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
8861 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8862 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
8865 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8867 | else | |
8868 | if test -n "$GCJ_FOR_TARGET"; then | |
8869 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8870 | else | |
8871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8872 | for as_dir in $PATH | |
8873 | do | |
8874 | IFS=$as_save_IFS | |
8875 | test -z "$as_dir" && as_dir=. | |
8876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
8878 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
8879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8880 | break 2 | |
8881 | fi | |
8882 | done | |
8883 | done | |
11a67599 | 8884 | IFS=$as_save_IFS |
278a7a38 AO |
8885 | |
8886 | fi | |
8887 | fi | |
8888 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8889 | if test -n "$GCJ_FOR_TARGET"; then | |
11a67599 ZW |
8890 | { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8891 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 8892 | else |
11a67599 ZW |
8893 | { echo "$as_me:$LINENO: result: no" >&5 |
8894 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
8895 | fi |
8896 | ||
11a67599 | 8897 | |
278a7a38 AO |
8898 | fi |
8899 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
8900 | done | |
8901 | fi | |
8902 | ||
8903 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
8904 | set dummy gcj | |
8905 | if test $build = $target ; then | |
8906 | GCJ_FOR_TARGET="$2" | |
8907 | else | |
8908 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
8909 | fi | |
8910 | fi | |
8911 | ||
8912 | ||
8913 | ||
8914 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
8915 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
8916 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
8917 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
8918 | fi |
8919 | ||
278a7a38 AO |
8920 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
8921 | for ncn_progname in gfortran; do | |
8922 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 8923 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
8924 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 | 8926 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
1c710c3c | 8927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e8b05380 | 8928 | else |
278a7a38 AO |
8929 | if test -n "$GFORTRAN_FOR_TARGET"; then |
8930 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 8931 | else |
1c710c3c DJ |
8932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8933 | for as_dir in $PATH | |
8934 | do | |
8935 | IFS=$as_save_IFS | |
8936 | test -z "$as_dir" && as_dir=. | |
8937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 | 8939 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
1c710c3c DJ |
8940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8941 | break 2 | |
8942 | fi | |
8943 | done | |
8944 | done | |
11a67599 | 8945 | IFS=$as_save_IFS |
1c710c3c | 8946 | |
e8b05380 PB |
8947 | fi |
8948 | fi | |
278a7a38 AO |
8949 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
8950 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
11a67599 ZW |
8951 | { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
8952 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 8953 | else |
11a67599 ZW |
8954 | { echo "$as_me:$LINENO: result: no" >&5 |
8955 | echo "${ECHO_T}no" >&6; } | |
e8b05380 | 8956 | fi |
1c710c3c | 8957 | |
11a67599 | 8958 | |
e8b05380 PB |
8959 | done |
8960 | fi | |
1c710c3c | 8961 | |
278a7a38 | 8962 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 8963 | for ncn_progname in gfortran; do |
11a67599 ZW |
8964 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8965 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
8966 | if test -x $with_build_time_tools/${ncn_progname}; then |
8967 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
8968 | { echo "$as_me:$LINENO: result: yes" >&5 |
8969 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
8970 | break |
8971 | else | |
11a67599 ZW |
8972 | { echo "$as_me:$LINENO: result: no" >&5 |
8973 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
8974 | fi |
8975 | done | |
8976 | fi | |
8977 | ||
8978 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
8979 | for ncn_progname in gfortran; do | |
8980 | if test -n "$ncn_target_tool_prefix"; then | |
8981 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8982 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
8983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
8985 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
8986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
8987 | else |
8988 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
8989 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
8990 | else | |
8991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8992 | for as_dir in $PATH | |
8993 | do | |
8994 | IFS=$as_save_IFS | |
8995 | test -z "$as_dir" && as_dir=. | |
8996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 8997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
8998 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9000 | break 2 | |
9001 | fi | |
9002 | done | |
9003 | done | |
11a67599 | 9004 | IFS=$as_save_IFS |
1c710c3c | 9005 | |
e8b05380 PB |
9006 | fi |
9007 | fi | |
1c710c3c | 9008 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 9009 | if test -n "$GFORTRAN_FOR_TARGET"; then |
11a67599 ZW |
9010 | { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
9011 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 9012 | else |
11a67599 ZW |
9013 | { echo "$as_me:$LINENO: result: no" >&5 |
9014 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
9015 | fi |
9016 | ||
11a67599 | 9017 | |
e8b05380 PB |
9018 | fi |
9019 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
9020 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9021 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9022 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9024 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
9025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9026 | else |
9027 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
9028 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
9029 | else | |
1c710c3c DJ |
9030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9031 | for as_dir in $PATH | |
9032 | do | |
9033 | IFS=$as_save_IFS | |
9034 | test -z "$as_dir" && as_dir=. | |
9035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9037 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
9038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9039 | break 2 | |
9040 | fi | |
9041 | done | |
9042 | done | |
11a67599 | 9043 | IFS=$as_save_IFS |
1c710c3c | 9044 | |
e8b05380 PB |
9045 | fi |
9046 | fi | |
1c710c3c | 9047 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 9048 | if test -n "$GFORTRAN_FOR_TARGET"; then |
11a67599 ZW |
9049 | { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
9050 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 9051 | else |
11a67599 ZW |
9052 | { echo "$as_me:$LINENO: result: no" >&5 |
9053 | echo "${ECHO_T}no" >&6; } | |
e8b05380 | 9054 | fi |
1c710c3c | 9055 | |
11a67599 | 9056 | |
e8b05380 PB |
9057 | fi |
9058 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
9059 | done | |
9060 | fi | |
1c710c3c | 9061 | |
e8b05380 PB |
9062 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
9063 | set dummy gfortran | |
2693c0b0 | 9064 | if test $build = $target ; then |
e8b05380 | 9065 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 9066 | else |
e8b05380 PB |
9067 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
9068 | fi | |
9069 | fi | |
9070 | ||
9071 | ||
9072 | ||
e8b05380 PB |
9073 | cat > conftest.c << \EOF |
9074 | #ifdef __GNUC__ | |
9075 | gcc_yay; | |
9076 | #endif | |
9077 | EOF | |
9078 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
9079 | have_gcc_for_target=yes | |
9080 | else | |
9081 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
9082 | have_gcc_for_target=no | |
9083 | fi | |
9084 | rm conftest.c | |
9085 | ||
9086 | ||
9087 | ||
9088 | ||
9089 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9090 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
9091 | { echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5 |
9092 | echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9093 | if test -x $with_build_time_tools/ar; then |
9094 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
9095 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
11a67599 ZW |
9096 | { echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
9097 | echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 9098 | else |
11a67599 ZW |
9099 | { echo "$as_me:$LINENO: result: no" >&5 |
9100 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 9101 | fi |
e8b05380 PB |
9102 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9103 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
9104 | test $AR_FOR_TARGET=ar && AR_FOR_TARGET= | |
9105 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
9106 | fi | |
9107 | fi | |
3e19841a | 9108 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9109 | # Extract the first word of "ar", so it can be a program name with args. |
9110 | set dummy ar; ac_word=$2 | |
11a67599 ZW |
9111 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9113 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then |
9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 9115 | else |
1c710c3c DJ |
9116 | case $AR_FOR_TARGET in |
9117 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9118 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
9119 | ;; | |
e8b05380 | 9120 | *) |
1c710c3c DJ |
9121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9122 | for as_dir in $gcc_cv_tool_dirs | |
9123 | do | |
9124 | IFS=$as_save_IFS | |
9125 | test -z "$as_dir" && as_dir=. | |
9126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9128 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9129 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9130 | break 2 | |
9131 | fi | |
9132 | done | |
9133 | done | |
11a67599 | 9134 | IFS=$as_save_IFS |
1c710c3c | 9135 | |
e8b05380 PB |
9136 | ;; |
9137 | esac | |
9138 | fi | |
1c710c3c | 9139 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 9140 | if test -n "$AR_FOR_TARGET"; then |
11a67599 ZW |
9141 | { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9142 | echo "${ECHO_T}$AR_FOR_TARGET" >&6; } | |
e8b05380 | 9143 | else |
11a67599 ZW |
9144 | { echo "$as_me:$LINENO: result: no" >&5 |
9145 | echo "${ECHO_T}no" >&6; } | |
4de997d1 PB |
9146 | fi |
9147 | ||
11a67599 | 9148 | |
e8b05380 PB |
9149 | fi |
9150 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
9151 | |
9152 | ||
9153 | if test -n "$AR_FOR_TARGET"; then | |
9154 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
9155 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
9156 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
9157 | fi | |
9158 | ||
9159 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
9160 | for ncn_progname in ar; do | |
9161 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9162 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
9165 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
9166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9167 | else | |
9168 | if test -n "$AR_FOR_TARGET"; then | |
9169 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
9170 | else | |
9171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9172 | for as_dir in $PATH | |
9173 | do | |
9174 | IFS=$as_save_IFS | |
9175 | test -z "$as_dir" && as_dir=. | |
9176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
9178 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
9179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9180 | break 2 | |
9181 | fi | |
9182 | done | |
9183 | done | |
11a67599 | 9184 | IFS=$as_save_IFS |
278a7a38 AO |
9185 | |
9186 | fi | |
9187 | fi | |
9188 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
9189 | if test -n "$AR_FOR_TARGET"; then | |
11a67599 ZW |
9190 | { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9191 | echo "${ECHO_T}$AR_FOR_TARGET" >&6; } | |
278a7a38 | 9192 | else |
11a67599 ZW |
9193 | { echo "$as_me:$LINENO: result: no" >&5 |
9194 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
9195 | fi |
9196 | ||
11a67599 | 9197 | |
278a7a38 AO |
9198 | done |
9199 | fi | |
9200 | ||
9201 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9202 | for ncn_progname in ar; do |
11a67599 ZW |
9203 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9204 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9205 | if test -x $with_build_time_tools/${ncn_progname}; then |
9206 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
9207 | { echo "$as_me:$LINENO: result: yes" >&5 |
9208 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
9209 | break |
9210 | else | |
11a67599 ZW |
9211 | { echo "$as_me:$LINENO: result: no" >&5 |
9212 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
9213 | fi |
9214 | done | |
9215 | fi | |
9216 | ||
9217 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
9218 | for ncn_progname in ar; do | |
9219 | if test -n "$ncn_target_tool_prefix"; then | |
9220 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9221 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
9222 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9224 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
9225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9226 | else |
e8b05380 PB |
9227 | if test -n "$AR_FOR_TARGET"; then |
9228 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9229 | else |
1c710c3c DJ |
9230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9231 | for as_dir in $PATH | |
9232 | do | |
9233 | IFS=$as_save_IFS | |
9234 | test -z "$as_dir" && as_dir=. | |
9235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9237 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9239 | break 2 | |
9240 | fi | |
9241 | done | |
9242 | done | |
11a67599 | 9243 | IFS=$as_save_IFS |
1c710c3c | 9244 | |
4de997d1 PB |
9245 | fi |
9246 | fi | |
1c710c3c | 9247 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 9248 | if test -n "$AR_FOR_TARGET"; then |
11a67599 ZW |
9249 | { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9250 | echo "${ECHO_T}$AR_FOR_TARGET" >&6; } | |
4de997d1 | 9251 | else |
11a67599 ZW |
9252 | { echo "$as_me:$LINENO: result: no" >&5 |
9253 | echo "${ECHO_T}no" >&6; } | |
4de997d1 PB |
9254 | fi |
9255 | ||
11a67599 | 9256 | |
e8b05380 PB |
9257 | fi |
9258 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
9259 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9260 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9261 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9263 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
9264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9265 | else |
9266 | if test -n "$AR_FOR_TARGET"; then | |
9267 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
9268 | else | |
1c710c3c DJ |
9269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9270 | for as_dir in $PATH | |
9271 | do | |
9272 | IFS=$as_save_IFS | |
9273 | test -z "$as_dir" && as_dir=. | |
9274 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9276 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
9277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9278 | break 2 | |
9279 | fi | |
9280 | done | |
9281 | done | |
11a67599 | 9282 | IFS=$as_save_IFS |
1c710c3c | 9283 | |
e8b05380 PB |
9284 | fi |
9285 | fi | |
1c710c3c | 9286 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 9287 | if test -n "$AR_FOR_TARGET"; then |
11a67599 ZW |
9288 | { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9289 | echo "${ECHO_T}$AR_FOR_TARGET" >&6; } | |
e8b05380 | 9290 | else |
11a67599 ZW |
9291 | { echo "$as_me:$LINENO: result: no" >&5 |
9292 | echo "${ECHO_T}no" >&6; } | |
e8b05380 | 9293 | fi |
1c710c3c | 9294 | |
11a67599 | 9295 | |
e8b05380 PB |
9296 | fi |
9297 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
9298 | done | |
9299 | fi | |
1c710c3c | 9300 | |
e8b05380 PB |
9301 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
9302 | set dummy ar | |
9303 | if test $build = $target ; then | |
9304 | AR_FOR_TARGET="$2" | |
9305 | else | |
9306 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 9307 | fi |
e8b05380 PB |
9308 | fi |
9309 | ||
d1f8db0c PB |
9310 | else |
9311 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
9312 | fi |
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9318 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
9319 | { echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5 |
9320 | echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9321 | if test -x $with_build_time_tools/as; then |
9322 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
9323 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
11a67599 ZW |
9324 | { echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
9325 | echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 9326 | else |
11a67599 ZW |
9327 | { echo "$as_me:$LINENO: result: no" >&5 |
9328 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 9329 | fi |
e8b05380 PB |
9330 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9331 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
9332 | test $AS_FOR_TARGET=as && AS_FOR_TARGET= | |
9333 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
9334 | fi | |
9335 | fi | |
3e19841a | 9336 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9337 | # Extract the first word of "as", so it can be a program name with args. |
9338 | set dummy as; ac_word=$2 | |
11a67599 ZW |
9339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9341 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then |
9342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 9343 | else |
1c710c3c DJ |
9344 | case $AS_FOR_TARGET in |
9345 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9346 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
9347 | ;; | |
e8b05380 | 9348 | *) |
1c710c3c DJ |
9349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9350 | for as_dir in $gcc_cv_tool_dirs | |
9351 | do | |
9352 | IFS=$as_save_IFS | |
9353 | test -z "$as_dir" && as_dir=. | |
9354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9356 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9358 | break 2 | |
9359 | fi | |
9360 | done | |
9361 | done | |
11a67599 | 9362 | IFS=$as_save_IFS |
1c710c3c | 9363 | |
e8b05380 PB |
9364 | ;; |
9365 | esac | |
9366 | fi | |
1c710c3c | 9367 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 9368 | if test -n "$AS_FOR_TARGET"; then |
11a67599 ZW |
9369 | { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9370 | echo "${ECHO_T}$AS_FOR_TARGET" >&6; } | |
e8b05380 | 9371 | else |
11a67599 ZW |
9372 | { echo "$as_me:$LINENO: result: no" >&5 |
9373 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
9374 | fi |
9375 | ||
11a67599 | 9376 | |
e8b05380 PB |
9377 | fi |
9378 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
9379 | |
9380 | ||
9381 | if test -n "$AS_FOR_TARGET"; then | |
9382 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
9383 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
9384 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
9385 | fi | |
9386 | ||
9387 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
9388 | for ncn_progname in as; do | |
9389 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9390 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
9393 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9395 | else | |
9396 | if test -n "$AS_FOR_TARGET"; then | |
9397 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
9398 | else | |
9399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9400 | for as_dir in $PATH | |
9401 | do | |
9402 | IFS=$as_save_IFS | |
9403 | test -z "$as_dir" && as_dir=. | |
9404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
9406 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
9407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9408 | break 2 | |
9409 | fi | |
9410 | done | |
9411 | done | |
11a67599 | 9412 | IFS=$as_save_IFS |
278a7a38 AO |
9413 | |
9414 | fi | |
9415 | fi | |
9416 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
9417 | if test -n "$AS_FOR_TARGET"; then | |
11a67599 ZW |
9418 | { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9419 | echo "${ECHO_T}$AS_FOR_TARGET" >&6; } | |
278a7a38 | 9420 | else |
11a67599 ZW |
9421 | { echo "$as_me:$LINENO: result: no" >&5 |
9422 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
9423 | fi |
9424 | ||
11a67599 | 9425 | |
278a7a38 AO |
9426 | done |
9427 | fi | |
9428 | ||
9429 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9430 | for ncn_progname in as; do |
11a67599 ZW |
9431 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9432 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9433 | if test -x $with_build_time_tools/${ncn_progname}; then |
9434 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
9435 | { echo "$as_me:$LINENO: result: yes" >&5 |
9436 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
9437 | break |
9438 | else | |
11a67599 ZW |
9439 | { echo "$as_me:$LINENO: result: no" >&5 |
9440 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
9441 | fi |
9442 | done | |
9443 | fi | |
9444 | ||
9445 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
9446 | for ncn_progname in as; do | |
9447 | if test -n "$ncn_target_tool_prefix"; then | |
9448 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9449 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9450 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9452 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9454 | else |
9455 | if test -n "$AS_FOR_TARGET"; then | |
9456 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
9457 | else | |
1c710c3c DJ |
9458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9459 | for as_dir in $PATH | |
9460 | do | |
9461 | IFS=$as_save_IFS | |
9462 | test -z "$as_dir" && as_dir=. | |
9463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9465 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9466 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9467 | break 2 | |
9468 | fi | |
9469 | done | |
9470 | done | |
11a67599 | 9471 | IFS=$as_save_IFS |
1c710c3c | 9472 | |
e8b05380 PB |
9473 | fi |
9474 | fi | |
1c710c3c | 9475 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 9476 | if test -n "$AS_FOR_TARGET"; then |
11a67599 ZW |
9477 | { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9478 | echo "${ECHO_T}$AS_FOR_TARGET" >&6; } | |
e8b05380 | 9479 | else |
11a67599 ZW |
9480 | { echo "$as_me:$LINENO: result: no" >&5 |
9481 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
9482 | fi |
9483 | ||
11a67599 | 9484 | |
e8b05380 PB |
9485 | fi |
9486 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
9487 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9488 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
9489 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9491 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9493 | else |
e8b05380 PB |
9494 | if test -n "$AS_FOR_TARGET"; then |
9495 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9496 | else |
1c710c3c DJ |
9497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9498 | for as_dir in $PATH | |
9499 | do | |
9500 | IFS=$as_save_IFS | |
9501 | test -z "$as_dir" && as_dir=. | |
9502 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9504 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
9505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9506 | break 2 | |
9507 | fi | |
9508 | done | |
9509 | done | |
11a67599 | 9510 | IFS=$as_save_IFS |
1c710c3c | 9511 | |
4de997d1 PB |
9512 | fi |
9513 | fi | |
1c710c3c | 9514 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 9515 | if test -n "$AS_FOR_TARGET"; then |
11a67599 ZW |
9516 | { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9517 | echo "${ECHO_T}$AS_FOR_TARGET" >&6; } | |
4de997d1 | 9518 | else |
11a67599 ZW |
9519 | { echo "$as_me:$LINENO: result: no" >&5 |
9520 | echo "${ECHO_T}no" >&6; } | |
4de997d1 | 9521 | fi |
1c710c3c | 9522 | |
11a67599 | 9523 | |
e8b05380 PB |
9524 | fi |
9525 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
9526 | done | |
9527 | fi | |
1c710c3c | 9528 | |
e8b05380 PB |
9529 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
9530 | set dummy as | |
9531 | if test $build = $target ; then | |
9532 | AS_FOR_TARGET="$2" | |
9533 | else | |
9534 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 9535 | fi |
e8b05380 | 9536 | fi |
2693c0b0 | 9537 | |
d1f8db0c PB |
9538 | else |
9539 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
9540 | fi |
9541 | ||
e8b05380 PB |
9542 | |
9543 | ||
9544 | ||
9545 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9546 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
9547 | { echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5 |
9548 | echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9549 | if test -x $with_build_time_tools/dlltool; then |
9550 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
9551 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11a67599 ZW |
9552 | { echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
9553 | echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 9554 | else |
11a67599 ZW |
9555 | { echo "$as_me:$LINENO: result: no" >&5 |
9556 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 9557 | fi |
e8b05380 PB |
9558 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9559 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
9560 | test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET= | |
9561 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
9562 | fi | |
9563 | fi | |
3e19841a | 9564 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9565 | # Extract the first word of "dlltool", so it can be a program name with args. |
9566 | set dummy dlltool; ac_word=$2 | |
11a67599 ZW |
9567 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9569 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then |
9570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9571 | else |
1c710c3c DJ |
9572 | case $DLLTOOL_FOR_TARGET in |
9573 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9574 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
9575 | ;; | |
e8b05380 | 9576 | *) |
1c710c3c DJ |
9577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9578 | for as_dir in $gcc_cv_tool_dirs | |
9579 | do | |
9580 | IFS=$as_save_IFS | |
9581 | test -z "$as_dir" && as_dir=. | |
9582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9584 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9586 | break 2 | |
9587 | fi | |
9588 | done | |
9589 | done | |
11a67599 | 9590 | IFS=$as_save_IFS |
1c710c3c | 9591 | |
e8b05380 PB |
9592 | ;; |
9593 | esac | |
4de997d1 | 9594 | fi |
1c710c3c | 9595 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 9596 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11a67599 ZW |
9597 | { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9598 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 9599 | else |
11a67599 ZW |
9600 | { echo "$as_me:$LINENO: result: no" >&5 |
9601 | echo "${ECHO_T}no" >&6; } | |
4de997d1 PB |
9602 | fi |
9603 | ||
11a67599 | 9604 | |
e8b05380 PB |
9605 | fi |
9606 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
9607 | |
9608 | ||
9609 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
9610 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
9611 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9612 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
9613 | fi | |
9614 | ||
9615 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9616 | for ncn_progname in dlltool; do | |
9617 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9618 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9619 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
9621 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9623 | else | |
9624 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
9625 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
9626 | else | |
9627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9628 | for as_dir in $PATH | |
9629 | do | |
9630 | IFS=$as_save_IFS | |
9631 | test -z "$as_dir" && as_dir=. | |
9632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
9634 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
9635 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9636 | break 2 | |
9637 | fi | |
9638 | done | |
9639 | done | |
11a67599 | 9640 | IFS=$as_save_IFS |
278a7a38 AO |
9641 | |
9642 | fi | |
9643 | fi | |
9644 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
9645 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11a67599 ZW |
9646 | { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9647 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 9648 | else |
11a67599 ZW |
9649 | { echo "$as_me:$LINENO: result: no" >&5 |
9650 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
9651 | fi |
9652 | ||
11a67599 | 9653 | |
278a7a38 AO |
9654 | done |
9655 | fi | |
9656 | ||
9657 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9658 | for ncn_progname in dlltool; do |
11a67599 ZW |
9659 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9660 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9661 | if test -x $with_build_time_tools/${ncn_progname}; then |
9662 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
9663 | { echo "$as_me:$LINENO: result: yes" >&5 |
9664 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
9665 | break |
9666 | else | |
11a67599 ZW |
9667 | { echo "$as_me:$LINENO: result: no" >&5 |
9668 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
9669 | fi |
9670 | done | |
9671 | fi | |
9672 | ||
9673 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9674 | for ncn_progname in dlltool; do | |
9675 | if test -n "$ncn_target_tool_prefix"; then | |
9676 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9677 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9678 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9680 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9682 | else |
e8b05380 PB |
9683 | if test -n "$DLLTOOL_FOR_TARGET"; then |
9684 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9685 | else |
1c710c3c DJ |
9686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9687 | for as_dir in $PATH | |
9688 | do | |
9689 | IFS=$as_save_IFS | |
9690 | test -z "$as_dir" && as_dir=. | |
9691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9693 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9695 | break 2 | |
9696 | fi | |
9697 | done | |
9698 | done | |
11a67599 | 9699 | IFS=$as_save_IFS |
1c710c3c | 9700 | |
4de997d1 PB |
9701 | fi |
9702 | fi | |
1c710c3c | 9703 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 9704 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11a67599 ZW |
9705 | { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9706 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 9707 | else |
11a67599 ZW |
9708 | { echo "$as_me:$LINENO: result: no" >&5 |
9709 | echo "${ECHO_T}no" >&6; } | |
4de997d1 | 9710 | fi |
4de997d1 | 9711 | |
11a67599 | 9712 | |
e8b05380 PB |
9713 | fi |
9714 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
9715 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9716 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9717 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9719 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9721 | else |
e8b05380 PB |
9722 | if test -n "$DLLTOOL_FOR_TARGET"; then |
9723 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9724 | else |
1c710c3c DJ |
9725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9726 | for as_dir in $PATH | |
9727 | do | |
9728 | IFS=$as_save_IFS | |
9729 | test -z "$as_dir" && as_dir=. | |
9730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9732 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
9733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9734 | break 2 | |
9735 | fi | |
9736 | done | |
9737 | done | |
11a67599 | 9738 | IFS=$as_save_IFS |
1c710c3c | 9739 | |
4de997d1 PB |
9740 | fi |
9741 | fi | |
1c710c3c | 9742 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 9743 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11a67599 ZW |
9744 | { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9745 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 9746 | else |
11a67599 ZW |
9747 | { echo "$as_me:$LINENO: result: no" >&5 |
9748 | echo "${ECHO_T}no" >&6; } | |
4de997d1 | 9749 | fi |
1c710c3c | 9750 | |
11a67599 | 9751 | |
e8b05380 PB |
9752 | fi |
9753 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
9754 | done | |
9755 | fi | |
1c710c3c | 9756 | |
e8b05380 PB |
9757 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
9758 | set dummy dlltool | |
9759 | if test $build = $target ; then | |
9760 | DLLTOOL_FOR_TARGET="$2" | |
9761 | else | |
9762 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
9763 | fi | |
9764 | fi | |
9765 | ||
d1f8db0c PB |
9766 | else |
9767 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
9768 | fi |
9769 | ||
4de997d1 | 9770 | |
e8b05380 PB |
9771 | |
9772 | ||
9773 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9774 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
9775 | { echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5 |
9776 | echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9777 | if test -x $with_build_time_tools/ld; then |
9778 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
9779 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
11a67599 ZW |
9780 | { echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
9781 | echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 9782 | else |
11a67599 ZW |
9783 | { echo "$as_me:$LINENO: result: no" >&5 |
9784 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 9785 | fi |
e8b05380 PB |
9786 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9787 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
9788 | test $LD_FOR_TARGET=ld && LD_FOR_TARGET= | |
9789 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 9790 | fi |
e8b05380 | 9791 | fi |
3e19841a | 9792 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9793 | # Extract the first word of "ld", so it can be a program name with args. |
9794 | set dummy ld; ac_word=$2 | |
11a67599 ZW |
9795 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9797 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then |
9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9799 | else |
1c710c3c DJ |
9800 | case $LD_FOR_TARGET in |
9801 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9802 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
9803 | ;; | |
e8b05380 | 9804 | *) |
1c710c3c DJ |
9805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9806 | for as_dir in $gcc_cv_tool_dirs | |
9807 | do | |
9808 | IFS=$as_save_IFS | |
9809 | test -z "$as_dir" && as_dir=. | |
9810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9812 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9814 | break 2 | |
9815 | fi | |
9816 | done | |
9817 | done | |
11a67599 | 9818 | IFS=$as_save_IFS |
1c710c3c | 9819 | |
e8b05380 PB |
9820 | ;; |
9821 | esac | |
4de997d1 | 9822 | fi |
1c710c3c | 9823 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 9824 | if test -n "$LD_FOR_TARGET"; then |
11a67599 ZW |
9825 | { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9826 | echo "${ECHO_T}$LD_FOR_TARGET" >&6; } | |
4de997d1 | 9827 | else |
11a67599 ZW |
9828 | { echo "$as_me:$LINENO: result: no" >&5 |
9829 | echo "${ECHO_T}no" >&6; } | |
4de997d1 | 9830 | fi |
2693c0b0 | 9831 | |
11a67599 | 9832 | |
e8b05380 PB |
9833 | fi |
9834 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
9835 | |
9836 | ||
9837 | if test -n "$LD_FOR_TARGET"; then | |
9838 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
9839 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
9840 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
9841 | fi | |
9842 | ||
9843 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
9844 | for ncn_progname in ld; do | |
9845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9846 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
9847 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
9849 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9851 | else | |
9852 | if test -n "$LD_FOR_TARGET"; then | |
9853 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
9854 | else | |
9855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9856 | for as_dir in $PATH | |
9857 | do | |
9858 | IFS=$as_save_IFS | |
9859 | test -z "$as_dir" && as_dir=. | |
9860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
9862 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
9863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9864 | break 2 | |
9865 | fi | |
9866 | done | |
9867 | done | |
11a67599 | 9868 | IFS=$as_save_IFS |
278a7a38 AO |
9869 | |
9870 | fi | |
9871 | fi | |
9872 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
9873 | if test -n "$LD_FOR_TARGET"; then | |
11a67599 ZW |
9874 | { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9875 | echo "${ECHO_T}$LD_FOR_TARGET" >&6; } | |
278a7a38 | 9876 | else |
11a67599 ZW |
9877 | { echo "$as_me:$LINENO: result: no" >&5 |
9878 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
9879 | fi |
9880 | ||
11a67599 | 9881 | |
278a7a38 AO |
9882 | done |
9883 | fi | |
9884 | ||
9885 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9886 | for ncn_progname in ld; do |
11a67599 ZW |
9887 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9888 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
9889 | if test -x $with_build_time_tools/${ncn_progname}; then |
9890 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
9891 | { echo "$as_me:$LINENO: result: yes" >&5 |
9892 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
9893 | break |
9894 | else | |
11a67599 ZW |
9895 | { echo "$as_me:$LINENO: result: no" >&5 |
9896 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
9897 | fi |
9898 | done | |
ca9f4b81 AO |
9899 | fi |
9900 | ||
e8b05380 PB |
9901 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
9902 | for ncn_progname in ld; do | |
9903 | if test -n "$ncn_target_tool_prefix"; then | |
9904 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9905 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
9906 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9908 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9910 | else |
4de997d1 PB |
9911 | if test -n "$LD_FOR_TARGET"; then |
9912 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9913 | else |
1c710c3c DJ |
9914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9915 | for as_dir in $PATH | |
9916 | do | |
9917 | IFS=$as_save_IFS | |
9918 | test -z "$as_dir" && as_dir=. | |
9919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9921 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9923 | break 2 | |
9924 | fi | |
9925 | done | |
9926 | done | |
11a67599 | 9927 | IFS=$as_save_IFS |
1c710c3c | 9928 | |
ca9f4b81 AO |
9929 | fi |
9930 | fi | |
1c710c3c | 9931 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 9932 | if test -n "$LD_FOR_TARGET"; then |
11a67599 ZW |
9933 | { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9934 | echo "${ECHO_T}$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 9935 | else |
11a67599 ZW |
9936 | { echo "$as_me:$LINENO: result: no" >&5 |
9937 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
9938 | fi |
9939 | ||
11a67599 | 9940 | |
e8b05380 PB |
9941 | fi |
9942 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
9943 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9944 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
9945 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
9947 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9949 | else |
2693c0b0 PB |
9950 | if test -n "$LD_FOR_TARGET"; then |
9951 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9952 | else |
1c710c3c DJ |
9953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9954 | for as_dir in $PATH | |
9955 | do | |
9956 | IFS=$as_save_IFS | |
9957 | test -z "$as_dir" && as_dir=. | |
9958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 9959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
9960 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
9961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9962 | break 2 | |
9963 | fi | |
9964 | done | |
9965 | done | |
11a67599 | 9966 | IFS=$as_save_IFS |
1c710c3c | 9967 | |
ca9f4b81 AO |
9968 | fi |
9969 | fi | |
1c710c3c | 9970 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 9971 | if test -n "$LD_FOR_TARGET"; then |
11a67599 ZW |
9972 | { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9973 | echo "${ECHO_T}$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 9974 | else |
11a67599 ZW |
9975 | { echo "$as_me:$LINENO: result: no" >&5 |
9976 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 9977 | fi |
1c710c3c | 9978 | |
11a67599 | 9979 | |
e8b05380 PB |
9980 | fi |
9981 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
9982 | done | |
9983 | fi | |
1c710c3c | 9984 | |
2693c0b0 PB |
9985 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
9986 | set dummy ld | |
9987 | if test $build = $target ; then | |
9988 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 9989 | else |
2693c0b0 | 9990 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 9991 | fi |
ca9f4b81 AO |
9992 | fi |
9993 | ||
d1f8db0c PB |
9994 | else |
9995 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
9996 | fi |
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
10002 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
10003 | { echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5 |
10004 | echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10005 | if test -x $with_build_time_tools/lipo; then |
10006 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
10007 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11a67599 ZW |
10008 | { echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
10009 | echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 10010 | else |
11a67599 ZW |
10011 | { echo "$as_me:$LINENO: result: no" >&5 |
10012 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 10013 | fi |
e8b05380 PB |
10014 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10015 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
10016 | test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET= | |
10017 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
10018 | fi | |
10019 | fi | |
278a7a38 AO |
10020 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
10021 | # Extract the first word of "lipo", so it can be a program name with args. | |
10022 | set dummy lipo; ac_word=$2 | |
11a67599 ZW |
10023 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
10025 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then |
10026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10027 | else | |
10028 | case $LIPO_FOR_TARGET in | |
10029 | [\\/]* | ?:[\\/]*) | |
10030 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
10031 | ;; | |
10032 | *) | |
10033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10034 | for as_dir in $gcc_cv_tool_dirs | |
10035 | do | |
10036 | IFS=$as_save_IFS | |
10037 | test -z "$as_dir" && as_dir=. | |
10038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
10040 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10042 | break 2 | |
10043 | fi | |
10044 | done | |
10045 | done | |
11a67599 | 10046 | IFS=$as_save_IFS |
278a7a38 AO |
10047 | |
10048 | ;; | |
10049 | esac | |
10050 | fi | |
10051 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 10052 | if test -n "$LIPO_FOR_TARGET"; then |
11a67599 ZW |
10053 | { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10054 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 10055 | else |
11a67599 ZW |
10056 | { echo "$as_me:$LINENO: result: no" >&5 |
10057 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
10058 | fi |
10059 | ||
11a67599 | 10060 | |
278a7a38 AO |
10061 | fi |
10062 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
10063 | ||
10064 | ||
10065 | if test -n "$LIPO_FOR_TARGET"; then | |
10066 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
10067 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
10068 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
10069 | fi | |
10070 | ||
10071 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
10072 | for ncn_progname in lipo; 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 | |
11a67599 ZW |
10075 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 | 10077 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
1c710c3c | 10078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e8b05380 | 10079 | else |
278a7a38 AO |
10080 | if test -n "$LIPO_FOR_TARGET"; then |
10081 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
10082 | else | |
10083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10084 | for as_dir in $PATH | |
1c710c3c DJ |
10085 | do |
10086 | IFS=$as_save_IFS | |
10087 | test -z "$as_dir" && as_dir=. | |
10088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 | 10090 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
1c710c3c DJ |
10091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10092 | break 2 | |
10093 | fi | |
10094 | done | |
10095 | done | |
11a67599 | 10096 | IFS=$as_save_IFS |
1c710c3c | 10097 | |
e8b05380 | 10098 | fi |
278a7a38 AO |
10099 | fi |
10100 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 10101 | if test -n "$LIPO_FOR_TARGET"; then |
11a67599 ZW |
10102 | { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10103 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 10104 | else |
11a67599 ZW |
10105 | { echo "$as_me:$LINENO: result: no" >&5 |
10106 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10107 | fi |
10108 | ||
11a67599 | 10109 | |
278a7a38 | 10110 | done |
e8b05380 | 10111 | fi |
278a7a38 AO |
10112 | |
10113 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10114 | for ncn_progname in lipo; do |
11a67599 ZW |
10115 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10116 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10117 | if test -x $with_build_time_tools/${ncn_progname}; then |
10118 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
10119 | { echo "$as_me:$LINENO: result: yes" >&5 |
10120 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
10121 | break |
10122 | else | |
11a67599 ZW |
10123 | { echo "$as_me:$LINENO: result: no" >&5 |
10124 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10125 | fi |
10126 | done | |
10127 | fi | |
10128 | ||
10129 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
10130 | for ncn_progname in lipo; 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. | |
2693c0b0 | 10133 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10134 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10136 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
10137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
10138 | else |
10139 | if test -n "$LIPO_FOR_TARGET"; then | |
10140 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
10141 | else | |
1c710c3c DJ |
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 | |
11a67599 | 10148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10149 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10151 | break 2 | |
10152 | fi | |
10153 | done | |
10154 | done | |
11a67599 | 10155 | IFS=$as_save_IFS |
1c710c3c | 10156 | |
040b1c5a GK |
10157 | fi |
10158 | fi | |
1c710c3c | 10159 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 10160 | if test -n "$LIPO_FOR_TARGET"; then |
11a67599 ZW |
10161 | { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10162 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 10163 | else |
11a67599 ZW |
10164 | { echo "$as_me:$LINENO: result: no" >&5 |
10165 | echo "${ECHO_T}no" >&6; } | |
040b1c5a GK |
10166 | fi |
10167 | ||
11a67599 | 10168 | |
e8b05380 PB |
10169 | fi |
10170 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
10171 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 10172 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10173 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10175 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
10176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
10177 | else |
10178 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
10179 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
10180 | else | |
1c710c3c DJ |
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 | |
11a67599 | 10187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10188 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
10189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10190 | break 2 | |
10191 | fi | |
10192 | done | |
10193 | done | |
11a67599 | 10194 | IFS=$as_save_IFS |
1c710c3c | 10195 | |
040b1c5a GK |
10196 | fi |
10197 | fi | |
1c710c3c | 10198 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 10199 | if test -n "$LIPO_FOR_TARGET"; then |
11a67599 ZW |
10200 | { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10201 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 10202 | else |
11a67599 ZW |
10203 | { echo "$as_me:$LINENO: result: no" >&5 |
10204 | echo "${ECHO_T}no" >&6; } | |
040b1c5a | 10205 | fi |
1c710c3c | 10206 | |
11a67599 | 10207 | |
e8b05380 PB |
10208 | fi |
10209 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
10210 | done | |
10211 | fi | |
1c710c3c | 10212 | |
040b1c5a GK |
10213 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
10214 | set dummy lipo | |
10215 | if test $build = $target ; then | |
10216 | LIPO_FOR_TARGET="$2" | |
10217 | else | |
10218 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10219 | fi | |
10220 | fi | |
10221 | ||
d1f8db0c PB |
10222 | else |
10223 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
10224 | fi |
10225 | ||
10226 | ||
10227 | ||
10228 | ||
10229 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
10230 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
10231 | { echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5 |
10232 | echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10233 | if test -x $with_build_time_tools/nm; then |
10234 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
10235 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
11a67599 ZW |
10236 | { echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
10237 | echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 10238 | else |
11a67599 ZW |
10239 | { echo "$as_me:$LINENO: result: no" >&5 |
10240 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 10241 | fi |
e8b05380 PB |
10242 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10243 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
10244 | test $NM_FOR_TARGET=nm && NM_FOR_TARGET= | |
10245 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
10246 | fi | |
10247 | fi | |
3e19841a | 10248 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10249 | # Extract the first word of "nm", so it can be a program name with args. |
10250 | set dummy nm; ac_word=$2 | |
11a67599 ZW |
10251 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10253 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then |
10254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10255 | else |
1c710c3c DJ |
10256 | case $NM_FOR_TARGET in |
10257 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10258 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
10259 | ;; | |
e8b05380 | 10260 | *) |
1c710c3c DJ |
10261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10262 | for as_dir in $gcc_cv_tool_dirs | |
10263 | do | |
10264 | IFS=$as_save_IFS | |
10265 | test -z "$as_dir" && as_dir=. | |
10266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10268 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10270 | break 2 | |
10271 | fi | |
10272 | done | |
10273 | done | |
11a67599 | 10274 | IFS=$as_save_IFS |
1c710c3c | 10275 | |
e8b05380 PB |
10276 | ;; |
10277 | esac | |
10278 | fi | |
1c710c3c | 10279 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 10280 | if test -n "$NM_FOR_TARGET"; then |
11a67599 ZW |
10281 | { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10282 | echo "${ECHO_T}$NM_FOR_TARGET" >&6; } | |
e8b05380 | 10283 | else |
11a67599 ZW |
10284 | { echo "$as_me:$LINENO: result: no" >&5 |
10285 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10286 | fi |
10287 | ||
11a67599 | 10288 | |
e8b05380 PB |
10289 | fi |
10290 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
10291 | |
10292 | ||
10293 | if test -n "$NM_FOR_TARGET"; then | |
10294 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
10295 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
10296 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
10297 | fi | |
10298 | ||
10299 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
10300 | for ncn_progname in nm; do | |
10301 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10302 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
10303 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
10305 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
10306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10307 | else | |
10308 | if test -n "$NM_FOR_TARGET"; then | |
10309 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
10310 | else | |
10311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10312 | for as_dir in $PATH | |
10313 | do | |
10314 | IFS=$as_save_IFS | |
10315 | test -z "$as_dir" && as_dir=. | |
10316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
10318 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
10319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10320 | break 2 | |
10321 | fi | |
10322 | done | |
10323 | done | |
11a67599 | 10324 | IFS=$as_save_IFS |
278a7a38 AO |
10325 | |
10326 | fi | |
10327 | fi | |
10328 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
10329 | if test -n "$NM_FOR_TARGET"; then | |
11a67599 ZW |
10330 | { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10331 | echo "${ECHO_T}$NM_FOR_TARGET" >&6; } | |
278a7a38 | 10332 | else |
11a67599 ZW |
10333 | { echo "$as_me:$LINENO: result: no" >&5 |
10334 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
10335 | fi |
10336 | ||
11a67599 | 10337 | |
278a7a38 AO |
10338 | done |
10339 | fi | |
10340 | ||
10341 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10342 | for ncn_progname in nm; do |
11a67599 ZW |
10343 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10344 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10345 | if test -x $with_build_time_tools/${ncn_progname}; then |
10346 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
10347 | { echo "$as_me:$LINENO: result: yes" >&5 |
10348 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
10349 | break |
10350 | else | |
11a67599 ZW |
10351 | { echo "$as_me:$LINENO: result: no" >&5 |
10352 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10353 | fi |
10354 | done | |
10355 | fi | |
10356 | ||
10357 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
10358 | for ncn_progname in nm; do | |
10359 | if test -n "$ncn_target_tool_prefix"; then | |
10360 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 10361 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10362 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10364 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
10365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10366 | else |
4de997d1 PB |
10367 | if test -n "$NM_FOR_TARGET"; then |
10368 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10369 | else |
1c710c3c DJ |
10370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10371 | for as_dir in $PATH | |
10372 | do | |
10373 | IFS=$as_save_IFS | |
10374 | test -z "$as_dir" && as_dir=. | |
10375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10377 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10379 | break 2 | |
10380 | fi | |
10381 | done | |
10382 | done | |
11a67599 | 10383 | IFS=$as_save_IFS |
1c710c3c | 10384 | |
ca9f4b81 AO |
10385 | fi |
10386 | fi | |
1c710c3c | 10387 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 10388 | if test -n "$NM_FOR_TARGET"; then |
11a67599 ZW |
10389 | { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10390 | echo "${ECHO_T}$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 10391 | else |
11a67599 ZW |
10392 | { echo "$as_me:$LINENO: result: no" >&5 |
10393 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
10394 | fi |
10395 | ||
11a67599 | 10396 | |
e8b05380 PB |
10397 | fi |
10398 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
10399 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10400 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10401 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10403 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
10404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10405 | else |
2693c0b0 PB |
10406 | if test -n "$NM_FOR_TARGET"; then |
10407 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10408 | else |
1c710c3c DJ |
10409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10410 | for as_dir in $PATH | |
10411 | do | |
10412 | IFS=$as_save_IFS | |
10413 | test -z "$as_dir" && as_dir=. | |
10414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10416 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
10417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10418 | break 2 | |
10419 | fi | |
10420 | done | |
10421 | done | |
11a67599 | 10422 | IFS=$as_save_IFS |
1c710c3c | 10423 | |
ca9f4b81 AO |
10424 | fi |
10425 | fi | |
1c710c3c | 10426 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 10427 | if test -n "$NM_FOR_TARGET"; then |
11a67599 ZW |
10428 | { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10429 | echo "${ECHO_T}$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 10430 | else |
11a67599 ZW |
10431 | { echo "$as_me:$LINENO: result: no" >&5 |
10432 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 10433 | fi |
1c710c3c | 10434 | |
11a67599 | 10435 | |
e8b05380 PB |
10436 | fi |
10437 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
10438 | done | |
10439 | fi | |
1c710c3c | 10440 | |
2693c0b0 PB |
10441 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
10442 | set dummy nm | |
10443 | if test $build = $target ; then | |
10444 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 10445 | else |
2693c0b0 | 10446 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 10447 | fi |
ca9f4b81 AO |
10448 | fi |
10449 | ||
d1f8db0c PB |
10450 | else |
10451 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
10452 | fi |
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
10458 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
10459 | { echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5 |
10460 | echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10461 | if test -x $with_build_time_tools/objdump; then |
10462 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
10463 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
11a67599 ZW |
10464 | { echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
10465 | echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 10466 | else |
11a67599 ZW |
10467 | { echo "$as_me:$LINENO: result: no" >&5 |
10468 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 10469 | fi |
e8b05380 PB |
10470 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10471 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
10472 | test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET= | |
10473 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
10474 | fi | |
10475 | fi | |
3e19841a | 10476 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10477 | # Extract the first word of "objdump", so it can be a program name with args. |
10478 | set dummy objdump; ac_word=$2 | |
11a67599 ZW |
10479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10481 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then |
10482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10483 | else |
1c710c3c DJ |
10484 | case $OBJDUMP_FOR_TARGET in |
10485 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10486 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
10487 | ;; | |
e8b05380 | 10488 | *) |
1c710c3c DJ |
10489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10490 | for as_dir in $gcc_cv_tool_dirs | |
10491 | do | |
10492 | IFS=$as_save_IFS | |
10493 | test -z "$as_dir" && as_dir=. | |
10494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10496 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10498 | break 2 | |
10499 | fi | |
10500 | done | |
10501 | done | |
11a67599 | 10502 | IFS=$as_save_IFS |
1c710c3c | 10503 | |
e8b05380 PB |
10504 | ;; |
10505 | esac | |
10506 | fi | |
1c710c3c | 10507 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 10508 | if test -n "$OBJDUMP_FOR_TARGET"; then |
11a67599 ZW |
10509 | { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10510 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 10511 | else |
11a67599 ZW |
10512 | { echo "$as_me:$LINENO: result: no" >&5 |
10513 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10514 | fi |
10515 | ||
11a67599 | 10516 | |
e8b05380 PB |
10517 | fi |
10518 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
10519 | |
10520 | ||
10521 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10522 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
10523 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10524 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
10525 | fi | |
10526 | ||
10527 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10528 | for ncn_progname in objdump; do | |
10529 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10530 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
10531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
10533 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10535 | else | |
10536 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10537 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10538 | else | |
10539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10540 | for as_dir in $PATH | |
10541 | do | |
10542 | IFS=$as_save_IFS | |
10543 | test -z "$as_dir" && as_dir=. | |
10544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
10546 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
10547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10548 | break 2 | |
10549 | fi | |
10550 | done | |
10551 | done | |
11a67599 | 10552 | IFS=$as_save_IFS |
278a7a38 AO |
10553 | |
10554 | fi | |
10555 | fi | |
10556 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
10557 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
11a67599 ZW |
10558 | { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10559 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 10560 | else |
11a67599 ZW |
10561 | { echo "$as_me:$LINENO: result: no" >&5 |
10562 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
10563 | fi |
10564 | ||
11a67599 | 10565 | |
278a7a38 AO |
10566 | done |
10567 | fi | |
10568 | ||
10569 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10570 | for ncn_progname in objdump; do |
11a67599 ZW |
10571 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10572 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10573 | if test -x $with_build_time_tools/${ncn_progname}; then |
10574 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
10575 | { echo "$as_me:$LINENO: result: yes" >&5 |
10576 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
10577 | break |
10578 | else | |
11a67599 ZW |
10579 | { echo "$as_me:$LINENO: result: no" >&5 |
10580 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10581 | fi |
10582 | done | |
10583 | fi | |
10584 | ||
10585 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10586 | for ncn_progname in objdump; do | |
10587 | if test -n "$ncn_target_tool_prefix"; then | |
10588 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10589 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10590 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10592 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d739199a DJ |
10594 | else |
10595 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10596 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10597 | else | |
1c710c3c DJ |
10598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10599 | for as_dir in $PATH | |
10600 | do | |
10601 | IFS=$as_save_IFS | |
10602 | test -z "$as_dir" && as_dir=. | |
10603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10605 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10606 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10607 | break 2 | |
10608 | fi | |
10609 | done | |
10610 | done | |
11a67599 | 10611 | IFS=$as_save_IFS |
1c710c3c | 10612 | |
d739199a DJ |
10613 | fi |
10614 | fi | |
1c710c3c | 10615 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 10616 | if test -n "$OBJDUMP_FOR_TARGET"; then |
11a67599 ZW |
10617 | { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10618 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 10619 | else |
11a67599 ZW |
10620 | { echo "$as_me:$LINENO: result: no" >&5 |
10621 | echo "${ECHO_T}no" >&6; } | |
d739199a DJ |
10622 | fi |
10623 | ||
11a67599 | 10624 | |
e8b05380 PB |
10625 | fi |
10626 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
10627 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 10628 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10629 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10631 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d739199a DJ |
10633 | else |
10634 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10635 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10636 | else | |
1c710c3c DJ |
10637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10638 | for as_dir in $PATH | |
10639 | do | |
10640 | IFS=$as_save_IFS | |
10641 | test -z "$as_dir" && as_dir=. | |
10642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10644 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
10645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10646 | break 2 | |
10647 | fi | |
10648 | done | |
10649 | done | |
11a67599 | 10650 | IFS=$as_save_IFS |
1c710c3c | 10651 | |
d739199a DJ |
10652 | fi |
10653 | fi | |
1c710c3c | 10654 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 10655 | if test -n "$OBJDUMP_FOR_TARGET"; then |
11a67599 ZW |
10656 | { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10657 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 10658 | else |
11a67599 ZW |
10659 | { echo "$as_me:$LINENO: result: no" >&5 |
10660 | echo "${ECHO_T}no" >&6; } | |
d739199a | 10661 | fi |
1c710c3c | 10662 | |
11a67599 | 10663 | |
e8b05380 PB |
10664 | fi |
10665 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
10666 | done | |
10667 | fi | |
1c710c3c | 10668 | |
d739199a DJ |
10669 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
10670 | set dummy objdump | |
10671 | if test $build = $target ; then | |
10672 | OBJDUMP_FOR_TARGET="$2" | |
10673 | else | |
10674 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10675 | fi | |
10676 | fi | |
10677 | ||
d1f8db0c PB |
10678 | else |
10679 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
10680 | fi |
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
10686 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
10687 | { echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5 |
10688 | echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10689 | if test -x $with_build_time_tools/ranlib; then |
10690 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
10691 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
11a67599 ZW |
10692 | { echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
10693 | echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 10694 | else |
11a67599 ZW |
10695 | { echo "$as_me:$LINENO: result: no" >&5 |
10696 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 10697 | fi |
e8b05380 PB |
10698 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10699 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
10700 | test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET= | |
10701 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
10702 | fi | |
10703 | fi | |
3e19841a | 10704 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10705 | # Extract the first word of "ranlib", so it can be a program name with args. |
10706 | set dummy ranlib; ac_word=$2 | |
11a67599 ZW |
10707 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10709 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then |
10710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10711 | else |
1c710c3c DJ |
10712 | case $RANLIB_FOR_TARGET in |
10713 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10714 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
10715 | ;; | |
e8b05380 | 10716 | *) |
1c710c3c DJ |
10717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10718 | for as_dir in $gcc_cv_tool_dirs | |
10719 | do | |
10720 | IFS=$as_save_IFS | |
10721 | test -z "$as_dir" && as_dir=. | |
10722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10724 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10726 | break 2 | |
10727 | fi | |
10728 | done | |
10729 | done | |
11a67599 | 10730 | IFS=$as_save_IFS |
1c710c3c | 10731 | |
e8b05380 PB |
10732 | ;; |
10733 | esac | |
10734 | fi | |
1c710c3c | 10735 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 10736 | if test -n "$RANLIB_FOR_TARGET"; then |
11a67599 ZW |
10737 | { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10738 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 10739 | else |
11a67599 ZW |
10740 | { echo "$as_me:$LINENO: result: no" >&5 |
10741 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10742 | fi |
10743 | ||
11a67599 | 10744 | |
e8b05380 PB |
10745 | fi |
10746 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
10747 | |
10748 | ||
10749 | if test -n "$RANLIB_FOR_TARGET"; then | |
10750 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
10751 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10752 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
10753 | fi | |
10754 | ||
10755 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10756 | for ncn_progname in ranlib; do | |
10757 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10758 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
10759 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
10761 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10763 | else | |
10764 | if test -n "$RANLIB_FOR_TARGET"; then | |
10765 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
10766 | else | |
10767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10768 | for as_dir in $PATH | |
10769 | do | |
10770 | IFS=$as_save_IFS | |
10771 | test -z "$as_dir" && as_dir=. | |
10772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
10774 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
10775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10776 | break 2 | |
10777 | fi | |
10778 | done | |
10779 | done | |
11a67599 | 10780 | IFS=$as_save_IFS |
278a7a38 AO |
10781 | |
10782 | fi | |
10783 | fi | |
10784 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
10785 | if test -n "$RANLIB_FOR_TARGET"; then | |
11a67599 ZW |
10786 | { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10787 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 10788 | else |
11a67599 ZW |
10789 | { echo "$as_me:$LINENO: result: no" >&5 |
10790 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
10791 | fi |
10792 | ||
11a67599 | 10793 | |
278a7a38 AO |
10794 | done |
10795 | fi | |
10796 | ||
10797 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10798 | for ncn_progname in ranlib; do |
11a67599 ZW |
10799 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10800 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10801 | if test -x $with_build_time_tools/${ncn_progname}; then |
10802 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
10803 | { echo "$as_me:$LINENO: result: yes" >&5 |
10804 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
10805 | break |
10806 | else | |
11a67599 ZW |
10807 | { echo "$as_me:$LINENO: result: no" >&5 |
10808 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10809 | fi |
10810 | done | |
10811 | fi | |
10812 | ||
10813 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10814 | for ncn_progname in ranlib; do | |
10815 | if test -n "$ncn_target_tool_prefix"; then | |
10816 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 10817 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10818 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10820 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10822 | else |
4de997d1 PB |
10823 | if test -n "$RANLIB_FOR_TARGET"; then |
10824 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10825 | else |
1c710c3c DJ |
10826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10827 | for as_dir in $PATH | |
10828 | do | |
10829 | IFS=$as_save_IFS | |
10830 | test -z "$as_dir" && as_dir=. | |
10831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10833 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10835 | break 2 | |
10836 | fi | |
10837 | done | |
10838 | done | |
11a67599 | 10839 | IFS=$as_save_IFS |
1c710c3c | 10840 | |
ca9f4b81 AO |
10841 | fi |
10842 | fi | |
1c710c3c | 10843 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 10844 | if test -n "$RANLIB_FOR_TARGET"; then |
11a67599 ZW |
10845 | { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10846 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 10847 | else |
11a67599 ZW |
10848 | { echo "$as_me:$LINENO: result: no" >&5 |
10849 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
10850 | fi |
10851 | ||
11a67599 | 10852 | |
e8b05380 PB |
10853 | fi |
10854 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
10855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10856 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
10857 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10859 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10861 | else |
2693c0b0 PB |
10862 | if test -n "$RANLIB_FOR_TARGET"; then |
10863 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10864 | else |
1c710c3c DJ |
10865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10866 | for as_dir in $PATH | |
10867 | do | |
10868 | IFS=$as_save_IFS | |
10869 | test -z "$as_dir" && as_dir=. | |
10870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10872 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
10873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10874 | break 2 | |
10875 | fi | |
10876 | done | |
10877 | done | |
11a67599 | 10878 | IFS=$as_save_IFS |
1c710c3c | 10879 | |
ca9f4b81 AO |
10880 | fi |
10881 | fi | |
1c710c3c | 10882 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 10883 | if test -n "$RANLIB_FOR_TARGET"; then |
11a67599 ZW |
10884 | { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10885 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 10886 | else |
11a67599 ZW |
10887 | { echo "$as_me:$LINENO: result: no" >&5 |
10888 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 10889 | fi |
1c710c3c | 10890 | |
11a67599 | 10891 | |
e8b05380 PB |
10892 | fi |
10893 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
10894 | done | |
10895 | fi | |
1c710c3c | 10896 | |
e8b05380 PB |
10897 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
10898 | set dummy ranlib | |
10899 | if test $build = $target ; then | |
10900 | RANLIB_FOR_TARGET="$2" | |
10901 | else | |
10902 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 10903 | fi |
e8b05380 | 10904 | fi |
2693c0b0 | 10905 | |
d1f8db0c PB |
10906 | else |
10907 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
10908 | fi |
10909 | ||
e8b05380 PB |
10910 | |
10911 | ||
10912 | ||
10913 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
10914 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
10915 | { echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5 |
10916 | echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
10917 | if test -x $with_build_time_tools/strip; then |
10918 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
10919 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
11a67599 ZW |
10920 | { echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
10921 | echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 10922 | else |
11a67599 ZW |
10923 | { echo "$as_me:$LINENO: result: no" >&5 |
10924 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 10925 | fi |
e8b05380 PB |
10926 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10927 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
10928 | test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET= | |
10929 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
10930 | fi | |
10931 | fi | |
3e19841a | 10932 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10933 | # Extract the first word of "strip", so it can be a program name with args. |
10934 | set dummy strip; ac_word=$2 | |
11a67599 ZW |
10935 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
10937 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then |
10938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10939 | else |
1c710c3c DJ |
10940 | case $STRIP_FOR_TARGET in |
10941 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10942 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
10943 | ;; | |
e8b05380 | 10944 | *) |
1c710c3c DJ |
10945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10946 | for as_dir in $gcc_cv_tool_dirs | |
10947 | do | |
10948 | IFS=$as_save_IFS | |
10949 | test -z "$as_dir" && as_dir=. | |
10950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 10951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
10952 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10954 | break 2 | |
10955 | fi | |
10956 | done | |
10957 | done | |
11a67599 | 10958 | IFS=$as_save_IFS |
1c710c3c | 10959 | |
e8b05380 PB |
10960 | ;; |
10961 | esac | |
10962 | fi | |
1c710c3c | 10963 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 10964 | if test -n "$STRIP_FOR_TARGET"; then |
11a67599 ZW |
10965 | { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
10966 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 10967 | else |
11a67599 ZW |
10968 | { echo "$as_me:$LINENO: result: no" >&5 |
10969 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
10970 | fi |
10971 | ||
11a67599 | 10972 | |
e8b05380 PB |
10973 | fi |
10974 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
10975 | |
10976 | ||
10977 | if test -n "$STRIP_FOR_TARGET"; then | |
10978 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
10979 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
10980 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
10981 | fi | |
10982 | ||
10983 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
10984 | for ncn_progname in strip; do | |
10985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10986 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
10987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
10989 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
10990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10991 | else | |
10992 | if test -n "$STRIP_FOR_TARGET"; then | |
10993 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
10994 | else | |
10995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10996 | for as_dir in $PATH | |
10997 | do | |
10998 | IFS=$as_save_IFS | |
10999 | test -z "$as_dir" && as_dir=. | |
11000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 11001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
11002 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
11003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11004 | break 2 | |
11005 | fi | |
11006 | done | |
11007 | done | |
11a67599 | 11008 | IFS=$as_save_IFS |
278a7a38 AO |
11009 | |
11010 | fi | |
11011 | fi | |
11012 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
11013 | if test -n "$STRIP_FOR_TARGET"; then | |
11a67599 ZW |
11014 | { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
11015 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 11016 | else |
11a67599 ZW |
11017 | { echo "$as_me:$LINENO: result: no" >&5 |
11018 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
11019 | fi |
11020 | ||
11a67599 | 11021 | |
278a7a38 AO |
11022 | done |
11023 | fi | |
11024 | ||
11025 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11026 | for ncn_progname in strip; do |
11a67599 ZW |
11027 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11028 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
11029 | if test -x $with_build_time_tools/${ncn_progname}; then |
11030 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
11031 | { echo "$as_me:$LINENO: result: yes" >&5 |
11032 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
11033 | break |
11034 | else | |
11a67599 ZW |
11035 | { echo "$as_me:$LINENO: result: no" >&5 |
11036 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
11037 | fi |
11038 | done | |
11039 | fi | |
11040 | ||
11041 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
11042 | for ncn_progname in strip; do | |
11043 | if test -n "$ncn_target_tool_prefix"; then | |
11044 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11045 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
11046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
11048 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
11049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af71363e AS |
11050 | else |
11051 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
11052 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
11053 | else | |
11054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11055 | for as_dir in $PATH | |
11056 | do | |
11057 | IFS=$as_save_IFS | |
11058 | test -z "$as_dir" && as_dir=. | |
11059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 11060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
11061 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11063 | break 2 | |
11064 | fi | |
11065 | done | |
11066 | done | |
11a67599 | 11067 | IFS=$as_save_IFS |
1c710c3c | 11068 | |
040b1c5a GK |
11069 | fi |
11070 | fi | |
1c710c3c | 11071 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 11072 | if test -n "$STRIP_FOR_TARGET"; then |
11a67599 ZW |
11073 | { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
11074 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 11075 | else |
11a67599 ZW |
11076 | { echo "$as_me:$LINENO: result: no" >&5 |
11077 | echo "${ECHO_T}no" >&6; } | |
040b1c5a GK |
11078 | fi |
11079 | ||
11a67599 | 11080 | |
e8b05380 PB |
11081 | fi |
11082 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
11083 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11084 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
11085 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
11087 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
11088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
11089 | else |
11090 | if test -n "$STRIP_FOR_TARGET"; then | |
11091 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
11092 | else | |
1c710c3c DJ |
11093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11094 | for as_dir in $PATH | |
11095 | do | |
11096 | IFS=$as_save_IFS | |
11097 | test -z "$as_dir" && as_dir=. | |
11098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 11099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
11100 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
11101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11102 | break 2 | |
11103 | fi | |
11104 | done | |
11105 | done | |
11a67599 | 11106 | IFS=$as_save_IFS |
1c710c3c | 11107 | |
040b1c5a GK |
11108 | fi |
11109 | fi | |
1c710c3c | 11110 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 11111 | if test -n "$STRIP_FOR_TARGET"; then |
11a67599 ZW |
11112 | { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
11113 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 11114 | else |
11a67599 ZW |
11115 | { echo "$as_me:$LINENO: result: no" >&5 |
11116 | echo "${ECHO_T}no" >&6; } | |
040b1c5a | 11117 | fi |
1c710c3c | 11118 | |
11a67599 | 11119 | |
e8b05380 PB |
11120 | fi |
11121 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
11122 | done | |
11123 | fi | |
1c710c3c | 11124 | |
040b1c5a GK |
11125 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
11126 | set dummy strip | |
11127 | if test $build = $target ; then | |
11128 | STRIP_FOR_TARGET="$2" | |
11129 | else | |
11130 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11131 | fi | |
11132 | fi | |
11133 | ||
d1f8db0c PB |
11134 | else |
11135 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
11136 | fi |
11137 | ||
11138 | ||
11139 | ||
11140 | ||
11141 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
11142 | if test -n "$with_build_time_tools"; then | |
11a67599 ZW |
11143 | { echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5 |
11144 | echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
11145 | if test -x $with_build_time_tools/windres; then |
11146 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
11147 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
11a67599 ZW |
11148 | { echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
11149 | echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 11150 | else |
11a67599 ZW |
11151 | { echo "$as_me:$LINENO: result: no" >&5 |
11152 | echo "${ECHO_T}no" >&6; } | |
d1f8db0c | 11153 | fi |
e8b05380 PB |
11154 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11155 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
11156 | test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET= | |
11157 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
11158 | fi | |
11159 | fi | |
3e19841a | 11160 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11161 | # Extract the first word of "windres", so it can be a program name with args. |
11162 | set dummy windres; ac_word=$2 | |
11a67599 ZW |
11163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
11165 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then |
11166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 11167 | else |
1c710c3c DJ |
11168 | case $WINDRES_FOR_TARGET in |
11169 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11170 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
11171 | ;; | |
e8b05380 | 11172 | *) |
1c710c3c DJ |
11173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11174 | for as_dir in $gcc_cv_tool_dirs | |
11175 | do | |
11176 | IFS=$as_save_IFS | |
11177 | test -z "$as_dir" && as_dir=. | |
11178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 11179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
11180 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
11181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11182 | break 2 | |
11183 | fi | |
11184 | done | |
11185 | done | |
11a67599 | 11186 | IFS=$as_save_IFS |
1c710c3c | 11187 | |
e8b05380 PB |
11188 | ;; |
11189 | esac | |
11190 | fi | |
1c710c3c | 11191 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 11192 | if test -n "$WINDRES_FOR_TARGET"; then |
11a67599 ZW |
11193 | { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11194 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 11195 | else |
11a67599 ZW |
11196 | { echo "$as_me:$LINENO: result: no" >&5 |
11197 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
11198 | fi |
11199 | ||
11a67599 | 11200 | |
e8b05380 PB |
11201 | fi |
11202 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
11203 | |
11204 | ||
11205 | if test -n "$WINDRES_FOR_TARGET"; then | |
11206 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
11207 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
11208 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
11209 | fi | |
11210 | ||
11211 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
11212 | for ncn_progname in windres; do | |
11213 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11214 | set dummy ${ncn_progname}; ac_word=$2 | |
11a67599 ZW |
11215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
278a7a38 AO |
11217 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
11218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11219 | else | |
11220 | if test -n "$WINDRES_FOR_TARGET"; then | |
11221 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
11222 | else | |
11223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11224 | for as_dir in $PATH | |
11225 | do | |
11226 | IFS=$as_save_IFS | |
11227 | test -z "$as_dir" && as_dir=. | |
11228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 11229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
278a7a38 AO |
11230 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
11231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11232 | break 2 | |
11233 | fi | |
11234 | done | |
11235 | done | |
11a67599 | 11236 | IFS=$as_save_IFS |
278a7a38 AO |
11237 | |
11238 | fi | |
11239 | fi | |
11240 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
11241 | if test -n "$WINDRES_FOR_TARGET"; then | |
11a67599 ZW |
11242 | { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11243 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 11244 | else |
11a67599 ZW |
11245 | { echo "$as_me:$LINENO: result: no" >&5 |
11246 | echo "${ECHO_T}no" >&6; } | |
278a7a38 AO |
11247 | fi |
11248 | ||
11a67599 | 11249 | |
278a7a38 AO |
11250 | done |
11251 | fi | |
11252 | ||
11253 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11254 | for ncn_progname in windres; do |
11a67599 ZW |
11255 | { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11256 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; } | |
d1f8db0c PB |
11257 | if test -x $with_build_time_tools/${ncn_progname}; then |
11258 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11a67599 ZW |
11259 | { echo "$as_me:$LINENO: result: yes" >&5 |
11260 | echo "${ECHO_T}yes" >&6; } | |
e8b05380 PB |
11261 | break |
11262 | else | |
11a67599 ZW |
11263 | { echo "$as_me:$LINENO: result: no" >&5 |
11264 | echo "${ECHO_T}no" >&6; } | |
e8b05380 PB |
11265 | fi |
11266 | done | |
11267 | fi | |
11268 | ||
11269 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
11270 | for ncn_progname in windres; do | |
11271 | if test -n "$ncn_target_tool_prefix"; then | |
11272 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11273 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
11a67599 ZW |
11274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
11276 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 11278 | else |
4de997d1 PB |
11279 | if test -n "$WINDRES_FOR_TARGET"; then |
11280 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11281 | else |
1c710c3c DJ |
11282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11283 | for as_dir in $PATH | |
11284 | do | |
11285 | IFS=$as_save_IFS | |
11286 | test -z "$as_dir" && as_dir=. | |
11287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 11288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
11289 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11291 | break 2 | |
11292 | fi | |
11293 | done | |
11294 | done | |
11a67599 | 11295 | IFS=$as_save_IFS |
1c710c3c | 11296 | |
ca9f4b81 AO |
11297 | fi |
11298 | fi | |
1c710c3c | 11299 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 11300 | if test -n "$WINDRES_FOR_TARGET"; then |
11a67599 ZW |
11301 | { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11302 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 11303 | else |
11a67599 ZW |
11304 | { echo "$as_me:$LINENO: result: no" >&5 |
11305 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 AO |
11306 | fi |
11307 | ||
11a67599 | 11308 | |
e8b05380 PB |
11309 | fi |
11310 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
11311 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11312 | set dummy ${ncn_progname}; ac_word=$2 |
11a67599 ZW |
11313 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1c710c3c DJ |
11315 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
11316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 11317 | else |
2693c0b0 PB |
11318 | if test -n "$WINDRES_FOR_TARGET"; then |
11319 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11320 | else |
1c710c3c DJ |
11321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11322 | for as_dir in $PATH | |
11323 | do | |
11324 | IFS=$as_save_IFS | |
11325 | test -z "$as_dir" && as_dir=. | |
11326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11a67599 | 11327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1c710c3c DJ |
11328 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
11329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11330 | break 2 | |
11331 | fi | |
11332 | done | |
11333 | done | |
11a67599 | 11334 | IFS=$as_save_IFS |
1c710c3c | 11335 | |
ca9f4b81 AO |
11336 | fi |
11337 | fi | |
1c710c3c | 11338 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 11339 | if test -n "$WINDRES_FOR_TARGET"; then |
11a67599 ZW |
11340 | { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11341 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 11342 | else |
11a67599 ZW |
11343 | { echo "$as_me:$LINENO: result: no" >&5 |
11344 | echo "${ECHO_T}no" >&6; } | |
ca9f4b81 | 11345 | fi |
1c710c3c | 11346 | |
11a67599 | 11347 | |
e8b05380 PB |
11348 | fi |
11349 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
11350 | done | |
11351 | fi | |
1c710c3c | 11352 | |
2693c0b0 PB |
11353 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
11354 | set dummy windres | |
11355 | if test $build = $target ; then | |
11356 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 11357 | else |
2693c0b0 | 11358 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11359 | fi |
ca9f4b81 AO |
11360 | fi |
11361 | ||
d1f8db0c PB |
11362 | else |
11363 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
11364 | fi |
11365 | ||
4977bab6 | 11366 | |
2abefe3d PB |
11367 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
11368 | ||
11a67599 ZW |
11369 | { echo "$as_me:$LINENO: checking where to find the target ar" >&5 |
11370 | echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6; } | |
2abefe3d | 11371 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11372 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
11373 | # We already found the complete path | |
172e41aa | 11374 | ac_dir=`dirname $AR_FOR_TARGET` |
11a67599 ZW |
11375 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11376 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11377 | else |
11378 | # Canadian cross, just use what we found | |
11a67599 ZW |
11379 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11380 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11381 | fi |
2abefe3d PB |
11382 | else |
11383 | ok=yes | |
11384 | case " ${configdirs} " in | |
11385 | *" binutils "*) ;; | |
11386 | *) ok=no ;; | |
11387 | esac | |
1c710c3c | 11388 | |
2abefe3d PB |
11389 | if test $ok = yes; then |
11390 | # An in-tree tool is available and we can use it | |
11391 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
11a67599 ZW |
11392 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11393 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11394 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
11395 | # We already found the complete path | |
172e41aa | 11396 | ac_dir=`dirname $AR_FOR_TARGET` |
11a67599 ZW |
11397 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11398 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11399 | elif test "x$target" = "x$host"; then |
11400 | # We can use an host tool | |
11401 | AR_FOR_TARGET='$(AR)' | |
11a67599 ZW |
11402 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11403 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11404 | else |
11405 | # We need a cross tool | |
11a67599 ZW |
11406 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11407 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11408 | fi |
11409 | fi | |
0b0dc272 | 11410 | |
11a67599 ZW |
11411 | { echo "$as_me:$LINENO: checking where to find the target as" >&5 |
11412 | echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6; } | |
2abefe3d | 11413 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11414 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
11415 | # We already found the complete path | |
172e41aa | 11416 | ac_dir=`dirname $AS_FOR_TARGET` |
11a67599 ZW |
11417 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11418 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11419 | else |
11420 | # Canadian cross, just use what we found | |
11a67599 ZW |
11421 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11422 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11423 | fi |
2abefe3d PB |
11424 | else |
11425 | ok=yes | |
11426 | case " ${configdirs} " in | |
11427 | *" gas "*) ;; | |
11428 | *) ok=no ;; | |
11429 | esac | |
1c710c3c | 11430 | |
2abefe3d PB |
11431 | if test $ok = yes; then |
11432 | # An in-tree tool is available and we can use it | |
11433 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
11a67599 ZW |
11434 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11435 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11436 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
11437 | # We already found the complete path | |
172e41aa | 11438 | ac_dir=`dirname $AS_FOR_TARGET` |
11a67599 ZW |
11439 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11440 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11441 | elif test "x$target" = "x$host"; then |
11442 | # We can use an host tool | |
11443 | AS_FOR_TARGET='$(AS)' | |
11a67599 ZW |
11444 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11445 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11446 | else |
11447 | # We need a cross tool | |
11a67599 ZW |
11448 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11449 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11450 | fi |
11451 | fi | |
0b0dc272 | 11452 | |
11a67599 ZW |
11453 | { echo "$as_me:$LINENO: checking where to find the target cc" >&5 |
11454 | echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6; } | |
2abefe3d | 11455 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11456 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
11457 | # We already found the complete path | |
172e41aa | 11458 | ac_dir=`dirname $CC_FOR_TARGET` |
11a67599 ZW |
11459 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11460 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11461 | else |
11462 | # Canadian cross, just use what we found | |
11a67599 ZW |
11463 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11464 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11465 | fi |
2abefe3d PB |
11466 | else |
11467 | ok=yes | |
11468 | case " ${configdirs} " in | |
11469 | *" gcc "*) ;; | |
11470 | *) ok=no ;; | |
11471 | esac | |
1c710c3c | 11472 | |
2abefe3d PB |
11473 | if test $ok = yes; then |
11474 | # An in-tree tool is available and we can use it | |
11475 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
11a67599 ZW |
11476 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11477 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11478 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
11479 | # We already found the complete path | |
172e41aa | 11480 | ac_dir=`dirname $CC_FOR_TARGET` |
11a67599 ZW |
11481 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11482 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11483 | elif test "x$target" = "x$host"; then |
11484 | # We can use an host tool | |
11485 | CC_FOR_TARGET='$(CC)' | |
11a67599 ZW |
11486 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11487 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11488 | else |
11489 | # We need a cross tool | |
11a67599 ZW |
11490 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11491 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11492 | fi |
11493 | fi | |
0b0dc272 | 11494 | |
11a67599 ZW |
11495 | { echo "$as_me:$LINENO: checking where to find the target c++" >&5 |
11496 | echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6; } | |
2abefe3d | 11497 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11498 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
11499 | # We already found the complete path | |
172e41aa | 11500 | ac_dir=`dirname $CXX_FOR_TARGET` |
11a67599 ZW |
11501 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11502 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11503 | else |
11504 | # Canadian cross, just use what we found | |
11a67599 ZW |
11505 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11506 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11507 | fi |
2abefe3d PB |
11508 | else |
11509 | ok=yes | |
11510 | case " ${configdirs} " in | |
11511 | *" gcc "*) ;; | |
11512 | *) ok=no ;; | |
11513 | esac | |
11514 | case ,${enable_languages}, in | |
11515 | *,c++,*) ;; | |
11516 | *) ok=no ;; | |
11517 | esac | |
11518 | if test $ok = yes; then | |
11519 | # An in-tree tool is available and we can use it | |
11520 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' | |
11a67599 ZW |
11521 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11522 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11523 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
11524 | # We already found the complete path | |
172e41aa | 11525 | ac_dir=`dirname $CXX_FOR_TARGET` |
11a67599 ZW |
11526 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11527 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11528 | elif test "x$target" = "x$host"; then |
11529 | # We can use an host tool | |
11530 | CXX_FOR_TARGET='$(CXX)' | |
11a67599 ZW |
11531 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11532 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11533 | else |
11534 | # We need a cross tool | |
11a67599 ZW |
11535 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11536 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11537 | fi |
11538 | fi | |
0b0dc272 | 11539 | |
11a67599 ZW |
11540 | { echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5 |
11541 | echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6; } | |
2abefe3d | 11542 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11543 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
11544 | # We already found the complete path | |
172e41aa | 11545 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
11a67599 ZW |
11546 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11547 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11548 | else |
11549 | # Canadian cross, just use what we found | |
11a67599 ZW |
11550 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11551 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11552 | fi |
2abefe3d PB |
11553 | else |
11554 | ok=yes | |
11555 | case " ${configdirs} " in | |
11556 | *" gcc "*) ;; | |
11557 | *) ok=no ;; | |
11558 | esac | |
11559 | case ,${enable_languages}, in | |
11560 | *,c++,*) ;; | |
11561 | *) ok=no ;; | |
11562 | esac | |
11563 | if test $ok = yes; then | |
11564 | # An in-tree tool is available and we can use it | |
11565 | 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' | |
11a67599 ZW |
11566 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11567 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11568 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
11569 | # We already found the complete path | |
172e41aa | 11570 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
11a67599 ZW |
11571 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11572 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11573 | elif test "x$target" = "x$host"; then |
11574 | # We can use an host tool | |
11575 | RAW_CXX_FOR_TARGET='$(CXX)' | |
11a67599 ZW |
11576 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11577 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11578 | else |
11579 | # We need a cross tool | |
11a67599 ZW |
11580 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11581 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11582 | fi |
11583 | fi | |
0b0dc272 | 11584 | |
11a67599 ZW |
11585 | { echo "$as_me:$LINENO: checking where to find the target dlltool" >&5 |
11586 | echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6; } | |
2abefe3d | 11587 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11588 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
11589 | # We already found the complete path | |
172e41aa | 11590 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
11a67599 ZW |
11591 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11592 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11593 | else |
11594 | # Canadian cross, just use what we found | |
11a67599 ZW |
11595 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11596 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11597 | fi |
2abefe3d PB |
11598 | else |
11599 | ok=yes | |
11600 | case " ${configdirs} " in | |
11601 | *" binutils "*) ;; | |
11602 | *) ok=no ;; | |
11603 | esac | |
1c710c3c | 11604 | |
2abefe3d PB |
11605 | if test $ok = yes; then |
11606 | # An in-tree tool is available and we can use it | |
11607 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
11a67599 ZW |
11608 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11609 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11610 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
11611 | # We already found the complete path | |
172e41aa | 11612 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
11a67599 ZW |
11613 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11614 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11615 | elif test "x$target" = "x$host"; then |
11616 | # We can use an host tool | |
11617 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
11a67599 ZW |
11618 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11619 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11620 | else |
11621 | # We need a cross tool | |
11a67599 ZW |
11622 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11623 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11624 | fi |
11625 | fi | |
0b0dc272 | 11626 | |
11a67599 ZW |
11627 | { echo "$as_me:$LINENO: checking where to find the target gcc" >&5 |
11628 | echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6; } | |
2abefe3d | 11629 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11630 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
11631 | # We already found the complete path | |
172e41aa | 11632 | ac_dir=`dirname $GCC_FOR_TARGET` |
11a67599 ZW |
11633 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11634 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11635 | else |
11636 | # Canadian cross, just use what we found | |
11a67599 ZW |
11637 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11638 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11639 | fi |
2abefe3d PB |
11640 | else |
11641 | ok=yes | |
11642 | case " ${configdirs} " in | |
11643 | *" gcc "*) ;; | |
11644 | *) ok=no ;; | |
11645 | esac | |
1c710c3c | 11646 | |
2abefe3d PB |
11647 | if test $ok = yes; then |
11648 | # An in-tree tool is available and we can use it | |
11649 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
11a67599 ZW |
11650 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11651 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11652 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
11653 | # We already found the complete path | |
172e41aa | 11654 | ac_dir=`dirname $GCC_FOR_TARGET` |
11a67599 ZW |
11655 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11656 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11657 | elif test "x$target" = "x$host"; then |
11658 | # We can use an host tool | |
11659 | GCC_FOR_TARGET='$()' | |
11a67599 ZW |
11660 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11661 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11662 | else |
11663 | # We need a cross tool | |
11a67599 ZW |
11664 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11665 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11666 | fi |
11667 | fi | |
0b0dc272 | 11668 | |
11a67599 ZW |
11669 | { echo "$as_me:$LINENO: checking where to find the target gcj" >&5 |
11670 | echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6; } | |
2abefe3d | 11671 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11672 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
11673 | # We already found the complete path | |
172e41aa | 11674 | ac_dir=`dirname $GCJ_FOR_TARGET` |
11a67599 ZW |
11675 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11676 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11677 | else |
11678 | # Canadian cross, just use what we found | |
11a67599 ZW |
11679 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11680 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11681 | fi |
2abefe3d PB |
11682 | else |
11683 | ok=yes | |
11684 | case " ${configdirs} " in | |
11685 | *" gcc "*) ;; | |
11686 | *) ok=no ;; | |
11687 | esac | |
11688 | case ,${enable_languages}, in | |
11689 | *,java,*) ;; | |
11690 | *) ok=no ;; | |
11691 | esac | |
11692 | if test $ok = yes; then | |
11693 | # An in-tree tool is available and we can use it | |
11694 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
11a67599 ZW |
11695 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11696 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11697 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
11698 | # We already found the complete path | |
172e41aa | 11699 | ac_dir=`dirname $GCJ_FOR_TARGET` |
11a67599 ZW |
11700 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11701 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11702 | elif test "x$target" = "x$host"; then |
11703 | # We can use an host tool | |
11704 | GCJ_FOR_TARGET='$(GCJ)' | |
11a67599 ZW |
11705 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11706 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11707 | else |
11708 | # We need a cross tool | |
11a67599 ZW |
11709 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11710 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11711 | fi |
11712 | fi | |
0b0dc272 | 11713 | |
11a67599 ZW |
11714 | { echo "$as_me:$LINENO: checking where to find the target gfortran" >&5 |
11715 | echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6; } | |
2abefe3d | 11716 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11717 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
11718 | # We already found the complete path | |
172e41aa | 11719 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
11a67599 ZW |
11720 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11721 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11722 | else |
11723 | # Canadian cross, just use what we found | |
11a67599 ZW |
11724 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11725 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11726 | fi |
2abefe3d PB |
11727 | else |
11728 | ok=yes | |
11729 | case " ${configdirs} " in | |
11730 | *" gcc "*) ;; | |
11731 | *) ok=no ;; | |
11732 | esac | |
11733 | case ,${enable_languages}, in | |
11734 | *,fortran,*) ;; | |
11735 | *) ok=no ;; | |
11736 | esac | |
11737 | if test $ok = yes; then | |
11738 | # An in-tree tool is available and we can use it | |
11739 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
11a67599 ZW |
11740 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11741 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11742 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
11743 | # We already found the complete path | |
172e41aa | 11744 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
11a67599 ZW |
11745 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11746 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11747 | elif test "x$target" = "x$host"; then |
11748 | # We can use an host tool | |
11749 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
11a67599 ZW |
11750 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11751 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11752 | else |
11753 | # We need a cross tool | |
11a67599 ZW |
11754 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11755 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11756 | fi |
11757 | fi | |
0b0dc272 | 11758 | |
11a67599 ZW |
11759 | { echo "$as_me:$LINENO: checking where to find the target ld" >&5 |
11760 | echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6; } | |
2abefe3d | 11761 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11762 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
11763 | # We already found the complete path | |
172e41aa | 11764 | ac_dir=`dirname $LD_FOR_TARGET` |
11a67599 ZW |
11765 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11766 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11767 | else |
11768 | # Canadian cross, just use what we found | |
11a67599 ZW |
11769 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11770 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11771 | fi |
2abefe3d PB |
11772 | else |
11773 | ok=yes | |
11774 | case " ${configdirs} " in | |
11775 | *" ld "*) ;; | |
11776 | *) ok=no ;; | |
11777 | esac | |
1c710c3c | 11778 | |
2abefe3d PB |
11779 | if test $ok = yes; then |
11780 | # An in-tree tool is available and we can use it | |
11781 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
11a67599 ZW |
11782 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11783 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11784 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
11785 | # We already found the complete path | |
172e41aa | 11786 | ac_dir=`dirname $LD_FOR_TARGET` |
11a67599 ZW |
11787 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11788 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11789 | elif test "x$target" = "x$host"; then |
11790 | # We can use an host tool | |
11791 | LD_FOR_TARGET='$(LD)' | |
11a67599 ZW |
11792 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11793 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11794 | else |
11795 | # We need a cross tool | |
11a67599 ZW |
11796 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11797 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11798 | fi |
11799 | fi | |
0b0dc272 | 11800 | |
11a67599 ZW |
11801 | { echo "$as_me:$LINENO: checking where to find the target lipo" >&5 |
11802 | echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6; } | |
2abefe3d | 11803 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11804 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
11805 | # We already found the complete path | |
172e41aa | 11806 | ac_dir=`dirname $LIPO_FOR_TARGET` |
11a67599 ZW |
11807 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11808 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11809 | else |
11810 | # Canadian cross, just use what we found | |
11a67599 ZW |
11811 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11812 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11813 | fi |
2abefe3d | 11814 | else |
e8b05380 PB |
11815 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
11816 | # We already found the complete path | |
172e41aa | 11817 | ac_dir=`dirname $LIPO_FOR_TARGET` |
11a67599 ZW |
11818 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11819 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 | 11820 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
11821 | # We can use an host tool |
11822 | LIPO_FOR_TARGET='$(LIPO)' | |
11a67599 ZW |
11823 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11824 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11825 | else |
11826 | # We need a cross tool | |
11a67599 ZW |
11827 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11828 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11829 | fi |
11830 | fi | |
0b0dc272 | 11831 | |
11a67599 ZW |
11832 | { echo "$as_me:$LINENO: checking where to find the target nm" >&5 |
11833 | echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6; } | |
2abefe3d | 11834 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11835 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
11836 | # We already found the complete path | |
172e41aa | 11837 | ac_dir=`dirname $NM_FOR_TARGET` |
11a67599 ZW |
11838 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11839 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11840 | else |
11841 | # Canadian cross, just use what we found | |
11a67599 ZW |
11842 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11843 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11844 | fi |
2abefe3d PB |
11845 | else |
11846 | ok=yes | |
11847 | case " ${configdirs} " in | |
11848 | *" binutils "*) ;; | |
11849 | *) ok=no ;; | |
11850 | esac | |
1c710c3c | 11851 | |
2abefe3d PB |
11852 | if test $ok = yes; then |
11853 | # An in-tree tool is available and we can use it | |
11854 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
11a67599 ZW |
11855 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11856 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11857 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
11858 | # We already found the complete path | |
172e41aa | 11859 | ac_dir=`dirname $NM_FOR_TARGET` |
11a67599 ZW |
11860 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11861 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11862 | elif test "x$target" = "x$host"; then |
11863 | # We can use an host tool | |
11864 | NM_FOR_TARGET='$(NM)' | |
11a67599 ZW |
11865 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11866 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11867 | else |
11868 | # We need a cross tool | |
11a67599 ZW |
11869 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11870 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11871 | fi |
11872 | fi | |
0b0dc272 | 11873 | |
11a67599 ZW |
11874 | { echo "$as_me:$LINENO: checking where to find the target objdump" >&5 |
11875 | echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6; } | |
2abefe3d | 11876 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11877 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
11878 | # We already found the complete path | |
172e41aa | 11879 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
11a67599 ZW |
11880 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11881 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11882 | else |
11883 | # Canadian cross, just use what we found | |
11a67599 ZW |
11884 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11885 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11886 | fi |
2abefe3d PB |
11887 | else |
11888 | ok=yes | |
11889 | case " ${configdirs} " in | |
11890 | *" binutils "*) ;; | |
11891 | *) ok=no ;; | |
11892 | esac | |
1c710c3c | 11893 | |
2abefe3d PB |
11894 | if test $ok = yes; then |
11895 | # An in-tree tool is available and we can use it | |
11896 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
11a67599 ZW |
11897 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11898 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11899 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
11900 | # We already found the complete path | |
172e41aa | 11901 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
11a67599 ZW |
11902 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11903 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11904 | elif test "x$target" = "x$host"; then |
11905 | # We can use an host tool | |
11906 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
11a67599 ZW |
11907 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11908 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11909 | else |
11910 | # We need a cross tool | |
11a67599 ZW |
11911 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11912 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11913 | fi |
11914 | fi | |
0b0dc272 | 11915 | |
11a67599 ZW |
11916 | { echo "$as_me:$LINENO: checking where to find the target ranlib" >&5 |
11917 | echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6; } | |
2abefe3d | 11918 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11919 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
11920 | # We already found the complete path | |
172e41aa | 11921 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
11a67599 ZW |
11922 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11923 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11924 | else |
11925 | # Canadian cross, just use what we found | |
11a67599 ZW |
11926 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11927 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11928 | fi |
2abefe3d PB |
11929 | else |
11930 | ok=yes | |
11931 | case " ${configdirs} " in | |
11932 | *" binutils "*) ;; | |
11933 | *) ok=no ;; | |
11934 | esac | |
1c710c3c | 11935 | |
2abefe3d PB |
11936 | if test $ok = yes; then |
11937 | # An in-tree tool is available and we can use it | |
11938 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
11a67599 ZW |
11939 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11940 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11941 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
11942 | # We already found the complete path | |
172e41aa | 11943 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
11a67599 ZW |
11944 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11945 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11946 | elif test "x$target" = "x$host"; then |
11947 | # We can use an host tool | |
11948 | RANLIB_FOR_TARGET='$(RANLIB)' | |
11a67599 ZW |
11949 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11950 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11951 | else |
11952 | # We need a cross tool | |
11a67599 ZW |
11953 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11954 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11955 | fi |
11956 | fi | |
0b0dc272 | 11957 | |
11a67599 ZW |
11958 | { echo "$as_me:$LINENO: checking where to find the target strip" >&5 |
11959 | echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6; } | |
2abefe3d | 11960 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11961 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
11962 | # We already found the complete path | |
172e41aa | 11963 | ac_dir=`dirname $STRIP_FOR_TARGET` |
11a67599 ZW |
11964 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11965 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
11966 | else |
11967 | # Canadian cross, just use what we found | |
11a67599 ZW |
11968 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11969 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 11970 | fi |
2abefe3d PB |
11971 | else |
11972 | ok=yes | |
11973 | case " ${configdirs} " in | |
11974 | *" binutils "*) ;; | |
11975 | *) ok=no ;; | |
11976 | esac | |
1c710c3c | 11977 | |
2abefe3d PB |
11978 | if test $ok = yes; then |
11979 | # An in-tree tool is available and we can use it | |
11980 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip' | |
11a67599 ZW |
11981 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
11982 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
11983 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
11984 | # We already found the complete path | |
172e41aa | 11985 | ac_dir=`dirname $STRIP_FOR_TARGET` |
11a67599 ZW |
11986 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11987 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
11988 | elif test "x$target" = "x$host"; then |
11989 | # We can use an host tool | |
11990 | STRIP_FOR_TARGET='$(STRIP)' | |
11a67599 ZW |
11991 | { echo "$as_me:$LINENO: result: host tool" >&5 |
11992 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
11993 | else |
11994 | # We need a cross tool | |
11a67599 ZW |
11995 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
11996 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d PB |
11997 | fi |
11998 | fi | |
0b0dc272 | 11999 | |
11a67599 ZW |
12000 | { echo "$as_me:$LINENO: checking where to find the target windres" >&5 |
12001 | echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6; } | |
2abefe3d | 12002 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
12003 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
12004 | # We already found the complete path | |
172e41aa | 12005 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
11a67599 ZW |
12006 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12007 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
12008 | else |
12009 | # Canadian cross, just use what we found | |
11a67599 ZW |
12010 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
12011 | echo "${ECHO_T}pre-installed" >&6; } | |
e8b05380 | 12012 | fi |
2abefe3d PB |
12013 | else |
12014 | ok=yes | |
12015 | case " ${configdirs} " in | |
12016 | *" binutils "*) ;; | |
12017 | *) ok=no ;; | |
12018 | esac | |
1c710c3c | 12019 | |
2abefe3d PB |
12020 | if test $ok = yes; then |
12021 | # An in-tree tool is available and we can use it | |
12022 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
11a67599 ZW |
12023 | { echo "$as_me:$LINENO: result: just compiled" >&5 |
12024 | echo "${ECHO_T}just compiled" >&6; } | |
e8b05380 PB |
12025 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
12026 | # We already found the complete path | |
172e41aa | 12027 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
11a67599 ZW |
12028 | { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12029 | echo "${ECHO_T}pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
12030 | elif test "x$target" = "x$host"; then |
12031 | # We can use an host tool | |
12032 | WINDRES_FOR_TARGET='$(WINDRES)' | |
11a67599 ZW |
12033 | { echo "$as_me:$LINENO: result: host tool" >&5 |
12034 | echo "${ECHO_T}host tool" >&6; } | |
2abefe3d PB |
12035 | else |
12036 | # We need a cross tool | |
11a67599 ZW |
12037 | { echo "$as_me:$LINENO: result: pre-installed" >&5 |
12038 | echo "${ECHO_T}pre-installed" >&6; } | |
2abefe3d | 12039 | fi |
671aa708 | 12040 | fi |
be912515 NN |
12041 | |
12042 | ||
12043 | ||
2abefe3d | 12044 | |
0b0dc272 | 12045 | |
671aa708 NN |
12046 | # Certain tools may need extra flags. |
12047 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
12048 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
12049 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
12050 | ||
2abefe3d PB |
12051 | # When building target libraries, except in a Canadian cross, we use |
12052 | # the same toolchain as the compiler we just built. | |
12053 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
12054 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
12055 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
12056 | if test $host = $build; then | |
12057 | case " $configdirs " in | |
12058 | *" gcc "*) | |
12059 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
12060 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
12061 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
12062 | ;; | |
12063 | esac | |
12064 | fi | |
12065 | ||
12066 | ||
12067 | ||
12068 | ||
12069 | ||
11a67599 ZW |
12070 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
12071 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
12072 | # Check whether --enable-maintainer-mode was given. | |
ee03dc5e | 12073 | if test "${enable_maintainer_mode+set}" = set; then |
11a67599 | 12074 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
ee03dc5e AO |
12075 | else |
12076 | USE_MAINTAINER_MODE=no | |
11a67599 ZW |
12077 | fi |
12078 | ||
12079 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
12080 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
12081 | |
12082 | ||
12083 | if test "$USE_MAINTAINER_MODE" = yes; then | |
12084 | MAINTAINER_MODE_TRUE= | |
12085 | MAINTAINER_MODE_FALSE='#' | |
12086 | else | |
12087 | MAINTAINER_MODE_TRUE='#' | |
12088 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 12089 | fi |
ee03dc5e AO |
12090 | MAINT=$MAINTAINER_MODE_TRUE |
12091 | ||
2805b53a NN |
12092 | # --------------------- |
12093 | # GCC bootstrap support | |
12094 | # --------------------- | |
12095 | ||
12096 | # Stage specific cflags for build. | |
12097 | stage1_cflags="-g" | |
12098 | case $build in | |
12099 | vax-*-*) | |
12100 | case ${GCC} in | |
12101 | yes) stage1_cflags="-g -Wa,-J" ;; | |
12102 | *) stage1_cflags="-g -J" ;; | |
12103 | esac ;; | |
2805b53a NN |
12104 | esac |
12105 | ||
0b50988a EB |
12106 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
12107 | if test "$GCC" = yes; then | |
12108 | saved_CFLAGS="$CFLAGS" | |
12109 | ||
12110 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
12111 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
11a67599 ZW |
12112 | { echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5 |
12113 | echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6; } | |
1c710c3c DJ |
12114 | cat >conftest.$ac_ext <<_ACEOF |
12115 | /* confdefs.h. */ | |
12116 | _ACEOF | |
12117 | cat confdefs.h >>conftest.$ac_ext | |
12118 | cat >>conftest.$ac_ext <<_ACEOF | |
12119 | /* end confdefs.h. */ | |
12120 | ||
12121 | int | |
12122 | main () | |
12123 | { | |
12124 | ||
12125 | ; | |
12126 | return 0; | |
12127 | } | |
12128 | _ACEOF | |
12129 | rm -f conftest.$ac_objext | |
11a67599 ZW |
12130 | if { (ac_try="$ac_compile" |
12131 | case "(($ac_try" in | |
12132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12133 | *) ac_try_echo=$ac_try;; | |
12134 | esac | |
12135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12136 | (eval "$ac_compile") 2>conftest.er1 | |
1c710c3c DJ |
12137 | ac_status=$? |
12138 | grep -v '^ *+' conftest.er1 >conftest.err | |
12139 | rm -f conftest.er1 | |
12140 | cat conftest.err >&5 | |
12141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11a67599 ZW |
12142 | (exit $ac_status); } && { |
12143 | test -z "$ac_c_werror_flag" || | |
12144 | test ! -s conftest.err | |
12145 | } && test -s conftest.$ac_objext; then | |
12146 | { echo "$as_me:$LINENO: result: yes" >&5 | |
12147 | echo "${ECHO_T}yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
1c710c3c DJ |
12148 | else |
12149 | echo "$as_me: failed program was:" >&5 | |
12150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12151 | ||
11a67599 ZW |
12152 | { echo "$as_me:$LINENO: result: no" >&5 |
12153 | echo "${ECHO_T}no" >&6; } | |
1c710c3c | 12154 | fi |
11a67599 ZW |
12155 | |
12156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b50988a EB |
12157 | |
12158 | CFLAGS="$saved_CFLAGS" | |
12159 | fi | |
12160 | ||
12161 | ||
2805b53a | 12162 | |
8efea775 | 12163 | # Enable --enable-checking in stage1 of the compiler. |
11a67599 | 12164 | # Check whether --enable-stage1-checking was given. |
8efea775 | 12165 | if test "${enable_stage1_checking+set}" = set; then |
11a67599 | 12166 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} |
8efea775 PB |
12167 | else |
12168 | if test "x$enable_checking" = xno; then | |
12169 | stage1_checking=--enable-checking | |
12170 | else | |
12171 | stage1_checking=--enable-checking${enable_checking+=}$enable_checking | |
12172 | fi | |
11a67599 ZW |
12173 | fi |
12174 | ||
8efea775 PB |
12175 | |
12176 | ||
2805b53a | 12177 | # Enable -Werror in bootstrap stage2 and later. |
11a67599 | 12178 | # Check whether --enable-werror was given. |
2805b53a | 12179 | if test "${enable_werror+set}" = set; then |
11a67599 | 12180 | enableval=$enable_werror; |
2805b53a | 12181 | else |
416cfb5e | 12182 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 12183 | enable_werror=yes |
88fceb68 PB |
12184 | else |
12185 | enable_werror=no | |
12186 | fi | |
11a67599 ZW |
12187 | fi |
12188 | ||
09a9c095 NN |
12189 | case ${enable_werror} in |
12190 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
12191 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
12192 | esac |
12193 | ||
12194 | ||
32845532 | 12195 | # Flags needed to enable html installing and building |
1c710c3c | 12196 | |
11a67599 | 12197 | # Check whether --with-datarootdir was given. |
32845532 | 12198 | if test "${with_datarootdir+set}" = set; then |
11a67599 | 12199 | withval=$with_datarootdir; datarootdir="\${prefix}/${withval}" |
32845532 CD |
12200 | else |
12201 | datarootdir="\${prefix}/share" | |
11a67599 | 12202 | fi |
32845532 CD |
12203 | |
12204 | ||
11a67599 ZW |
12205 | |
12206 | # Check whether --with-docdir was given. | |
32845532 | 12207 | if test "${with_docdir+set}" = set; then |
11a67599 | 12208 | withval=$with_docdir; docdir="\${prefix}/${withval}" |
32845532 CD |
12209 | else |
12210 | docdir="\${datarootdir}/doc" | |
11a67599 ZW |
12211 | fi |
12212 | ||
32845532 CD |
12213 | |
12214 | ||
11a67599 | 12215 | # Check whether --with-pdfdir was given. |
9c4d2493 | 12216 | if test "${with_pdfdir+set}" = set; then |
11a67599 | 12217 | withval=$with_pdfdir; pdfdir="\${prefix}/${withval}" |
9c4d2493 BM |
12218 | else |
12219 | pdfdir="\${docdir}" | |
11a67599 ZW |
12220 | fi |
12221 | ||
9c4d2493 BM |
12222 | |
12223 | ||
11a67599 | 12224 | # Check whether --with-htmldir was given. |
32845532 | 12225 | if test "${with_htmldir+set}" = set; then |
11a67599 | 12226 | withval=$with_htmldir; htmldir="\${prefix}/${withval}" |
32845532 CD |
12227 | else |
12228 | htmldir="\${docdir}" | |
11a67599 | 12229 | fi |
32845532 CD |
12230 | |
12231 | ||
12232 | ||
12233 | ||
12234 | ||
172e41aa | 12235 | |
11a67599 ZW |
12236 | |
12237 | ac_config_files="$ac_config_files Makefile" | |
12238 | ||
1c710c3c | 12239 | cat >confcache <<\_ACEOF |
671aa708 NN |
12240 | # This file is a shell script that caches the results of configure |
12241 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
12242 | # scripts and configure runs, see configure's option --config-cache. |
12243 | # It is not useful on other systems. If it contains results you don't | |
12244 | # want to keep, you may remove or edit it. | |
671aa708 | 12245 | # |
1c710c3c DJ |
12246 | # config.status only pays attention to the cache file if you give it |
12247 | # the --recheck option to rerun configure. | |
671aa708 | 12248 | # |
1c710c3c DJ |
12249 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12250 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12251 | # following values. | |
12252 | ||
12253 | _ACEOF | |
12254 | ||
671aa708 NN |
12255 | # The following way of writing the cache mishandles newlines in values, |
12256 | # but we know of no workaround that is simple, portable, and efficient. | |
11a67599 | 12257 | # So, we kill variables containing newlines. |
671aa708 NN |
12258 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12259 | # and sets the high bit in the cache file unless we assign to the vars. | |
11a67599 ZW |
12260 | ( |
12261 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12262 | eval ac_val=\$$ac_var | |
12263 | case $ac_val in #( | |
12264 | *${as_nl}*) | |
12265 | case $ac_var in #( | |
12266 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
12267 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
12268 | esac | |
12269 | case $ac_var in #( | |
12270 | _ | IFS | as_nl) ;; #( | |
12271 | *) $as_unset $ac_var ;; | |
12272 | esac ;; | |
12273 | esac | |
12274 | done | |
12275 | ||
1c710c3c | 12276 | (set) 2>&1 | |
11a67599 ZW |
12277 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12278 | *${as_nl}ac_space=\ *) | |
1c710c3c DJ |
12279 | # `set' does not quote correctly, so add quotes (double-quote |
12280 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12281 | sed -n \ | |
12282 | "s/'/'\\\\''/g; | |
12283 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11a67599 | 12284 | ;; #( |
1c710c3c DJ |
12285 | *) |
12286 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11a67599 | 12287 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 12288 | ;; |
11a67599 ZW |
12289 | esac | |
12290 | sort | |
12291 | ) | | |
1c710c3c | 12292 | sed ' |
11a67599 | 12293 | /^ac_cv_env_/b end |
1c710c3c | 12294 | t clear |
11a67599 | 12295 | :clear |
1c710c3c DJ |
12296 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12297 | t end | |
11a67599 ZW |
12298 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12299 | :end' >>confcache | |
12300 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12301 | if test -w "$cache_file"; then | |
12302 | test "x$cache_file" != "x/dev/null" && | |
12303 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
12304 | echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 12305 | cat confcache >$cache_file |
671aa708 | 12306 | else |
11a67599 ZW |
12307 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12308 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 12309 | fi |
4977bab6 | 12310 | fi |
671aa708 | 12311 | rm -f confcache |
79c06341 | 12312 | |
671aa708 NN |
12313 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12314 | # Let make expand exec_prefix. | |
12315 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 12316 | |
671aa708 NN |
12317 | # Transform confdefs.h into DEFS. |
12318 | # Protect against shell expansion while executing Makefile rules. | |
12319 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
12320 | # |
12321 | # If the first sed substitution is executed (which looks for macros that | |
11a67599 | 12322 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 12323 | # look for a macro that doesn't take arguments. |
11a67599 | 12324 | ac_script=' |
1c710c3c | 12325 | t clear |
11a67599 ZW |
12326 | :clear |
12327 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 12328 | t quote |
11a67599 | 12329 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 12330 | t quote |
11a67599 ZW |
12331 | b any |
12332 | :quote | |
12333 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
12334 | s/\[/\\&/g | |
12335 | s/\]/\\&/g | |
12336 | s/\$/$$/g | |
12337 | H | |
12338 | :any | |
12339 | ${ | |
12340 | g | |
12341 | s/^\n// | |
12342 | s/\n/ /g | |
12343 | p | |
12344 | } | |
12345 | ' | |
12346 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
12347 | |
12348 | ||
12349 | ac_libobjs= | |
12350 | ac_ltlibobjs= | |
12351 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12352 | # 1. Remove the extension, and $U if already installed. | |
11a67599 ZW |
12353 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12354 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
12355 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12356 | # will be set to the directory where LIBOBJS objects are built. | |
12357 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12358 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
12359 | done |
12360 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 12361 | |
1c710c3c | 12362 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 12363 | |
af71363e | 12364 | |
1c710c3c DJ |
12365 | |
12366 | : ${CONFIG_STATUS=./config.status} | |
12367 | ac_clean_files_save=$ac_clean_files | |
12368 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12369 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
12370 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12371 | cat >$CONFIG_STATUS <<_ACEOF | |
12372 | #! $SHELL | |
12373 | # Generated by $as_me. | |
671aa708 | 12374 | # Run this file to recreate the current configuration. |
671aa708 | 12375 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 12376 | # configure, is in config.log if it exists. |
0b0dc272 | 12377 | |
1c710c3c DJ |
12378 | debug=false |
12379 | ac_cs_recheck=false | |
12380 | ac_cs_silent=false | |
12381 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12382 | _ACEOF | |
12383 | ||
12384 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12385 | ## --------------------- ## | |
12386 | ## M4sh Initialization. ## | |
12387 | ## --------------------- ## | |
12388 | ||
11a67599 ZW |
12389 | # Be more Bourne compatible |
12390 | DUALCASE=1; export DUALCASE # for MKS sh | |
1c710c3c DJ |
12391 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12392 | emulate sh | |
12393 | NULLCMD=: | |
12394 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12395 | # is contrary to our usage. Disable this feature. | |
12396 | alias -g '${1+"$@"}'='"$@"' | |
11a67599 ZW |
12397 | setopt NO_GLOB_SUBST |
12398 | else | |
12399 | case `(set -o) 2>/dev/null` in | |
12400 | *posix*) set -o posix ;; | |
12401 | esac | |
12402 | ||
12403 | fi | |
12404 | ||
12405 | ||
12406 | ||
12407 | ||
12408 | # PATH needs CR | |
12409 | # Avoid depending upon Character Ranges. | |
12410 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12411 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12412 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12413 | as_cr_digits='0123456789' | |
12414 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12415 | ||
12416 | # The user is always right. | |
12417 | if test "${PATH_SEPARATOR+set}" != set; then | |
12418 | echo "#! /bin/sh" >conf$$.sh | |
12419 | echo "exit 0" >>conf$$.sh | |
12420 | chmod +x conf$$.sh | |
12421 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12422 | PATH_SEPARATOR=';' | |
12423 | else | |
12424 | PATH_SEPARATOR=: | |
12425 | fi | |
12426 | rm -f conf$$.sh | |
1c710c3c | 12427 | fi |
1c710c3c DJ |
12428 | |
12429 | # Support unset when possible. | |
12430 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
12431 | as_unset=unset | |
12432 | else | |
12433 | as_unset=false | |
12434 | fi | |
12435 | ||
12436 | ||
11a67599 ZW |
12437 | # IFS |
12438 | # We need space, tab and new line, in precisely that order. Quoting is | |
12439 | # there to prevent editors from complaining about space-tab. | |
12440 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12441 | # splitting by setting IFS to empty value.) | |
12442 | as_nl=' | |
12443 | ' | |
12444 | IFS=" "" $as_nl" | |
12445 | ||
12446 | # Find who we are. Look in the path if we contain no directory separator. | |
12447 | case $0 in | |
12448 | *[\\/]* ) as_myself=$0 ;; | |
12449 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12450 | for as_dir in $PATH | |
12451 | do | |
12452 | IFS=$as_save_IFS | |
12453 | test -z "$as_dir" && as_dir=. | |
12454 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12455 | done | |
12456 | IFS=$as_save_IFS | |
12457 | ||
12458 | ;; | |
12459 | esac | |
12460 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12461 | # in which case we are not to be found in the path. | |
12462 | if test "x$as_myself" = x; then | |
12463 | as_myself=$0 | |
12464 | fi | |
12465 | if test ! -f "$as_myself"; then | |
12466 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12467 | { (exit 1); exit 1; } | |
12468 | fi | |
12469 | ||
1c710c3c | 12470 | # Work around bugs in pre-3.0 UWIN ksh. |
11a67599 ZW |
12471 | for as_var in ENV MAIL MAILPATH |
12472 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12473 | done | |
1c710c3c DJ |
12474 | PS1='$ ' |
12475 | PS2='> ' | |
12476 | PS4='+ ' | |
12477 | ||
12478 | # NLS nuisances. | |
12479 | for as_var in \ | |
12480 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12481 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12482 | LC_TELEPHONE LC_TIME | |
12483 | do | |
12484 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12485 | eval $as_var=C; export $as_var | |
12486 | else | |
11a67599 | 12487 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
1c710c3c DJ |
12488 | fi |
12489 | done | |
12490 | ||
12491 | # Required to use basename. | |
11a67599 ZW |
12492 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12493 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
12494 | as_expr=expr |
12495 | else | |
12496 | as_expr=false | |
12497 | fi | |
12498 | ||
11a67599 | 12499 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
12500 | as_basename=basename |
12501 | else | |
12502 | as_basename=false | |
12503 | fi | |
12504 | ||
12505 | ||
12506 | # Name of the executable. | |
11a67599 | 12507 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
12508 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12509 | X"$0" : 'X\(//\)$' \| \ | |
11a67599 | 12510 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1c710c3c | 12511 | echo X/"$0" | |
11a67599 ZW |
12512 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12513 | s//\1/ | |
12514 | q | |
12515 | } | |
12516 | /^X\/\(\/\/\)$/{ | |
12517 | s//\1/ | |
12518 | q | |
12519 | } | |
12520 | /^X\/\(\/\).*/{ | |
12521 | s//\1/ | |
12522 | q | |
12523 | } | |
12524 | s/.*/./; q'` | |
1c710c3c | 12525 | |
11a67599 ZW |
12526 | # CDPATH. |
12527 | $as_unset CDPATH | |
1c710c3c DJ |
12528 | |
12529 | ||
1c710c3c | 12530 | |
1c710c3c DJ |
12531 | as_lineno_1=$LINENO |
12532 | as_lineno_2=$LINENO | |
1c710c3c | 12533 | test "x$as_lineno_1" != "x$as_lineno_2" && |
11a67599 | 12534 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
1c710c3c DJ |
12535 | |
12536 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
12537 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11a67599 ZW |
12538 | # line-number line after each line using $LINENO; the second 'sed' |
12539 | # does the real work. The second script uses 'N' to pair each | |
12540 | # line-number line with the line containing $LINENO, and appends | |
12541 | # trailing '-' during substitution so that $LINENO is not a special | |
12542 | # case at line end. | |
1c710c3c | 12543 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
11a67599 ZW |
12544 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12545 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12546 | sed -n ' | |
12547 | p | |
12548 | /[$]LINENO/= | |
12549 | ' <$as_myself | | |
1c710c3c | 12550 | sed ' |
11a67599 ZW |
12551 | s/[$]LINENO.*/&-/ |
12552 | t lineno | |
12553 | b | |
12554 | :lineno | |
1c710c3c | 12555 | N |
11a67599 ZW |
12556 | :loop |
12557 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 12558 | t loop |
11a67599 | 12559 | s/-\n.*// |
1c710c3c | 12560 | ' >$as_me.lineno && |
11a67599 ZW |
12561 | chmod +x "$as_me.lineno" || |
12562 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
1c710c3c DJ |
12563 | { (exit 1); exit 1; }; } |
12564 | ||
12565 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12566 | # (the dirname of $[0] is not the place where we might find the | |
11a67599 ZW |
12567 | # original and so on. Autoconf is especially sensitive to this). |
12568 | . "./$as_me.lineno" | |
1c710c3c DJ |
12569 | # Exit status is that of the last command. |
12570 | exit | |
12571 | } | |
12572 | ||
12573 | ||
11a67599 ZW |
12574 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12575 | as_dirname=dirname | |
12576 | else | |
12577 | as_dirname=false | |
12578 | fi | |
12579 | ||
12580 | ECHO_C= ECHO_N= ECHO_T= | |
12581 | case `echo -n x` in | |
12582 | -n*) | |
12583 | case `echo 'x\c'` in | |
12584 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12585 | *) ECHO_C='\c';; | |
12586 | esac;; | |
12587 | *) | |
12588 | ECHO_N='-n';; | |
1c710c3c DJ |
12589 | esac |
12590 | ||
11a67599 ZW |
12591 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12592 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
12593 | as_expr=expr |
12594 | else | |
12595 | as_expr=false | |
12596 | fi | |
12597 | ||
12598 | rm -f conf$$ conf$$.exe conf$$.file | |
11a67599 ZW |
12599 | if test -d conf$$.dir; then |
12600 | rm -f conf$$.dir/conf$$.file | |
12601 | else | |
12602 | rm -f conf$$.dir | |
12603 | mkdir conf$$.dir | |
12604 | fi | |
1c710c3c DJ |
12605 | echo >conf$$.file |
12606 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11a67599 ZW |
12607 | as_ln_s='ln -s' |
12608 | # ... but there are two gotchas: | |
12609 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12610 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12611 | # In both cases, we have to default to `cp -p'. | |
12612 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
1c710c3c | 12613 | as_ln_s='cp -p' |
1c710c3c DJ |
12614 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12615 | as_ln_s=ln | |
12616 | else | |
12617 | as_ln_s='cp -p' | |
12618 | fi | |
11a67599 ZW |
12619 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12620 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
12621 | |
12622 | if mkdir -p . 2>/dev/null; then | |
12623 | as_mkdir_p=: | |
12624 | else | |
12625 | test -d ./-p && rmdir ./-p | |
12626 | as_mkdir_p=false | |
12627 | fi | |
12628 | ||
11a67599 ZW |
12629 | if test -x / >/dev/null 2>&1; then |
12630 | as_test_x='test -x' | |
12631 | else | |
12632 | if ls -dL / >/dev/null 2>&1; then | |
12633 | as_ls_L_option=L | |
12634 | else | |
12635 | as_ls_L_option= | |
12636 | fi | |
12637 | as_test_x=' | |
12638 | eval sh -c '\'' | |
12639 | if test -d "$1"; then | |
12640 | test -d "$1/."; | |
12641 | else | |
12642 | case $1 in | |
12643 | -*)set "./$1";; | |
12644 | esac; | |
12645 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12646 | ???[sx]*):;;*)false;;esac;fi | |
12647 | '\'' sh | |
12648 | ' | |
12649 | fi | |
12650 | as_executable_p=$as_test_x | |
1c710c3c DJ |
12651 | |
12652 | # Sed expression to map a string onto a valid CPP name. | |
12653 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12654 | ||
12655 | # Sed expression to map a string onto a valid variable name. | |
12656 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12657 | ||
12658 | ||
1c710c3c DJ |
12659 | exec 6>&1 |
12660 | ||
11a67599 | 12661 | # Save the log message, to keep $[0] and so on meaningful, and to |
1c710c3c | 12662 | # report actual input values of CONFIG_FILES etc. instead of their |
11a67599 ZW |
12663 | # values after options handling. |
12664 | ac_log=" | |
1c710c3c | 12665 | This file was extended by $as_me, which was |
11a67599 | 12666 | generated by GNU Autoconf 2.61. Invocation command line was |
1c710c3c DJ |
12667 | |
12668 | CONFIG_FILES = $CONFIG_FILES | |
12669 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12670 | CONFIG_LINKS = $CONFIG_LINKS | |
12671 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12672 | $ $0 $@ | |
12673 | ||
11a67599 ZW |
12674 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12675 | " | |
12676 | ||
1c710c3c DJ |
12677 | _ACEOF |
12678 | ||
11a67599 | 12679 | cat >>$CONFIG_STATUS <<_ACEOF |
1c710c3c | 12680 | # Files that config.status was made for. |
11a67599 | 12681 | config_files="$ac_config_files" |
1c710c3c | 12682 | |
11a67599 | 12683 | _ACEOF |
1c710c3c DJ |
12684 | |
12685 | cat >>$CONFIG_STATUS <<\_ACEOF | |
1c710c3c DJ |
12686 | ac_cs_usage="\ |
12687 | \`$as_me' instantiates files from templates according to the | |
12688 | current configuration. | |
12689 | ||
12690 | Usage: $0 [OPTIONS] [FILE]... | |
12691 | ||
12692 | -h, --help print this help, then exit | |
11a67599 | 12693 | -V, --version print version number and configuration settings, then exit |
1c710c3c DJ |
12694 | -q, --quiet do not print progress messages |
12695 | -d, --debug don't remove temporary files | |
12696 | --recheck update $as_me by reconfiguring in the same conditions | |
12697 | --file=FILE[:TEMPLATE] | |
12698 | instantiate the configuration file FILE | |
12699 | ||
12700 | Configuration files: | |
12701 | $config_files | |
12702 | ||
12703 | Report bugs to <bug-autoconf@gnu.org>." | |
1c710c3c | 12704 | |
11a67599 | 12705 | _ACEOF |
1c710c3c DJ |
12706 | cat >>$CONFIG_STATUS <<_ACEOF |
12707 | ac_cs_version="\\ | |
12708 | config.status | |
11a67599 ZW |
12709 | configured by $0, generated by GNU Autoconf 2.61, |
12710 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 12711 | |
11a67599 | 12712 | Copyright (C) 2006 Free Software Foundation, Inc. |
1c710c3c DJ |
12713 | This config.status script is free software; the Free Software Foundation |
12714 | gives unlimited permission to copy, distribute and modify it." | |
11a67599 ZW |
12715 | |
12716 | ac_pwd='$ac_pwd' | |
12717 | srcdir='$srcdir' | |
12718 | INSTALL='$INSTALL' | |
1c710c3c DJ |
12719 | _ACEOF |
12720 | ||
12721 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12722 | # If no file are specified by the user, then we need to provide default | |
12723 | # value. By we need to know if files were specified by the user. | |
12724 | ac_need_defaults=: | |
12725 | while test $# != 0 | |
a4b9e93e | 12726 | do |
1c710c3c DJ |
12727 | case $1 in |
12728 | --*=*) | |
11a67599 ZW |
12729 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12730 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
12731 | ac_shift=: |
12732 | ;; | |
11a67599 | 12733 | *) |
1c710c3c DJ |
12734 | ac_option=$1 |
12735 | ac_optarg=$2 | |
12736 | ac_shift=shift | |
12737 | ;; | |
1c710c3c DJ |
12738 | esac |
12739 | ||
12740 | case $ac_option in | |
12741 | # Handling of the options. | |
671aa708 | 12742 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 12743 | ac_cs_recheck=: ;; |
11a67599 ZW |
12744 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
12745 | echo "$ac_cs_version"; exit ;; | |
12746 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
12747 | debug=: ;; |
12748 | --file | --fil | --fi | --f ) | |
12749 | $ac_shift | |
12750 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
12751 | ac_need_defaults=false;; | |
11a67599 ZW |
12752 | --he | --h | --help | --hel | -h ) |
12753 | echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
12754 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12755 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12756 | ac_cs_silent=: ;; | |
12757 | ||
12758 | # This is an error. | |
11a67599 ZW |
12759 | -*) { echo "$as_me: error: unrecognized option: $1 |
12760 | Try \`$0 --help' for more information." >&2 | |
1c710c3c DJ |
12761 | { (exit 1); exit 1; }; } ;; |
12762 | ||
11a67599 ZW |
12763 | *) ac_config_targets="$ac_config_targets $1" |
12764 | ac_need_defaults=false ;; | |
1c710c3c | 12765 | |
0b0dc272 | 12766 | esac |
1c710c3c | 12767 | shift |
0b0dc272 AM |
12768 | done |
12769 | ||
1c710c3c | 12770 | ac_configure_extra_args= |
0b0dc272 | 12771 | |
1c710c3c DJ |
12772 | if $ac_cs_silent; then |
12773 | exec 6>/dev/null | |
12774 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12775 | fi | |
0b0dc272 | 12776 | |
1c710c3c DJ |
12777 | _ACEOF |
12778 | cat >>$CONFIG_STATUS <<_ACEOF | |
12779 | if \$ac_cs_recheck; then | |
11a67599 ZW |
12780 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12781 | CONFIG_SHELL=$SHELL | |
12782 | export CONFIG_SHELL | |
12783 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
1c710c3c DJ |
12784 | fi |
12785 | ||
12786 | _ACEOF | |
11a67599 ZW |
12787 | cat >>$CONFIG_STATUS <<\_ACEOF |
12788 | exec 5>>config.log | |
12789 | { | |
12790 | echo | |
12791 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12792 | ## Running $as_me. ## | |
12793 | _ASBOX | |
12794 | echo "$ac_log" | |
12795 | } >&5 | |
1c710c3c | 12796 | |
11a67599 ZW |
12797 | _ACEOF |
12798 | cat >>$CONFIG_STATUS <<_ACEOF | |
12799 | _ACEOF | |
1c710c3c DJ |
12800 | |
12801 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11a67599 ZW |
12802 | |
12803 | # Handling of arguments. | |
1c710c3c DJ |
12804 | for ac_config_target in $ac_config_targets |
12805 | do | |
11a67599 ZW |
12806 | case $ac_config_target in |
12807 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12808 | ||
1c710c3c DJ |
12809 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12810 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
12811 | { (exit 1); exit 1; }; };; | |
12812 | esac | |
12813 | done | |
12814 | ||
11a67599 | 12815 | |
1c710c3c DJ |
12816 | # If the user did not use the arguments to specify the items to instantiate, |
12817 | # then the envvar interface is used. Set only those that are not. | |
12818 | # We use the long form for the default assignment because of an extremely | |
12819 | # bizarre bug on SunOS 4.1.3. | |
12820 | if $ac_need_defaults; then | |
12821 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12822 | fi | |
12823 | ||
12824 | # Have a temporary directory for convenience. Make it in the build tree | |
11a67599 | 12825 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 12826 | # creating and moving files from /tmp can sometimes cause problems. |
11a67599 ZW |
12827 | # Hook for its removal unless debugging. |
12828 | # Note that there is a small window in which the directory will not be cleaned: | |
12829 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
12830 | $debug || |
12831 | { | |
11a67599 ZW |
12832 | tmp= |
12833 | trap 'exit_status=$? | |
12834 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12835 | ' 0 | |
1c710c3c DJ |
12836 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12837 | } | |
1c710c3c DJ |
12838 | # Create a (secure) tmp directory for tmp files. |
12839 | ||
12840 | { | |
11a67599 | 12841 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
12842 | test -n "$tmp" && test -d "$tmp" |
12843 | } || | |
12844 | { | |
11a67599 ZW |
12845 | tmp=./conf$$-$RANDOM |
12846 | (umask 077 && mkdir "$tmp") | |
1c710c3c DJ |
12847 | } || |
12848 | { | |
12849 | echo "$me: cannot create a temporary directory in ." >&2 | |
12850 | { (exit 1); exit 1; } | |
12851 | } | |
12852 | ||
1c710c3c | 12853 | # |
11a67599 | 12854 | # Set up the sed scripts for CONFIG_FILES section. |
1c710c3c DJ |
12855 | # |
12856 | ||
12857 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12858 | # This happens for instance when ./config.status config.h | |
11a67599 | 12859 | if test -n "$CONFIG_FILES"; then |
79c06341 | 12860 | |
1c710c3c DJ |
12861 | _ACEOF |
12862 | ||
11a67599 ZW |
12863 | # Create sed commands to just substitute file output variables. |
12864 | ||
12865 | # Remaining file output variables are in a fragment that also has non-file | |
12866 | # output varibles. | |
12867 | ||
12868 | ||
12869 | ||
12870 | ac_delim='%!_!# ' | |
12871 | for ac_last_try in false false false false false :; do | |
12872 | cat >conf$$subs.sed <<_ACEOF | |
12873 | SHELL!$SHELL$ac_delim | |
12874 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12875 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12876 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12877 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12878 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12879 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12880 | exec_prefix!$exec_prefix$ac_delim | |
12881 | prefix!$prefix$ac_delim | |
12882 | program_transform_name!$program_transform_name$ac_delim | |
12883 | bindir!$bindir$ac_delim | |
12884 | sbindir!$sbindir$ac_delim | |
12885 | libexecdir!$libexecdir$ac_delim | |
12886 | datarootdir!$datarootdir$ac_delim | |
12887 | datadir!$datadir$ac_delim | |
12888 | sysconfdir!$sysconfdir$ac_delim | |
12889 | sharedstatedir!$sharedstatedir$ac_delim | |
12890 | localstatedir!$localstatedir$ac_delim | |
12891 | includedir!$includedir$ac_delim | |
12892 | oldincludedir!$oldincludedir$ac_delim | |
12893 | docdir!$docdir$ac_delim | |
12894 | infodir!$infodir$ac_delim | |
12895 | htmldir!$htmldir$ac_delim | |
12896 | dvidir!$dvidir$ac_delim | |
12897 | pdfdir!$pdfdir$ac_delim | |
12898 | psdir!$psdir$ac_delim | |
12899 | libdir!$libdir$ac_delim | |
12900 | localedir!$localedir$ac_delim | |
12901 | mandir!$mandir$ac_delim | |
12902 | DEFS!$DEFS$ac_delim | |
12903 | ECHO_C!$ECHO_C$ac_delim | |
12904 | ECHO_N!$ECHO_N$ac_delim | |
12905 | ECHO_T!$ECHO_T$ac_delim | |
12906 | LIBS!$LIBS$ac_delim | |
12907 | build_alias!$build_alias$ac_delim | |
12908 | host_alias!$host_alias$ac_delim | |
12909 | target_alias!$target_alias$ac_delim | |
12910 | build!$build$ac_delim | |
12911 | build_cpu!$build_cpu$ac_delim | |
12912 | build_vendor!$build_vendor$ac_delim | |
12913 | build_os!$build_os$ac_delim | |
12914 | build_noncanonical!$build_noncanonical$ac_delim | |
12915 | host_noncanonical!$host_noncanonical$ac_delim | |
12916 | target_noncanonical!$target_noncanonical$ac_delim | |
12917 | host!$host$ac_delim | |
12918 | host_cpu!$host_cpu$ac_delim | |
12919 | host_vendor!$host_vendor$ac_delim | |
12920 | host_os!$host_os$ac_delim | |
12921 | target!$target$ac_delim | |
12922 | target_cpu!$target_cpu$ac_delim | |
12923 | target_vendor!$target_vendor$ac_delim | |
12924 | target_os!$target_os$ac_delim | |
12925 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
12926 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
12927 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
12928 | LN!$LN$ac_delim | |
12929 | LN_S!$LN_S$ac_delim | |
12930 | TOPLEVEL_CONFIGURE_ARGUMENTS!$TOPLEVEL_CONFIGURE_ARGUMENTS$ac_delim | |
12931 | build_libsubdir!$build_libsubdir$ac_delim | |
12932 | build_subdir!$build_subdir$ac_delim | |
12933 | host_subdir!$host_subdir$ac_delim | |
12934 | target_subdir!$target_subdir$ac_delim | |
12935 | CC!$CC$ac_delim | |
12936 | CFLAGS!$CFLAGS$ac_delim | |
12937 | LDFLAGS!$LDFLAGS$ac_delim | |
12938 | CPPFLAGS!$CPPFLAGS$ac_delim | |
12939 | ac_ct_CC!$ac_ct_CC$ac_delim | |
12940 | EXEEXT!$EXEEXT$ac_delim | |
12941 | OBJEXT!$OBJEXT$ac_delim | |
12942 | CXX!$CXX$ac_delim | |
12943 | CXXFLAGS!$CXXFLAGS$ac_delim | |
12944 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
12945 | GNATBIND!$GNATBIND$ac_delim | |
12946 | GNATMAKE!$GNATMAKE$ac_delim | |
12947 | do_compare!$do_compare$ac_delim | |
12948 | gmplibs!$gmplibs$ac_delim | |
12949 | gmpinc!$gmpinc$ac_delim | |
12950 | stage1_languages!$stage1_languages$ac_delim | |
12951 | SYSROOT_CFLAGS_FOR_TARGET!$SYSROOT_CFLAGS_FOR_TARGET$ac_delim | |
12952 | RPATH_ENVVAR!$RPATH_ENVVAR$ac_delim | |
12953 | tooldir!$tooldir$ac_delim | |
12954 | build_tooldir!$build_tooldir$ac_delim | |
12955 | _ACEOF | |
12956 | ||
12957 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then | |
12958 | break | |
12959 | elif $ac_last_try; then | |
12960 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12961 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12962 | { (exit 1); exit 1; }; } | |
12963 | else | |
12964 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4977bab6 | 12965 | fi |
11a67599 ZW |
12966 | done |
12967 | ||
12968 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12969 | if test -n "$ac_eof"; then | |
12970 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12971 | ac_eof=`expr $ac_eof + 1` | |
12972 | fi | |
12973 | ||
12974 | cat >>$CONFIG_STATUS <<_ACEOF | |
12975 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12976 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12977 | /^[ ]*@serialization_dependencies@[ ]*$/{ | |
12978 | r $serialization_dependencies | |
12979 | d | |
12980 | } | |
12981 | /^[ ]*@host_makefile_frag@[ ]*$/{ | |
12982 | r $host_makefile_frag | |
12983 | d | |
12984 | } | |
12985 | /^[ ]*@target_makefile_frag@[ ]*$/{ | |
12986 | r $target_makefile_frag | |
12987 | d | |
12988 | } | |
12989 | /^[ ]*@alphaieee_frag@[ ]*$/{ | |
12990 | r $alphaieee_frag | |
12991 | d | |
12992 | } | |
12993 | /^[ ]*@ospace_frag@[ ]*$/{ | |
12994 | r $ospace_frag | |
12995 | d | |
12996 | } | |
12997 | _ACEOF | |
12998 | sed ' | |
12999 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
13000 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
13001 | :n | |
13002 | t n | |
13003 | s/'"$ac_delim"'$/,g/; t | |
13004 | s/$/\\/; p | |
13005 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
13006 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
13007 | rm -f conf$$subs.sed | |
13008 | cat >>$CONFIG_STATUS <<_ACEOF | |
13009 | CEOF$ac_eof | |
13010 | _ACEOF | |
13011 | ||
79c06341 | 13012 | |
11a67599 ZW |
13013 | ac_delim='%!_!# ' |
13014 | for ac_last_try in false false false false false :; do | |
13015 | cat >conf$$subs.sed <<_ACEOF | |
13016 | CONFIGURE_GDB_TK!$CONFIGURE_GDB_TK$ac_delim | |
13017 | GDB_TK!$GDB_TK$ac_delim | |
13018 | INSTALL_GDB_TK!$INSTALL_GDB_TK$ac_delim | |
13019 | build_configargs!$build_configargs$ac_delim | |
13020 | build_configdirs!$build_configdirs$ac_delim | |
13021 | host_configargs!$host_configargs$ac_delim | |
13022 | configdirs!$configdirs$ac_delim | |
13023 | target_configargs!$target_configargs$ac_delim | |
13024 | CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim | |
13025 | config_shell!$config_shell$ac_delim | |
13026 | YACC!$YACC$ac_delim | |
13027 | BISON!$BISON$ac_delim | |
13028 | M4!$M4$ac_delim | |
13029 | LEX!$LEX$ac_delim | |
13030 | FLEX!$FLEX$ac_delim | |
13031 | MAKEINFO!$MAKEINFO$ac_delim | |
13032 | EXPECT!$EXPECT$ac_delim | |
13033 | RUNTEST!$RUNTEST$ac_delim | |
13034 | AR!$AR$ac_delim | |
13035 | AS!$AS$ac_delim | |
13036 | DLLTOOL!$DLLTOOL$ac_delim | |
13037 | LD!$LD$ac_delim | |
13038 | LIPO!$LIPO$ac_delim | |
13039 | NM!$NM$ac_delim | |
13040 | RANLIB!$RANLIB$ac_delim | |
13041 | STRIP!$STRIP$ac_delim | |
13042 | WINDRES!$WINDRES$ac_delim | |
13043 | OBJCOPY!$OBJCOPY$ac_delim | |
13044 | OBJDUMP!$OBJDUMP$ac_delim | |
13045 | CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim | |
13046 | CC_FOR_TARGET!$CC_FOR_TARGET$ac_delim | |
13047 | CXX_FOR_TARGET!$CXX_FOR_TARGET$ac_delim | |
13048 | GCC_FOR_TARGET!$GCC_FOR_TARGET$ac_delim | |
13049 | GCJ_FOR_TARGET!$GCJ_FOR_TARGET$ac_delim | |
13050 | GFORTRAN_FOR_TARGET!$GFORTRAN_FOR_TARGET$ac_delim | |
13051 | AR_FOR_TARGET!$AR_FOR_TARGET$ac_delim | |
13052 | AS_FOR_TARGET!$AS_FOR_TARGET$ac_delim | |
13053 | DLLTOOL_FOR_TARGET!$DLLTOOL_FOR_TARGET$ac_delim | |
13054 | LD_FOR_TARGET!$LD_FOR_TARGET$ac_delim | |
13055 | LIPO_FOR_TARGET!$LIPO_FOR_TARGET$ac_delim | |
13056 | NM_FOR_TARGET!$NM_FOR_TARGET$ac_delim | |
13057 | OBJDUMP_FOR_TARGET!$OBJDUMP_FOR_TARGET$ac_delim | |
13058 | RANLIB_FOR_TARGET!$RANLIB_FOR_TARGET$ac_delim | |
13059 | STRIP_FOR_TARGET!$STRIP_FOR_TARGET$ac_delim | |
13060 | WINDRES_FOR_TARGET!$WINDRES_FOR_TARGET$ac_delim | |
13061 | RAW_CXX_FOR_TARGET!$RAW_CXX_FOR_TARGET$ac_delim | |
13062 | FLAGS_FOR_TARGET!$FLAGS_FOR_TARGET$ac_delim | |
13063 | COMPILER_AS_FOR_TARGET!$COMPILER_AS_FOR_TARGET$ac_delim | |
13064 | COMPILER_LD_FOR_TARGET!$COMPILER_LD_FOR_TARGET$ac_delim | |
13065 | COMPILER_NM_FOR_TARGET!$COMPILER_NM_FOR_TARGET$ac_delim | |
13066 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
13067 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
13068 | MAINT!$MAINT$ac_delim | |
13069 | stage1_cflags!$stage1_cflags$ac_delim | |
13070 | stage1_checking!$stage1_checking$ac_delim | |
13071 | stage2_werror_flag!$stage2_werror_flag$ac_delim | |
13072 | LIBOBJS!$LIBOBJS$ac_delim | |
13073 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
1c710c3c | 13074 | _ACEOF |
11a67599 ZW |
13075 | |
13076 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then | |
13077 | break | |
13078 | elif $ac_last_try; then | |
13079 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13080 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13081 | { (exit 1); exit 1; }; } | |
13082 | else | |
13083 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13084 | fi | |
13085 | done | |
13086 | ||
13087 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
13088 | if test -n "$ac_eof"; then | |
13089 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
13090 | ac_eof=`expr $ac_eof + 1` | |
13091 | fi | |
13092 | ||
13093 | cat >>$CONFIG_STATUS <<_ACEOF | |
13094 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
13095 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
13096 | _ACEOF | |
13097 | sed ' | |
13098 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
13099 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
13100 | :n | |
13101 | t n | |
13102 | s/'"$ac_delim"'$/,g/; t | |
13103 | s/$/\\/; p | |
13104 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
13105 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
13106 | rm -f conf$$subs.sed | |
13107 | cat >>$CONFIG_STATUS <<_ACEOF | |
13108 | :end | |
13109 | s/|#_!!_#|//g | |
13110 | CEOF$ac_eof | |
13111 | _ACEOF | |
13112 | ||
13113 | ||
13114 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
13115 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13116 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13117 | # (actually we leave an empty line to preserve line numbers). | |
13118 | if test "x$srcdir" = x.; then | |
13119 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13120 | s/:*\$(srcdir):*/:/ | |
13121 | s/:*\${srcdir}:*/:/ | |
13122 | s/:*@srcdir@:*/:/ | |
13123 | s/^\([^=]*=[ ]*\):*/\1/ | |
13124 | s/:*$// | |
13125 | s/^[^=]*=[ ]*$// | |
13126 | }' | |
13127 | fi | |
13128 | ||
1c710c3c | 13129 | cat >>$CONFIG_STATUS <<\_ACEOF |
11a67599 ZW |
13130 | fi # test -n "$CONFIG_FILES" |
13131 | ||
13132 | ||
13133 | for ac_tag in :F $CONFIG_FILES | |
13134 | do | |
13135 | case $ac_tag in | |
13136 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
671aa708 | 13137 | esac |
11a67599 ZW |
13138 | case $ac_mode$ac_tag in |
13139 | :[FHL]*:*);; | |
13140 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
13141 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
13142 | { (exit 1); exit 1; }; };; | |
13143 | :[FH]-) ac_tag=-:-;; | |
13144 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13145 | esac | |
13146 | ac_save_IFS=$IFS | |
13147 | IFS=: | |
13148 | set x $ac_tag | |
13149 | IFS=$ac_save_IFS | |
13150 | shift | |
13151 | ac_file=$1 | |
13152 | shift | |
79c06341 | 13153 | |
11a67599 ZW |
13154 | case $ac_mode in |
13155 | :L) ac_source=$1;; | |
13156 | :[FH]) | |
13157 | ac_file_inputs= | |
13158 | for ac_f | |
13159 | do | |
13160 | case $ac_f in | |
13161 | -) ac_f="$tmp/stdin";; | |
13162 | *) # Look for the file first in the build tree, then in the source tree | |
13163 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13164 | # because $ac_f cannot contain `:'. | |
13165 | test -f "$ac_f" || | |
13166 | case $ac_f in | |
13167 | [\\/$]*) false;; | |
13168 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13169 | esac || | |
13170 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
13171 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
13172 | { (exit 1); exit 1; }; };; | |
13173 | esac | |
13174 | ac_file_inputs="$ac_file_inputs $ac_f" | |
13175 | done | |
13176 | ||
13177 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13178 | # use $as_me), people would be surprised to read: | |
13179 | # /* config.h. Generated by config.status. */ | |
13180 | configure_input="Generated from "`IFS=: | |
13181 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
13182 | if test x"$ac_file" != x-; then | |
13183 | configure_input="$ac_file. $configure_input" | |
13184 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13185 | echo "$as_me: creating $ac_file" >&6;} | |
13186 | fi | |
13187 | ||
13188 | case $ac_tag in | |
13189 | *:-:* | *:-) cat >"$tmp/stdin";; | |
13190 | esac | |
13191 | ;; | |
13192 | esac | |
13193 | ||
13194 | ac_dir=`$as_dirname -- "$ac_file" || | |
1c710c3c DJ |
13195 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13196 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13197 | X"$ac_file" : 'X\(//\)$' \| \ | |
11a67599 | 13198 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1c710c3c | 13199 | echo X"$ac_file" | |
11a67599 ZW |
13200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13201 | s//\1/ | |
13202 | q | |
13203 | } | |
13204 | /^X\(\/\/\)[^/].*/{ | |
13205 | s//\1/ | |
13206 | q | |
13207 | } | |
13208 | /^X\(\/\/\)$/{ | |
13209 | s//\1/ | |
13210 | q | |
13211 | } | |
13212 | /^X\(\/\).*/{ | |
13213 | s//\1/ | |
13214 | q | |
13215 | } | |
13216 | s/.*/./; q'` | |
13217 | { as_dir="$ac_dir" | |
13218 | case $as_dir in #( | |
13219 | -*) as_dir=./$as_dir;; | |
13220 | esac | |
13221 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
1c710c3c | 13222 | as_dirs= |
11a67599 ZW |
13223 | while :; do |
13224 | case $as_dir in #( | |
13225 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
13226 | *) as_qdir=$as_dir;; | |
13227 | esac | |
13228 | as_dirs="'$as_qdir' $as_dirs" | |
13229 | as_dir=`$as_dirname -- "$as_dir" || | |
1c710c3c DJ |
13230 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13231 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13232 | X"$as_dir" : 'X\(//\)$' \| \ | |
11a67599 | 13233 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1c710c3c | 13234 | echo X"$as_dir" | |
11a67599 ZW |
13235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13236 | s//\1/ | |
13237 | q | |
13238 | } | |
13239 | /^X\(\/\/\)[^/].*/{ | |
13240 | s//\1/ | |
13241 | q | |
13242 | } | |
13243 | /^X\(\/\/\)$/{ | |
13244 | s//\1/ | |
13245 | q | |
13246 | } | |
13247 | /^X\(\/\).*/{ | |
13248 | s//\1/ | |
13249 | q | |
13250 | } | |
13251 | s/.*/./; q'` | |
13252 | test -d "$as_dir" && break | |
1c710c3c | 13253 | done |
11a67599 ZW |
13254 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
13255 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13256 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
1c710c3c | 13257 | { (exit 1); exit 1; }; }; } |
1c710c3c | 13258 | ac_builddir=. |
0b0dc272 | 13259 | |
11a67599 ZW |
13260 | case "$ac_dir" in |
13261 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13262 | *) | |
1c710c3c | 13263 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
11a67599 ZW |
13264 | # A ".." for each directory in $ac_dir_suffix. |
13265 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
13266 | case $ac_top_builddir_sub in | |
13267 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13268 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13269 | esac ;; | |
13270 | esac | |
13271 | ac_abs_top_builddir=$ac_pwd | |
13272 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13273 | # for backward compatibility: | |
13274 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
13275 | |
13276 | case $srcdir in | |
11a67599 | 13277 | .) # We are building in place. |
1c710c3c | 13278 | ac_srcdir=. |
11a67599 ZW |
13279 | ac_top_srcdir=$ac_top_builddir_sub |
13280 | ac_abs_top_srcdir=$ac_pwd ;; | |
13281 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 13282 | ac_srcdir=$srcdir$ac_dir_suffix; |
11a67599 ZW |
13283 | ac_top_srcdir=$srcdir |
13284 | ac_abs_top_srcdir=$srcdir ;; | |
13285 | *) # Relative name. | |
13286 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13287 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13288 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 13289 | esac |
11a67599 | 13290 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 13291 | |
0b0dc272 | 13292 | |
11a67599 ZW |
13293 | case $ac_mode in |
13294 | :F) | |
13295 | # | |
13296 | # CONFIG_FILE | |
13297 | # | |
1c710c3c DJ |
13298 | |
13299 | case $INSTALL in | |
13300 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11a67599 | 13301 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 13302 | esac |
11a67599 | 13303 | _ACEOF |
79c06341 | 13304 | |
11a67599 ZW |
13305 | cat >>$CONFIG_STATUS <<\_ACEOF |
13306 | # If the template does not know about datarootdir, expand it. | |
13307 | # FIXME: This hack should be removed a few years after 2.60. | |
13308 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13309 | ||
13310 | case `sed -n '/datarootdir/ { | |
13311 | p | |
13312 | q | |
13313 | } | |
13314 | /@datadir@/p | |
13315 | /@docdir@/p | |
13316 | /@infodir@/p | |
13317 | /@localedir@/p | |
13318 | /@mandir@/p | |
13319 | ' $ac_file_inputs` in | |
13320 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13321 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13322 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13323 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
1c710c3c | 13324 | _ACEOF |
11a67599 ZW |
13325 | cat >>$CONFIG_STATUS <<_ACEOF |
13326 | ac_datarootdir_hack=' | |
13327 | s&@datadir@&$datadir&g | |
13328 | s&@docdir@&$docdir&g | |
13329 | s&@infodir@&$infodir&g | |
13330 | s&@localedir@&$localedir&g | |
13331 | s&@mandir@&$mandir&g | |
13332 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13333 | esac | |
13334 | _ACEOF | |
13335 | ||
13336 | # Neutralize VPATH when `$srcdir' = `.'. | |
13337 | # Shell code in configure.ac might set extrasub. | |
13338 | # FIXME: do we really want to maintain this feature? | |
1c710c3c DJ |
13339 | cat >>$CONFIG_STATUS <<_ACEOF |
13340 | sed "$ac_vpsub | |
13341 | $extrasub | |
13342 | _ACEOF | |
13343 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13344 | :t | |
13345 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11a67599 ZW |
13346 | s&@configure_input@&$configure_input&;t t |
13347 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13348 | s&@srcdir@&$ac_srcdir&;t t | |
13349 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13350 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13351 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13352 | s&@builddir@&$ac_builddir&;t t | |
13353 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13354 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13355 | s&@INSTALL@&$ac_INSTALL&;t t | |
13356 | $ac_datarootdir_hack | |
13357 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
13358 | ||
13359 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13360 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13361 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13362 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13363 | which seems to be undefined. Please make sure it is defined." >&5 | |
13364 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13365 | which seems to be undefined. Please make sure it is defined." >&2;} | |
13366 | ||
13367 | rm -f "$tmp/stdin" | |
13368 | case $ac_file in | |
13369 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
13370 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
13371 | esac | |
13372 | ;; | |
79c06341 | 13373 | |
79c06341 | 13374 | |
11a67599 ZW |
13375 | |
13376 | esac | |
13377 | ||
13378 | done # for ac_tag | |
13379 | ||
79c06341 | 13380 | |
1c710c3c DJ |
13381 | { (exit 0); exit 0; } |
13382 | _ACEOF | |
671aa708 | 13383 | chmod +x $CONFIG_STATUS |
1c710c3c DJ |
13384 | ac_clean_files=$ac_clean_files_save |
13385 | ||
13386 | ||
13387 | # configure is writing to config.log, and then calls config.status. | |
13388 | # config.status does its own redirection, appending to config.log. | |
13389 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13390 | # by configure, so config.status won't be able to write to it; its | |
13391 | # output is simply discarded. So we exec the FD to /dev/null, | |
13392 | # effectively closing config.log, so it can be properly (re)opened and | |
13393 | # appended to by config.status. When coming back to configure, we | |
13394 | # need to make the FD available again. | |
13395 | if test "$no_create" != yes; then | |
13396 | ac_cs_success=: | |
13397 | ac_config_status_args= | |
13398 | test "$silent" = yes && | |
13399 | ac_config_status_args="$ac_config_status_args --quiet" | |
13400 | exec 5>/dev/null | |
13401 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13402 | exec 5>>config.log | |
13403 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13404 | # would make configure fail if this is the last instruction. | |
13405 | $ac_cs_success || { (exit 1); exit 1; } | |
13406 | fi | |
79c06341 | 13407 |