]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
1c710c3c DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
87264276 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1c710c3c | 184 | do |
5213506e RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1c710c3c | 228 | else |
5213506e RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
1c710c3c | 233 | fi |
5213506e RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
1c710c3c | 263 | |
5213506e RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
5213506e | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
5213506e RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
1c710c3c | 391 | |
5213506e | 392 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
1c710c3c | 410 | |
2aeb72e9 DD |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 417 | |
1c710c3c | 418 | |
5213506e RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
1c710c3c | 428 | sed ' |
5213506e RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
1c710c3c | 433 | N |
5213506e RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 436 | t loop |
5213506e | 437 | s/-\n.*// |
1c710c3c | 438 | ' >$as_me.lineno && |
5213506e RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1c710c3c DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
1c710c3c DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
5213506e RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
1c710c3c DJ |
461 | esac |
462 | ||
5213506e RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 466 | else |
5213506e RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 469 | fi |
5213506e RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 472 | as_ln_s='ln -s' |
5213506e RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
2aeb72e9 | 483 | fi |
1c710c3c DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
5213506e RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
5213506e | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
5213506e RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
0b0dc272 | 519 | |
1c710c3c DJ |
520 | # Sed expression to map a string onto a valid CPP name. |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
5213506e | 527 | exec 7<&0 </dev/null 6>&1 |
1c710c3c DJ |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
1c710c3c DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
671aa708 | 537 | ac_default_prefix=/usr/local |
5213506e | 538 | ac_clean_files= |
1c710c3c | 539 | ac_config_libobj_dir=. |
5213506e | 540 | LIBOBJS= |
1c710c3c DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
2aeb72e9 | 545 | |
1c710c3c DJ |
546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
5213506e | 552 | PACKAGE_URL= |
1c710c3c DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
5213506e RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
459260ec | 559 | host_shared |
5213506e RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
e7a82751 | 574 | READELF_FOR_TARGET |
5213506e RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
577 | NM_FOR_TARGET | |
578 | LIPO_FOR_TARGET | |
579 | LD_FOR_TARGET | |
580 | DLLTOOL_FOR_TARGET | |
581 | AS_FOR_TARGET | |
582 | AR_FOR_TARGET | |
632e2a07 | 583 | GOC_FOR_TARGET |
5213506e RW |
584 | GFORTRAN_FOR_TARGET |
585 | GCJ_FOR_TARGET | |
586 | GCC_FOR_TARGET | |
587 | CXX_FOR_TARGET | |
588 | CC_FOR_TARGET | |
e7a82751 | 589 | READELF |
5213506e RW |
590 | OBJDUMP |
591 | OBJCOPY | |
592 | WINDMC | |
593 | WINDRES | |
594 | STRIP | |
595 | RANLIB | |
596 | NM | |
597 | LIPO | |
598 | LD | |
599 | DLLTOOL | |
600 | AS | |
601 | AR | |
602 | RUNTEST | |
603 | EXPECT | |
604 | MAKEINFO | |
605 | FLEX | |
606 | LEX | |
607 | M4 | |
608 | BISON | |
609 | YACC | |
5213506e RW |
610 | WINDRES_FOR_BUILD |
611 | WINDMC_FOR_BUILD | |
612 | RANLIB_FOR_BUILD | |
613 | NM_FOR_BUILD | |
614 | LD_FOR_BUILD | |
615 | LDFLAGS_FOR_BUILD | |
632e2a07 | 616 | GOC_FOR_BUILD |
5213506e RW |
617 | GFORTRAN_FOR_BUILD |
618 | GCJ_FOR_BUILD | |
619 | DLLTOOL_FOR_BUILD | |
620 | CXX_FOR_BUILD | |
621 | CXXFLAGS_FOR_BUILD | |
622 | CFLAGS_FOR_BUILD | |
623 | CC_FOR_BUILD | |
624 | AS_FOR_BUILD | |
625 | AR_FOR_BUILD | |
aae29963 | 626 | target_configdirs |
5213506e | 627 | configdirs |
5213506e | 628 | build_configdirs |
5213506e RW |
629 | INSTALL_GDB_TK |
630 | GDB_TK | |
631 | CONFIGURE_GDB_TK | |
632 | build_tooldir | |
633 | tooldir | |
634 | GCC_SHLIB_SUBDIR | |
635 | RPATH_ENVVAR | |
ffedf511 RW |
636 | target_configargs |
637 | host_configargs | |
638 | build_configargs | |
e12c4094 | 639 | BUILD_CONFIG |
6f57bdf6 | 640 | LDFLAGS_FOR_TARGET |
5213506e RW |
641 | CXXFLAGS_FOR_TARGET |
642 | CFLAGS_FOR_TARGET | |
643 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
644 | SYSROOT_CFLAGS_FOR_TARGET | |
d7f09764 | 645 | extra_host_libiberty_configure_flags |
fca38047 | 646 | stage1_languages |
45b3824d TS |
647 | extra_linker_plugin_flags |
648 | extra_linker_plugin_configure_flags | |
33ad93b9 | 649 | islinc |
eae1a5d4 | 650 | isllibs |
5213506e | 651 | poststage1_ldflags |
ed2eaa9f | 652 | poststage1_libs |
5213506e | 653 | stage1_ldflags |
0b21f5d3 | 654 | stage1_libs |
0ff2d841 | 655 | extra_isl_gmp_configure_flags |
5213506e RW |
656 | extra_mpc_mpfr_configure_flags |
657 | extra_mpc_gmp_configure_flags | |
658 | extra_mpfr_configure_flags | |
659 | gmpinc | |
660 | gmplibs | |
661 | do_compare | |
662 | GNATMAKE | |
663 | GNATBIND | |
664 | ac_ct_CXX | |
665 | CXXFLAGS | |
666 | CXX | |
667 | OBJEXT | |
668 | EXEEXT | |
669 | ac_ct_CC | |
670 | CPPFLAGS | |
671 | LDFLAGS | |
672 | CFLAGS | |
673 | CC | |
a4a2c37d | 674 | EXTRA_CONFIGARGS_LIBJAVA |
5f520819 | 675 | extra_liboffloadmic_configure_flags |
5213506e RW |
676 | target_subdir |
677 | host_subdir | |
678 | build_subdir | |
679 | build_libsubdir | |
87264276 PB |
680 | AWK |
681 | SED | |
5213506e RW |
682 | LN_S |
683 | LN | |
684 | INSTALL_DATA | |
685 | INSTALL_SCRIPT | |
686 | INSTALL_PROGRAM | |
687 | target_os | |
688 | target_vendor | |
689 | target_cpu | |
690 | target | |
691 | host_os | |
692 | host_vendor | |
693 | host_cpu | |
694 | host | |
695 | target_noncanonical | |
696 | host_noncanonical | |
697 | build_noncanonical | |
698 | build_os | |
699 | build_vendor | |
700 | build_cpu | |
701 | build | |
702 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
703 | target_alias | |
704 | host_alias | |
705 | build_alias | |
706 | LIBS | |
707 | ECHO_T | |
708 | ECHO_N | |
709 | ECHO_C | |
710 | DEFS | |
711 | mandir | |
712 | localedir | |
713 | libdir | |
714 | psdir | |
715 | pdfdir | |
716 | dvidir | |
717 | htmldir | |
718 | infodir | |
719 | docdir | |
720 | oldincludedir | |
721 | includedir | |
722 | localstatedir | |
723 | sharedstatedir | |
724 | sysconfdir | |
725 | datadir | |
726 | datarootdir | |
727 | libexecdir | |
728 | sbindir | |
729 | bindir | |
730 | program_transform_name | |
731 | prefix | |
732 | exec_prefix | |
733 | PACKAGE_URL | |
734 | PACKAGE_BUGREPORT | |
735 | PACKAGE_STRING | |
736 | PACKAGE_VERSION | |
737 | PACKAGE_TARNAME | |
738 | PACKAGE_NAME | |
739 | PATH_SEPARATOR | |
740 | SHELL' | |
741 | ac_subst_files='serialization_dependencies | |
742 | host_makefile_frag | |
743 | target_makefile_frag | |
744 | alphaieee_frag | |
745 | ospace_frag' | |
746 | ac_user_opts=' | |
747 | enable_option_checking | |
748 | with_build_libsubdir | |
85c64bbe BS |
749 | enable_as_accelerator_for |
750 | enable_offload_targets | |
5213506e | 751 | enable_gold |
21539e2e | 752 | enable_ld |
87e6d9dc TB |
753 | enable_libquadmath |
754 | enable_libquadmath_support | |
5213506e RW |
755 | enable_libada |
756 | enable_libssp | |
1873ec0c | 757 | enable_libstdcxx |
5f520819 | 758 | enable_liboffloadmic |
a4a2c37d | 759 | enable_static_libjava |
ff3ac0f4 | 760 | enable_bootstrap |
5213506e RW |
761 | with_mpc |
762 | with_mpc_include | |
763 | with_mpc_lib | |
764 | with_mpfr_dir | |
765 | with_mpfr | |
766 | with_mpfr_include | |
767 | with_mpfr_lib | |
768 | with_gmp_dir | |
769 | with_gmp | |
770 | with_gmp_include | |
771 | with_gmp_lib | |
772 | with_host_libstdcxx | |
5213506e | 773 | with_stage1_libs |
0b21f5d3 | 774 | with_stage1_ldflags |
5213506e | 775 | with_boot_libs |
ed2eaa9f | 776 | with_boot_ldflags |
33ad93b9 RG |
777 | with_isl |
778 | with_isl_include | |
779 | with_isl_lib | |
780 | enable_isl_version_check | |
d7f09764 | 781 | enable_lto |
45b3824d TS |
782 | enable_linker_plugin_configure_flags |
783 | enable_linker_plugin_flags | |
5213506e RW |
784 | enable_stage1_languages |
785 | enable_objc_gc | |
786 | with_build_sysroot | |
787 | with_debug_prefix_map | |
5646b7b9 | 788 | with_build_config |
beeda1d9 | 789 | enable_vtable_verify |
5213506e RW |
790 | enable_serial_configure |
791 | with_build_time_tools | |
792 | enable_maintainer_mode | |
793 | enable_stage1_checking | |
794 | enable_werror | |
459260ec | 795 | enable_host_shared |
5213506e RW |
796 | ' |
797 | ac_precious_vars='build_alias | |
798 | host_alias | |
799 | target_alias | |
800 | CC | |
801 | CFLAGS | |
802 | LDFLAGS | |
803 | LIBS | |
804 | CPPFLAGS | |
805 | CXX | |
806 | CXXFLAGS | |
807 | CCC | |
ffedf511 RW |
808 | build_configargs |
809 | host_configargs | |
810 | target_configargs | |
5213506e RW |
811 | AR |
812 | AS | |
813 | DLLTOOL | |
814 | LD | |
815 | LIPO | |
816 | NM | |
817 | RANLIB | |
818 | STRIP | |
819 | WINDRES | |
820 | WINDMC | |
821 | OBJCOPY | |
822 | OBJDUMP | |
e7a82751 | 823 | READELF |
5213506e RW |
824 | CC_FOR_TARGET |
825 | CXX_FOR_TARGET | |
826 | GCC_FOR_TARGET | |
827 | GCJ_FOR_TARGET | |
828 | GFORTRAN_FOR_TARGET | |
632e2a07 | 829 | GOC_FOR_TARGET |
5213506e RW |
830 | AR_FOR_TARGET |
831 | AS_FOR_TARGET | |
832 | DLLTOOL_FOR_TARGET | |
833 | LD_FOR_TARGET | |
834 | LIPO_FOR_TARGET | |
835 | NM_FOR_TARGET | |
836 | OBJDUMP_FOR_TARGET | |
837 | RANLIB_FOR_TARGET | |
e7a82751 | 838 | READELF_FOR_TARGET |
5213506e RW |
839 | STRIP_FOR_TARGET |
840 | WINDRES_FOR_TARGET | |
841 | WINDMC_FOR_TARGET' | |
842 | ||
671aa708 NN |
843 | |
844 | # Initialize some variables set by options. | |
1c710c3c DJ |
845 | ac_init_help= |
846 | ac_init_version=false | |
5213506e RW |
847 | ac_unrecognized_opts= |
848 | ac_unrecognized_sep= | |
671aa708 NN |
849 | # The variables have the same names as the options, with |
850 | # dashes changed to underlines. | |
1c710c3c | 851 | cache_file=/dev/null |
671aa708 | 852 | exec_prefix=NONE |
671aa708 | 853 | no_create= |
671aa708 NN |
854 | no_recursion= |
855 | prefix=NONE | |
856 | program_prefix=NONE | |
857 | program_suffix=NONE | |
858 | program_transform_name=s,x,x, | |
859 | silent= | |
860 | site= | |
861 | srcdir= | |
671aa708 NN |
862 | verbose= |
863 | x_includes=NONE | |
864 | x_libraries=NONE | |
1c710c3c DJ |
865 | |
866 | # Installation directory options. | |
867 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
868 | # and all the variables that are supposed to be based on exec_prefix | |
869 | # by default will actually change. | |
870 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 871 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
872 | bindir='${exec_prefix}/bin' |
873 | sbindir='${exec_prefix}/sbin' | |
874 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
875 | datarootdir='${prefix}/share' |
876 | datadir='${datarootdir}' | |
671aa708 NN |
877 | sysconfdir='${prefix}/etc' |
878 | sharedstatedir='${prefix}/com' | |
879 | localstatedir='${prefix}/var' | |
671aa708 NN |
880 | includedir='${prefix}/include' |
881 | oldincludedir='/usr/include' | |
5213506e RW |
882 | docdir='${datarootdir}/doc/${PACKAGE}' |
883 | infodir='${datarootdir}/info' | |
884 | htmldir='${docdir}' | |
885 | dvidir='${docdir}' | |
886 | pdfdir='${docdir}' | |
887 | psdir='${docdir}' | |
888 | libdir='${exec_prefix}/lib' | |
889 | localedir='${datarootdir}/locale' | |
890 | mandir='${datarootdir}/man' | |
79c06341 | 891 | |
671aa708 | 892 | ac_prev= |
5213506e | 893 | ac_dashdash= |
671aa708 NN |
894 | for ac_option |
895 | do | |
671aa708 NN |
896 | # If the previous option needs an argument, assign it. |
897 | if test -n "$ac_prev"; then | |
5213506e | 898 | eval $ac_prev=\$ac_option |
671aa708 NN |
899 | ac_prev= |
900 | continue | |
901 | fi | |
79c06341 | 902 | |
5213506e RW |
903 | case $ac_option in |
904 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
905 | *) ac_optarg=yes ;; | |
906 | esac | |
671aa708 NN |
907 | |
908 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
909 | ||
5213506e RW |
910 | case $ac_dashdash$ac_option in |
911 | --) | |
912 | ac_dashdash=yes ;; | |
671aa708 NN |
913 | |
914 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
915 | ac_prev=bindir ;; | |
916 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 917 | bindir=$ac_optarg ;; |
671aa708 NN |
918 | |
919 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 920 | ac_prev=build_alias ;; |
671aa708 | 921 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 922 | build_alias=$ac_optarg ;; |
671aa708 NN |
923 | |
924 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
925 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
926 | ac_prev=cache_file ;; | |
927 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
928 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
929 | cache_file=$ac_optarg ;; |
930 | ||
931 | --config-cache | -C) | |
932 | cache_file=config.cache ;; | |
671aa708 | 933 | |
5213506e | 934 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 935 | ac_prev=datadir ;; |
5213506e | 936 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 937 | datadir=$ac_optarg ;; |
671aa708 | 938 | |
5213506e RW |
939 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
940 | | --dataroo | --dataro | --datar) | |
941 | ac_prev=datarootdir ;; | |
942 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
943 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
944 | datarootdir=$ac_optarg ;; | |
945 | ||
671aa708 | 946 | -disable-* | --disable-*) |
5213506e | 947 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 948 | # Reject names that are not valid shell variable names. |
5213506e RW |
949 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
950 | as_fn_error "invalid feature name: $ac_useropt" | |
951 | ac_useropt_orig=$ac_useropt | |
952 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
953 | case $ac_user_opts in | |
954 | *" | |
955 | "enable_$ac_useropt" | |
956 | "*) ;; | |
957 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
958 | ac_unrecognized_sep=', ';; | |
959 | esac | |
960 | eval enable_$ac_useropt=no ;; | |
961 | ||
962 | -docdir | --docdir | --docdi | --doc | --do) | |
963 | ac_prev=docdir ;; | |
964 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
965 | docdir=$ac_optarg ;; | |
966 | ||
967 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
968 | ac_prev=dvidir ;; | |
969 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
970 | dvidir=$ac_optarg ;; | |
671aa708 NN |
971 | |
972 | -enable-* | --enable-*) | |
5213506e | 973 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 974 | # Reject names that are not valid shell variable names. |
5213506e RW |
975 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
976 | as_fn_error "invalid feature name: $ac_useropt" | |
977 | ac_useropt_orig=$ac_useropt | |
978 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
979 | case $ac_user_opts in | |
980 | *" | |
981 | "enable_$ac_useropt" | |
982 | "*) ;; | |
983 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
984 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 985 | esac |
5213506e | 986 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
987 | |
988 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
989 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
990 | | --exec | --exe | --ex) | |
991 | ac_prev=exec_prefix ;; | |
992 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
993 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
994 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 995 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
996 | |
997 | -gas | --gas | --ga | --g) | |
998 | # Obsolete; use --with-gas. | |
999 | with_gas=yes ;; | |
1000 | ||
1c710c3c DJ |
1001 | -help | --help | --hel | --he | -h) |
1002 | ac_init_help=long ;; | |
1003 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1004 | ac_init_help=recursive ;; | |
1005 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1006 | ac_init_help=short ;; | |
671aa708 NN |
1007 | |
1008 | -host | --host | --hos | --ho) | |
1c710c3c | 1009 | ac_prev=host_alias ;; |
671aa708 | 1010 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1011 | host_alias=$ac_optarg ;; |
671aa708 | 1012 | |
5213506e RW |
1013 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1014 | ac_prev=htmldir ;; | |
1015 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1016 | | --ht=*) | |
1017 | htmldir=$ac_optarg ;; | |
1018 | ||
671aa708 NN |
1019 | -includedir | --includedir | --includedi | --included | --include \ |
1020 | | --includ | --inclu | --incl | --inc) | |
1021 | ac_prev=includedir ;; | |
1022 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1023 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1024 | includedir=$ac_optarg ;; |
671aa708 NN |
1025 | |
1026 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1027 | ac_prev=infodir ;; | |
1028 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1029 | infodir=$ac_optarg ;; |
671aa708 NN |
1030 | |
1031 | -libdir | --libdir | --libdi | --libd) | |
1032 | ac_prev=libdir ;; | |
1033 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1034 | libdir=$ac_optarg ;; |
671aa708 NN |
1035 | |
1036 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1037 | | --libexe | --libex | --libe) | |
1038 | ac_prev=libexecdir ;; | |
1039 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1040 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1041 | libexecdir=$ac_optarg ;; |
671aa708 | 1042 | |
5213506e RW |
1043 | -localedir | --localedir | --localedi | --localed | --locale) |
1044 | ac_prev=localedir ;; | |
1045 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1046 | localedir=$ac_optarg ;; | |
1047 | ||
671aa708 | 1048 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1049 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1050 | ac_prev=localstatedir ;; |
1051 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1052 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1053 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1054 | |
1055 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1056 | ac_prev=mandir ;; | |
1057 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1058 | mandir=$ac_optarg ;; |
671aa708 NN |
1059 | |
1060 | -nfp | --nfp | --nf) | |
1061 | # Obsolete; use --without-fp. | |
1062 | with_fp=no ;; | |
1063 | ||
1064 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1065 | | --no-cr | --no-c | -n) |
671aa708 NN |
1066 | no_create=yes ;; |
1067 | ||
1068 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1069 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1070 | no_recursion=yes ;; | |
1071 | ||
1072 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1073 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1074 | | --oldin | --oldi | --old | --ol | --o) | |
1075 | ac_prev=oldincludedir ;; | |
1076 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1077 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1078 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1079 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1080 | |
1081 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1082 | ac_prev=prefix ;; | |
1083 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1084 | prefix=$ac_optarg ;; |
671aa708 NN |
1085 | |
1086 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1087 | | --program-pre | --program-pr | --program-p) | |
1088 | ac_prev=program_prefix ;; | |
1089 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1090 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1091 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1092 | |
1093 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1094 | | --program-suf | --program-su | --program-s) | |
1095 | ac_prev=program_suffix ;; | |
1096 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1097 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1098 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1099 | |
1100 | -program-transform-name | --program-transform-name \ | |
1101 | | --program-transform-nam | --program-transform-na \ | |
1102 | | --program-transform-n | --program-transform- \ | |
1103 | | --program-transform | --program-transfor \ | |
1104 | | --program-transfo | --program-transf \ | |
1105 | | --program-trans | --program-tran \ | |
1106 | | --progr-tra | --program-tr | --program-t) | |
1107 | ac_prev=program_transform_name ;; | |
1108 | -program-transform-name=* | --program-transform-name=* \ | |
1109 | | --program-transform-nam=* | --program-transform-na=* \ | |
1110 | | --program-transform-n=* | --program-transform-=* \ | |
1111 | | --program-transform=* | --program-transfor=* \ | |
1112 | | --program-transfo=* | --program-transf=* \ | |
1113 | | --program-trans=* | --program-tran=* \ | |
1114 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1115 | program_transform_name=$ac_optarg ;; |
671aa708 | 1116 | |
5213506e RW |
1117 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1118 | ac_prev=pdfdir ;; | |
1119 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1120 | pdfdir=$ac_optarg ;; | |
1121 | ||
1122 | -psdir | --psdir | --psdi | --psd | --ps) | |
1123 | ac_prev=psdir ;; | |
1124 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1125 | psdir=$ac_optarg ;; | |
1126 | ||
671aa708 NN |
1127 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1128 | | -silent | --silent | --silen | --sile | --sil) | |
1129 | silent=yes ;; | |
1130 | ||
1131 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1132 | ac_prev=sbindir ;; | |
1133 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1134 | | --sbi=* | --sb=*) | |
1c710c3c | 1135 | sbindir=$ac_optarg ;; |
671aa708 NN |
1136 | |
1137 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1138 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1139 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1140 | | --sha | --sh) | |
1141 | ac_prev=sharedstatedir ;; | |
1142 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1143 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1144 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1145 | | --sha=* | --sh=*) | |
1c710c3c | 1146 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1147 | |
1148 | -site | --site | --sit) | |
1149 | ac_prev=site ;; | |
1150 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1151 | site=$ac_optarg ;; |
671aa708 NN |
1152 | |
1153 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1154 | ac_prev=srcdir ;; | |
1155 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1156 | srcdir=$ac_optarg ;; |
671aa708 NN |
1157 | |
1158 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1159 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1160 | ac_prev=sysconfdir ;; | |
1161 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1162 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1163 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1164 | |
1165 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1166 | ac_prev=target_alias ;; |
671aa708 | 1167 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1168 | target_alias=$ac_optarg ;; |
671aa708 NN |
1169 | |
1170 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1171 | verbose=yes ;; | |
1172 | ||
1c710c3c DJ |
1173 | -version | --version | --versio | --versi | --vers | -V) |
1174 | ac_init_version=: ;; | |
671aa708 NN |
1175 | |
1176 | -with-* | --with-*) | |
5213506e | 1177 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1178 | # Reject names that are not valid shell variable names. |
5213506e RW |
1179 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1180 | as_fn_error "invalid package name: $ac_useropt" | |
1181 | ac_useropt_orig=$ac_useropt | |
1182 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1183 | case $ac_user_opts in | |
1184 | *" | |
1185 | "with_$ac_useropt" | |
1186 | "*) ;; | |
1187 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1188 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1189 | esac |
5213506e | 1190 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1191 | |
1192 | -without-* | --without-*) | |
5213506e | 1193 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1194 | # Reject names that are not valid shell variable names. |
5213506e RW |
1195 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1196 | as_fn_error "invalid package name: $ac_useropt" | |
1197 | ac_useropt_orig=$ac_useropt | |
1198 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1199 | case $ac_user_opts in | |
1200 | *" | |
1201 | "with_$ac_useropt" | |
1202 | "*) ;; | |
1203 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1204 | ac_unrecognized_sep=', ';; | |
1205 | esac | |
1206 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1207 | |
1208 | --x) | |
1209 | # Obsolete; use --with-x. | |
1210 | with_x=yes ;; | |
1211 | ||
1212 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1213 | | --x-incl | --x-inc | --x-in | --x-i) | |
1214 | ac_prev=x_includes ;; | |
1215 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1216 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1217 | x_includes=$ac_optarg ;; |
671aa708 NN |
1218 | |
1219 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1220 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1221 | ac_prev=x_libraries ;; | |
1222 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1223 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1224 | x_libraries=$ac_optarg ;; |
671aa708 | 1225 | |
5213506e RW |
1226 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1227 | Try \`$0 --help' for more information." | |
671aa708 NN |
1228 | ;; |
1229 | ||
1c710c3c DJ |
1230 | *=*) |
1231 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1232 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1233 | case $ac_envvar in #( |
1234 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1235 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1236 | esac | |
1237 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1238 | export $ac_envvar ;; |
1239 | ||
671aa708 | 1240 | *) |
1c710c3c | 1241 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1242 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1243 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1244 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1c710c3c | 1245 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
671aa708 NN |
1246 | ;; |
1247 | ||
1248 | esac | |
1249 | done | |
1250 | ||
1251 | if test -n "$ac_prev"; then | |
1c710c3c | 1252 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5213506e | 1253 | as_fn_error "missing argument to $ac_option" |
af71363e | 1254 | fi |
af71363e | 1255 | |
5213506e RW |
1256 | if test -n "$ac_unrecognized_opts"; then |
1257 | case $enable_option_checking in | |
1258 | no) ;; | |
1259 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1260 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
2aeb72e9 | 1261 | esac |
5213506e | 1262 | fi |
2aeb72e9 | 1263 | |
5213506e RW |
1264 | # Check all directory arguments for consistency. |
1265 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1266 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1267 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1268 | libdir localedir mandir | |
2aeb72e9 | 1269 | do |
5213506e RW |
1270 | eval ac_val=\$$ac_var |
1271 | # Remove trailing slashes. | |
1272 | case $ac_val in | |
1273 | */ ) | |
1274 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1275 | eval $ac_var=\$ac_val;; | |
1276 | esac | |
1277 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1278 | case $ac_val in |
5213506e RW |
1279 | [\\/$]* | ?:[\\/]* ) continue;; |
1280 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1281 | esac |
5213506e | 1282 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1283 | done |
1284 | ||
1c710c3c DJ |
1285 | # There might be people who depend on the old broken behavior: `$host' |
1286 | # used to hold the argument of --host etc. | |
1287 | # FIXME: To remove some day. | |
1288 | build=$build_alias | |
1289 | host=$host_alias | |
1290 | target=$target_alias | |
0b0dc272 | 1291 | |
1c710c3c DJ |
1292 | # FIXME: To remove some day. |
1293 | if test "x$host_alias" != x; then | |
1294 | if test "x$build_alias" = x; then | |
1295 | cross_compiling=maybe | |
5213506e | 1296 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1c710c3c DJ |
1297 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1298 | elif test "x$build_alias" != "x$host_alias"; then | |
1299 | cross_compiling=yes | |
1300 | fi | |
1301 | fi | |
1302 | ||
1303 | ac_tool_prefix= | |
1304 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1305 | ||
1306 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1307 | |
671aa708 | 1308 | |
5213506e RW |
1309 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1310 | ac_ls_di=`ls -di .` && | |
1311 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1312 | as_fn_error "working directory cannot be determined" | |
1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1314 | as_fn_error "pwd does not report name of working directory" | |
1315 | ||
1316 | ||
671aa708 NN |
1317 | # Find the source files, if location was not specified. |
1318 | if test -z "$srcdir"; then | |
1319 | ac_srcdir_defaulted=yes | |
5213506e RW |
1320 | # Try the directory containing this script, then the parent directory. |
1321 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1322 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1323 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1324 | X"$as_myself" : 'X\(//\)$' \| \ | |
1325 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1326 | $as_echo X"$as_myself" | | |
1327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)[^/].*/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)$/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\).*/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | s/.*/./; q'` | |
671aa708 | 1344 | srcdir=$ac_confdir |
5213506e | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1346 | srcdir=.. |
1347 | fi | |
1348 | else | |
1349 | ac_srcdir_defaulted=no | |
1350 | fi | |
5213506e RW |
1351 | if test ! -r "$srcdir/$ac_unique_file"; then |
1352 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1353 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1354 | fi | |
1355 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1356 | ac_abs_confdir=`( | |
1357 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1358 | pwd)` | |
1359 | # When building in place, set srcdir=. | |
1360 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1361 | srcdir=. | |
1362 | fi | |
1363 | # Remove unnecessary trailing slashes from srcdir. | |
1364 | # Double slashes in file names in object file debugging info | |
1365 | # mess up M-x gdb in Emacs. | |
1366 | case $srcdir in | |
1367 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1368 | esac | |
87841584 AM |
1369 | case $srcdir in |
1370 | *" "*) | |
1371 | as_fn_error "path to source, $srcdir, contains spaces" | |
1372 | ;; | |
1373 | esac | |
ac9e6043 RW |
1374 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1375 | ||
5213506e RW |
1376 | for ac_var in $ac_precious_vars; do |
1377 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1378 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1379 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1380 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1381 | done | |
1c710c3c DJ |
1382 | |
1383 | # | |
1384 | # Report the --help message. | |
1385 | # | |
1386 | if test "$ac_init_help" = "long"; then | |
1387 | # Omit some internal or obsolete options to make the list less imposing. | |
1388 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1389 | cat <<_ACEOF | |
1390 | \`configure' configures this package to adapt to many kinds of systems. | |
1391 | ||
1392 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1393 | ||
1394 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1395 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1396 | ||
1397 | Defaults for the options are specified in brackets. | |
1398 | ||
1399 | Configuration: | |
1400 | -h, --help display this help and exit | |
1401 | --help=short display options specific to this package | |
1402 | --help=recursive display the short help of all the included packages | |
1403 | -V, --version display version information and exit | |
1404 | -q, --quiet, --silent do not print \`checking...' messages | |
1405 | --cache-file=FILE cache test results in FILE [disabled] | |
1406 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1407 | -n, --no-create do not create output files | |
1408 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1409 | ||
1c710c3c DJ |
1410 | Installation directories: |
1411 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1412 | [$ac_default_prefix] |
1c710c3c | 1413 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1414 | [PREFIX] |
1c710c3c DJ |
1415 | |
1416 | By default, \`make install' will install all the files in | |
1417 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1418 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1419 | for instance \`--prefix=\$HOME'. | |
1420 | ||
1421 | For better control, use the options below. | |
1422 | ||
1423 | Fine tuning of the installation directories: | |
5213506e RW |
1424 | --bindir=DIR user executables [EPREFIX/bin] |
1425 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1426 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1427 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1428 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1429 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1430 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1431 | --includedir=DIR C header files [PREFIX/include] | |
1432 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1433 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1434 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1435 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1436 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1437 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1439 | --htmldir=DIR html documentation [DOCDIR] | |
1440 | --dvidir=DIR dvi documentation [DOCDIR] | |
1441 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1442 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1443 | _ACEOF |
1444 | ||
1445 | cat <<\_ACEOF | |
1446 | ||
1447 | Program names: | |
1448 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1449 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1450 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1451 | ||
1452 | System types: | |
1453 | --build=BUILD configure for building on BUILD [guessed] | |
1454 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1455 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1456 | _ACEOF | |
1457 | fi | |
1458 | ||
1459 | if test -n "$ac_init_help"; then | |
1460 | ||
1461 | cat <<\_ACEOF | |
1462 | ||
1463 | Optional Features: | |
5213506e | 1464 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1465 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1466 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1467 | --enable-as-accelerator-for=ARG |
1468 | build as offload target compiler. Specify offload | |
1469 | host triple by ARG | |
1470 | --enable-offload-targets=LIST | |
1471 | enable offloading to devices from comma-separated | |
1472 | LIST of TARGET[=DIR]. Use optional path to find | |
1473 | offload target compiler during the build | |
21539e2e | 1474 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1475 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
87e6d9dc TB |
1476 | --disable-libquadmath do not build libquadmath directory |
1477 | --disable-libquadmath-support | |
1478 | disable libquadmath support for Fortran | |
30b74385 RW |
1479 | --enable-libada build libada directory |
1480 | --enable-libssp build libssp directory | |
1873ec0c | 1481 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1482 | --enable-liboffloadmic=ARG |
1483 | build liboffloadmic [ARG={no,host,target}] | |
a4a2c37d MK |
1484 | --enable-static-libjava[=ARG] |
1485 | build static libjava [default=no] | |
ff3ac0f4 | 1486 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 RG |
1487 | --disable-isl-version-check |
1488 | disable check for ISL version | |
d7f09764 | 1489 | --enable-lto enable link time optimization support |
45b3824d TS |
1490 | --enable-linker-plugin-configure-flags=FLAGS |
1491 | additional flags for configuring linker plugins | |
1492 | [none] | |
1493 | --enable-linker-plugin-flags=FLAGS | |
1494 | additional flags for configuring and building linker | |
1495 | plugins [none] | |
33e39b66 AS |
1496 | --enable-stage1-languages[=all] |
1497 | choose additional languages to build during stage1. | |
1498 | Mostly useful for compiler development | |
1499 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1500 | Objective-C runtime | |
beeda1d9 | 1501 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1502 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1503 | force sequential configuration of sub-packages for |
1504 | the host, target or build machine, or all | |
1505 | sub-packages | |
1506 | --enable-maintainer-mode | |
1507 | enable make rules and dependencies not useful (and | |
1508 | sometimes confusing) to the casual installer | |
1509 | --enable-stage1-checking[=all] | |
1510 | choose additional checking for stage1 of the | |
1511 | compiler | |
1c710c3c | 1512 | --enable-werror enable -Werror in bootstrap stage2 and later |
459260ec | 1513 | --enable-host-shared build host code as shared libraries |
1c710c3c DJ |
1514 | |
1515 | Optional Packages: | |
1516 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1517 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1518 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
33e39b66 AS |
1519 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1520 | Equivalent to --with-mpc-include=PATH/include plus | |
1521 | --with-mpc-lib=PATH/lib | |
1522 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1523 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1524 | --with-mpfr-dir=PATH this option has been REMOVED |
1525 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1526 | Equivalent to --with-mpfr-include=PATH/include plus |
1527 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1528 | --with-mpfr-include=PATH |
30b74385 RW |
1529 | specify directory for installed MPFR include files |
1530 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1531 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1532 | --with-gmp=PATH specify prefix directory for the installed GMP |
1533 | package. Equivalent to | |
1534 | --with-gmp-include=PATH/include plus | |
1535 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1536 | --with-gmp-include=PATH specify directory for installed GMP include files |
1537 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
33e39b66 AS |
1538 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1539 | linking with PPL | |
0b21f5d3 | 1540 | --with-stage1-libs=LIBS libraries for stage1 |
33e39b66 AS |
1541 | --with-stage1-ldflags=FLAGS |
1542 | linker flags for stage1 | |
33e39b66 AS |
1543 | --with-boot-libs=LIBS libraries for stage2 and later |
1544 | --with-boot-ldflags=FLAGS | |
1545 | linker flags for stage2 and later | |
33ad93b9 | 1546 | --with-isl=PATH Specify prefix directory for the installed ISL |
33e39b66 | 1547 | package. Equivalent to |
33ad93b9 RG |
1548 | --with-isl-include=PATH/include plus |
1549 | --with-isl-lib=PATH/lib | |
1550 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1551 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
30b74385 | 1552 | --with-build-sysroot=SYSROOT |
1c710c3c | 1553 | use sysroot as the system root during the build |
c8aea42c | 1554 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1555 | map A to B, C to D ... in debug information |
1556 | --with-build-config='NAME NAME2...' | |
1557 | use config/NAME.mk build configuration | |
30b74385 | 1558 | --with-build-time-tools=PATH |
1c710c3c | 1559 | use given path to find target tools during the build |
1c710c3c DJ |
1560 | |
1561 | Some influential environment variables: | |
1562 | CC C compiler command | |
1563 | CFLAGS C compiler flags | |
1564 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1565 | nonstandard directory <lib dir> | |
5213506e RW |
1566 | LIBS libraries to pass to the linker, e.g. -l<library> |
1567 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1568 | you have headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
1569 | CXX C++ compiler command |
1570 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1571 | build_configargs |
1572 | additional configure arguments for build directories | |
1573 | host_configargs | |
1574 | additional configure arguments for host directories | |
1575 | target_configargs | |
1576 | additional configure arguments for target directories | |
278a7a38 AO |
1577 | AR AR for the host |
1578 | AS AS for the host | |
1579 | DLLTOOL DLLTOOL for the host | |
1580 | LD LD for the host | |
1581 | LIPO LIPO for the host | |
1582 | NM NM for the host | |
1583 | RANLIB RANLIB for the host | |
1584 | STRIP STRIP for the host | |
1585 | WINDRES WINDRES for the host | |
901119ae | 1586 | WINDMC WINDMC for the host |
278a7a38 AO |
1587 | OBJCOPY OBJCOPY for the host |
1588 | OBJDUMP OBJDUMP for the host | |
e7a82751 | 1589 | READELF READELF for the host |
278a7a38 AO |
1590 | CC_FOR_TARGET |
1591 | CC for the target | |
1592 | CXX_FOR_TARGET | |
1593 | CXX for the target | |
1594 | GCC_FOR_TARGET | |
1595 | GCC for the target | |
1596 | GCJ_FOR_TARGET | |
1597 | GCJ for the target | |
1598 | GFORTRAN_FOR_TARGET | |
1599 | GFORTRAN for the target | |
632e2a07 ILT |
1600 | GOC_FOR_TARGET |
1601 | GOC for the target | |
278a7a38 AO |
1602 | AR_FOR_TARGET |
1603 | AR for the target | |
1604 | AS_FOR_TARGET | |
1605 | AS for the target | |
1606 | DLLTOOL_FOR_TARGET | |
1607 | DLLTOOL for the target | |
1608 | LD_FOR_TARGET | |
1609 | LD for the target | |
1610 | LIPO_FOR_TARGET | |
1611 | LIPO for the target | |
1612 | NM_FOR_TARGET | |
1613 | NM for the target | |
1614 | OBJDUMP_FOR_TARGET | |
1615 | OBJDUMP for the target | |
1616 | RANLIB_FOR_TARGET | |
1617 | RANLIB for the target | |
e7a82751 RM |
1618 | READELF_FOR_TARGET |
1619 | READELF for the target | |
278a7a38 AO |
1620 | STRIP_FOR_TARGET |
1621 | STRIP for the target | |
1622 | WINDRES_FOR_TARGET | |
1623 | WINDRES for the target | |
901119ae KT |
1624 | WINDMC_FOR_TARGET |
1625 | WINDMC for the target | |
1c710c3c DJ |
1626 | |
1627 | Use these variables to override the choices made by `configure' or to help | |
1628 | it to find libraries and programs with nonstandard names/locations. | |
1629 | ||
5213506e | 1630 | Report bugs to the package provider. |
1c710c3c | 1631 | _ACEOF |
5213506e | 1632 | ac_status=$? |
1c710c3c DJ |
1633 | fi |
1634 | ||
1635 | if test "$ac_init_help" = "recursive"; then | |
1636 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1637 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1638 | test -d "$ac_dir" || |
1639 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1640 | continue | |
1c710c3c DJ |
1641 | ac_builddir=. |
1642 | ||
5213506e RW |
1643 | case "$ac_dir" in |
1644 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1645 | *) | |
1646 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1647 | # A ".." for each directory in $ac_dir_suffix. | |
1648 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1649 | case $ac_top_builddir_sub in | |
1650 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1651 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1652 | esac ;; | |
1653 | esac | |
1654 | ac_abs_top_builddir=$ac_pwd | |
1655 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1656 | # for backward compatibility: | |
1657 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1658 | |
1659 | case $srcdir in | |
5213506e | 1660 | .) # We are building in place. |
1c710c3c | 1661 | ac_srcdir=. |
5213506e RW |
1662 | ac_top_srcdir=$ac_top_builddir_sub |
1663 | ac_abs_top_srcdir=$ac_pwd ;; | |
1664 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1665 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1666 | ac_top_srcdir=$srcdir |
1667 | ac_abs_top_srcdir=$srcdir ;; | |
1668 | *) # Relative name. | |
1669 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1670 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1671 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1672 | esac |
5213506e RW |
1673 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1674 | ||
1675 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1676 | # Check for guested configure. | |
1677 | if test -f "$ac_srcdir/configure.gnu"; then | |
1678 | echo && | |
1679 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1680 | elif test -f "$ac_srcdir/configure"; then | |
1681 | echo && | |
1682 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1683 | else |
5213506e RW |
1684 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1685 | fi || ac_status=$? | |
1686 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1687 | done |
1688 | fi | |
1689 | ||
5213506e | 1690 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1691 | if $ac_init_version; then |
1692 | cat <<\_ACEOF | |
5213506e RW |
1693 | configure |
1694 | generated by GNU Autoconf 2.64 | |
1c710c3c | 1695 | |
5213506e | 1696 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
1697 | This configure script is free software; the Free Software Foundation |
1698 | gives unlimited permission to copy, distribute and modify it. | |
1699 | _ACEOF | |
5213506e | 1700 | exit |
0b0dc272 | 1701 | fi |
5213506e RW |
1702 | |
1703 | ## ------------------------ ## | |
1704 | ## Autoconf initialization. ## | |
1705 | ## ------------------------ ## | |
1706 | ||
1707 | # ac_fn_c_try_compile LINENO | |
1708 | # -------------------------- | |
1709 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1710 | ac_fn_c_try_compile () | |
1711 | { | |
1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1713 | rm -f conftest.$ac_objext | |
1714 | if { { ac_try="$ac_compile" | |
1715 | case "(($ac_try" in | |
1716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1717 | *) ac_try_echo=$ac_try;; | |
1718 | esac | |
1719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1720 | $as_echo "$ac_try_echo"; } >&5 | |
1721 | (eval "$ac_compile") 2>conftest.err | |
1722 | ac_status=$? | |
1723 | if test -s conftest.err; then | |
1724 | grep -v '^ *+' conftest.err >conftest.er1 | |
1725 | cat conftest.er1 >&5 | |
1726 | mv -f conftest.er1 conftest.err | |
1727 | fi | |
1728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1729 | test $ac_status = 0; } && { | |
1730 | test -z "$ac_c_werror_flag" || | |
1731 | test ! -s conftest.err | |
1732 | } && test -s conftest.$ac_objext; then : | |
1733 | ac_retval=0 | |
1734 | else | |
1735 | $as_echo "$as_me: failed program was:" >&5 | |
1736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1737 | ||
1738 | ac_retval=1 | |
1739 | fi | |
1740 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1741 | return $ac_retval | |
1742 | ||
1743 | } # ac_fn_c_try_compile | |
1744 | ||
1745 | # ac_fn_cxx_try_compile LINENO | |
1746 | # ---------------------------- | |
1747 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1748 | ac_fn_cxx_try_compile () | |
1749 | { | |
1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1751 | rm -f conftest.$ac_objext | |
1752 | if { { ac_try="$ac_compile" | |
1753 | case "(($ac_try" in | |
1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1755 | *) ac_try_echo=$ac_try;; | |
1756 | esac | |
1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1758 | $as_echo "$ac_try_echo"; } >&5 | |
1759 | (eval "$ac_compile") 2>conftest.err | |
1760 | ac_status=$? | |
1761 | if test -s conftest.err; then | |
1762 | grep -v '^ *+' conftest.err >conftest.er1 | |
1763 | cat conftest.er1 >&5 | |
1764 | mv -f conftest.er1 conftest.err | |
1765 | fi | |
1766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1767 | test $ac_status = 0; } && { | |
1768 | test -z "$ac_cxx_werror_flag" || | |
1769 | test ! -s conftest.err | |
1770 | } && test -s conftest.$ac_objext; then : | |
1771 | ac_retval=0 | |
1772 | else | |
1773 | $as_echo "$as_me: failed program was:" >&5 | |
1774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1775 | ||
1776 | ac_retval=1 | |
1777 | fi | |
1778 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1779 | return $ac_retval | |
1780 | ||
1781 | } # ac_fn_cxx_try_compile | |
1782 | ||
0b21f5d3 EB |
1783 | # ac_fn_cxx_try_link LINENO |
1784 | # ------------------------- | |
1785 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1786 | ac_fn_cxx_try_link () | |
1787 | { | |
1788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1790 | if { { ac_try="$ac_link" | |
1791 | case "(($ac_try" in | |
1792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1793 | *) ac_try_echo=$ac_try;; | |
1794 | esac | |
1795 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1796 | $as_echo "$ac_try_echo"; } >&5 | |
1797 | (eval "$ac_link") 2>conftest.err | |
1798 | ac_status=$? | |
1799 | if test -s conftest.err; then | |
1800 | grep -v '^ *+' conftest.err >conftest.er1 | |
1801 | cat conftest.er1 >&5 | |
1802 | mv -f conftest.er1 conftest.err | |
1803 | fi | |
1804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1805 | test $ac_status = 0; } && { | |
1806 | test -z "$ac_cxx_werror_flag" || | |
1807 | test ! -s conftest.err | |
1808 | } && test -s conftest$ac_exeext && { | |
1809 | test "$cross_compiling" = yes || | |
1810 | $as_test_x conftest$ac_exeext | |
1811 | }; then : | |
1812 | ac_retval=0 | |
1813 | else | |
1814 | $as_echo "$as_me: failed program was:" >&5 | |
1815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1816 | ||
1817 | ac_retval=1 | |
1818 | fi | |
1819 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1820 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1821 | # interfere with the next link command; also delete a directory that is | |
1822 | # left behind by Apple's compiler. We do this before executing the actions. | |
1823 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1824 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1825 | return $ac_retval | |
1826 | ||
1827 | } # ac_fn_cxx_try_link | |
1828 | ||
5213506e RW |
1829 | # ac_fn_c_try_link LINENO |
1830 | # ----------------------- | |
1831 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1832 | ac_fn_c_try_link () | |
1833 | { | |
1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1836 | if { { ac_try="$ac_link" | |
1837 | case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_link") 2>conftest.err | |
1844 | ac_status=$? | |
1845 | if test -s conftest.err; then | |
1846 | grep -v '^ *+' conftest.err >conftest.er1 | |
1847 | cat conftest.er1 >&5 | |
1848 | mv -f conftest.er1 conftest.err | |
1849 | fi | |
1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1851 | test $ac_status = 0; } && { | |
1852 | test -z "$ac_c_werror_flag" || | |
1853 | test ! -s conftest.err | |
1854 | } && test -s conftest$ac_exeext && { | |
1855 | test "$cross_compiling" = yes || | |
1856 | $as_test_x conftest$ac_exeext | |
1857 | }; then : | |
1858 | ac_retval=0 | |
1859 | else | |
1860 | $as_echo "$as_me: failed program was:" >&5 | |
1861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1862 | ||
1863 | ac_retval=1 | |
1864 | fi | |
1865 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1866 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1867 | # interfere with the next link command; also delete a directory that is | |
1868 | # left behind by Apple's compiler. We do this before executing the actions. | |
1869 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1870 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1871 | return $ac_retval | |
1872 | ||
1873 | } # ac_fn_c_try_link | |
1874 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1875 | This file contains any messages produced by compilers while |
1876 | running configure, to aid debugging if configure makes a mistake. | |
1877 | ||
1878 | It was created by $as_me, which was | |
5213506e | 1879 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
1880 | |
1881 | $ $0 $@ | |
1882 | ||
1883 | _ACEOF | |
5213506e | 1884 | exec 5>>config.log |
1c710c3c DJ |
1885 | { |
1886 | cat <<_ASUNAME | |
1887 | ## --------- ## | |
1888 | ## Platform. ## | |
1889 | ## --------- ## | |
1890 | ||
1891 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1892 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1893 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1894 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1895 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1896 | ||
1897 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1898 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1899 | ||
1900 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1901 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1902 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1903 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1904 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1905 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1906 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1907 | ||
1908 | _ASUNAME | |
1909 | ||
1910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1911 | for as_dir in $PATH | |
1912 | do | |
1913 | IFS=$as_save_IFS | |
1914 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1915 | $as_echo "PATH: $as_dir" |
1916 | done | |
1917 | IFS=$as_save_IFS | |
1c710c3c DJ |
1918 | |
1919 | } >&5 | |
1920 | ||
1921 | cat >&5 <<_ACEOF | |
1922 | ||
1923 | ||
1924 | ## ----------- ## | |
1925 | ## Core tests. ## | |
1926 | ## ----------- ## | |
1927 | ||
1928 | _ACEOF | |
1929 | ||
1930 | ||
1931 | # Keep a trace of the command line. | |
1932 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1933 | # Strip out --silent because we don't want to record it for future runs. | |
1934 | # Also quote any args containing shell meta-characters. | |
1935 | # Make two passes to allow for proper duplicate-argument suppression. | |
1936 | ac_configure_args= | |
1937 | ac_configure_args0= | |
1938 | ac_configure_args1= | |
1c710c3c DJ |
1939 | ac_must_keep_next=false |
1940 | for ac_pass in 1 2 | |
1941 | do | |
1942 | for ac_arg | |
1943 | do | |
1944 | case $ac_arg in | |
1945 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1946 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1947 | | -silent | --silent | --silen | --sile | --sil) | |
1948 | continue ;; | |
5213506e RW |
1949 | *\'*) |
1950 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1951 | esac |
1952 | case $ac_pass in | |
5213506e | 1953 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 1954 | 2) |
5213506e | 1955 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
1956 | if test $ac_must_keep_next = true; then |
1957 | ac_must_keep_next=false # Got value, back to normal. | |
1958 | else | |
1959 | case $ac_arg in | |
1960 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1961 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1962 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1963 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1964 | case "$ac_configure_args0 " in | |
1965 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1966 | esac | |
1967 | ;; | |
1968 | -* ) ac_must_keep_next=true ;; | |
1969 | esac | |
1970 | fi | |
5213506e | 1971 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
1972 | ;; |
1973 | esac | |
1974 | done | |
1975 | done | |
5213506e RW |
1976 | { ac_configure_args0=; unset ac_configure_args0;} |
1977 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
1978 | |
1979 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1980 | # config.log. We remove comments because anyway the quotes in there | |
1981 | # would cause problems or look ugly. | |
5213506e RW |
1982 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1983 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
1984 | trap 'exit_status=$? |
1985 | # Save into config.log some information that might help in debugging. | |
1986 | { | |
1987 | echo | |
1988 | ||
1989 | cat <<\_ASBOX | |
1990 | ## ---------------- ## | |
1991 | ## Cache variables. ## | |
1992 | ## ---------------- ## | |
1993 | _ASBOX | |
1994 | echo | |
1995 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1996 | ( |
1997 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1998 | eval ac_val=\$$ac_var | |
1999 | case $ac_val in #( | |
2000 | *${as_nl}*) | |
2001 | case $ac_var in #( | |
2002 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2003 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2004 | esac | |
2005 | case $ac_var in #( | |
2006 | _ | IFS | as_nl) ;; #( | |
2007 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2008 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2009 | esac ;; | |
2010 | esac | |
2011 | done | |
1c710c3c | 2012 | (set) 2>&1 | |
5213506e RW |
2013 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2014 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2015 | sed -n \ |
5213506e RW |
2016 | "s/'\''/'\''\\\\'\'''\''/g; |
2017 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2018 | ;; #( | |
1c710c3c | 2019 | *) |
5213506e | 2020 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2021 | ;; |
5213506e RW |
2022 | esac | |
2023 | sort | |
2024 | ) | |
1c710c3c DJ |
2025 | echo |
2026 | ||
2027 | cat <<\_ASBOX | |
2028 | ## ----------------- ## | |
2029 | ## Output variables. ## | |
2030 | ## ----------------- ## | |
2031 | _ASBOX | |
2032 | echo | |
2033 | for ac_var in $ac_subst_vars | |
2034 | do | |
5213506e RW |
2035 | eval ac_val=\$$ac_var |
2036 | case $ac_val in | |
2037 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2038 | esac | |
2039 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2040 | done | sort |
2041 | echo | |
2042 | ||
2043 | if test -n "$ac_subst_files"; then | |
2044 | cat <<\_ASBOX | |
5213506e RW |
2045 | ## ------------------- ## |
2046 | ## File substitutions. ## | |
2047 | ## ------------------- ## | |
1c710c3c DJ |
2048 | _ASBOX |
2049 | echo | |
2050 | for ac_var in $ac_subst_files | |
2051 | do | |
5213506e RW |
2052 | eval ac_val=\$$ac_var |
2053 | case $ac_val in | |
2054 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2055 | esac | |
2056 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2057 | done | sort |
2058 | echo | |
2059 | fi | |
2060 | ||
2061 | if test -s confdefs.h; then | |
2062 | cat <<\_ASBOX | |
2063 | ## ----------- ## | |
2064 | ## confdefs.h. ## | |
2065 | ## ----------- ## | |
2066 | _ASBOX | |
2067 | echo | |
5213506e | 2068 | cat confdefs.h |
1c710c3c DJ |
2069 | echo |
2070 | fi | |
2071 | test "$ac_signal" != 0 && | |
5213506e RW |
2072 | $as_echo "$as_me: caught signal $ac_signal" |
2073 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2074 | } >&5 |
5213506e RW |
2075 | rm -f core *.core core.conftest.* && |
2076 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2077 | exit $exit_status |
5213506e | 2078 | ' 0 |
1c710c3c | 2079 | for ac_signal in 1 2 13 15; do |
5213506e | 2080 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2081 | done |
2082 | ac_signal=0 | |
2083 | ||
2084 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2085 | rm -f -r conftest* confdefs.h |
2086 | ||
2087 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2088 | |
2089 | # Predefined preprocessor variables. | |
2090 | ||
2091 | cat >>confdefs.h <<_ACEOF | |
2092 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2093 | _ACEOF | |
2094 | ||
1c710c3c DJ |
2095 | cat >>confdefs.h <<_ACEOF |
2096 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2097 | _ACEOF | |
2098 | ||
1c710c3c DJ |
2099 | cat >>confdefs.h <<_ACEOF |
2100 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2101 | _ACEOF | |
0b0dc272 | 2102 | |
1c710c3c DJ |
2103 | cat >>confdefs.h <<_ACEOF |
2104 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2105 | _ACEOF | |
2106 | ||
1c710c3c DJ |
2107 | cat >>confdefs.h <<_ACEOF |
2108 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2109 | _ACEOF | |
2110 | ||
5213506e RW |
2111 | cat >>confdefs.h <<_ACEOF |
2112 | #define PACKAGE_URL "$PACKAGE_URL" | |
2113 | _ACEOF | |
2114 | ||
1c710c3c DJ |
2115 | |
2116 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2117 | # Prefer an explicitly selected file to automatically selected ones. |
2118 | ac_site_file1=NONE | |
2119 | ac_site_file2=NONE | |
2120 | if test -n "$CONFIG_SITE"; then | |
2121 | ac_site_file1=$CONFIG_SITE | |
2122 | elif test "x$prefix" != xNONE; then | |
2123 | ac_site_file1=$prefix/share/config.site | |
2124 | ac_site_file2=$prefix/etc/config.site | |
2125 | else | |
2126 | ac_site_file1=$ac_default_prefix/share/config.site | |
2127 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2128 | fi |
5213506e RW |
2129 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2130 | do | |
2131 | test "x$ac_site_file" = xNONE && continue | |
671aa708 | 2132 | if test -r "$ac_site_file"; then |
5213506e RW |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2134 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2135 | sed 's/^/| /' "$ac_site_file" >&5 |
671aa708 NN |
2136 | . "$ac_site_file" |
2137 | fi | |
2138 | done | |
2139 | ||
2140 | if test -r "$cache_file"; then | |
1c710c3c DJ |
2141 | # Some versions of bash will fail to source /dev/null (special |
2142 | # files actually), so we avoid doing that. | |
2143 | if test -f "$cache_file"; then | |
5213506e RW |
2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2145 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2146 | case $cache_file in |
5213506e RW |
2147 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2148 | *) . "./$cache_file";; | |
1c710c3c DJ |
2149 | esac |
2150 | fi | |
671aa708 | 2151 | else |
5213506e RW |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2153 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2154 | >$cache_file |
2155 | fi | |
2156 | ||
2157 | # Check that the precious variables saved in the cache have kept the same | |
2158 | # value. | |
2159 | ac_cache_corrupted=false | |
5213506e | 2160 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2161 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2162 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2163 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2164 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2165 | case $ac_old_set,$ac_new_set in |
2166 | set,) | |
5213506e RW |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2168 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2169 | ac_cache_corrupted=: ;; |
2170 | ,set) | |
5213506e RW |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2172 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2173 | ac_cache_corrupted=: ;; |
2174 | ,);; | |
2175 | *) | |
2176 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2177 | # differences in whitespace do not lead to failure. |
2178 | ac_old_val_w=`echo x $ac_old_val` | |
2179 | ac_new_val_w=`echo x $ac_new_val` | |
2180 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2182 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2183 | ac_cache_corrupted=: | |
2184 | else | |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2186 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2187 | eval $ac_var=\$ac_old_val | |
2188 | fi | |
2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2190 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2192 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2193 | fi;; |
2194 | esac | |
2195 | # Pass precious variables to config.status. | |
2196 | if test "$ac_new_set" = set; then | |
2197 | case $ac_new_val in | |
5213506e | 2198 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2199 | *) ac_arg=$ac_var=$ac_new_val ;; |
2200 | esac | |
2201 | case " $ac_configure_args " in | |
2202 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2203 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2204 | esac |
2205 | fi | |
2206 | done | |
2207 | if $ac_cache_corrupted; then | |
5213506e RW |
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2209 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2211 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2212 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
671aa708 | 2213 | fi |
5213506e RW |
2214 | ## -------------------- ## |
2215 | ## Main body of script. ## | |
2216 | ## -------------------- ## | |
671aa708 | 2217 | |
2aeb72e9 DD |
2218 | ac_ext=c |
2219 | ac_cpp='$CPP $CPPFLAGS' | |
2220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2223 | ||
1c710c3c DJ |
2224 | |
2225 | ||
2226 | ||
1c710c3c DJ |
2227 | |
2228 | ||
0115d4a3 | 2229 | |
1c710c3c | 2230 | |
ad33ff57 RW |
2231 | |
2232 | progname=$0 | |
2233 | # if PWD already has a value, it is probably wrong. | |
2234 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2235 | ||
2236 | # Export original configure arguments for use by sub-configures. | |
2237 | # Quote arguments with shell meta charatcers. | |
2238 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2239 | set -- "$progname" "$@" | |
2240 | for ac_arg | |
2241 | do | |
2242 | case "$ac_arg" in | |
2243 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2244 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2245 | # if the argument is of the form -foo=baz, quote the baz part only | |
2246 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2247 | *) ;; | |
2248 | esac | |
2249 | # Add the quoted argument to the list. | |
2250 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2251 | done | |
2252 | if test "$silent" = yes; then | |
2253 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2254 | fi | |
2255 | # Remove the initial space we just introduced and, as these will be | |
2256 | # expanded by make, quote '$'. | |
2257 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2258 | ||
1c710c3c DJ |
2259 | |
2260 | # Find the build, host, and target systems. | |
671aa708 | 2261 | ac_aux_dir= |
5213506e RW |
2262 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2263 | for ac_t in install-sh install.sh shtool; do | |
2264 | if test -f "$ac_dir/$ac_t"; then | |
2265 | ac_aux_dir=$ac_dir | |
2266 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2267 | break 2 | |
2268 | fi | |
2269 | done | |
671aa708 NN |
2270 | done |
2271 | if test -z "$ac_aux_dir"; then | |
5213506e | 2272 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2273 | fi |
5213506e RW |
2274 | |
2275 | # These three variables are undocumented and unsupported, | |
2276 | # and are intended to be withdrawn in a future Autoconf release. | |
2277 | # They can cause serious problems if a builder's source tree is in a directory | |
2278 | # whose full name contains unusual characters. | |
2279 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2280 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2281 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2282 | ||
671aa708 | 2283 | |
1c710c3c | 2284 | # Make sure we can run config.sub. |
5213506e RW |
2285 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2286 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2287 | ||
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2289 | $as_echo_n "checking build system type... " >&6; } | |
2290 | if test "${ac_cv_build+set}" = set; then : | |
2291 | $as_echo_n "(cached) " >&6 | |
2292 | else | |
2293 | ac_build_alias=$build_alias | |
2294 | test "x$ac_build_alias" = x && | |
2295 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2296 | test "x$ac_build_alias" = x && | |
2297 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2298 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2299 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2300 | ||
2301 | fi | |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2303 | $as_echo "$ac_cv_build" >&6; } | |
2304 | case $ac_cv_build in | |
2305 | *-*-*) ;; | |
2306 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2307 | esac | |
1c710c3c | 2308 | build=$ac_cv_build |
5213506e RW |
2309 | ac_save_IFS=$IFS; IFS='-' |
2310 | set x $ac_cv_build | |
2311 | shift | |
2312 | build_cpu=$1 | |
2313 | build_vendor=$2 | |
2314 | shift; shift | |
2315 | # Remember, the first character of IFS is used to create $*, | |
2316 | # except with old shells: | |
2317 | build_os=$* | |
2318 | IFS=$ac_save_IFS | |
2319 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2320 | |
671aa708 | 2321 | |
1c710c3c DJ |
2322 | case ${build_alias} in |
2323 | "") build_noncanonical=${build} ;; | |
2324 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2325 | esac |
2326 | ||
2327 | ||
af71363e | 2328 | |
1c710c3c DJ |
2329 | case ${host_alias} in |
2330 | "") host_noncanonical=${build_noncanonical} ;; | |
2331 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2332 | esac |
2333 | ||
af71363e | 2334 | |
1c710c3c DJ |
2335 | |
2336 | case ${target_alias} in | |
2337 | "") target_noncanonical=${host_noncanonical} ;; | |
2338 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2339 | esac |
2340 | ||
af71363e | 2341 | |
1c710c3c DJ |
2342 | |
2343 | ||
2344 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2345 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2346 | NONENONEs,x,x, && | |
1c710c3c | 2347 | program_transform_name=s,y,y, |
af71363e | 2348 | |
5213506e RW |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2350 | $as_echo_n "checking host system type... " >&6; } | |
2351 | if test "${ac_cv_host+set}" = set; then : | |
2352 | $as_echo_n "(cached) " >&6 | |
af71363e | 2353 | else |
5213506e RW |
2354 | if test "x$host_alias" = x; then |
2355 | ac_cv_host=$ac_cv_build | |
2356 | else | |
2357 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2358 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2359 | fi | |
1c710c3c | 2360 | |
af71363e | 2361 | fi |
5213506e RW |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2363 | $as_echo "$ac_cv_host" >&6; } | |
2364 | case $ac_cv_host in | |
2365 | *-*-*) ;; | |
2366 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2367 | esac | |
1c710c3c | 2368 | host=$ac_cv_host |
5213506e RW |
2369 | ac_save_IFS=$IFS; IFS='-' |
2370 | set x $ac_cv_host | |
2371 | shift | |
2372 | host_cpu=$1 | |
2373 | host_vendor=$2 | |
2374 | shift; shift | |
2375 | # Remember, the first character of IFS is used to create $*, | |
2376 | # except with old shells: | |
2377 | host_os=$* | |
2378 | IFS=$ac_save_IFS | |
2379 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2380 | |
2381 | ||
5213506e RW |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2383 | $as_echo_n "checking target system type... " >&6; } | |
2384 | if test "${ac_cv_target+set}" = set; then : | |
2385 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 2386 | else |
5213506e RW |
2387 | if test "x$target_alias" = x; then |
2388 | ac_cv_target=$ac_cv_host | |
2389 | else | |
2390 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2391 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2392 | fi | |
1c710c3c DJ |
2393 | |
2394 | fi | |
5213506e RW |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2396 | $as_echo "$ac_cv_target" >&6; } | |
2397 | case $ac_cv_target in | |
2398 | *-*-*) ;; | |
2399 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2400 | esac | |
1c710c3c | 2401 | target=$ac_cv_target |
5213506e RW |
2402 | ac_save_IFS=$IFS; IFS='-' |
2403 | set x $ac_cv_target | |
2404 | shift | |
2405 | target_cpu=$1 | |
2406 | target_vendor=$2 | |
2407 | shift; shift | |
2408 | # Remember, the first character of IFS is used to create $*, | |
2409 | # except with old shells: | |
2410 | target_os=$* | |
2411 | IFS=$ac_save_IFS | |
2412 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2413 | |
2414 | ||
2415 | # The aliases save the names the user supplied, while $host etc. | |
2416 | # will get canonicalized. | |
2417 | test -n "$target_alias" && | |
2418 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2419 | NONENONEs,x,x, && | |
2420 | program_prefix=${target_alias}- | |
5213506e | 2421 | |
671aa708 | 2422 | test "$program_prefix" != NONE && |
5213506e | 2423 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2424 | # Use a double $ so make ignores it. |
2425 | test "$program_suffix" != NONE && | |
5213506e RW |
2426 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2427 | # Double any \ or $. | |
1c710c3c | 2428 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2429 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2430 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2431 | |
671aa708 NN |
2432 | |
2433 | ||
775956d0 NN |
2434 | # Get 'install' or 'install-sh' and its variants. |
2435 | # Find a good install program. We prefer a C program (faster), | |
2436 | # so one script is as good as another. But avoid the broken or | |
2437 | # incompatible versions: | |
2438 | # SysV /etc/install, /usr/sbin/install | |
2439 | # SunOS /usr/etc/install | |
2440 | # IRIX /sbin/install | |
2441 | # AIX /bin/install | |
1c710c3c | 2442 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2443 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2444 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2445 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2446 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2447 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2448 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2450 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2451 | if test -z "$INSTALL"; then |
5213506e RW |
2452 | if test "${ac_cv_path_install+set}" = set; then : |
2453 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
2454 | else |
2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2456 | for as_dir in $PATH | |
2457 | do | |
2458 | IFS=$as_save_IFS | |
2459 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2460 | # Account for people who put trailing slashes in PATH elements. |
2461 | case $as_dir/ in #(( | |
2462 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2463 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2464 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2465 | /usr/ucb/* ) ;; |
2466 | *) | |
2467 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2468 | # Don't use installbsd from OSF since it installs stuff as root | |
2469 | # by default. | |
2470 | for ac_prog in ginstall scoinst install; do | |
2471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2472 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
775956d0 | 2473 | if test $ac_prog = install && |
1c710c3c | 2474 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2475 | # AIX install. It has an incompatible calling convention. |
2476 | : | |
1c710c3c DJ |
2477 | elif test $ac_prog = install && |
2478 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2479 | # program-specific install script used by HP pwplus--don't use. | |
2480 | : | |
775956d0 | 2481 | else |
38d24731 RW |
2482 | rm -rf conftest.one conftest.two conftest.dir |
2483 | echo one > conftest.one | |
2484 | echo two > conftest.two | |
2485 | mkdir conftest.dir | |
2486 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2487 | test -s conftest.one && test -s conftest.two && | |
2488 | test -s conftest.dir/conftest.one && | |
2489 | test -s conftest.dir/conftest.two | |
2490 | then | |
2491 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2492 | break 3 | |
2493 | fi | |
775956d0 NN |
2494 | fi |
2495 | fi | |
2496 | done | |
1c710c3c DJ |
2497 | done |
2498 | ;; | |
2499 | esac | |
5213506e RW |
2500 | |
2501 | done | |
2502 | IFS=$as_save_IFS | |
1c710c3c | 2503 | |
38d24731 | 2504 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2505 | |
2506 | fi | |
2507 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2508 | INSTALL=$ac_cv_path_install |
775956d0 | 2509 | else |
38d24731 RW |
2510 | # As a last resort, use the slow shell script. Don't cache a |
2511 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2512 | # break other packages using the cache if that directory is |
38d24731 | 2513 | # removed, or if the value is a relative name. |
1c710c3c | 2514 | INSTALL=$ac_install_sh |
775956d0 NN |
2515 | fi |
2516 | fi | |
5213506e RW |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2518 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2519 | |
2520 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2521 | # It thinks the first close brace ends the variable substitution. | |
2522 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2523 | ||
1c710c3c | 2524 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2525 | |
2526 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2527 | ||
5213506e RW |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2529 | $as_echo_n "checking whether ln works... " >&6; } | |
2530 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2531 | $as_echo_n "(cached) " >&6 | |
ad6717df PB |
2532 | else |
2533 | rm -f conftestdata_t | |
2534 | echo >conftestdata_f | |
2535 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2536 | then | |
2537 | acx_cv_prog_LN=ln | |
2538 | else | |
2539 | acx_cv_prog_LN=no | |
2540 | fi | |
2541 | rm -f conftestdata_f conftestdata_t | |
2542 | ||
2543 | fi | |
2544 | if test $acx_cv_prog_LN = no; then | |
2545 | LN="cp" | |
5213506e RW |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2547 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2548 | else |
2549 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2551 | $as_echo "yes" >&6; } | |
ad6717df PB |
2552 | fi |
2553 | ||
5213506e RW |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2555 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2556 | LN_S=$as_ln_s |
2557 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2559 | $as_echo "yes" >&6; } | |
fb0103e5 | 2560 | else |
5213506e RW |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2562 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2563 | fi |
2564 | ||
87264276 PB |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2566 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2567 | if test "${ac_cv_path_SED+set}" = set; then : | |
2568 | $as_echo_n "(cached) " >&6 | |
2569 | else | |
2570 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2571 | for ac_i in 1 2 3 4 5 6 7; do | |
2572 | ac_script="$ac_script$as_nl$ac_script" | |
2573 | done | |
2574 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2575 | { ac_script=; unset ac_script;} | |
2576 | if test -z "$SED"; then | |
2577 | ac_path_SED_found=false | |
2578 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2580 | for as_dir in $PATH | |
2581 | do | |
2582 | IFS=$as_save_IFS | |
2583 | test -z "$as_dir" && as_dir=. | |
2584 | for ac_prog in sed gsed; do | |
2585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2586 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2587 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2588 | # Check for GNU ac_path_SED and select it if it is found. | |
2589 | # Check for GNU $ac_path_SED | |
2590 | case `"$ac_path_SED" --version 2>&1` in | |
2591 | *GNU*) | |
2592 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2593 | *) | |
2594 | ac_count=0 | |
2595 | $as_echo_n 0123456789 >"conftest.in" | |
2596 | while : | |
2597 | do | |
2598 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2599 | mv "conftest.tmp" "conftest.in" | |
2600 | cp "conftest.in" "conftest.nl" | |
2601 | $as_echo '' >> "conftest.nl" | |
2602 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2603 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2604 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2605 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2606 | # Best one so far, save it but keep looking for a better one | |
2607 | ac_cv_path_SED="$ac_path_SED" | |
2608 | ac_path_SED_max=$ac_count | |
2609 | fi | |
2610 | # 10*(2^10) chars as input seems more than enough | |
2611 | test $ac_count -gt 10 && break | |
2612 | done | |
2613 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2614 | esac | |
2615 | ||
2616 | $ac_path_SED_found && break 3 | |
2617 | done | |
2618 | done | |
2619 | done | |
2620 | IFS=$as_save_IFS | |
2621 | if test -z "$ac_cv_path_SED"; then | |
2622 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2623 | fi | |
2624 | else | |
2625 | ac_cv_path_SED=$SED | |
2626 | fi | |
2627 | ||
2628 | fi | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2630 | $as_echo "$ac_cv_path_SED" >&6; } | |
2631 | SED="$ac_cv_path_SED" | |
2632 | rm -f conftest.sed | |
2633 | ||
2634 | for ac_prog in gawk mawk nawk awk | |
2635 | do | |
2636 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2637 | set dummy $ac_prog; ac_word=$2 | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2639 | $as_echo_n "checking for $ac_word... " >&6; } | |
2640 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2641 | $as_echo_n "(cached) " >&6 | |
2642 | else | |
2643 | if test -n "$AWK"; then | |
2644 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2645 | else | |
2646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2647 | for as_dir in $PATH | |
2648 | do | |
2649 | IFS=$as_save_IFS | |
2650 | test -z "$as_dir" && as_dir=. | |
2651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2653 | ac_cv_prog_AWK="$ac_prog" | |
2654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2655 | break 2 | |
2656 | fi | |
2657 | done | |
2658 | done | |
2659 | IFS=$as_save_IFS | |
2660 | ||
2661 | fi | |
2662 | fi | |
2663 | AWK=$ac_cv_prog_AWK | |
2664 | if test -n "$AWK"; then | |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2666 | $as_echo "$AWK" >&6; } | |
2667 | else | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2669 | $as_echo "no" >&6; } | |
2670 | fi | |
2671 | ||
2672 | ||
2673 | test -n "$AWK" && break | |
2674 | done | |
2675 | ||
775956d0 | 2676 | |
ee6a22df L |
2677 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2678 | ||
2679 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2680 | # a relative path. | |
2681 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2682 | INSTALL="${srcpwd}/install-sh -c" | |
2683 | fi | |
2684 | ||
671aa708 NN |
2685 | # Set srcdir to "." if that's what it is. |
2686 | # This is important for multilib support. | |
2687 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2688 | if test "${pwd}" = "${srcpwd}" ; then |
2689 | srcdir=. | |
79c06341 JL |
2690 | fi |
2691 | ||
671aa708 | 2692 | topsrcdir=$srcpwd |
5d4a5ee6 | 2693 | |
671aa708 | 2694 | extra_host_args= |
afabd8e6 | 2695 | |
671aa708 NN |
2696 | ### To add a new directory to the tree, first choose whether it is a target |
2697 | ### or a host dependent tool. Then put it into the appropriate list | |
2698 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2699 | |
1c710c3c | 2700 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2701 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2702 | |
1c710c3c DJ |
2703 | # Dependency sorting is only needed when *configuration* must be done in |
2704 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2705 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2706 | |
671aa708 NN |
2707 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2708 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2709 | |
23f6b2f9 PB |
2710 | # these library is used by various programs built for the build |
2711 | # environment | |
2712 | # | |
929315a9 | 2713 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2714 | |
2715 | # these tools are built for the build environment | |
85bfb75e | 2716 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2717 | |
671aa708 | 2718 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2719 | #f |
4a9bb2aa | 2720 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
671aa708 | 2721 | |
671aa708 NN |
2722 | # these tools are built for the host environment |
2723 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2724 | # know that we are building the simulator. | |
2725 | # binutils, gas and ld appear in that order because it makes sense to run | |
2726 | # "make check" in that particular order. | |
38e3d868 | 2727 | # If --enable-gold is used, "gold" may replace "ld". |
ddc8de03 | 2728 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1" |
671aa708 NN |
2729 | |
2730 | # libgcj represents the runtime libraries only used by gcj. | |
2731 | libgcj="target-libffi \ | |
671aa708 | 2732 | target-zlib \ |
671aa708 NN |
2733 | target-libjava" |
2734 | ||
2735 | # these libraries are built for the target environment, and are built after | |
2736 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2737 | # Note that libiberty is not a target library. |
291f172e | 2738 | target_libraries="target-libgcc \ |
eff02e4f | 2739 | target-libbacktrace \ |
671aa708 NN |
2740 | target-libgloss \ |
2741 | target-newlib \ | |
6d3b5aea | 2742 | target-libgomp \ |
3038054c | 2743 | target-libcilkrts \ |
5f520819 | 2744 | target-liboffloadmic \ |
48310492 | 2745 | target-libatomic \ |
0a35513e | 2746 | target-libitm \ |
cb543528 | 2747 | target-libstdc++-v3 \ |
f35db108 | 2748 | target-libsanitizer \ |
2077db1b | 2749 | target-libvtv \ |
77008252 | 2750 | target-libssp \ |
1ec601bf | 2751 | target-libquadmath \ |
6de9cd9a | 2752 | target-libgfortran \ |
7cd0cf9c | 2753 | target-boehm-gc \ |
77d187bc | 2754 | ${libgcj} \ |
d9cdb878 | 2755 | target-libobjc \ |
632e2a07 ILT |
2756 | target-libada \ |
2757 | target-libgo" | |
671aa708 | 2758 | |
4dbda6f0 NN |
2759 | # these tools are built using the target libraries, and are intended to |
2760 | # run only in the target environment | |
671aa708 | 2761 | # |
4dbda6f0 | 2762 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2763 | # list belongs in this list. |
671aa708 | 2764 | # |
85bfb75e | 2765 | target_tools="target-rda" |
79c06341 | 2766 | |
671aa708 | 2767 | ################################################################################ |
79c06341 | 2768 | |
671aa708 NN |
2769 | ## All tools belong in one of the four categories, and are assigned above |
2770 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2771 | ## is important because configure will choke if they ever get through. | |
2772 | ## ${configdirs} is directories we build using the host tools. | |
2773 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2774 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2775 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2776 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2777 | |
ac9e6043 RW |
2778 | |
2779 | ||
671aa708 | 2780 | ################################################################################ |
79c06341 | 2781 | |
671aa708 | 2782 | srcname="gnu development package" |
79c06341 | 2783 | |
671aa708 NN |
2784 | # This gets set non-empty for some net releases of packages. |
2785 | appdirs="" | |
79c06341 | 2786 | |
671aa708 NN |
2787 | # Define is_cross_compiler to save on calls to 'test'. |
2788 | is_cross_compiler= | |
2789 | if test x"${host}" = x"${target}" ; then | |
2790 | is_cross_compiler=no | |
79c06341 | 2791 | else |
671aa708 | 2792 | is_cross_compiler=yes |
1c710c3c | 2793 | fi |
79c06341 | 2794 | |
b4acb5ef | 2795 | # Find the build and target subdir names. |
8b87bb96 | 2796 | |
2e9e6f68 DJ |
2797 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2798 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2799 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2800 | # However, they still use the build modules, because the corresponding | |
2801 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2802 | # finishes. So: | |
2803 | # - build_subdir is where we find build modules, and never changes. | |
2804 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2805 | ||
2806 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2807 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2808 | |
5213506e RW |
2809 | # Check whether --with-build-libsubdir was given. |
2810 | if test "${with_build_libsubdir+set}" = set; then : | |
2811 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2812 | else |
2813 | build_libsubdir="$build_subdir" | |
5213506e RW |
2814 | fi |
2815 | ||
215c351a PB |
2816 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2817 | if ( test $srcdir = . && test -d gcc ) \ | |
2818 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2819 | host_subdir="host-${host_noncanonical}" | |
2820 | else | |
2821 | host_subdir=. | |
2822 | fi | |
8b87bb96 NN |
2823 | # No prefix. |
2824 | target_subdir=${target_noncanonical} | |
1c710c3c | 2825 | |
0db770bd RW |
2826 | # Be sure to cover against remnants of an in-tree build. |
2827 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2828 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2829 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2830 | fi | |
79c06341 | 2831 | |
671aa708 NN |
2832 | # Skipdirs are removed silently. |
2833 | skipdirs= | |
2834 | # Noconfigdirs are removed loudly. | |
2835 | noconfigdirs="" | |
79c06341 | 2836 | |
671aa708 NN |
2837 | use_gnu_ld= |
2838 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2839 | if test x$with_gnu_ld = xno ; then | |
2840 | use_gnu_ld=no | |
5afab7ad | 2841 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2842 | fi |
2843 | ||
671aa708 NN |
2844 | use_gnu_as= |
2845 | # Make sure we don't let GNU as be added if we didn't want it. | |
2846 | if test x$with_gnu_as = xno ; then | |
2847 | use_gnu_as=no | |
2848 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2849 | fi |
2850 | ||
d7f09764 DN |
2851 | use_included_zlib= |
2852 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2853 | if test x$with_system_zlib = xyes ; then | |
2854 | use_included_zlib=no | |
2855 | noconfigdirs="$noconfigdirs zlib" | |
2856 | fi | |
2857 | ||
1c710c3c | 2858 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2859 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2860 | |
671aa708 NN |
2861 | case ${with_x} in |
2862 | yes | "") ;; # the default value for this tree is that X11 is available | |
2863 | no) | |
b4f96efe | 2864 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2865 | # We won't be able to build gdbtk without X. |
1c710c3c | 2866 | enable_gdbtk=no |
671aa708 NN |
2867 | ;; |
2868 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2869 | esac | |
79c06341 | 2870 | |
1bcce263 | 2871 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2872 | # Remove these if host=target. |
2873 | cross_only="target-libgloss target-newlib target-opcodes" | |
2874 | ||
2875 | case $is_cross_compiler in | |
2876 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2877 | esac |
79c06341 | 2878 | |
671aa708 NN |
2879 | # If both --with-headers and --with-libs are specified, default to |
2880 | # --without-newlib. | |
ee6a22df L |
2881 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2882 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2883 | if test x"${with_newlib}" = x ; then |
2884 | with_newlib=no | |
2885 | fi | |
79c06341 JL |
2886 | fi |
2887 | ||
671aa708 NN |
2888 | # Recognize --with-newlib/--without-newlib. |
2889 | case ${with_newlib} in | |
2890 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2891 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2892 | esac | |
79c06341 | 2893 | |
85c64bbe BS |
2894 | # Check whether --enable-as-accelerator-for was given. |
2895 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2896 | enableval=$enable_as_accelerator_for; ENABLE_AS_ACCELERATOR_FOR=$enableval | |
2897 | else | |
2898 | ENABLE_AS_ACCELERATOR_FOR=no | |
2899 | fi | |
2900 | ||
2901 | ||
2902 | # Check whether --enable-offload-targets was given. | |
2903 | if test "${enable_offload_targets+set}" = set; then : | |
2904 | enableval=$enable_offload_targets; | |
2905 | if test x"$enable_offload_targets" = x; then | |
2906 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2907 | fi | |
2908 | ||
2909 | else | |
2910 | enable_offload_targets= | |
2911 | fi | |
2912 | ||
2913 | ||
21539e2e MK |
2914 | # Handle --enable-gold, --enable-ld. |
2915 | # --disable-gold [--enable-ld] | |
2916 | # Build only ld. Default option. | |
9580395f L |
2917 | # --enable-gold [--enable-ld] |
2918 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2919 | # as "ld.bfd" and "ld". | |
2920 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2921 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2922 | # install ld as "ld.bfd". | |
2923 | # --enable-gold[=default] --disable-ld | |
2924 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2925 | # --enable-gold --enable-ld=default | |
9580395f L |
2926 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2927 | # and ld.bfd). | |
21539e2e MK |
2928 | # In other words, ld is default |
2929 | # --enable-gold=default --enable-ld=default | |
2930 | # Error. | |
2931 | ||
2932 | default_ld= | |
5213506e RW |
2933 | # Check whether --enable-gold was given. |
2934 | if test "${enable_gold+set}" = set; then : | |
2935 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2936 | else |
2937 | ENABLE_GOLD=no | |
5213506e RW |
2938 | fi |
2939 | ||
21539e2e MK |
2940 | case "${ENABLE_GOLD}" in |
2941 | yes|default) | |
38e3d868 RM |
2942 | # Check for ELF target. |
2943 | is_elf=no | |
2944 | case "${target}" in | |
2945 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 2946 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 2947 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 2948 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
2949 | case "${target}" in |
2950 | *-*-linux*aout* | *-*-linux*oldld*) | |
2951 | ;; | |
2952 | *) | |
2953 | is_elf=yes | |
2954 | ;; | |
2955 | esac | |
2956 | esac | |
2957 | ||
2958 | if test "$is_elf" = "yes"; then | |
2959 | # Check for target supported by gold. | |
5afab7ad | 2960 | case "${target}" in |
7705dfd1 JY |
2961 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
2962 | | aarch64*-*-* | tilegx*-*-*) | |
21539e2e MK |
2963 | configdirs="$configdirs gold" |
2964 | if test x${ENABLE_GOLD} = xdefault; then | |
2965 | default_ld=gold | |
2966 | fi | |
38e3d868 | 2967 | ENABLE_GOLD=yes |
5afab7ad ILT |
2968 | ;; |
2969 | esac | |
38e3d868 RM |
2970 | fi |
2971 | ;; | |
2972 | no) | |
2973 | ;; | |
2974 | *) | |
2975 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2976 | ;; | |
21539e2e MK |
2977 | esac |
2978 | ||
2979 | # Check whether --enable-ld was given. | |
2980 | if test "${enable_ld+set}" = set; then : | |
2981 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2982 | else | |
2983 | ENABLE_LD=yes | |
2984 | fi | |
2985 | ||
2986 | ||
2987 | case "${ENABLE_LD}" in | |
2988 | default) | |
9580395f | 2989 | if test x${default_ld} != x; then |
21539e2e MK |
2990 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2991 | fi | |
2992 | ;; | |
2993 | yes) | |
2994 | ;; | |
2995 | no) | |
2996 | if test x${ENABLE_GOLD} != xyes; then | |
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2998 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2999 | fi | |
3000 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3001 | ;; | |
3002 | *) | |
3003 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3004 | ;; | |
3005 | esac | |
5afab7ad | 3006 | |
671aa708 | 3007 | # Configure extra directories which are host specific |
79c06341 | 3008 | |
671aa708 NN |
3009 | case "${host}" in |
3010 | *-cygwin*) | |
3011 | configdirs="$configdirs libtermcap" ;; | |
3012 | esac | |
79c06341 | 3013 | |
4fab7234 HPN |
3014 | # A target can indicate whether a language isn't supported for some reason. |
3015 | # Only spaces may be used in this macro; not newlines or tabs. | |
3016 | unsupported_languages= | |
3017 | ||
1c710c3c | 3018 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3019 | # target this usually means that a port of the program doesn't |
3020 | # exist yet. | |
ec8d6ddc | 3021 | |
671aa708 | 3022 | case "${host}" in |
111eeb6e | 3023 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3024 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3025 | ;; |
671aa708 | 3026 | esac |
ec8d6ddc | 3027 | |
6de9cd9a | 3028 | |
87e6d9dc TB |
3029 | # Check whether --enable-libquadmath was given. |
3030 | if test "${enable_libquadmath+set}" = set; then : | |
3031 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3032 | else | |
3033 | ENABLE_LIBQUADMATH=yes | |
3034 | fi | |
3035 | ||
3036 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3037 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3038 | fi | |
3039 | ||
3040 | ||
3041 | # Check whether --enable-libquadmath-support was given. | |
3042 | if test "${enable_libquadmath_support+set}" = set; then : | |
3043 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3044 | else | |
3045 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3046 | fi | |
3047 | ||
3048 | enable_libquadmath_support= | |
3049 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3050 | enable_libquadmath_support=no | |
3051 | fi | |
3052 | ||
3053 | ||
5213506e RW |
3054 | # Check whether --enable-libada was given. |
3055 | if test "${enable_libada+set}" = set; then : | |
3056 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3057 | else |
3058 | ENABLE_LIBADA=yes | |
5213506e RW |
3059 | fi |
3060 | ||
d9cdb878 | 3061 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3062 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3063 | fi |
3064 | ||
5213506e RW |
3065 | # Check whether --enable-libssp was given. |
3066 | if test "${enable_libssp+set}" = set; then : | |
3067 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3068 | else |
3069 | ENABLE_LIBSSP=yes | |
5213506e RW |
3070 | fi |
3071 | ||
ef0087a7 | 3072 | |
1873ec0c L |
3073 | # Check whether --enable-libstdcxx was given. |
3074 | if test "${enable_libstdcxx+set}" = set; then : | |
3075 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3076 | else | |
3077 | ENABLE_LIBSTDCXX=default | |
3078 | fi | |
3079 | ||
3080 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3081 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3082 | fi |
3083 | ||
5f520819 KY |
3084 | # If this is accelerator compiler and its target is intelmic we enable |
3085 | # target liboffloadmic by default. If this is compiler with offloading | |
3086 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3087 | # liboffloadmic is disabled by default. | |
3088 | # Check whether --enable-liboffloadmic was given. | |
3089 | if test "${enable_liboffloadmic+set}" = set; then : | |
3090 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3091 | no | host | target) | |
3092 | enable_liboffloadmic=$enableval ;; | |
3093 | *) | |
3094 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3095 | esac | |
3096 | else | |
3097 | if test "${ENABLE_AS_ACCELERATOR_FOR}" != "no"; then | |
3098 | case "${target}" in | |
3099 | *-intelmic-* | *-intelmicemul-*) | |
3100 | enable_liboffloadmic=target | |
3101 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3102 | ;; | |
3103 | *) | |
3104 | enable_liboffloadmic=no | |
3105 | ;; | |
3106 | esac | |
3107 | else | |
3108 | case "${enable_offload_targets}" in | |
3109 | *-intelmic-* | *-intelmicemul-*) | |
3110 | enable_liboffloadmic=host | |
3111 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3112 | ;; | |
3113 | *) | |
3114 | enable_liboffloadmic=no | |
3115 | ;; | |
3116 | esac | |
3117 | fi | |
3118 | fi | |
3119 | ||
3120 | ||
3121 | ||
671aa708 NN |
3122 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3123 | # front-end isn't enabled, we still get libgcj disabled. | |
3124 | libgcj_saved=$libgcj | |
3125 | case $enable_libgcj in | |
3126 | yes) | |
3127 | # If we reset it here, it won't get added to noconfigdirs in the | |
3128 | # target-specific build rules, so it will be forcibly enabled | |
3129 | # (unless the Java language itself isn't enabled). | |
3130 | libgcj= | |
3131 | ;; | |
3132 | no) | |
3133 | # Make sure we get it printed in the list of not supported target libs. | |
4da3b0f8 ILT |
3134 | # Don't disable libffi, though, other languages use it. |
3135 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
d479b128 ILT |
3136 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3137 | # built. | |
3138 | libgcj_saved= | |
671aa708 NN |
3139 | ;; |
3140 | esac | |
ec8d6ddc | 3141 | |
a4a2c37d MK |
3142 | # Check whether --enable-static-libjava was given. |
3143 | if test "${enable_static_libjava+set}" = set; then : | |
3144 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3145 | else | |
3146 | ENABLE_STATIC_LIBJAVA=no | |
3147 | fi | |
3148 | ||
3149 | enable_static_libjava= | |
3150 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3151 | enable_static_libjava=yes | |
3152 | fi | |
3153 | ||
3154 | if test x$enable_static_libjava != xyes ; then | |
3155 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3156 | fi | |
3157 | ||
6de9cd9a | 3158 | |
27079765 AH |
3159 | # Disable libgomp on non POSIX hosted systems. |
3160 | if test x$enable_libgomp = x ; then | |
953ff289 DN |
3161 | # Enable libgomp by default on hosted POSIX systems. |
3162 | case "${target}" in | |
416ac4d4 | 3163 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3164 | ;; |
8c6d158a | 3165 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3166 | ;; |
b24513a1 | 3167 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3168 | ;; |
cac90078 | 3169 | *-*-darwin* | *-*-aix*) |
953ff289 DN |
3170 | ;; |
3171 | *) | |
3172 | noconfigdirs="$noconfigdirs target-libgomp" | |
3173 | ;; | |
3174 | esac | |
27079765 | 3175 | fi |
953ff289 | 3176 | |
48310492 RH |
3177 | # Disable libatomic on unsupported systems. |
3178 | if test -d ${srcdir}/libatomic; then | |
3179 | if test x$enable_libatomic = x; then | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3181 | $as_echo_n "checking for libatomic support... " >&6; } | |
3182 | if (srcdir=${srcdir}/libatomic; \ | |
3183 | . ${srcdir}/configure.tgt; \ | |
3184 | test -n "$UNSUPPORTED") | |
3185 | then | |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3187 | $as_echo "no" >&6; } | |
3188 | noconfigdirs="$noconfigdirs target-libatomic" | |
3189 | else | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3191 | $as_echo "yes" >&6; } | |
3192 | fi | |
3193 | fi | |
3194 | fi | |
3195 | ||
3038054c BI |
3196 | # Disable libcilkrts on unsupported systems. |
3197 | if test -d ${srcdir}/libcilkrts; then | |
3198 | if test x$enable_libcilkrts = x; then | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3200 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3201 | if (srcdir=${srcdir}/libcilkrts; \ | |
3202 | . ${srcdir}/configure.tgt; \ | |
3203 | test -n "$UNSUPPORTED") | |
3204 | then | |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3206 | $as_echo "no" >&6; } | |
3207 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3208 | else | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3210 | $as_echo "yes" >&6; } | |
3211 | fi | |
3212 | fi | |
3213 | fi | |
3214 | ||
5f520819 KY |
3215 | # Disable liboffloadmic on unsupported systems. |
3216 | if test -d ${srcdir}/liboffloadmic; then | |
3217 | if test x$enable_liboffloadmic != xno; then | |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3219 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3220 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3221 | . ${srcdir}/configure.tgt; \ | |
3222 | test -n "$UNSUPPORTED") | |
3223 | then | |
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3225 | $as_echo "no" >&6; } | |
3226 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3227 | else | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3229 | $as_echo "yes" >&6; } | |
3230 | fi | |
3231 | fi | |
3232 | fi | |
3233 | ||
e948157d RH |
3234 | # Disable libitm on unsupported systems. |
3235 | if test -d ${srcdir}/libitm; then | |
3236 | if test x$enable_libitm = x; then | |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3238 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3239 | if (srcdir=${srcdir}/libitm; \ |
3240 | . ${srcdir}/configure.tgt; \ | |
3241 | test -n "$UNSUPPORTED") | |
3242 | then | |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3244 | $as_echo "no" >&6; } |
e948157d RH |
3245 | noconfigdirs="$noconfigdirs target-libitm" |
3246 | else | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3248 | $as_echo "yes" >&6; } |
e948157d RH |
3249 | fi |
3250 | fi | |
0a35513e AH |
3251 | fi |
3252 | ||
93bf5390 RH |
3253 | # Disable libsanitizer on unsupported systems. |
3254 | if test -d ${srcdir}/libsanitizer; then | |
3255 | if test x$enable_libsanitizer = x; then | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3257 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3258 | if (srcdir=${srcdir}/libsanitizer; \ | |
3259 | . ${srcdir}/configure.tgt; \ | |
3260 | test -n "$UNSUPPORTED") | |
3261 | then | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3263 | $as_echo "no" >&6; } | |
3264 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3265 | else | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3267 | $as_echo "yes" >&6; } | |
3268 | fi | |
3269 | fi | |
3270 | fi | |
3271 | ||
2077db1b CT |
3272 | # Disable libvtv on unsupported systems. |
3273 | if test -d ${srcdir}/libvtv; then | |
3274 | if test x$enable_libvtv = x; then | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3276 | $as_echo_n "checking for libvtv support... " >&6; } | |
3277 | if (srcdir=${srcdir}/libvtv; \ | |
3278 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3279 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3280 | then |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3282 | $as_echo "no" >&6; } | |
3283 | noconfigdirs="$noconfigdirs target-libvtv" | |
3284 | else | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3286 | $as_echo "yes" >&6; } | |
3287 | fi | |
3288 | fi | |
3289 | fi | |
3290 | ||
d91491e5 SE |
3291 | # Disable libquadmath for some systems. |
3292 | case "${target}" in | |
e7fae550 DE |
3293 | avr-*-*) |
3294 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3295 | ;; | |
d91491e5 SE |
3296 | # libquadmath is unused on AIX and libquadmath build process use of |
3297 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3298 | powerpc-*-aix* | rs6000-*-aix*) | |
3299 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3300 | ;; | |
3301 | esac | |
3302 | ||
1e9e0e23 JM |
3303 | # Disable libssp for some systems. |
3304 | case "${target}" in | |
3305 | avr-*-*) | |
b318fb4b | 3306 | # No hosted I/O support. |
1e9e0e23 JM |
3307 | noconfigdirs="$noconfigdirs target-libssp" |
3308 | ;; | |
3309 | powerpc-*-aix* | rs6000-*-aix*) | |
3310 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e DD |
3311 | ;; |
3312 | rl78-*-*) | |
7cb62ef1 EB |
3313 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3314 | # doesn't fault for those - instead, it gives a build-time error | |
3315 | # for explicit misaligned loads. | |
85b8555e | 3316 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3317 | ;; |
1e9e0e23 JM |
3318 | esac |
3319 | ||
1e9e0e23 | 3320 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3321 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3322 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3323 | case "${target}" in | |
3324 | *-*-vxworks*) | |
3325 | # VxWorks uses the Dinkumware C++ library. | |
3326 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3327 | ;; | |
3328 | arm*-wince-pe*) | |
3329 | # the C++ libraries don't build on top of CE's C libraries | |
3330 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3331 | ;; | |
3332 | avr-*-*) | |
3333 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3334 | ;; | |
3335 | esac | |
3336 | fi | |
1e9e0e23 JM |
3337 | |
3338 | # Disable Fortran for some systems. | |
3339 | case "${target}" in | |
3340 | mmix-*-*) | |
3341 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3342 | unsupported_languages="$unsupported_languages fortran" | |
3343 | ;; | |
3344 | esac | |
3345 | ||
80f81134 | 3346 | # Disable Java if libffi is not supported. |
2909494b | 3347 | case "${target}" in |
eb7062cf AS |
3348 | aarch64-*-*) |
3349 | ;; | |
80f81134 JM |
3350 | alpha*-*-*) |
3351 | ;; | |
3352 | arm*-*-*) | |
3353 | ;; | |
3354 | cris-*-*) | |
3355 | ;; | |
3356 | frv-*-*) | |
3357 | ;; | |
3358 | hppa*-*-linux*) | |
3359 | ;; | |
3360 | hppa*-*-hpux*) | |
3361 | ;; | |
3362 | i?86-*-*) | |
3363 | ;; | |
3364 | ia64*-*-*) | |
3365 | ;; | |
3366 | m32r*-*-*) | |
3367 | ;; | |
3368 | m68k-*-*) | |
3369 | ;; | |
b24513a1 | 3370 | mips*-*-rtems*) |
80f81134 JM |
3371 | ;; |
3372 | mips*-*-linux*) | |
3373 | ;; | |
3374 | powerpc*-*-linux*) | |
3375 | ;; | |
3376 | powerpc-*-darwin*) | |
3377 | ;; | |
3378 | powerpc-*-aix* | rs6000-*-aix*) | |
3379 | ;; | |
3380 | powerpc-*-freebsd*) | |
3381 | ;; | |
3382 | powerpc64-*-freebsd*) | |
3383 | ;; | |
3384 | powerpc*-*-rtems*) | |
2909494b | 3385 | ;; |
80f81134 JM |
3386 | s390-*-* | s390x-*-*) |
3387 | ;; | |
3388 | sh-*-* | sh[34]*-*-*) | |
3389 | ;; | |
3390 | sh64-*-* | sh5*-*-*) | |
3391 | ;; | |
3392 | sparc*-*-*) | |
3393 | ;; | |
3394 | x86_64-*-*) | |
3395 | ;; | |
3396 | *-*-*) | |
3397 | unsupported_languages="$unsupported_languages java" | |
3398 | ;; | |
3399 | esac | |
3400 | ||
3401 | # Disable Java, libgcj or related libraries for some systems. | |
3402 | case "${target}" in | |
2909494b JM |
3403 | powerpc-*-darwin*) |
3404 | ;; | |
3405 | i[3456789]86-*-darwin*) | |
3406 | ;; | |
3407 | x86_64-*-darwin[912]*) | |
3408 | ;; | |
3409 | *-*-darwin*) | |
3410 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3411 | ;; | |
2909494b JM |
3412 | *-*-netware*) |
3413 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3414 | ;; | |
3415 | *-*-rtems*) | |
3416 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3417 | ;; | |
3418 | *-*-tpf*) | |
3419 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3420 | ;; | |
3421 | *-*-uclinux*) | |
3422 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3423 | ;; | |
3424 | *-*-vxworks*) | |
3425 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3426 | ;; | |
2909494b JM |
3427 | alpha*-*-*vms*) |
3428 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3429 | ;; | |
80f81134 | 3430 | arm-wince-pe) |
2909494b JM |
3431 | noconfigdirs="$noconfigdirs ${libgcj}" |
3432 | ;; | |
2909494b JM |
3433 | arm*-*-symbianelf*) |
3434 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3435 | ;; | |
2909494b | 3436 | bfin-*-*) |
2909494b JM |
3437 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3438 | ;; | |
2909494b JM |
3439 | cris-*-* | crisv32-*-*) |
3440 | unsupported_languages="$unsupported_languages java" | |
3441 | case "${target}" in | |
3442 | *-*-linux*) | |
3443 | ;; | |
3444 | *) # See PR46792 regarding target-libffi. | |
3445 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3446 | esac | |
3447 | ;; | |
2909494b JM |
3448 | hppa*64*-*-linux*) |
3449 | # In this case, it's because the hppa64-linux target is for | |
3450 | # the kernel only at this point and has no libc, and thus no | |
3451 | # headers, crt*.o, etc., all of which are needed by these. | |
fddf9ee7 | 3452 | unsupported_languages="$unsupported_languages java" |
2909494b | 3453 | ;; |
fddf9ee7 | 3454 | hppa*64*-*-hpux*) |
2909494b JM |
3455 | noconfigdirs="$noconfigdirs ${libgcj}" |
3456 | ;; | |
3457 | hppa*-hp-hpux11*) | |
3458 | ;; | |
fddf9ee7 | 3459 | hppa*-*-hpux*) |
2909494b JM |
3460 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3461 | # build on HP-UX 10.20. | |
3462 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3463 | ;; | |
2909494b JM |
3464 | ia64*-*-*vms*) |
3465 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3466 | ;; | |
2909494b JM |
3467 | i[3456789]86-w64-mingw*) |
3468 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3469 | ;; | |
3470 | i[3456789]86-*-mingw*) | |
3471 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3472 | ;; | |
3473 | x86_64-*-mingw*) | |
3474 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3475 | ;; | |
2909494b JM |
3476 | mmix-*-*) |
3477 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
2909494b JM |
3478 | ;; |
3479 | powerpc-*-aix*) | |
3480 | # copied from rs6000-*-* entry | |
3481 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3482 | ;; | |
2909494b JM |
3483 | rs6000-*-aix*) |
3484 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3485 | ;; | |
2909494b JM |
3486 | *-*-lynxos*) |
3487 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3488 | ;; | |
2909494b JM |
3489 | esac |
3490 | ||
1335a8ca JBG |
3491 | # Disable the go frontend on systems where it is known to not work. Please keep |
3492 | # this in sync with contrib/config-list.mk. | |
74cc5471 ILT |
3493 | case "${target}" in |
3494 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3495 | unsupported_languages="$unsupported_languages go" | |
3496 | ;; | |
3497 | esac | |
3498 | ||
cdbc9e92 ILT |
3499 | # Disable libgo for some systems where it is known to not work. |
3500 | # For testing, you can easily override this with --enable-libgo. | |
3501 | if test x$enable_libgo = x; then | |
3502 | case "${target}" in | |
3503 | *-*-darwin*) | |
3504 | # PR 46986 | |
3505 | noconfigdirs="$noconfigdirs target-libgo" | |
3506 | ;; | |
3507 | *-*-cygwin* | *-*-mingw*) | |
3508 | noconfigdirs="$noconfigdirs target-libgo" | |
3509 | ;; | |
3510 | *-*-aix*) | |
3511 | noconfigdirs="$noconfigdirs target-libgo" | |
3512 | ;; | |
3513 | esac | |
3514 | fi | |
3515 | ||
c03353e2 RIL |
3516 | # Default libgloss CPU subdirectory. |
3517 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3518 | |
fbcf0dca JM |
3519 | case "${target}" in |
3520 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3521 | libgloss_dir=wince | |
3522 | ;; | |
4dddfc74 YZ |
3523 | aarch64*-*-* ) |
3524 | libgloss_dir=aarch64 | |
3525 | ;; | |
fbcf0dca JM |
3526 | arm*-*-*) |
3527 | libgloss_dir=arm | |
3528 | ;; | |
3529 | cris-*-* | crisv32-*-*) | |
3530 | libgloss_dir=cris | |
3531 | ;; | |
3532 | hppa*-*-*) | |
3533 | libgloss_dir=pa | |
3534 | ;; | |
3535 | i[3456789]86-*-*) | |
3536 | libgloss_dir=i386 | |
3537 | ;; | |
3538 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3539 | libgloss_dir=m68hc11 | |
3540 | ;; | |
3541 | m68*-*-* | fido-*-*) | |
3542 | libgloss_dir=m68k | |
3543 | ;; | |
3544 | mips*-*-*) | |
3545 | libgloss_dir=mips | |
3546 | ;; | |
3547 | powerpc*-*-*) | |
3548 | libgloss_dir=rs6000 | |
3549 | ;; | |
3550 | sparc*-*-*) | |
3551 | libgloss_dir=sparc | |
3552 | ;; | |
3553 | esac | |
3554 | ||
6a789d5e | 3555 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3556 | case "${target}" in |
6a789d5e JM |
3557 | alpha*-dec-osf*) |
3558 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3559 | ;; | |
3560 | i[3456789]86-*-linux*) | |
3561 | # This section makes it possible to build newlib natively on linux. | |
3562 | # If we are using a cross compiler then don't configure newlib. | |
3563 | if test x${is_cross_compiler} != xno ; then | |
3564 | noconfigdirs="$noconfigdirs target-newlib" | |
3565 | fi | |
3566 | noconfigdirs="$noconfigdirs target-libgloss" | |
3567 | # If we are not using a cross compiler, do configure newlib. | |
3568 | # Note however, that newlib will only be configured in this situation | |
3569 | # if the --with-newlib option has been given, because otherwise | |
3570 | # 'target-newlib' will appear in skipdirs. | |
3571 | ;; | |
3572 | i[3456789]86-*-rdos*) | |
3573 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3574 | ;; | |
3575 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3576 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3577 | ;; | |
3578 | sparc-*-sunos4*) | |
3579 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3580 | ;; | |
3581 | *-*-aix*) | |
3582 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3583 | ;; | |
3584 | *-*-beos*) | |
3585 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3586 | ;; | |
671aa708 | 3587 | *-*-chorusos) |
0036370f | 3588 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3589 | ;; |
6a789d5e JM |
3590 | *-*-dragonfly*) |
3591 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3592 | ;; | |
3593 | *-*-freebsd*) | |
3594 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3595 | ;; | |
3596 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3597 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3598 | ;; | |
3599 | *-*-lynxos*) | |
3600 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3601 | ;; | |
3602 | *-*-mingw*) | |
3603 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3604 | ;; | |
3605 | *-*-netbsd*) | |
3606 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3607 | ;; | |
3608 | *-*-netware*) | |
3609 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3610 | ;; | |
3611 | *-*-tpf*) | |
3612 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3613 | ;; | |
3614 | *-*-uclinux*) | |
3615 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3616 | ;; | |
3617 | *-*-vxworks*) | |
3618 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3619 | ;; | |
3620 | esac | |
3621 | ||
3622 | case "${target}" in | |
3623 | *-*-chorusos) | |
3624 | ;; | |
75eeae1a | 3625 | powerpc-*-darwin*) |
e1514c3f | 3626 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3627 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3628 | ;; |
354ebf88 RW |
3629 | i[3456789]86-*-darwin*) |
3630 | noconfigdirs="$noconfigdirs ld gprof" | |
3631 | noconfigdirs="$noconfigdirs sim target-rda" | |
3632 | ;; | |
3633 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3634 | noconfigdirs="$noconfigdirs ld gas gprof" |
3635 | noconfigdirs="$noconfigdirs sim target-rda" | |
3636 | ;; | |
42c1cd8a AT |
3637 | *-*-darwin*) |
3638 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3639 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3640 | ;; |
8c6d158a | 3641 | *-*-dragonfly*) |
8c6d158a | 3642 | ;; |
c3f84f61 | 3643 | *-*-freebsd*) |
6de9cd9a DN |
3644 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3645 | && test -f /usr/local/include/gmp.h; then | |
3646 | with_gmp=/usr/local | |
3647 | fi | |
6de9cd9a | 3648 | ;; |
ef4e7569 US |
3649 | *-*-kaos*) |
3650 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3651 | noconfigdirs="$noconfigdirs target-libgloss" |
3652 | ;; | |
671aa708 | 3653 | *-*-netbsd*) |
671aa708 | 3654 | ;; |
61fec9ff | 3655 | *-*-netware*) |
671aa708 NN |
3656 | ;; |
3657 | *-*-rtems*) | |
2909494b | 3658 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3659 | ;; |
a8ba31f2 EC |
3660 | # The tpf target doesn't support gdb yet. |
3661 | *-*-tpf*) | |
6a789d5e | 3662 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3663 | ;; |
5785c0ed | 3664 | *-*-uclinux*) |
6a789d5e | 3665 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3666 | ;; |
671aa708 | 3667 | *-*-vxworks*) |
671aa708 NN |
3668 | ;; |
3669 | alpha*-dec-osf*) | |
3670 | # ld works, but does not support shared libraries. | |
671aa708 | 3671 | # gas doesn't generate exception information. |
6a789d5e | 3672 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3673 | ;; |
3674 | alpha*-*-*vms*) | |
2909494b | 3675 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3676 | ;; |
671aa708 NN |
3677 | alpha*-*-*) |
3678 | # newlib is not 64 bit ready | |
2909494b | 3679 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3680 | ;; |
671aa708 | 3681 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3682 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3683 | ;; |
53426f6c | 3684 | arc-*-*|arceb-*-*) |
ebb9f8b0 | 3685 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3686 | ;; |
671aa708 | 3687 | arm-*-pe*) |
2909494b | 3688 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3689 | ;; |
671aa708 | 3690 | arm-*-riscix*) |
0036370f | 3691 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3692 | ;; |
b588ae30 GJL |
3693 | avr-*-rtems*) |
3694 | ;; | |
3695 | avr-*-*) | |
3696 | if test x${with_avrlibc} != xno; then | |
3697 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3698 | fi | |
3699 | ;; | |
671aa708 | 3700 | c4x-*-* | tic4x-*-*) |
0036370f | 3701 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3702 | ;; |
0036370f JM |
3703 | tic54x-*-*) |
3704 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3705 | ;; |
671aa708 | 3706 | d10v-*-*) |
0036370f | 3707 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3708 | ;; |
3709 | d30v-*-*) | |
0036370f | 3710 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3711 | ;; |
3712 | fr30-*-elf*) | |
2909494b | 3713 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3714 | ;; |
55f2d967 | 3715 | moxie-*-*) |
55f2d967 AG |
3716 | noconfigdirs="$noconfigdirs gprof" |
3717 | ;; | |
671aa708 | 3718 | h8300*-*-*) |
2909494b | 3719 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3720 | ;; |
3721 | h8500-*-*) | |
0036370f | 3722 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3723 | ;; |
ee6a22df | 3724 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3725 | ;; |
4569f85e | 3726 | hppa*64*-*-linux*) |
671aa708 | 3727 | ;; |
56f8587a | 3728 | hppa*-*-linux*) |
3e732ba0 | 3729 | ;; |
671aa708 | 3730 | hppa*-*-*elf* | \ |
671aa708 NN |
3731 | hppa*-*-lites* | \ |
3732 | hppa*-*-openbsd* | \ | |
3733 | hppa*64*-*-*) | |
671aa708 | 3734 | ;; |
2a332582 | 3735 | hppa*-hp-hpux11*) |
1bcce263 | 3736 | noconfigdirs="$noconfigdirs ld" |
2a332582 | 3737 | ;; |
c03353e2 | 3738 | hppa*-*-pro*) |
c03353e2 | 3739 | ;; |
671aa708 | 3740 | hppa*-*-*) |
2909494b | 3741 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3742 | ;; |
fb87ad5d | 3743 | i960-*-*) |
0036370f | 3744 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3745 | ;; |
671aa708 NN |
3746 | ia64*-*-elf*) |
3747 | # No gdb support yet. | |
1bcce263 | 3748 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3749 | ;; |
3750 | ia64*-**-hpux*) | |
5a2931d1 | 3751 | # No ld support yet. |
2909494b | 3752 | noconfigdirs="$noconfigdirs libgui itcl ld" |
671aa708 | 3753 | ;; |
52535a64 | 3754 | ia64*-*-*vms*) |
091fe9ca TG |
3755 | # No ld support yet. |
3756 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3757 | ;; |
ef4c4300 | 3758 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3759 | ;; |
3760 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3761 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3762 | ;; |
671aa708 NN |
3763 | *-*-cygwin*) |
3764 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3765 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3766 | # always build newlib if winsup directory is present. |
b91f0a41 | 3767 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3768 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3769 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3770 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3771 | fi |
1c710c3c | 3772 | ;; |
f2a0e225 | 3773 | i[3456789]86-*-pe) |
ebb9f8b0 | 3774 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3775 | ;; |
f2a0e225 | 3776 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3777 | # The linker does not yet know about weak symbols in COFF, |
3778 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3779 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3780 | ;; |
f2a0e225 | 3781 | i[3456789]86-*-sco*) |
0036370f | 3782 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3783 | ;; |
fbdd5d87 | 3784 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3785 | noconfigdirs="$noconfigdirs target-libgloss" |
3786 | ;; | |
f2a0e225 | 3787 | i[3456789]86-*-sysv4*) |
0036370f | 3788 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3789 | ;; |
f2a0e225 | 3790 | i[3456789]86-*-beos*) |
6a789d5e | 3791 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3792 | ;; |
d1f8db0c | 3793 | i[3456789]86-*-rdos*) |
6a789d5e | 3794 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3795 | ;; |
671aa708 | 3796 | mmix-*-*) |
2909494b | 3797 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3798 | ;; |
ab34901f | 3799 | mt-*-*) |
79dd769c AH |
3800 | noconfigdirs="$noconfigdirs sim" |
3801 | ;; | |
671aa708 NN |
3802 | powerpc-*-aix*) |
3803 | # copied from rs6000-*-* entry | |
6a789d5e | 3804 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3805 | ;; |
4569f85e | 3806 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3807 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3808 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3809 | # always build newlib. |
3810 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3811 | ;; | |
3812 | # This is temporary until we can link against shared libraries | |
3813 | powerpcle-*-solaris*) | |
0036370f | 3814 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3815 | ;; |
3816 | powerpc-*-beos*) | |
6a789d5e | 3817 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3818 | ;; |
671aa708 | 3819 | rs6000-*-lynxos*) |
6a789d5e | 3820 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3821 | ;; |
3822 | rs6000-*-aix*) | |
6a789d5e | 3823 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3824 | ;; |
3825 | rs6000-*-*) | |
2909494b | 3826 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3827 | ;; |
3828 | m68k-apollo-*) | |
0036370f | 3829 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3830 | ;; |
ca9fe997 | 3831 | microblaze*) |
2909494b | 3832 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3833 | ;; |
d91491e5 | 3834 | mips*-sde-elf* | mips*-mti-elf*) |
d9dced13 RS |
3835 | if test x$with_newlib = xyes; then |
3836 | noconfigdirs="$noconfigdirs gprof" | |
3837 | fi | |
d9dced13 | 3838 | ;; |
671aa708 | 3839 | mips*-*-irix5*) |
0036370f | 3840 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3841 | ;; |
3842 | mips*-*-irix6*) | |
2909494b | 3843 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3844 | ;; |
671aa708 | 3845 | mips*-*-bsd*) |
bc98bcc4 | 3846 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3847 | ;; |
671aa708 | 3848 | mips*-*-linux*) |
671aa708 | 3849 | ;; |
bc98bcc4 JBG |
3850 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3851 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3852 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3853 | ;; | |
671aa708 | 3854 | mips*-*-*) |
2909494b | 3855 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3856 | ;; |
738f2522 BS |
3857 | nvptx*-*-*) |
3858 | # nvptx is just a compiler | |
3859 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" | |
3860 | ;; | |
669f01d8 | 3861 | sh-*-* | sh64-*-*) |
ea2002ba CB |
3862 | case "${target}" in |
3863 | sh*-*-elf) | |
2909494b | 3864 | ;; |
ea2002ba | 3865 | *) |
2909494b | 3866 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3867 | esac |
671aa708 | 3868 | ;; |
671aa708 | 3869 | sparc-*-sunos4*) |
6a789d5e | 3870 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3871 | use_gnu_ld=no |
3872 | fi | |
3873 | ;; | |
b42f0d7e | 3874 | tic6x-*-*) |
0d557ff8 | 3875 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3876 | ;; |
341c653c | 3877 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
3878 | noconfigdirs="$noconfigdirs sim" |
3879 | ;; | |
671aa708 | 3880 | v810-*-*) |
0036370f | 3881 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3882 | ;; |
3883 | vax-*-*) | |
2909494b | 3884 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3885 | ;; |
671aa708 | 3886 | esac |
79c06341 | 3887 | |
671aa708 NN |
3888 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3889 | # depends upon some newlib header files. | |
3890 | case "${noconfigdirs}" in | |
3891 | *target-libgloss*) ;; | |
3892 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3893 | esac | |
3894 | ||
671aa708 | 3895 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3896 | host_makefile_frag=/dev/null |
3897 | if test -d ${srcdir}/config ; then | |
3898 | case "${host}" in | |
f2a0e225 | 3899 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3900 | host_makefile_frag="config/mh-djgpp" |
3901 | ;; | |
3902 | *-cygwin*) | |
2a79c47f | 3903 | |
5213506e RW |
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3905 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3906 | echo a >cygwin-cat-check |
e25a8c82 | 3907 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3908 | rm cygwin-cat-check |
5213506e RW |
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3910 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3911 | else |
3912 | rm cygwin-cat-check | |
5213506e RW |
3913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3914 | $as_echo "no" >&6; } | |
3915 | as_fn_error "The cat command does not ignore carriage return characters. | |
2a79c47f NC |
3916 | Please either mount the build directory in binary mode or run the following |
3917 | commands before running any configure script: | |
3918 | set -o igncr | |
3919 | export SHELLOPTS | |
5213506e | 3920 | " "$LINENO" 5 |
2a79c47f NC |
3921 | fi |
3922 | ||
671aa708 NN |
3923 | host_makefile_frag="config/mh-cygwin" |
3924 | ;; | |
c53a18d3 | 3925 | *-mingw*) |
1f5a6b84 | 3926 | host_makefile_frag="config/mh-mingw" |
95af8923 | 3927 | ;; |
7b7f941a UB |
3928 | alpha*-*-linux*) |
3929 | host_makefile_frag="config/mh-alpha-linux" | |
3930 | ;; | |
efd41714 | 3931 | hppa*-hp-hpux10*) |
efd41714 | 3932 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 3933 | ;; |
111eeb6e | 3934 | hppa*-hp-hpux*) |
efd41714 PB |
3935 | host_makefile_frag="config/mh-pa" |
3936 | ;; | |
3937 | hppa*-*) | |
3938 | host_makefile_frag="config/mh-pa" | |
3939 | ;; | |
d8ed14ce IS |
3940 | *-*-darwin*) |
3941 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 3942 | ;; |
d19bca38 PB |
3943 | powerpc-*-aix*) |
3944 | host_makefile_frag="config/mh-ppc-aix" | |
3945 | ;; | |
3946 | rs6000-*-aix*) | |
3947 | host_makefile_frag="config/mh-ppc-aix" | |
3948 | ;; | |
671aa708 NN |
3949 | esac |
3950 | fi | |
3951 | ||
55ffb5ed | 3952 | if test "${build}" != "${host}" ; then |
0999159b PB |
3953 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3954 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 3955 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b PB |
3956 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3957 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3958 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
632e2a07 | 3959 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
0999159b PB |
3960 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3961 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3962 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3963 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3964 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3965 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3966 | else | |
3967 | AR_FOR_BUILD="\$(AR)" | |
3968 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 3969 | CC_FOR_BUILD="\$(CC)" |
0999159b PB |
3970 | CXX_FOR_BUILD="\$(CXX)" |
3971 | GCJ_FOR_BUILD="\$(GCJ)" | |
3972 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
632e2a07 | 3973 | GOC_FOR_BUILD="\$(GOC)" |
0999159b PB |
3974 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3975 | LD_FOR_BUILD="\$(LD)" | |
3976 | NM_FOR_BUILD="\$(NM)" | |
3977 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3978 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3979 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
3980 | fi |
3981 | ||
3982 | ac_ext=c | |
1c710c3c DJ |
3983 | ac_cpp='$CPP $CPPFLAGS' |
3984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3987 | if test -n "$ac_tool_prefix"; then | |
3988 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3989 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3991 | $as_echo_n "checking for $ac_word... " >&6; } | |
3992 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3993 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
3994 | else |
3995 | if test -n "$CC"; then | |
3996 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3997 | else | |
3998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3999 | for as_dir in $PATH | |
4000 | do | |
4001 | IFS=$as_save_IFS | |
4002 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4003 | for ac_exec_ext in '' $ac_executable_extensions; do |
4004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4005 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4007 | break 2 |
4008 | fi | |
4009 | done | |
5213506e RW |
4010 | done |
4011 | IFS=$as_save_IFS | |
1c710c3c DJ |
4012 | |
4013 | fi | |
4014 | fi | |
4015 | CC=$ac_cv_prog_CC | |
4016 | if test -n "$CC"; then | |
5213506e RW |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4018 | $as_echo "$CC" >&6; } | |
1c710c3c | 4019 | else |
5213506e RW |
4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4021 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4022 | fi |
4023 | ||
5213506e | 4024 | |
1c710c3c DJ |
4025 | fi |
4026 | if test -z "$ac_cv_prog_CC"; then | |
4027 | ac_ct_CC=$CC | |
fb0103e5 RG |
4028 | # Extract the first word of "gcc", so it can be a program name with args. |
4029 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4031 | $as_echo_n "checking for $ac_word... " >&6; } | |
4032 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4033 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
4034 | else |
4035 | if test -n "$ac_ct_CC"; then | |
4036 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4037 | else | |
4038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4039 | for as_dir in $PATH | |
4040 | do | |
4041 | IFS=$as_save_IFS | |
4042 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4043 | for ac_exec_ext in '' $ac_executable_extensions; do |
4044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4045 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4047 | break 2 |
4048 | fi | |
4049 | done | |
5213506e RW |
4050 | done |
4051 | IFS=$as_save_IFS | |
1c710c3c DJ |
4052 | |
4053 | fi | |
4054 | fi | |
4055 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4056 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4058 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4059 | else |
5213506e RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4061 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4062 | fi |
4063 | ||
5213506e RW |
4064 | if test "x$ac_ct_CC" = x; then |
4065 | CC="" | |
4066 | else | |
4067 | case $cross_compiling:$ac_tool_warned in | |
4068 | yes:) | |
4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4070 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4071 | ac_tool_warned=yes ;; | |
4072 | esac | |
4073 | CC=$ac_ct_CC | |
4074 | fi | |
1c710c3c DJ |
4075 | else |
4076 | CC="$ac_cv_prog_CC" | |
4077 | fi | |
4078 | ||
4079 | if test -z "$CC"; then | |
5213506e RW |
4080 | if test -n "$ac_tool_prefix"; then |
4081 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4082 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4084 | $as_echo_n "checking for $ac_word... " >&6; } | |
4085 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4086 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4087 | else |
4088 | if test -n "$CC"; then | |
4089 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4090 | else | |
1c710c3c DJ |
4091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4092 | for as_dir in $PATH | |
4093 | do | |
4094 | IFS=$as_save_IFS | |
4095 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4096 | for ac_exec_ext in '' $ac_executable_extensions; do |
4097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4098 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4100 | break 2 |
4101 | fi | |
4102 | done | |
5213506e RW |
4103 | done |
4104 | IFS=$as_save_IFS | |
1c710c3c | 4105 | |
0b0dc272 | 4106 | fi |
0b0dc272 | 4107 | fi |
1c710c3c | 4108 | CC=$ac_cv_prog_CC |
af71363e | 4109 | if test -n "$CC"; then |
5213506e RW |
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4111 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4112 | else |
5213506e RW |
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4114 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4115 | fi |
4116 | ||
2aeb72e9 | 4117 | |
5213506e | 4118 | fi |
1c710c3c | 4119 | fi |
55ffb5ed NN |
4120 | if test -z "$CC"; then |
4121 | # Extract the first word of "cc", so it can be a program name with args. | |
4122 | set dummy cc; ac_word=$2 | |
5213506e RW |
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4124 | $as_echo_n "checking for $ac_word... " >&6; } | |
4125 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4126 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4127 | else |
4128 | if test -n "$CC"; then | |
4129 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4130 | else | |
0b0dc272 | 4131 | ac_prog_rejected=no |
1c710c3c DJ |
4132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4133 | for as_dir in $PATH | |
4134 | do | |
4135 | IFS=$as_save_IFS | |
4136 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4137 | for ac_exec_ext in '' $ac_executable_extensions; do |
4138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c DJ |
4139 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4140 | ac_prog_rejected=yes | |
4141 | continue | |
4142 | fi | |
4143 | ac_cv_prog_CC="cc" | |
5213506e | 4144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4145 | break 2 |
4146 | fi | |
4147 | done | |
5213506e RW |
4148 | done |
4149 | IFS=$as_save_IFS | |
1c710c3c | 4150 | |
55ffb5ed NN |
4151 | if test $ac_prog_rejected = yes; then |
4152 | # We found a bogon in the path, so make sure we never use it. | |
4153 | set dummy $ac_cv_prog_CC | |
4154 | shift | |
1c710c3c | 4155 | if test $# != 0; then |
55ffb5ed NN |
4156 | # We chose a different compiler from the bogus one. |
4157 | # However, it has the same basename, so the bogon will be chosen | |
4158 | # first if we set CC to just the basename; use the full file name. | |
4159 | shift | |
1c710c3c | 4160 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4161 | fi |
4162 | fi | |
4163 | fi | |
4164 | fi | |
1c710c3c | 4165 | CC=$ac_cv_prog_CC |
55ffb5ed | 4166 | if test -n "$CC"; then |
5213506e RW |
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4168 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4169 | else |
5213506e RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4171 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4172 | fi |
4173 | ||
5213506e | 4174 | |
1c710c3c DJ |
4175 | fi |
4176 | if test -z "$CC"; then | |
4177 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4178 | for ac_prog in cl.exe |
1c710c3c DJ |
4179 | do |
4180 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4181 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4183 | $as_echo_n "checking for $ac_word... " >&6; } | |
4184 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4185 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4186 | else |
4187 | if test -n "$CC"; then | |
4188 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4189 | else | |
1c710c3c DJ |
4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4191 | for as_dir in $PATH | |
4192 | do | |
4193 | IFS=$as_save_IFS | |
4194 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4195 | for ac_exec_ext in '' $ac_executable_extensions; do |
4196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4197 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4199 | break 2 |
4200 | fi | |
4201 | done | |
5213506e RW |
4202 | done |
4203 | IFS=$as_save_IFS | |
1c710c3c | 4204 | |
55ffb5ed NN |
4205 | fi |
4206 | fi | |
1c710c3c | 4207 | CC=$ac_cv_prog_CC |
55ffb5ed | 4208 | if test -n "$CC"; then |
5213506e RW |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4210 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4211 | else |
5213506e RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4213 | $as_echo "no" >&6; } | |
fb0103e5 | 4214 | fi |
af71363e | 4215 | |
5213506e | 4216 | |
1c710c3c DJ |
4217 | test -n "$CC" && break |
4218 | done | |
af71363e | 4219 | fi |
1c710c3c DJ |
4220 | if test -z "$CC"; then |
4221 | ac_ct_CC=$CC | |
5213506e | 4222 | for ac_prog in cl.exe |
1c710c3c DJ |
4223 | do |
4224 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4225 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4227 | $as_echo_n "checking for $ac_word... " >&6; } | |
4228 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4229 | $as_echo_n "(cached) " >&6 | |
0b0dc272 | 4230 | else |
1c710c3c DJ |
4231 | if test -n "$ac_ct_CC"; then |
4232 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4233 | else |
1c710c3c DJ |
4234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4235 | for as_dir in $PATH | |
4236 | do | |
4237 | IFS=$as_save_IFS | |
4238 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4239 | for ac_exec_ext in '' $ac_executable_extensions; do |
4240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4241 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4243 | break 2 |
4244 | fi | |
4245 | done | |
5213506e RW |
4246 | done |
4247 | IFS=$as_save_IFS | |
1c710c3c | 4248 | |
af71363e AS |
4249 | fi |
4250 | fi | |
1c710c3c DJ |
4251 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4252 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4254 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4255 | else |
5213506e RW |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4257 | $as_echo "no" >&6; } | |
af71363e | 4258 | fi |
0b0dc272 | 4259 | |
5213506e | 4260 | |
1c710c3c DJ |
4261 | test -n "$ac_ct_CC" && break |
4262 | done | |
4263 | ||
5213506e RW |
4264 | if test "x$ac_ct_CC" = x; then |
4265 | CC="" | |
4266 | else | |
4267 | case $cross_compiling:$ac_tool_warned in | |
4268 | yes:) | |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4270 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4271 | ac_tool_warned=yes ;; | |
4272 | esac | |
4273 | CC=$ac_ct_CC | |
4274 | fi | |
1c710c3c DJ |
4275 | fi |
4276 | ||
4277 | fi | |
4278 | ||
4279 | ||
5213506e RW |
4280 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4281 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4282 | as_fn_error "no acceptable C compiler found in \$PATH | |
4283 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c DJ |
4284 | |
4285 | # Provide some information about the compiler. | |
5213506e RW |
4286 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4287 | set X $ac_compile | |
4288 | ac_compiler=$2 | |
4289 | for ac_option in --version -v -V -qversion; do | |
4290 | { { ac_try="$ac_compiler $ac_option >&5" | |
4291 | case "(($ac_try" in | |
4292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4293 | *) ac_try_echo=$ac_try;; | |
4294 | esac | |
4295 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4296 | $as_echo "$ac_try_echo"; } >&5 | |
4297 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4298 | ac_status=$? |
5213506e RW |
4299 | if test -s conftest.err; then |
4300 | sed '10a\ | |
4301 | ... rest of stderr output deleted ... | |
4302 | 10q' conftest.err >conftest.er1 | |
4303 | cat conftest.er1 >&5 | |
4304 | rm -f conftest.er1 conftest.err | |
4305 | fi | |
4306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4307 | test $ac_status = 0; } | |
4308 | done | |
1c710c3c | 4309 | |
5213506e | 4310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4311 | /* end confdefs.h. */ |
4312 | ||
4313 | int | |
4314 | main () | |
4315 | { | |
4316 | ||
4317 | ; | |
4318 | return 0; | |
4319 | } | |
4320 | _ACEOF | |
4321 | ac_clean_files_save=$ac_clean_files | |
5213506e | 4322 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
1c710c3c DJ |
4323 | # Try to create an executable without -o first, disregard a.out. |
4324 | # It will help us diagnose broken compilers, and finding out an intuition | |
4325 | # of exeext. | |
5213506e RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4327 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4328 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4329 | ||
4330 | # The possible output files: | |
4331 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4332 | ||
4333 | ac_rmfiles= | |
4334 | for ac_file in $ac_files | |
4335 | do | |
4336 | case $ac_file in | |
4337 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4338 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4339 | esac | |
4340 | done | |
4341 | rm -f $ac_rmfiles | |
4342 | ||
4343 | if { { ac_try="$ac_link_default" | |
4344 | case "(($ac_try" in | |
4345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4346 | *) ac_try_echo=$ac_try;; | |
4347 | esac | |
4348 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4349 | $as_echo "$ac_try_echo"; } >&5 | |
4350 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4351 | ac_status=$? |
5213506e RW |
4352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4353 | test $ac_status = 0; }; then : | |
4354 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4355 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4356 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4357 | # so that the user can short-circuit this test for compilers unknown to | |
4358 | # Autoconf. | |
4359 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4360 | do |
4361 | test -f "$ac_file" || continue | |
4362 | case $ac_file in | |
5213506e | 4363 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4364 | ;; |
4365 | [ab].out ) | |
4366 | # We found the default executable, but exeext='' is most | |
4367 | # certainly right. | |
4368 | break;; | |
4369 | *.* ) | |
5213506e RW |
4370 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4371 | then :; else | |
4372 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4373 | fi | |
4374 | # We set ac_cv_exeext here because the later test for it is not | |
4375 | # safe: cross compilers may not add the suffix if given an `-o' | |
4376 | # argument, so we may need to know it at that point already. | |
4377 | # Even if this section looks crufty: it has the advantage of | |
4378 | # actually working. | |
1c710c3c DJ |
4379 | break;; |
4380 | * ) | |
4381 | break;; | |
4382 | esac | |
4383 | done | |
5213506e RW |
4384 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4385 | ||
1c710c3c | 4386 | else |
5213506e RW |
4387 | ac_file='' |
4388 | fi | |
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4390 | $as_echo "$ac_file" >&6; } | |
4391 | if test -z "$ac_file"; then : | |
4392 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4393 | sed 's/^/| /' conftest.$ac_ext >&5 |
4394 | ||
5213506e RW |
4395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4397 | { as_fn_set_status 77 | |
4398 | as_fn_error "C compiler cannot create executables | |
4399 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1c710c3c | 4400 | fi |
1c710c3c | 4401 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4402 | |
5213506e | 4403 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4404 | # the compiler is broken, or we cross compile. |
5213506e RW |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4406 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1c710c3c DJ |
4407 | # If not cross compiling, check that we can run a simple program. |
4408 | if test "$cross_compiling" != yes; then | |
4409 | if { ac_try='./$ac_file' | |
5213506e RW |
4410 | { { case "(($ac_try" in |
4411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4412 | *) ac_try_echo=$ac_try;; | |
4413 | esac | |
4414 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4415 | $as_echo "$ac_try_echo"; } >&5 | |
4416 | (eval "$ac_try") 2>&5 | |
1c710c3c | 4417 | ac_status=$? |
5213506e RW |
4418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4419 | test $ac_status = 0; }; }; then | |
1c710c3c DJ |
4420 | cross_compiling=no |
4421 | else | |
4422 | if test "$cross_compiling" = maybe; then | |
4423 | cross_compiling=yes | |
4424 | else | |
5213506e RW |
4425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4426 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4427 | as_fn_error "cannot run C compiled programs. | |
1c710c3c | 4428 | If you meant to cross compile, use \`--host'. |
5213506e | 4429 | See \`config.log' for more details." "$LINENO" 5; } |
1c710c3c DJ |
4430 | fi |
4431 | fi | |
4432 | fi | |
5213506e RW |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4434 | $as_echo "yes" >&6; } | |
1c710c3c | 4435 | |
5213506e | 4436 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
1c710c3c | 4437 | ac_clean_files=$ac_clean_files_save |
5213506e | 4438 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4439 | # the compiler is broken, or we cross compile. |
5213506e RW |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4441 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4443 | $as_echo "$cross_compiling" >&6; } | |
4444 | ||
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4446 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4447 | if { { ac_try="$ac_link" | |
4448 | case "(($ac_try" in | |
4449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4450 | *) ac_try_echo=$ac_try;; | |
4451 | esac | |
4452 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4453 | $as_echo "$ac_try_echo"; } >&5 | |
4454 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4455 | ac_status=$? |
5213506e RW |
4456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4457 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4458 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4459 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4460 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4461 | # `rm'. | |
4462 | for ac_file in conftest.exe conftest conftest.*; do | |
4463 | test -f "$ac_file" || continue | |
4464 | case $ac_file in | |
5213506e | 4465 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4466 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4467 | break;; |
4468 | * ) break;; | |
4469 | esac | |
4470 | done | |
af71363e | 4471 | else |
5213506e RW |
4472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4474 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4475 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4476 | fi |
1c710c3c | 4477 | rm -f conftest$ac_cv_exeext |
5213506e RW |
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4479 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4480 | |
4481 | rm -f conftest.$ac_ext | |
4482 | EXEEXT=$ac_cv_exeext | |
4483 | ac_exeext=$EXEEXT | |
5213506e RW |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4485 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4486 | if test "${ac_cv_objext+set}" = set; then : | |
4487 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4488 | else |
5213506e | 4489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4490 | /* end confdefs.h. */ |
4491 | ||
4492 | int | |
4493 | main () | |
4494 | { | |
4495 | ||
4496 | ; | |
4497 | return 0; | |
4498 | } | |
4499 | _ACEOF | |
4500 | rm -f conftest.o conftest.obj | |
5213506e RW |
4501 | if { { ac_try="$ac_compile" |
4502 | case "(($ac_try" in | |
4503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4504 | *) ac_try_echo=$ac_try;; | |
4505 | esac | |
4506 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4507 | $as_echo "$ac_try_echo"; } >&5 | |
4508 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4509 | ac_status=$? |
5213506e RW |
4510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4511 | test $ac_status = 0; }; then : | |
4512 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4513 | test -f "$ac_file" || continue; | |
1c710c3c | 4514 | case $ac_file in |
5213506e | 4515 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4516 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4517 | break;; | |
4518 | esac | |
4519 | done | |
4520 | else | |
5213506e | 4521 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
4523 | ||
5213506e RW |
4524 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4525 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4526 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4527 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4528 | fi |
1c710c3c DJ |
4529 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4530 | fi | |
5213506e RW |
4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4532 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4533 | OBJEXT=$ac_cv_objext |
4534 | ac_objext=$OBJEXT | |
5213506e RW |
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4536 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4537 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4538 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4539 | else |
5213506e | 4540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4541 | /* end confdefs.h. */ |
4542 | ||
4543 | int | |
4544 | main () | |
4545 | { | |
4546 | #ifndef __GNUC__ | |
4547 | choke me | |
4548 | #endif | |
4549 | ||
4550 | ; | |
4551 | return 0; | |
4552 | } | |
4553 | _ACEOF | |
5213506e | 4554 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4555 | ac_compiler_gnu=yes |
4556 | else | |
5213506e | 4557 | ac_compiler_gnu=no |
1c710c3c | 4558 | fi |
5213506e | 4559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4560 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4561 | ||
4562 | fi | |
5213506e RW |
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4564 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4565 | if test $ac_compiler_gnu = yes; then | |
4566 | GCC=yes | |
4567 | else | |
4568 | GCC= | |
4569 | fi | |
1c710c3c DJ |
4570 | ac_test_CFLAGS=${CFLAGS+set} |
4571 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4573 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4574 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4575 | $as_echo_n "(cached) " >&6 | |
4576 | else | |
4577 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4578 | ac_c_werror_flag=yes | |
4579 | ac_cv_prog_cc_g=no | |
4580 | CFLAGS="-g" | |
4581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4582 | /* end confdefs.h. */ |
4583 | ||
4584 | int | |
4585 | main () | |
4586 | { | |
4587 | ||
4588 | ; | |
4589 | return 0; | |
4590 | } | |
4591 | _ACEOF | |
5213506e | 4592 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4593 | ac_cv_prog_cc_g=yes |
4594 | else | |
5213506e RW |
4595 | CFLAGS="" |
4596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4597 | /* end confdefs.h. */ | |
4598 | ||
4599 | int | |
4600 | main () | |
4601 | { | |
4602 | ||
4603 | ; | |
4604 | return 0; | |
4605 | } | |
4606 | _ACEOF | |
4607 | if ac_fn_c_try_compile "$LINENO"; then : | |
4608 | ||
4609 | else | |
4610 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4611 | CFLAGS="-g" | |
4612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4613 | /* end confdefs.h. */ | |
af71363e | 4614 | |
5213506e RW |
4615 | int |
4616 | main () | |
4617 | { | |
4618 | ||
4619 | ; | |
4620 | return 0; | |
4621 | } | |
4622 | _ACEOF | |
4623 | if ac_fn_c_try_compile "$LINENO"; then : | |
4624 | ac_cv_prog_cc_g=yes | |
4625 | fi | |
4626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4627 | fi |
5213506e | 4628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4629 | fi |
5213506e RW |
4630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4631 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4632 | fi | |
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4634 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4635 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4636 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4637 | elif test $ac_cv_prog_cc_g = yes; then |
4638 | if test "$GCC" = yes; then | |
4639 | CFLAGS="-g -O2" | |
4640 | else | |
4641 | CFLAGS="-g" | |
4642 | fi | |
4643 | else | |
4644 | if test "$GCC" = yes; then | |
4645 | CFLAGS="-O2" | |
4646 | else | |
4647 | CFLAGS= | |
4648 | fi | |
4649 | fi | |
5213506e RW |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4651 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4652 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4653 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4654 | else |
5213506e | 4655 | ac_cv_prog_cc_c89=no |
1c710c3c | 4656 | ac_save_CC=$CC |
5213506e | 4657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4658 | /* end confdefs.h. */ |
4659 | #include <stdarg.h> | |
4660 | #include <stdio.h> | |
4661 | #include <sys/types.h> | |
4662 | #include <sys/stat.h> | |
4663 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4664 | struct buf { int x; }; | |
4665 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4666 | static char *e (p, i) | |
4667 | char **p; | |
4668 | int i; | |
4669 | { | |
4670 | return p[i]; | |
4671 | } | |
4672 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4673 | { | |
4674 | char *s; | |
4675 | va_list v; | |
4676 | va_start (v,p); | |
4677 | s = g (p, va_arg (v,int)); | |
4678 | va_end (v); | |
4679 | return s; | |
4680 | } | |
4681 | ||
4682 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4683 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4684 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4685 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4686 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4687 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4688 | that's true only with -std. */ |
1c710c3c DJ |
4689 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4690 | ||
5213506e RW |
4691 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4692 | inside strings and character constants. */ | |
4693 | #define FOO(x) 'x' | |
4694 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4695 | ||
1c710c3c DJ |
4696 | int test (int i, double x); |
4697 | struct s1 {int (*f) (int a);}; | |
4698 | struct s2 {int (*f) (double a);}; | |
4699 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4700 | int argc; | |
4701 | char **argv; | |
4702 | int | |
4703 | main () | |
4704 | { | |
4705 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4706 | ; | |
4707 | return 0; | |
4708 | } | |
4709 | _ACEOF | |
5213506e RW |
4710 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4711 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4712 | do |
4713 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4714 | if ac_fn_c_try_compile "$LINENO"; then : |
4715 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4716 | fi |
5213506e RW |
4717 | rm -f core conftest.err conftest.$ac_objext |
4718 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4719 | done |
5213506e | 4720 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4721 | CC=$ac_save_CC |
4722 | ||
4723 | fi | |
5213506e RW |
4724 | # AC_CACHE_VAL |
4725 | case "x$ac_cv_prog_cc_c89" in | |
4726 | x) | |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4728 | $as_echo "none needed" >&6; } ;; | |
4729 | xno) | |
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4731 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4732 | *) |
5213506e RW |
4733 | CC="$CC $ac_cv_prog_cc_c89" |
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4735 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4736 | esac |
5213506e | 4737 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4738 | |
2aeb72e9 DD |
4739 | fi |
4740 | ||
2aeb72e9 DD |
4741 | ac_ext=c |
4742 | ac_cpp='$CPP $CPPFLAGS' | |
4743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4746 | ||
5213506e | 4747 | ac_ext=cpp |
2aeb72e9 DD |
4748 | ac_cpp='$CXXCPP $CPPFLAGS' |
4749 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4750 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4751 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4752 | if test -z "$CXX"; then |
4753 | if test -n "$CCC"; then | |
4754 | CXX=$CCC | |
4755 | else | |
4756 | if test -n "$ac_tool_prefix"; then | |
4757 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4758 | do |
4759 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4760 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4762 | $as_echo_n "checking for $ac_word... " >&6; } | |
4763 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4764 | $as_echo_n "(cached) " >&6 | |
2aeb72e9 DD |
4765 | else |
4766 | if test -n "$CXX"; then | |
4767 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4768 | else | |
4769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4770 | for as_dir in $PATH | |
4771 | do | |
4772 | IFS=$as_save_IFS | |
4773 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4774 | for ac_exec_ext in '' $ac_executable_extensions; do |
4775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2aeb72e9 | 4776 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4778 | break 2 |
4779 | fi | |
4780 | done | |
5213506e RW |
4781 | done |
4782 | IFS=$as_save_IFS | |
55ffb5ed | 4783 | |
c3a86da9 DJ |
4784 | fi |
4785 | fi | |
4786 | CXX=$ac_cv_prog_CXX | |
4787 | if test -n "$CXX"; then | |
5213506e RW |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4789 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4790 | else |
5213506e RW |
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4792 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4793 | fi |
4794 | ||
5213506e | 4795 | |
c3a86da9 DJ |
4796 | test -n "$CXX" && break |
4797 | done | |
4798 | fi | |
4799 | if test -z "$CXX"; then | |
4800 | ac_ct_CXX=$CXX | |
5213506e | 4801 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4802 | do |
4803 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4804 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4806 | $as_echo_n "checking for $ac_word... " >&6; } | |
4807 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4808 | $as_echo_n "(cached) " >&6 | |
c3a86da9 DJ |
4809 | else |
4810 | if test -n "$ac_ct_CXX"; then | |
4811 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4812 | else | |
4813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4814 | for as_dir in $PATH | |
4815 | do | |
4816 | IFS=$as_save_IFS | |
4817 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4818 | for ac_exec_ext in '' $ac_executable_extensions; do |
4819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c3a86da9 | 4820 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4822 | break 2 |
4823 | fi | |
4824 | done | |
5213506e RW |
4825 | done |
4826 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4827 | |
4828 | fi | |
4829 | fi | |
4830 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4831 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4833 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4834 | else |
5213506e RW |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4836 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4837 | fi |
4838 | ||
5213506e | 4839 | |
c3a86da9 DJ |
4840 | test -n "$ac_ct_CXX" && break |
4841 | done | |
c3a86da9 | 4842 | |
5213506e RW |
4843 | if test "x$ac_ct_CXX" = x; then |
4844 | CXX="g++" | |
4845 | else | |
4846 | case $cross_compiling:$ac_tool_warned in | |
4847 | yes:) | |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4850 | ac_tool_warned=yes ;; | |
4851 | esac | |
4852 | CXX=$ac_ct_CXX | |
4853 | fi | |
c3a86da9 DJ |
4854 | fi |
4855 | ||
5213506e RW |
4856 | fi |
4857 | fi | |
c3a86da9 | 4858 | # Provide some information about the compiler. |
5213506e RW |
4859 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4860 | set X $ac_compile | |
4861 | ac_compiler=$2 | |
4862 | for ac_option in --version -v -V -qversion; do | |
4863 | { { ac_try="$ac_compiler $ac_option >&5" | |
4864 | case "(($ac_try" in | |
4865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4866 | *) ac_try_echo=$ac_try;; | |
4867 | esac | |
4868 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4869 | $as_echo "$ac_try_echo"; } >&5 | |
4870 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4871 | ac_status=$? |
5213506e RW |
4872 | if test -s conftest.err; then |
4873 | sed '10a\ | |
4874 | ... rest of stderr output deleted ... | |
4875 | 10q' conftest.err >conftest.er1 | |
4876 | cat conftest.er1 >&5 | |
4877 | rm -f conftest.er1 conftest.err | |
4878 | fi | |
4879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4880 | test $ac_status = 0; } | |
4881 | done | |
c3a86da9 | 4882 | |
5213506e RW |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4884 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4885 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4886 | $as_echo_n "(cached) " >&6 | |
c3a86da9 | 4887 | else |
5213506e | 4888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4889 | /* end confdefs.h. */ |
4890 | ||
4891 | int | |
4892 | main () | |
4893 | { | |
4894 | #ifndef __GNUC__ | |
4895 | choke me | |
4896 | #endif | |
4897 | ||
4898 | ; | |
4899 | return 0; | |
4900 | } | |
4901 | _ACEOF | |
5213506e | 4902 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4903 | ac_compiler_gnu=yes |
4904 | else | |
5213506e | 4905 | ac_compiler_gnu=no |
c3a86da9 | 4906 | fi |
5213506e | 4907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4908 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4909 | ||
4910 | fi | |
5213506e RW |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4912 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4913 | if test $ac_compiler_gnu = yes; then | |
4914 | GXX=yes | |
4915 | else | |
4916 | GXX= | |
4917 | fi | |
c3a86da9 DJ |
4918 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4919 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4921 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4922 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4923 | $as_echo_n "(cached) " >&6 | |
4924 | else | |
4925 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4926 | ac_cxx_werror_flag=yes | |
4927 | ac_cv_prog_cxx_g=no | |
4928 | CXXFLAGS="-g" | |
4929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
4930 | /* end confdefs.h. */ |
4931 | ||
4932 | int | |
4933 | main () | |
4934 | { | |
4935 | ||
4936 | ; | |
4937 | return 0; | |
4938 | } | |
4939 | _ACEOF | |
5213506e | 4940 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4941 | ac_cv_prog_cxx_g=yes |
4942 | else | |
5213506e RW |
4943 | CXXFLAGS="" |
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4945 | /* end confdefs.h. */ |
5213506e | 4946 | |
c3a86da9 DJ |
4947 | int |
4948 | main () | |
4949 | { | |
5213506e | 4950 | |
c3a86da9 DJ |
4951 | ; |
4952 | return 0; | |
4953 | } | |
4954 | _ACEOF | |
5213506e | 4955 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 4956 | |
5213506e RW |
4957 | else |
4958 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4959 | CXXFLAGS="-g" | |
4960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4961 | /* end confdefs.h. */ |
5213506e | 4962 | |
c3a86da9 DJ |
4963 | int |
4964 | main () | |
4965 | { | |
5213506e | 4966 | |
c3a86da9 DJ |
4967 | ; |
4968 | return 0; | |
4969 | } | |
4970 | _ACEOF | |
5213506e RW |
4971 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4972 | ac_cv_prog_cxx_g=yes | |
11a67599 | 4973 | fi |
5213506e RW |
4974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4975 | fi | |
4976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4977 | fi | |
4978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4979 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4980 | fi | |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4982 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4983 | if test "$ac_test_CXXFLAGS" = set; then | |
4984 | CXXFLAGS=$ac_save_CXXFLAGS | |
4985 | elif test $ac_cv_prog_cxx_g = yes; then | |
4986 | if test "$GXX" = yes; then | |
4987 | CXXFLAGS="-g -O2" | |
4988 | else | |
4989 | CXXFLAGS="-g" | |
4990 | fi | |
4991 | else | |
4992 | if test "$GXX" = yes; then | |
4993 | CXXFLAGS="-O2" | |
4994 | else | |
4995 | CXXFLAGS= | |
4996 | fi | |
c3a86da9 | 4997 | fi |
c3a86da9 DJ |
4998 | ac_ext=c |
4999 | ac_cpp='$CPP $CPPFLAGS' | |
5000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5003 | ||
5004 | ||
5005 | # We must set the default linker to the linker used by gcc for the correct | |
5006 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5007 | # set the LD default to the ld used by gcc. | |
5008 | if test -z "$LD"; then | |
5009 | if test "$GCC" = yes; then | |
5010 | case $build in | |
5011 | *-*-mingw*) | |
5012 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5013 | *) | |
5014 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5015 | esac | |
5016 | case $gcc_prog_ld in | |
5017 | # Accept absolute paths. | |
5018 | [\\/]* | [A-Za-z]:[\\/]*) | |
5019 | LD="$gcc_prog_ld" ;; | |
5020 | esac | |
5021 | fi | |
23f6b2f9 PB |
5022 | fi |
5023 | ||
0b21f5d3 EB |
5024 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5025 | have_static_libs=no | |
5026 | if test "$GCC" = yes; then | |
5027 | saved_LDFLAGS="$LDFLAGS" | |
5028 | ||
5029 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5031 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5032 | ac_ext=cpp | |
5033 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5034 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5035 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5036 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5037 | ||
5038 | ||
5039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5040 | /* end confdefs.h. */ | |
0d6414b2 EB |
5041 | |
5042 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5043 | #error -static-libstdc++ not implemented | |
5044 | #endif | |
0b21f5d3 EB |
5045 | int main() {} |
5046 | _ACEOF | |
5047 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5049 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5050 | else | |
5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5052 | $as_echo "no" >&6; } | |
5053 | fi | |
5054 | rm -f core conftest.err conftest.$ac_objext \ | |
5055 | conftest$ac_exeext conftest.$ac_ext | |
5056 | ac_ext=c | |
5057 | ac_cpp='$CPP $CPPFLAGS' | |
5058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5061 | ||
5062 | ||
5063 | LDFLAGS="$saved_LDFLAGS" | |
5064 | fi | |
5065 | ||
23f6b2f9 PB |
5066 | |
5067 | ||
55ffb5ed | 5068 | |
1c710c3c DJ |
5069 | if test -n "$ac_tool_prefix"; then |
5070 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5071 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5073 | $as_echo_n "checking for $ac_word... " >&6; } | |
5074 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5075 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5076 | else |
5077 | if test -n "$GNATBIND"; then | |
5078 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5079 | else | |
1c710c3c DJ |
5080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5081 | for as_dir in $PATH | |
5082 | do | |
5083 | IFS=$as_save_IFS | |
5084 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5085 | for ac_exec_ext in '' $ac_executable_extensions; do |
5086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5087 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5089 | break 2 |
5090 | fi | |
5091 | done | |
5213506e RW |
5092 | done |
5093 | IFS=$as_save_IFS | |
1c710c3c | 5094 | |
55ffb5ed NN |
5095 | fi |
5096 | fi | |
1c710c3c | 5097 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5098 | if test -n "$GNATBIND"; then |
5213506e RW |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5100 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5101 | else |
5213506e RW |
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5103 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5104 | fi |
5105 | ||
5213506e | 5106 | |
1c710c3c | 5107 | fi |
55ffb5ed | 5108 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5109 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5110 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5111 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5113 | $as_echo_n "checking for $ac_word... " >&6; } | |
5114 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5115 | $as_echo_n "(cached) " >&6 | |
55ffb5ed | 5116 | else |
1c710c3c DJ |
5117 | if test -n "$ac_ct_GNATBIND"; then |
5118 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5119 | else |
1c710c3c DJ |
5120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5121 | for as_dir in $PATH | |
5122 | do | |
5123 | IFS=$as_save_IFS | |
5124 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5125 | for ac_exec_ext in '' $ac_executable_extensions; do |
5126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5127 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5129 | break 2 |
5130 | fi | |
5131 | done | |
5213506e RW |
5132 | done |
5133 | IFS=$as_save_IFS | |
1c710c3c | 5134 | |
55ffb5ed NN |
5135 | fi |
5136 | fi | |
1c710c3c DJ |
5137 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5138 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5140 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5141 | else |
5213506e RW |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5143 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5144 | fi |
5145 | ||
5213506e RW |
5146 | if test "x$ac_ct_GNATBIND" = x; then |
5147 | GNATBIND="no" | |
5148 | else | |
5149 | case $cross_compiling:$ac_tool_warned in | |
5150 | yes:) | |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5152 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5153 | ac_tool_warned=yes ;; | |
5154 | esac | |
5155 | GNATBIND=$ac_ct_GNATBIND | |
5156 | fi | |
55ffb5ed | 5157 | else |
1c710c3c | 5158 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5159 | fi |
5160 | ||
1c710c3c DJ |
5161 | if test -n "$ac_tool_prefix"; then |
5162 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5163 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5165 | $as_echo_n "checking for $ac_word... " >&6; } | |
5166 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5167 | $as_echo_n "(cached) " >&6 | |
5305be7e RG |
5168 | else |
5169 | if test -n "$GNATMAKE"; then | |
5170 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5171 | else | |
1c710c3c DJ |
5172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5173 | for as_dir in $PATH | |
5174 | do | |
5175 | IFS=$as_save_IFS | |
5176 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5177 | for ac_exec_ext in '' $ac_executable_extensions; do |
5178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5179 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5181 | break 2 |
5182 | fi | |
5183 | done | |
5213506e RW |
5184 | done |
5185 | IFS=$as_save_IFS | |
1c710c3c | 5186 | |
5305be7e RG |
5187 | fi |
5188 | fi | |
1c710c3c | 5189 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5190 | if test -n "$GNATMAKE"; then |
5213506e RW |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5192 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5193 | else |
5213506e RW |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5195 | $as_echo "no" >&6; } | |
5305be7e RG |
5196 | fi |
5197 | ||
5213506e | 5198 | |
1c710c3c | 5199 | fi |
5305be7e | 5200 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5201 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5202 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5203 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5205 | $as_echo_n "checking for $ac_word... " >&6; } | |
5206 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5207 | $as_echo_n "(cached) " >&6 | |
5305be7e | 5208 | else |
1c710c3c DJ |
5209 | if test -n "$ac_ct_GNATMAKE"; then |
5210 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5211 | else |
1c710c3c DJ |
5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5213 | for as_dir in $PATH | |
5214 | do | |
5215 | IFS=$as_save_IFS | |
5216 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5217 | for ac_exec_ext in '' $ac_executable_extensions; do |
5218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5219 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5221 | break 2 |
5222 | fi | |
5223 | done | |
5213506e RW |
5224 | done |
5225 | IFS=$as_save_IFS | |
1c710c3c | 5226 | |
5305be7e RG |
5227 | fi |
5228 | fi | |
1c710c3c DJ |
5229 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5230 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5232 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5233 | else |
5213506e RW |
5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5235 | $as_echo "no" >&6; } | |
5305be7e RG |
5236 | fi |
5237 | ||
5213506e RW |
5238 | if test "x$ac_ct_GNATMAKE" = x; then |
5239 | GNATMAKE="no" | |
5240 | else | |
5241 | case $cross_compiling:$ac_tool_warned in | |
5242 | yes:) | |
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5244 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5245 | ac_tool_warned=yes ;; | |
5246 | esac | |
5247 | GNATMAKE=$ac_ct_GNATMAKE | |
5248 | fi | |
5305be7e | 5249 | else |
1c710c3c | 5250 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5251 | fi |
5252 | ||
5213506e RW |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5254 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5255 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5256 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5257 | else |
5258 | cat >conftest.adb <<EOF | |
5259 | procedure conftest is begin null; end conftest; | |
5260 | EOF | |
5261 | acx_cv_cc_gcc_supports_ada=no | |
5262 | # There is a bug in old released versions of GCC which causes the | |
5263 | # driver to exit successfully when the appropriate language module | |
5264 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5265 | # Therefore we must check for the error message as well as an | |
5266 | # unsuccessful exit. | |
1db673ca RO |
5267 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5268 | # given a .adb file, but produce no object file. So we must check | |
5269 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5270 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5271 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5272 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5273 | fi |
5274 | rm -f conftest.* | |
5275 | fi | |
5213506e RW |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5277 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5278 | |
7cb62ef1 | 5279 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5280 | have_gnat=yes |
5281 | else | |
5282 | have_gnat=no | |
5283 | fi | |
5284 | ||
5213506e RW |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5286 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5287 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5288 | $as_echo_n "(cached) " >&6 | |
a76494aa PB |
5289 | else |
5290 | echo abfoo >t1 | |
5291 | echo cdfoo >t2 | |
5292 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
5293 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5294 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5295 | : | |
5296 | else | |
5297 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5298 | fi | |
5299 | fi | |
a76494aa PB |
5300 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5301 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5302 | : |
a76494aa PB |
5303 | else |
5304 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5305 | fi | |
5306 | fi | |
5307 | rm t1 t2 | |
5308 | ||
5309 | fi | |
5213506e RW |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5311 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5312 | do_compare="$gcc_cv_prog_cmp_skip" |
5313 | ||
5314 | ||
55ffb5ed | 5315 | |
ff3ac0f4 ILT |
5316 | # Check whether --enable-bootstrap was given. |
5317 | if test "${enable_bootstrap+set}" = set; then : | |
5318 | enableval=$enable_bootstrap; | |
5319 | else | |
5320 | enable_bootstrap=default | |
5321 | fi | |
5322 | ||
5323 | ||
5324 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5325 | if test -r $srcdir/gcc/configure; then |
5326 | have_compiler=yes | |
5327 | else | |
5328 | have_compiler=no | |
5329 | fi | |
ff3ac0f4 ILT |
5330 | |
5331 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5332 | *:*:*:no) ;; | |
5333 | ||
5334 | # Default behavior. Enable bootstrap if we have a compiler | |
5335 | # and we are in a native configuration. | |
5336 | yes:$build:$build:default) | |
5337 | enable_bootstrap=yes ;; | |
5338 | ||
5339 | *:*:*:default) | |
5340 | enable_bootstrap=no ;; | |
5341 | ||
5342 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5343 | yes:$build:$build:yes) | |
5344 | ;; | |
5345 | ||
5346 | # Other configurations, but we have a compiler. Assume the user knows | |
5347 | # what he's doing. | |
5348 | yes:*:*:yes) | |
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5350 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5351 | ;; | |
5352 | ||
5353 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5354 | no:*:*:yes) | |
5355 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5356 | ||
5357 | # Fail if wrong command line | |
5358 | *) | |
5359 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5360 | ;; | |
5361 | esac | |
5362 | ||
592c90ff KG |
5363 | # Used for setting $lt_cv_objdir |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5365 | $as_echo_n "checking for objdir... " >&6; } | |
5366 | if test "${lt_cv_objdir+set}" = set; then : | |
5367 | $as_echo_n "(cached) " >&6 | |
5368 | else | |
5369 | rm -f .libs 2>/dev/null | |
5370 | mkdir .libs 2>/dev/null | |
5371 | if test -d .libs; then | |
5372 | lt_cv_objdir=.libs | |
5373 | else | |
5374 | # MS-DOS does not allow filenames that begin with a dot. | |
5375 | lt_cv_objdir=_libs | |
5376 | fi | |
5377 | rmdir .libs 2>/dev/null | |
5378 | fi | |
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5380 | $as_echo "$lt_cv_objdir" >&6; } | |
5381 | objdir=$lt_cv_objdir | |
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | cat >>confdefs.h <<_ACEOF | |
5388 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5389 | _ACEOF | |
5390 | ||
5391 | ||
5392 | ||
acd26225 | 5393 | # Check for GMP, MPFR and MPC |
3a5729ea | 5394 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5395 | gmpinc= |
e69bf64b | 5396 | have_gmp=no |
acd26225 KG |
5397 | |
5398 | # Specify a location for mpc | |
5399 | # check for this first so it ends up on the link line before mpfr. | |
5400 | ||
5213506e RW |
5401 | # Check whether --with-mpc was given. |
5402 | if test "${with_mpc+set}" = set; then : | |
5403 | withval=$with_mpc; | |
5404 | fi | |
acd26225 | 5405 | |
acd26225 | 5406 | |
9965e3cd | 5407 | # Check whether --with-mpc-include was given. |
5213506e RW |
5408 | if test "${with_mpc_include+set}" = set; then : |
5409 | withval=$with_mpc_include; | |
5410 | fi | |
acd26225 | 5411 | |
acd26225 | 5412 | |
9965e3cd | 5413 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5414 | if test "${with_mpc_lib+set}" = set; then : |
5415 | withval=$with_mpc_lib; | |
5416 | fi | |
acd26225 | 5417 | |
acd26225 KG |
5418 | |
5419 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5420 | gmplibs="-L$with_mpc/lib $gmplibs" |
5421 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5422 | fi |
5423 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5424 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5425 | fi |
5426 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5427 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5428 | fi |
5429 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5430 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5431 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5432 | # Do not test the mpc version. Assume that it is sufficient, since |
5433 | # it is in the source tree, and the library has not been built yet | |
5434 | # but it would be included on the link line in the version check below | |
5435 | # hence making the test fail. | |
3a5729ea | 5436 | have_gmp=yes |
acd26225 | 5437 | fi |
e69bf64b | 5438 | |
bebf829d PB |
5439 | # Specify a location for mpfr |
5440 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5441 | |
5213506e RW |
5442 | # Check whether --with-mpfr-dir was given. |
5443 | if test "${with_mpfr_dir+set}" = set; then : | |
5444 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5445 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5446 | fi | |
5447 | ||
bebf829d PB |
5448 | |
5449 | ||
5213506e RW |
5450 | # Check whether --with-mpfr was given. |
5451 | if test "${with_mpfr+set}" = set; then : | |
5452 | withval=$with_mpfr; | |
5453 | fi | |
1c710c3c | 5454 | |
bebf829d | 5455 | |
9965e3cd | 5456 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5457 | if test "${with_mpfr_include+set}" = set; then : |
5458 | withval=$with_mpfr_include; | |
5459 | fi | |
1c710c3c | 5460 | |
8a877c9c | 5461 | |
9965e3cd | 5462 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5463 | if test "${with_mpfr_lib+set}" = set; then : |
5464 | withval=$with_mpfr_lib; | |
5465 | fi | |
8a877c9c | 5466 | |
bebf829d PB |
5467 | |
5468 | if test "x$with_mpfr" != x; then | |
5469 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5470 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5471 | fi |
8a877c9c | 5472 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5473 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5474 | fi |
5475 | if test "x$with_mpfr_lib" != x; then | |
5476 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5477 | fi | |
e69bf64b | 5478 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
5b0d38e4 NC |
5479 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5480 | if test -d ${srcdir}/mpfr/src; then | |
5481 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5482 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5483 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5484 | else | |
5485 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5486 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5487 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5488 | fi | |
e69bf64b PB |
5489 | # Do not test the mpfr version. Assume that it is sufficient, since |
5490 | # it is in the source tree, and the library has not been built yet | |
5491 | # but it would be included on the link line in the version check below | |
5492 | # hence making the test fail. | |
5493 | have_gmp=yes | |
5494 | fi | |
bebf829d | 5495 | |
6de9cd9a | 5496 | # Specify a location for gmp |
1c710c3c | 5497 | |
5213506e RW |
5498 | # Check whether --with-gmp-dir was given. |
5499 | if test "${with_gmp_dir+set}" = set; then : | |
5500 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5501 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5502 | fi | |
5503 | ||
6de9cd9a | 5504 | |
6de9cd9a | 5505 | |
5213506e RW |
5506 | # Check whether --with-gmp was given. |
5507 | if test "${with_gmp+set}" = set; then : | |
5508 | withval=$with_gmp; | |
5509 | fi | |
1c710c3c | 5510 | |
6de9cd9a | 5511 | |
9965e3cd | 5512 | # Check whether --with-gmp-include was given. |
5213506e RW |
5513 | if test "${with_gmp_include+set}" = set; then : |
5514 | withval=$with_gmp_include; | |
5515 | fi | |
1c710c3c | 5516 | |
8a877c9c | 5517 | |
9965e3cd | 5518 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5519 | if test "${with_gmp_lib+set}" = set; then : |
5520 | withval=$with_gmp_lib; | |
5521 | fi | |
8a877c9c KG |
5522 | |
5523 | ||
6de9cd9a | 5524 | |
bebf829d PB |
5525 | if test "x$with_gmp" != x; then |
5526 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5527 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5528 | fi |
8a877c9c KG |
5529 | if test "x$with_gmp_include" != x; then |
5530 | gmpinc="-I$with_gmp_include $gmpinc" | |
5531 | fi | |
5532 | if test "x$with_gmp_lib" != x; then | |
5533 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5534 | fi | |
e69bf64b | 5535 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5536 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5537 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5538 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5539 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5540 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5541 | # Do not test the gmp version. Assume that it is sufficient, since |
5542 | # it is in the source tree, and the library has not been built yet | |
5543 | # but it would be included on the link line in the version check below | |
5544 | # hence making the test fail. | |
5545 | have_gmp=yes | |
5546 | fi | |
6de9cd9a | 5547 | |
d943d7c4 | 5548 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5549 | have_gmp=yes |
5550 | saved_CFLAGS="$CFLAGS" | |
5551 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5552 | # Check for the recommended and required versions of GMP. |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5554 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5555 | |
5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5557 | /* end confdefs.h. */ |
5558 | #include "gmp.h" | |
5559 | int | |
5560 | main () | |
5561 | { | |
5562 | ||
5563 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5564 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5565 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5566 | choke me |
5567 | #endif | |
5568 | ||
5569 | ; | |
5570 | return 0; | |
5571 | } | |
5572 | _ACEOF | |
5573 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5575 | /* end confdefs.h. */ |
362c6d2f | 5576 | #include <gmp.h> |
1c710c3c DJ |
5577 | int |
5578 | main () | |
5579 | { | |
6de9cd9a | 5580 | |
362c6d2f KG |
5581 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5582 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5583 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5584 | choke me |
5585 | #endif | |
1c710c3c DJ |
5586 | |
5587 | ; | |
5588 | return 0; | |
5589 | } | |
5590 | _ACEOF | |
5213506e RW |
5591 | if ac_fn_c_try_compile "$LINENO"; then : |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5593 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5594 | else |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5596 | $as_echo "buggy but acceptable" >&6; } | |
5597 | fi | |
5598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5599 | else |
5213506e RW |
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5601 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5602 | fi |
5213506e | 5603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5604 | |
acd26225 | 5605 | # If we have GMP, check the MPFR version. |
e69bf64b | 5606 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5607 | # Check for the recommended and required versions of MPFR. |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5609 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5611 | /* end confdefs.h. */ |
70ec446f | 5612 | #include <gmp.h> |
e69bf64b | 5613 | #include <mpfr.h> |
1c710c3c DJ |
5614 | int |
5615 | main () | |
5616 | { | |
e48d66a9 | 5617 | |
f7d6bc01 | 5618 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
e69bf64b PB |
5619 | choke me |
5620 | #endif | |
1c710c3c DJ |
5621 | |
5622 | ; | |
5623 | return 0; | |
5624 | } | |
5625 | _ACEOF | |
5213506e RW |
5626 | if ac_fn_c_try_compile "$LINENO"; then : |
5627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5628 | /* end confdefs.h. */ |
a3993f33 | 5629 | #include <gmp.h> |
e69bf64b | 5630 | #include <mpfr.h> |
1c710c3c DJ |
5631 | int |
5632 | main () | |
5633 | { | |
a3993f33 | 5634 | |
362c6d2f | 5635 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5636 | choke me |
5637 | #endif | |
acd26225 KG |
5638 | |
5639 | ; | |
5640 | return 0; | |
5641 | } | |
5642 | _ACEOF | |
5213506e RW |
5643 | if ac_fn_c_try_compile "$LINENO"; then : |
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5645 | $as_echo "yes" >&6; } | |
acd26225 | 5646 | else |
5213506e RW |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5648 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5649 | fi |
5213506e | 5650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5651 | else |
5213506e RW |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5653 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5654 | fi |
5213506e | 5655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5656 | fi |
5657 | ||
5658 | # Check for the MPC header version. | |
3a5729ea | 5659 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5660 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5662 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5664 | /* end confdefs.h. */ |
5665 | #include <mpc.h> | |
5666 | int | |
5667 | main () | |
5668 | { | |
5669 | ||
362c6d2f KG |
5670 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5671 | choke me | |
5672 | #endif | |
5673 | ||
5674 | ; | |
5675 | return 0; | |
5676 | } | |
5677 | _ACEOF | |
5678 | if ac_fn_c_try_compile "$LINENO"; then : | |
5679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5680 | /* end confdefs.h. */ | |
5681 | #include <mpc.h> | |
5682 | int | |
5683 | main () | |
5684 | { | |
5685 | ||
5686 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5687 | choke me |
5688 | #endif | |
5689 | ||
5690 | ; | |
5691 | return 0; | |
5692 | } | |
5693 | _ACEOF | |
5213506e RW |
5694 | if ac_fn_c_try_compile "$LINENO"; then : |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5696 | $as_echo "yes" >&6; } |
362c6d2f KG |
5697 | else |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5699 | $as_echo "buggy but acceptable" >&6; } | |
5700 | fi | |
5701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5702 | else |
5213506e | 5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5704 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5705 | fi |
5213506e | 5706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5707 | fi |
5708 | ||
5709 | # Now check the MPFR library. | |
5710 | if test x"$have_gmp" = xyes; then | |
5711 | saved_LIBS="$LIBS" | |
5712 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5714 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5716 | /* end confdefs.h. */ |
3a5729ea | 5717 | #include <mpc.h> |
acd26225 KG |
5718 | int |
5719 | main () | |
5720 | { | |
5721 | ||
5722 | mpfr_t n; | |
5723 | mpfr_t x; | |
3a5729ea | 5724 | mpc_t c; |
acd26225 KG |
5725 | int t; |
5726 | mpfr_init (n); | |
5727 | mpfr_init (x); | |
5728 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5729 | mpfr_erfc (n, x, GMP_RNDN); | |
5730 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5731 | mpfr_clear(n); |
5732 | mpfr_clear(x); | |
5733 | mpc_init2 (c, 53); | |
5734 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5735 | mpc_cosh (c, c, MPC_RNDNN); | |
5736 | mpc_pow (c, c, c, MPC_RNDNN); | |
5737 | mpc_acosh (c, c, MPC_RNDNN); | |
5738 | mpc_clear (c); | |
1c710c3c DJ |
5739 | |
5740 | ; | |
5741 | return 0; | |
5742 | } | |
5743 | _ACEOF | |
5213506e RW |
5744 | if ac_fn_c_try_link "$LINENO"; then : |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5746 | $as_echo "yes" >&6; } | |
1c710c3c | 5747 | else |
5213506e RW |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5749 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5750 | fi |
5213506e RW |
5751 | rm -f core conftest.err conftest.$ac_objext \ |
5752 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5753 | LIBS="$saved_LIBS" |
5754 | fi | |
5755 | ||
e69bf64b | 5756 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5757 | |
362c6d2f KG |
5758 | # The library versions listed in the error message below should match |
5759 | # the HARD-minimums enforced above. | |
e69bf64b | 5760 | if test x$have_gmp != xyes; then |
f7d6bc01 | 5761 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
3a5729ea KG |
5762 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5763 | their locations. Source code for these libraries can be found at | |
5764 | their respective hosting sites as well as at | |
5765 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5766 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5767 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5768 | make sure that you have installed both the libraries and the header | |
5769 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5770 | fi |
70ec446f KG |
5771 | fi |
5772 | ||
acd26225 KG |
5773 | # Flags needed for both GMP, MPFR and/or MPC. |
5774 | ||
5775 | ||
6de9cd9a DN |
5776 | |
5777 | ||
5778 | ||
9e3eba15 | 5779 | |
0ff2d841 | 5780 | |
f38095f3 JM |
5781 | # Allow host libstdc++ to be specified for static linking with PPL. |
5782 | ||
5213506e RW |
5783 | # Check whether --with-host-libstdcxx was given. |
5784 | if test "${with_host_libstdcxx+set}" = set; then : | |
5785 | withval=$with_host_libstdcxx; | |
5786 | fi | |
f38095f3 | 5787 | |
f38095f3 JM |
5788 | |
5789 | case $with_host_libstdcxx in | |
5790 | no|yes) | |
5213506e | 5791 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
f38095f3 JM |
5792 | ;; |
5793 | esac | |
f8bf9252 | 5794 | |
0b21f5d3 | 5795 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5796 | |
0b21f5d3 EB |
5797 | # Check whether --with-stage1-libs was given. |
5798 | if test "${with_stage1_libs+set}" = set; then : | |
5799 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5800 | stage1_libs= | |
00020c16 | 5801 | else |
0b21f5d3 | 5802 | stage1_libs=$withval |
00020c16 ILT |
5803 | fi |
5804 | else | |
0b21f5d3 | 5805 | stage1_libs=$with_host_libstdcxx |
5213506e RW |
5806 | fi |
5807 | ||
00020c16 ILT |
5808 | |
5809 | ||
0b21f5d3 | 5810 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5811 | |
0b21f5d3 EB |
5812 | # Check whether --with-stage1-ldflags was given. |
5813 | if test "${with_stage1_ldflags+set}" = set; then : | |
5814 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5815 | stage1_ldflags= | |
00020c16 | 5816 | else |
0b21f5d3 | 5817 | stage1_ldflags=$withval |
00020c16 ILT |
5818 | fi |
5819 | else | |
0b21f5d3 EB |
5820 | stage1_ldflags= |
5821 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5822 | # if supported. But if the user explicitly specified the libraries to use, | |
5823 | # trust that they are doing what they want. | |
5824 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5825 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5826 | fi | |
5213506e RW |
5827 | fi |
5828 | ||
00020c16 ILT |
5829 | |
5830 | ||
00020c16 ILT |
5831 | # Libraries to use for stage2 and later builds. This defaults to the |
5832 | # argument passed to --with-host-libstdcxx. | |
5833 | ||
5213506e RW |
5834 | # Check whether --with-boot-libs was given. |
5835 | if test "${with_boot_libs+set}" = set; then : | |
5836 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5837 | poststage1_libs= |
5838 | else | |
5839 | poststage1_libs=$withval | |
5840 | fi | |
5841 | else | |
00020c16 | 5842 | poststage1_libs=$with_host_libstdcxx |
5213506e RW |
5843 | fi |
5844 | ||
00020c16 ILT |
5845 | |
5846 | ||
ed2eaa9f ILT |
5847 | # Linker flags to use for stage2 and later builds. |
5848 | ||
5849 | # Check whether --with-boot-ldflags was given. | |
5850 | if test "${with_boot_ldflags+set}" = set; then : | |
5851 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5852 | poststage1_ldflags= | |
5853 | else | |
5854 | poststage1_ldflags=$withval | |
5855 | fi | |
5856 | else | |
5857 | poststage1_ldflags= | |
bec93d73 ILT |
5858 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5859 | # statically. But if the user explicitly specified the libraries to | |
5860 | # use, trust that they are doing what they want. | |
5861 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5862 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5863 | fi | |
5864 | fi | |
5865 | ||
5866 | ||
5867 | ||
4a9bb2aa TB |
5868 | # GCC GRAPHITE dependency ISL. |
5869 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
f8bf9252 SP |
5870 | |
5871 | ||
33ad93b9 RG |
5872 | # Check whether --with-isl was given. |
5873 | if test "${with_isl+set}" = set; then : | |
5874 | withval=$with_isl; | |
5213506e | 5875 | fi |
f8bf9252 | 5876 | |
f8bf9252 | 5877 | |
eae1a5d4 | 5878 | # Treat --without-isl as a request to disable |
625afa23 | 5879 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 5880 | if test "x$with_isl" != "xno"; then |
625afa23 RG |
5881 | # Check for ISL |
5882 | ||
5883 | ||
33ad93b9 RG |
5884 | # Check whether --with-isl-include was given. |
5885 | if test "${with_isl_include+set}" = set; then : | |
5886 | withval=$with_isl_include; | |
5213506e RW |
5887 | fi |
5888 | ||
f8bf9252 | 5889 | |
33ad93b9 RG |
5890 | # Check whether --with-isl-lib was given. |
5891 | if test "${with_isl_lib+set}" = set; then : | |
5892 | withval=$with_isl_lib; | |
5213506e | 5893 | fi |
f8bf9252 | 5894 | |
f8bf9252 | 5895 | |
33ad93b9 RG |
5896 | # Check whether --enable-isl-version-check was given. |
5897 | if test "${enable_isl_version_check+set}" = set; then : | |
5898 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5899 | else | |
5900 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
5901 | fi |
5902 | ||
5903 | ||
33ad93b9 RG |
5904 | # Initialize isllibs and islinc. |
5905 | case $with_isl in | |
5906 | no) | |
5907 | isllibs= | |
5908 | islinc= | |
5909 | ;; | |
5910 | "" | yes) | |
5911 | ;; | |
5912 | *) | |
5913 | isllibs="-L$with_isl/lib" | |
5914 | islinc="-I$with_isl/include" | |
5915 | ;; | |
5916 | esac | |
5917 | if test "x${with_isl_include}" != x ; then | |
5918 | islinc="-I$with_isl_include" | |
5919 | fi | |
5920 | if test "x${with_isl_lib}" != x; then | |
5921 | isllibs="-L$with_isl_lib" | |
5922 | fi | |
5923 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5924 | && test -d ${srcdir}/isl; then | |
5925 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5926 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5927 | ENABLE_ISL_CHECK=no | |
2869f0ff RB |
5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5929 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
33ad93b9 | 5930 | fi |
7d32a440 | 5931 | |
eae1a5d4 RG |
5932 | islinc="-DCLOOG_INT_GMP ${islinc}" |
5933 | isllibs="${isllibs} -lisl" | |
5934 | ||
7d32a440 | 5935 | |
7d32a440 | 5936 | |
9847828b RB |
5937 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5938 | _isl_saved_CFLAGS=$CFLAGS | |
5939 | _isl_saved_LDFLAGS=$LDFLAGS | |
5940 | _isl_saved_LIBS=$LIBS | |
5941 | ||
5942 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5943 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5944 | LIBS="${_isl_saved_LIBS} -lisl" | |
5945 | ||
e0c0c325 SP |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5 |
5947 | $as_echo_n "checking for compatible ISL... " >&6; } | |
5948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
622dbadf | 5949 | /* end confdefs.h. */ |
e0c0c325 | 5950 | #include <isl/val.h> |
622dbadf BC |
5951 | int |
5952 | main () | |
5953 | { | |
e0c0c325 | 5954 | ; |
622dbadf BC |
5955 | ; |
5956 | return 0; | |
5957 | } | |
5958 | _ACEOF | |
5959 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 5960 | gcc_cv_isl=yes |
622dbadf BC |
5961 | else |
5962 | gcc_cv_isl=no | |
5963 | fi | |
5964 | rm -f core conftest.err conftest.$ac_objext \ | |
5965 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5967 | $as_echo "$gcc_cv_isl" >&6; } | |
5968 | ||
5969 | CFLAGS=$_isl_saved_CFLAGS | |
5970 | LDFLAGS=$_isl_saved_LDFLAGS | |
5971 | LIBS=$_isl_saved_LIBS | |
5972 | fi | |
5973 | ||
5974 | ||
f8bf9252 | 5975 | |
f8bf9252 | 5976 | |
33ad93b9 RG |
5977 | |
5978 | ||
33ad93b9 RG |
5979 | if test "x${with_isl}" = xno; then |
5980 | graphite_requested=no | |
5981 | elif test "x${with_isl}" != x \ | |
5982 | || test "x${with_isl_include}" != x \ | |
5983 | || test "x${with_isl_lib}" != x ; then | |
5984 | graphite_requested=yes | |
5985 | else | |
5986 | graphite_requested=no | |
7d32a440 | 5987 | fi |
d789184e | 5988 | |
d789184e SP |
5989 | |
5990 | ||
33ad93b9 RG |
5991 | if test "${gcc_cv_isl}" = no ; then |
5992 | isllibs= | |
5993 | islinc= | |
5994 | fi | |
5995 | ||
5996 | if test "${graphite_requested}" = yes \ | |
5997 | && test "x${isllibs}" = x \ | |
5998 | && test "x${islinc}" = x ; then | |
f8bf9252 | 5999 | |
33ad93b9 RG |
6000 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6001 | fi | |
f8bf9252 | 6002 | |
d32ef397 | 6003 | |
d32ef397 AS |
6004 | fi |
6005 | ||
4a9bb2aa | 6006 | # If the ISL check failed, disable builds of in-tree variant of ISL |
625afa23 | 6007 | if test "x$with_isl" = xno || |
625afa23 | 6008 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6009 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6010 | islinc= |
32d024bf RG |
6011 | fi |
6012 | ||
625afa23 RG |
6013 | |
6014 | ||
6015 | ||
d7f09764 DN |
6016 | # Check for LTO support. |
6017 | # Check whether --enable-lto was given. | |
6018 | if test "${enable_lto+set}" = set; then : | |
6019 | enableval=$enable_lto; enable_lto=$enableval | |
6020 | else | |
6021 | enable_lto=yes; default_enable_lto=yes | |
6022 | fi | |
6023 | ||
6024 | ||
7413962d | 6025 | |
9a02962b DK |
6026 | |
6027 | ||
6028 | target_elf=no | |
6029 | case $target in | |
6030 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6031 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
9a02962b DK |
6032 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
6033 | target_elf=no | |
6034 | ;; | |
6035 | *) | |
6036 | target_elf=yes | |
6037 | ;; | |
6038 | esac | |
6039 | ||
6040 | if test $target_elf = yes; then : | |
48215350 DK |
6041 | # ELF platforms build the lto-plugin always. |
6042 | build_lto_plugin=yes | |
9a02962b | 6043 | |
9a02962b DK |
6044 | else |
6045 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6046 | case $target in |
2cd815e7 | 6047 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
48215350 | 6048 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6049 | *) enable_lto=no ;; |
6050 | esac | |
9a02962b | 6051 | else |
db50fe7d IS |
6052 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6053 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6054 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6055 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6056 | # -flto it won't be needed until after installation anyway. | |
6057 | case $target in | |
1cd0b716 | 6058 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
9a02962b DK |
6059 | *) if test x"$enable_lto" = x"yes"; then |
6060 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6061 | fi | |
6062 | ;; | |
6063 | esac | |
6064 | fi | |
1cd0b716 | 6065 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6066 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6067 | case $target in |
48215350 | 6068 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6069 | *) ;; |
6070 | esac | |
48215350 | 6071 | |
9a02962b DK |
6072 | fi |
6073 | ||
d7f09764 | 6074 | |
45b3824d TS |
6075 | # Check whether --enable-linker-plugin-configure-flags was given. |
6076 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6077 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6078 | else | |
6079 | extra_linker_plugin_configure_flags= | |
6080 | fi | |
6081 | ||
6082 | ||
6083 | # Check whether --enable-linker-plugin-flags was given. | |
6084 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6085 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6086 | else | |
6087 | extra_linker_plugin_flags= | |
6088 | fi | |
6089 | ||
6090 | ||
6091 | ||
f8bf9252 | 6092 | |
0823efed | 6093 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6094 | stage1_languages=,c, |
2805b53a | 6095 | |
00020c16 | 6096 | # Target libraries that we bootstrap. |
ad1e5170 | 6097 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6098 | |
55ffb5ed NN |
6099 | # Figure out what language subdirectories are present. |
6100 | # Look if the user specified --enable-languages="..."; if not, use | |
6101 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6102 | # go away some day. | |
6103 | # NB: embedded tabs in this IF block -- do not untabify | |
6104 | if test -d ${srcdir}/gcc; then | |
6105 | if test x"${enable_languages+set}" != xset; then | |
6106 | if test x"${LANGUAGES+set}" = xset; then | |
6107 | enable_languages="${LANGUAGES}" | |
6108 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6109 | else | |
6110 | enable_languages=all | |
6111 | fi | |
6112 | else | |
6113 | if test x"${enable_languages}" = x || | |
6114 | test x"${enable_languages}" = xyes; | |
6115 | then | |
6116 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6117 | exit 1 | |
6118 | fi | |
6119 | fi | |
6120 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6121 | ||
7f26dfa3 FXC |
6122 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6123 | # and make the substitution. | |
6124 | case ,${enable_languages}, in | |
6125 | *,f95,*) | |
6126 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6127 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6128 | ;; | |
6129 | esac | |
6130 | ||
0823efed DN |
6131 | # If bootstrapping, C++ must be enabled. |
6132 | case ",$enable_languages,:$enable_bootstrap" in | |
6133 | *,c++,*:*) ;; | |
6134 | *:yes) | |
ff3ac0f4 ILT |
6135 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6136 | enable_languages="${enable_languages},c++" | |
6137 | else | |
0823efed | 6138 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6139 | fi |
6140 | ;; | |
6141 | esac | |
6142 | ||
55ffb5ed NN |
6143 | # First scan to see if an enabled language requires some other language. |
6144 | # We assume that a given config-lang.in will list all the language | |
6145 | # front ends it requires, even if some are required indirectly. | |
6146 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6147 | case ${lang_frag} in | |
6148 | ..) ;; | |
6149 | # The odd quoting in the next line works around | |
6150 | # an apparent bug in bash 1.12 on linux. | |
6151 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6152 | *) | |
69ecd18f ILT |
6153 | # From the config-lang.in, get $language, $lang_requires, and |
6154 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6155 | language= |
6156 | lang_requires= | |
69ecd18f | 6157 | lang_requires_boot_languages= |
55ffb5ed | 6158 | . ${lang_frag} |
69ecd18f | 6159 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6160 | case ,${enable_languages}, in |
6161 | *,$other,*) ;; | |
6162 | *,all,*) ;; | |
6163 | *,$language,*) | |
6164 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6165 | enable_languages="${enable_languages},${other}" | |
6166 | ;; | |
6167 | esac | |
6168 | done | |
69ecd18f ILT |
6169 | for other in ${lang_requires_boot_languages} ; do |
6170 | if test "$other" != "c"; then | |
6171 | case ,${enable_stage1_languages}, in | |
6172 | *,$other,*) ;; | |
6173 | *,all,*) ;; | |
6174 | *) | |
6175 | case ,${enable_languages}, in | |
6176 | *,$language,*) | |
6177 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6178 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6179 | ;; | |
6180 | esac | |
6181 | ;; | |
6182 | esac | |
6183 | fi | |
6184 | done | |
55ffb5ed NN |
6185 | ;; |
6186 | esac | |
6187 | done | |
6188 | ||
e1888513 | 6189 | new_enable_languages=,c, |
d7f09764 DN |
6190 | |
6191 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6192 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6193 | case ,${enable_languages}, in |
6194 | *,lto,*) ;; | |
6195 | *) enable_languages="${enable_languages},lto" ;; | |
6196 | esac | |
1cd0b716 | 6197 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6198 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6199 | fi |
6200 | fi | |
6201 | ||
55ffb5ed | 6202 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6203 | potential_languages=,c, |
55ffb5ed | 6204 | |
4da3b0f8 ILT |
6205 | enabled_target_libs= |
6206 | disabled_target_libs= | |
6207 | ||
55ffb5ed NN |
6208 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6209 | case ${lang_frag} in | |
6210 | ..) ;; | |
6211 | # The odd quoting in the next line works around | |
6212 | # an apparent bug in bash 1.12 on linux. | |
6213 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6214 | *) | |
1c710c3c | 6215 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6216 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6217 | language= |
6218 | target_libs= | |
6219 | lang_dirs= | |
1546bb64 | 6220 | subdir_requires= |
e1888513 PB |
6221 | boot_language=no |
6222 | build_by_default=yes | |
55ffb5ed | 6223 | . ${lang_frag} |
e1888513 PB |
6224 | if test x${language} = x; then |
6225 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6226 | exit 1 | |
6227 | fi | |
6228 | ||
78767fd9 | 6229 | if test "$language" = "c++"; then |
0823efed | 6230 | boot_language=yes |
00020c16 ILT |
6231 | fi |
6232 | ||
178f875a | 6233 | add_this_lang=no |
e1888513 PB |
6234 | case ,${enable_languages}, in |
6235 | *,${language},*) | |
d4a10d0a SB |
6236 | # Language was explicitly selected; include it |
6237 | # unless it is C, which is enabled by default. | |
6238 | if test "$language" != "c"; then | |
6239 | add_this_lang=yes | |
6240 | fi | |
55ffb5ed | 6241 | ;; |
e1888513 PB |
6242 | *,all,*) |
6243 | # 'all' was selected, select it if it is a default language | |
178f875a JM |
6244 | if test "$language" != "c"; then |
6245 | add_this_lang=${build_by_default} | |
6246 | fi | |
55ffb5ed NN |
6247 | ;; |
6248 | esac | |
6de9cd9a | 6249 | |
1546bb64 | 6250 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6251 | for i in $subdir_requires; do |
b6348cb3 | 6252 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
6253 | case ,${enable_languages}, in |
6254 | *,${language},*) | |
6255 | # Specifically requested language; tell them. | |
5213506e | 6256 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 PB |
6257 | ;; |
6258 | *) | |
6259 | # Silently disable. | |
e1888513 | 6260 | add_this_lang=unsupported |
1546bb64 PB |
6261 | ;; |
6262 | esac | |
6263 | done | |
6264 | ||
e1888513 PB |
6265 | # Disable Ada if no preexisting GNAT is available. |
6266 | case ,${enable_languages},:${language}:${have_gnat} in | |
6267 | *,${language},*:ada:no) | |
6268 | # Specifically requested language; tell them. | |
5213506e | 6269 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
e1888513 PB |
6270 | ;; |
6271 | *:ada:no) | |
6272 | # Silently disable. | |
6273 | add_this_lang=unsupported | |
6274 | ;; | |
6275 | esac | |
6276 | ||
4fab7234 HPN |
6277 | # Disable a language that is unsupported by the target. |
6278 | case " $unsupported_languages " in | |
6279 | *" $language "*) | |
e1888513 | 6280 | add_this_lang=unsupported |
4fab7234 HPN |
6281 | ;; |
6282 | esac | |
6283 | ||
6de9cd9a | 6284 | case $add_this_lang in |
e1888513 | 6285 | unsupported) |
55ffb5ed | 6286 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6287 | disabled_target_libs="$disabled_target_libs $target_libs" |
6288 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6289 | ;; |
e1888513 PB |
6290 | no) |
6291 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6292 | disabled_target_libs="$disabled_target_libs $target_libs" |
6293 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6294 | potential_languages="${potential_languages}${language}," |
6295 | ;; | |
6296 | yes) | |
6297 | new_enable_languages="${new_enable_languages}${language}," | |
6298 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6299 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6300 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6301 | case "${boot_language}:,$enable_stage1_languages," in |
6302 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6303 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6304 | case ",$stage1_languages," in |
6305 | *,$language,* | ,yes, | ,all,) ;; | |
6306 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6307 | esac | |
00020c16 ILT |
6308 | # We need to bootstrap any supporting libraries. |
6309 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6310 | ;; |
6311 | esac | |
6312 | ;; | |
55ffb5ed NN |
6313 | esac |
6314 | ;; | |
6315 | esac | |
6316 | done | |
6317 | ||
4da3b0f8 ILT |
6318 | # Add target libraries which are only needed for disabled languages |
6319 | # to noconfigdirs. | |
6320 | if test -n "$disabled_target_libs"; then | |
6321 | for dir in $disabled_target_libs; do | |
6322 | case " $enabled_target_libs " in | |
6323 | *" ${dir} "*) ;; | |
6324 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6325 | esac | |
6326 | done | |
6327 | fi | |
6328 | ||
5213506e RW |
6329 | # Check whether --enable-stage1-languages was given. |
6330 | if test "${enable_stage1_languages+set}" = set; then : | |
6331 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6332 | ,no,|,,) |
6333 | # Set it to something that will have no effect in the loop below | |
6334 | enable_stage1_languages=c ;; | |
6335 | ,yes,) | |
6336 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6337 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6338 | *,all,*) | |
6339 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6340 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6341 | esac | |
6342 | ||
6343 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6344 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6345 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6346 | case $potential_languages in | |
6347 | *,$i,*) | |
6348 | case $stage1_languages in | |
6349 | *,$i,*) ;; | |
6350 | *) stage1_languages="$stage1_languages$i," ;; | |
6351 | esac ;; | |
6352 | *) | |
6353 | case $missing_languages in | |
6354 | *,$i,*) ;; | |
6355 | *) missing_languages="$missing_languages$i," ;; | |
6356 | esac ;; | |
6357 | esac | |
6358 | done | |
5213506e RW |
6359 | fi |
6360 | ||
e1888513 PB |
6361 | |
6362 | # Remove leading/trailing commas that were added for simplicity | |
6363 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6364 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6365 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6366 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6367 | ||
55ffb5ed | 6368 | if test "x$missing_languages" != x; then |
5213506e | 6369 | as_fn_error " |
0cf085e4 | 6370 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6371 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6372 | fi |
55ffb5ed NN |
6373 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6374 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6375 | enable_languages="$new_enable_languages" |
55ffb5ed | 6376 | fi |
e1888513 | 6377 | |
1c710c3c | 6378 | |
b2eaac4a | 6379 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6380 | fi |
6381 | ||
27079765 AH |
6382 | # Handle --disable-<component> generically. |
6383 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6384 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6385 | varname=`echo $dirname | sed -e s/+/_/g` |
6386 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6387 | noconfigdirs="$noconfigdirs $dir" |
6388 | fi | |
6389 | done | |
6390 | ||
7cd0cf9c | 6391 | # Check for Boehm's garbage collector |
5213506e RW |
6392 | # Check whether --enable-objc-gc was given. |
6393 | if test "${enable_objc_gc+set}" = set; then : | |
6394 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
7cd0cf9c | 6395 | *,objc,*:*:yes:*target-boehm-gc*) |
5213506e | 6396 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
7cd0cf9c DA |
6397 | ;; |
6398 | esac | |
5213506e RW |
6399 | fi |
6400 | ||
7cd0cf9c DA |
6401 | |
6402 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
6403 | case ,${enable_languages},:${enable_objc_gc} in |
6404 | *,objc,*:yes) | |
7cd0cf9c DA |
6405 | # Keep target-boehm-gc if requested for Objective-C. |
6406 | ;; | |
7cd0cf9c | 6407 | *) |
2a79fd67 DA |
6408 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6409 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6410 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6411 | fi | |
7cd0cf9c DA |
6412 | ;; |
6413 | esac | |
6414 | ||
5f520819 | 6415 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6416 | case ,${enable_languages}, in |
1007a55c JW |
6417 | *,c++,*) |
6418 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6419 | case "${noconfigdirs}" in | |
6420 | *target-libstdc++-v3*) | |
6421 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6422 | ;; | |
6423 | *) ;; | |
6424 | esac | |
6425 | ;; | |
99776ebd | 6426 | *) |
5f520819 | 6427 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6428 | ;; |
6429 | esac | |
6430 | ||
ee6a22df L |
6431 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6432 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6433 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6434 | ||
6435 | notsupp="" | |
6436 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6437 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6438 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6439 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6440 | if test -r $srcdir/$dirname/configure ; then | |
6441 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6442 | true | |
6443 | else | |
6444 | notsupp="$notsupp $dir" | |
6445 | fi | |
6446 | fi | |
6447 | fi | |
ee6a22df L |
6448 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6449 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6450 | if test -r $srcdir/$dirname/configure ; then | |
6451 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6452 | true | |
6453 | else | |
6454 | notsupp="$notsupp $dir" | |
6455 | fi | |
6456 | fi | |
6457 | fi | |
55ffb5ed NN |
6458 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6459 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6460 | if test -r $srcdir/$dirname/configure ; then | |
6461 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6462 | true | |
6463 | else | |
6464 | notsupp="$notsupp $dir" | |
6465 | fi | |
6466 | fi | |
6467 | fi | |
6468 | done | |
6469 | ||
55ffb5ed NN |
6470 | # Quietly strip out all directories which aren't configurable in this tree. |
6471 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6472 | # is now the case. | |
23f6b2f9 PB |
6473 | build_configdirs_all="$build_configdirs" |
6474 | build_configdirs= | |
6475 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6476 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6477 | if test -f ${srcdir}/$j/configure ; then |
6478 | build_configdirs="${build_configdirs} $i" | |
6479 | fi | |
6480 | done | |
6481 | ||
55ffb5ed NN |
6482 | configdirs_all="$configdirs" |
6483 | configdirs= | |
6484 | for i in ${configdirs_all} ; do | |
6485 | if test -f ${srcdir}/$i/configure ; then | |
6486 | configdirs="${configdirs} $i" | |
6487 | fi | |
6488 | done | |
23f6b2f9 | 6489 | |
55ffb5ed NN |
6490 | target_configdirs_all="$target_configdirs" |
6491 | target_configdirs= | |
6492 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6493 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6494 | if test -f ${srcdir}/$j/configure ; then |
6495 | target_configdirs="${target_configdirs} $i" | |
6496 | fi | |
6497 | done | |
6498 | ||
45b3824d TS |
6499 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6500 | # so we have to add it after the preceding checks. | |
6501 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6502 | then | |
6503 | case " $configdirs " in | |
6504 | *" libiberty "*) | |
6505 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6506 | configdirs="$configdirs libiberty-linker-plugin" | |
6507 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6508 | --with-libiberty=../libiberty-linker-plugin";; | |
6509 | *) | |
6510 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6511 | esac | |
6512 | fi | |
6513 | ||
fca38047 TS |
6514 | # Sometimes we have special requirements for the host libiberty. |
6515 | extra_host_libiberty_configure_flags= | |
6516 | case " $configdirs " in | |
6517 | *" lto-plugin "* | *" libcc1 "*) | |
6518 | # When these are to be built as shared libraries, the same applies to | |
6519 | # libiberty. | |
6520 | extra_host_libiberty_configure_flags=--enable-shared | |
6521 | ;; | |
6522 | esac | |
6523 | ||
6524 | ||
55ffb5ed NN |
6525 | # Produce a warning message for the subdirs we can't configure. |
6526 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6527 | # FSF releases, it's important to let people know when their machine isn't | |
6528 | # supported by the one or two programs in a package. | |
6529 | ||
6530 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6531 | # If $appdirs is non-empty, at least one of those directories must still | |
6532 | # be configured, or we error out. (E.g., if the gas release supports a | |
6533 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6534 | # pretend that all is well.) | |
6535 | if test -n "$appdirs" ; then | |
6536 | for dir in $appdirs ; do | |
6537 | if test -r $dir/Makefile.in ; then | |
6538 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6539 | appdirs="" | |
6540 | break | |
6541 | fi | |
23f6b2f9 | 6542 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6543 | appdirs="" |
6544 | break | |
6545 | fi | |
6546 | fi | |
6547 | done | |
6548 | if test -n "$appdirs" ; then | |
6549 | echo "*** This configuration is not supported by this package." 1>&2 | |
6550 | exit 1 | |
6551 | fi | |
6552 | fi | |
6553 | # Okay, some application will build, or we don't care to check. Still | |
6554 | # notify of subdirs not getting built. | |
6555 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6556 | echo " ${notsupp}" 1>&2 | |
6557 | echo " (Any other directories should still work fine.)" 1>&2 | |
6558 | fi | |
6559 | ||
6560 | case "$host" in | |
6561 | *msdosdjgpp*) | |
6562 | enable_gdbtk=no ;; | |
6563 | esac | |
6564 | ||
c3a86da9 DJ |
6565 | # To find our prefix, in gcc_cv_tool_prefix. |
6566 | ||
6567 | # The user is always right. | |
6568 | if test "${PATH_SEPARATOR+set}" != set; then | |
6569 | echo "#! /bin/sh" >conf$$.sh | |
6570 | echo "exit 0" >>conf$$.sh | |
6571 | chmod +x conf$$.sh | |
6572 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6573 | PATH_SEPARATOR=';' | |
6574 | else | |
6575 | PATH_SEPARATOR=: | |
6576 | fi | |
6577 | rm -f conf$$.sh | |
6578 | fi | |
6579 | ||
6580 | ||
6581 | ||
6582 | if test "x$exec_prefix" = xNONE; then | |
6583 | if test "x$prefix" = xNONE; then | |
6584 | gcc_cv_tool_prefix=$ac_default_prefix | |
6585 | else | |
6586 | gcc_cv_tool_prefix=$prefix | |
6587 | fi | |
6588 | else | |
6589 | gcc_cv_tool_prefix=$exec_prefix | |
6590 | fi | |
6591 | ||
6592 | # If there is no compiler in the tree, use the PATH only. In any | |
6593 | # case, if there is no compiler in the tree nobody should use | |
6594 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6595 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6596 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6597 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6598 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6599 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6600 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6601 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6602 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6603 | else | |
6604 | gcc_cv_tool_dirs= | |
6605 | fi | |
6606 | ||
6607 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6608 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6609 | fi | |
6610 | ||
6611 | ||
6612 | ||
55ffb5ed NN |
6613 | copy_dirs= |
6614 | ||
1c710c3c | 6615 | |
5213506e RW |
6616 | # Check whether --with-build-sysroot was given. |
6617 | if test "${with_build_sysroot+set}" = set; then : | |
6618 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6619 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6620 | fi | |
6621 | else | |
6622 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6623 | fi |
526635cb MM |
6624 | |
6625 | ||
c8aea42c | 6626 | |
5213506e RW |
6627 | |
6628 | # Check whether --with-debug-prefix-map was given. | |
6629 | if test "${with_debug_prefix_map+set}" = set; then : | |
6630 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6631 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6632 | for debug_map in $withval; do | |
6633 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6634 | done | |
6635 | fi | |
6636 | else | |
6637 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6638 | fi |
6639 | ||
c8aea42c PB |
6640 | |
6641 | ||
1c8bd6a3 PB |
6642 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6643 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6644 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6645 | # We want to ensure that TARGET libraries (which we know are built with | |
6646 | # gcc) are built with "-O2 -g", so include those options when setting | |
6647 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6648 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6649 | CFLAGS_FOR_TARGET=$CFLAGS | |
6650 | case " $CFLAGS " in | |
6651 | *" -O2 "*) ;; | |
bd8e704f | 6652 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6653 | esac |
6654 | case " $CFLAGS " in | |
6655 | *" -g "* | *" -g3 "*) ;; | |
bd8e704f | 6656 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6657 | esac |
6658 | fi | |
6659 | ||
6660 | ||
6661 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6662 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6663 | case " $CXXFLAGS " in | |
6664 | *" -O2 "*) ;; | |
bd8e704f | 6665 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6666 | esac |
6667 | case " $CXXFLAGS " in | |
6668 | *" -g "* | *" -g3 "*) ;; | |
bd8e704f | 6669 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6670 | esac |
6671 | fi | |
6672 | ||
6673 | ||
6f57bdf6 DK |
6674 | |
6675 | ||
55ffb5ed NN |
6676 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6677 | # the named directory are copied to $(tooldir)/sys-include. | |
6678 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6679 | if test x${is_cross_compiler} = xno ; then | |
6680 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6681 | exit 1 | |
6682 | fi | |
6683 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6684 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6685 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6686 | fi |
6687 | fi | |
6688 | ||
6689 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6690 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6691 | # are permitted. | |
6692 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6693 | if test x${is_cross_compiler} = xno ; then | |
6694 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6695 | exit 1 | |
6696 | fi | |
6697 | if test x"${with_libs}" != xyes ; then | |
6698 | # Copy the libraries in reverse order, so that files in the first named | |
6699 | # library override files in subsequent libraries. | |
c3a86da9 | 6700 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6701 | for l in ${with_libs}; do |
1c710c3c | 6702 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6703 | done |
6704 | fi | |
6705 | fi | |
6706 | ||
d7f09764 | 6707 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6708 | # |
6709 | # This is done by determining whether or not the appropriate directory | |
6710 | # is available, and by checking whether or not specific configurations | |
6711 | # have requested that this magic not happen. | |
1c710c3c DJ |
6712 | # |
6713 | # The command line options always override the explicit settings in | |
e8b05380 PB |
6714 | # configure.in, and the settings in configure.in override this magic. |
6715 | # | |
1c710c3c | 6716 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6717 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6718 | # --without-gnu-ld options for the configure script. Similarly, if |
6719 | # the default is to use the included zlib and you don't want to do that, | |
6720 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6721 | |
6722 | if test x${use_gnu_as} = x && | |
6723 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6724 | with_gnu_as=yes | |
6725 | extra_host_args="$extra_host_args --with-gnu-as" | |
6726 | fi | |
6727 | ||
6728 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6729 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6730 | with_gnu_ld=yes |
6731 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6732 | fi | |
6733 | ||
d7f09764 DN |
6734 | if test x${use_included_zlib} = x && |
6735 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6736 | : | |
6737 | else | |
6738 | with_system_zlib=yes | |
6739 | extra_host_args="$extra_host_args --with-system-zlib" | |
6740 | fi | |
6741 | ||
e8b05380 PB |
6742 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6743 | # can detect this case. | |
6744 | ||
6745 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6746 | with_newlib=yes | |
6747 | extra_host_args="$extra_host_args --with-newlib" | |
6748 | fi | |
6749 | ||
55ffb5ed NN |
6750 | # Handle ${copy_dirs} |
6751 | set fnord ${copy_dirs} | |
6752 | shift | |
6753 | while test $# != 0 ; do | |
6754 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6755 | : | |
6756 | else | |
6757 | echo Copying $1 to $2 | |
6758 | ||
6759 | # Use the install script to create the directory and all required | |
6760 | # parent directories. | |
6761 | if test -d $2 ; then | |
6762 | : | |
6763 | else | |
6764 | echo >config.temp | |
6765 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6766 | fi | |
6767 | ||
6768 | # Copy the directory, assuming we have tar. | |
6769 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6770 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6771 | ||
6772 | # It is the responsibility of the user to correctly adjust all | |
6773 | # symlinks. If somebody can figure out how to handle them correctly | |
6774 | # here, feel free to add the code. | |
6775 | ||
6776 | echo $1 > $2/COPIED | |
6777 | fi | |
6778 | shift; shift | |
6779 | done | |
6780 | ||
e8b05380 PB |
6781 | # Determine a target-dependent exec_prefix that the installed |
6782 | # gcc will search in. Keep this list sorted by triplet, with | |
6783 | # the *-*-osname triplets last. | |
6784 | md_exec_prefix= | |
6785 | case "${target}" in | |
30b74385 | 6786 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6787 | md_exec_prefix=/dev/env/DJDIR/bin |
6788 | ;; | |
e8b05380 | 6789 | *-*-hpux* | \ |
e8b05380 | 6790 | *-*-nto-qnx* | \ |
6de66370 | 6791 | *-*-solaris2*) |
e8b05380 PB |
6792 | md_exec_prefix=/usr/ccs/bin |
6793 | ;; | |
6794 | esac | |
6795 | ||
671aa708 NN |
6796 | extra_arflags_for_target= |
6797 | extra_nmflags_for_target= | |
6798 | extra_ranlibflags_for_target= | |
6799 | target_makefile_frag=/dev/null | |
6800 | case "${target}" in | |
58e24147 AM |
6801 | spu-*-*) |
6802 | target_makefile_frag="config/mt-spu" | |
6803 | ;; | |
d91491e5 | 6804 | mips*-sde-elf* | mips*-mti-elf*) |
4bf6c438 RS |
6805 | target_makefile_frag="config/mt-sde" |
6806 | ;; | |
1ec3b87b RS |
6807 | mipsisa*-*-elfoabi*) |
6808 | target_makefile_frag="config/mt-mips-elfoabi" | |
6809 | ;; | |
08d0963a RS |
6810 | mips*-*-*linux* | mips*-*-gnu*) |
6811 | target_makefile_frag="config/mt-mips-gnu" | |
6812 | ;; | |
707f1839 SL |
6813 | nios2-*-elf*) |
6814 | target_makefile_frag="config/mt-nios2-elf" | |
6815 | ;; | |
416ac4d4 | 6816 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 6817 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
6818 | ;; |
6819 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 6820 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
6821 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6822 | # harmless if we're using GNU nm or ar. | |
6823 | extra_arflags_for_target=" -X32_64" | |
6824 | extra_nmflags_for_target=" -B -X32_64" | |
6825 | ;; | |
671aa708 NN |
6826 | esac |
6827 | ||
6828 | alphaieee_frag=/dev/null | |
6829 | case $target in | |
6830 | alpha*-*-*) | |
6831 | # This just makes sure to use the -mieee option to build target libs. | |
6832 | # This should probably be set individually by each library. | |
6833 | alphaieee_frag="config/mt-alphaieee" | |
6834 | ;; | |
6835 | esac | |
6836 | ||
6837 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6838 | # the target libraries, similarly if it is not specified, use -Os | |
6839 | # on selected platforms. | |
6840 | ospace_frag=/dev/null | |
6841 | case "${enable_target_optspace}:${target}" in | |
6842 | yes:*) | |
6843 | ospace_frag="config/mt-ospace" | |
6844 | ;; | |
6845 | :d30v-*) | |
6846 | ospace_frag="config/mt-d30v" | |
6847 | ;; | |
6848 | :m32r-* | :d10v-* | :fr30-*) | |
6849 | ospace_frag="config/mt-ospace" | |
6850 | ;; | |
6851 | no:* | :*) | |
6852 | ;; | |
6853 | *) | |
6854 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6855 | ;; | |
6856 | esac | |
6857 | ||
671aa708 NN |
6858 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6859 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 6860 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
6861 | build_tooldir=${tooldir} |
6862 | ||
671aa708 NN |
6863 | # Create a .gdbinit file which runs the one in srcdir |
6864 | # and tells GDB to look there for source files. | |
6865 | ||
6866 | if test -r ${srcdir}/.gdbinit ; then | |
6867 | case ${srcdir} in | |
6868 | .) ;; | |
6869 | *) cat > ./.gdbinit <<EOF | |
6870 | # ${NO_EDIT} | |
6871 | dir ${srcdir} | |
6872 | dir . | |
6873 | source ${srcdir}/.gdbinit | |
6874 | EOF | |
6875 | ;; | |
6876 | esac | |
6877 | fi | |
6878 | ||
671aa708 NN |
6879 | # Make sure that the compiler is able to generate an executable. If it |
6880 | # can't, we are probably in trouble. We don't care whether we can run the | |
6881 | # executable--we might be using a cross compiler--we only care whether it | |
6882 | # can be created. At this point the main configure script has set CC. | |
6883 | we_are_ok=no | |
6884 | echo "int main () { return 0; }" > conftest.c | |
6885 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6886 | if test $? = 0 ; then | |
6887 | if test -s conftest || test -s conftest.exe ; then | |
6888 | we_are_ok=yes | |
6889 | fi | |
1c710c3c | 6890 | fi |
671aa708 NN |
6891 | case $we_are_ok in |
6892 | no) | |
6893 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6894 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6895 | rm -f conftest* | |
6896 | exit 1 | |
6897 | ;; | |
6898 | esac | |
6899 | rm -f conftest* | |
6900 | ||
d89f0ad6 | 6901 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
6902 | case "${host}" in |
6903 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 6904 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 6905 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
6906 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6907 | esac | |
6908 | ||
d89f0ad6 AL |
6909 | # On systems where the dynamic library environment variable is PATH, |
6910 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6911 | # built executables to PATH. | |
6912 | if test "$RPATH_ENVVAR" = PATH; then | |
6913 | GCC_SHLIB_SUBDIR=/shlib | |
6914 | else | |
6915 | GCC_SHLIB_SUBDIR= | |
6916 | fi | |
6917 | ||
beeda1d9 JJ |
6918 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6919 | case $enable_bootstrap in | |
6920 | yes) | |
6921 | bootstrap_suffix=bootstrap | |
6922 | BUILD_CONFIG=bootstrap-debug | |
6923 | ;; | |
6924 | no) | |
6925 | bootstrap_suffix=no-bootstrap | |
6926 | BUILD_CONFIG= | |
6927 | ;; | |
6928 | esac | |
6929 | ||
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
6931 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6932 | ||
6933 | ||
6934 | # Check whether --with-build-config was given. | |
6935 | if test "${with_build_config+set}" = set; then : | |
6936 | withval=$with_build_config; case $with_build_config in | |
6937 | yes) with_build_config= ;; | |
6938 | no) with_build_config= BUILD_CONFIG= ;; | |
6939 | esac | |
6940 | fi | |
6941 | ||
6942 | ||
6943 | if test "x${with_build_config}" != x; then | |
6944 | BUILD_CONFIG=$with_build_config | |
6945 | else | |
6946 | case $BUILD_CONFIG in | |
6947 | bootstrap-debug) | |
6948 | if echo "int f (void) { return 0; }" > conftest.c && | |
6949 | ${CC} -c conftest.c && | |
6950 | mv conftest.o conftest.o.g0 && | |
6951 | ${CC} -c -g conftest.c && | |
6952 | mv conftest.o conftest.o.g && | |
6953 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
6954 | : | |
6955 | else | |
6956 | BUILD_CONFIG= | |
6957 | fi | |
6958 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6959 | ;; | |
6960 | esac | |
6961 | fi | |
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6963 | $as_echo "$BUILD_CONFIG" >&6; } | |
6964 | ||
6965 | ||
6966 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
6968 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
6969 | # Check whether --enable-vtable-verify was given. | |
6970 | if test "${enable_vtable_verify+set}" = set; then : | |
6971 | enableval=$enable_vtable_verify; case "$enableval" in | |
6972 | yes) enable_vtable_verify=yes ;; | |
6973 | no) enable_vtable_verify=no ;; | |
6974 | *) enable_vtable_verify=no;; | |
6975 | esac | |
6976 | else | |
6977 | enable_vtable_verify=no | |
6978 | fi | |
6979 | ||
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
6981 | $as_echo "$enable_vtable_verify" >&6; } | |
6982 | ||
671aa708 NN |
6983 | # Record target_configdirs and the configure arguments for target and |
6984 | # build configuration in Makefile. | |
6985 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 6986 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 6987 | bootstrap_fixincludes=no |
671aa708 | 6988 | |
ad1e5170 JR |
6989 | # If we are building libgomp, bootstrap it. |
6990 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6991 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6992 | fi | |
6993 | ||
beeda1d9 JJ |
6994 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
6995 | # or bootstrap-ubsan, bootstrap it. | |
6996 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
6997 | case "$BUILD_CONFIG" in | |
6998 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
6999 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7000 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7001 | ;; |
7002 | esac | |
ac8701fe L |
7003 | fi |
7004 | ||
beeda1d9 JJ |
7005 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7006 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7007 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7008 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7009 | fi | |
7010 | ||
671aa708 NN |
7011 | # Determine whether gdb needs tk/tcl or not. |
7012 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7013 | # and in that case we want gdb to be built without tk. Ugh! | |
7014 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7015 | # so we should be able to put the 'maybe's in unconditionally and | |
7016 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7017 | # 100% sure that that's safe though. | |
e914a571 | 7018 | |
b4f96efe | 7019 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7020 | case "$enable_gdbtk" in |
7021 | no) | |
7022 | GDB_TK="" ;; | |
e914a571 AC |
7023 | yes) |
7024 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7025 | *) |
e914a571 AC |
7026 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7027 | # distro. Eventually someone will fix this and move Insight, nee | |
7028 | # gdbtk to a separate directory. | |
7029 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7030 | GDB_TK="${gdb_tk}" | |
7031 | else | |
7032 | GDB_TK="" | |
7033 | fi | |
7034 | ;; | |
671aa708 | 7035 | esac |
ef9db8d5 DJ |
7036 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7037 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7038 | |
60975492 | 7039 | # Strip out unwanted targets. |
8b87bb96 NN |
7040 | |
7041 | # While at that, we remove Makefiles if we were started for recursive | |
7042 | # configuration, so that the top-level Makefile reconfigures them, | |
7043 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7044 | |
3e54529c RW |
7045 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7046 | # but now we're fixing up the Makefile ourselves with the additional | |
7047 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7048 | # extrasub-{build,host,target} not because there is any reason to split | |
7049 | # the substitutions up that way, but only to remain below the limit of | |
7050 | # 99 commands in a script, for HP-UX sed. | |
7051 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 7052 | |
79cd2b23 RW |
7053 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7054 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7055 | yes:yes:*\ gold\ *:*) | |
7056 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7057 | ;; | |
7058 | esac | |
7059 | ||
3e54529c | 7060 | extrasub_build= |
23f6b2f9 | 7061 | for module in ${build_configdirs} ; do |
5607edfd PB |
7062 | if test -z "${no_recursion}" \ |
7063 | && test -f ${build_subdir}/${module}/Makefile; then | |
7064 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7065 | rm -f ${build_subdir}/${module}/Makefile | |
7066 | fi | |
3e54529c | 7067 | extrasub_build="$extrasub_build |
5607edfd PB |
7068 | /^@if build-$module\$/d |
7069 | /^@endif build-$module\$/d | |
7070 | /^@if build-$module-$bootstrap_suffix\$/d | |
7071 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7072 | done | |
3e54529c | 7073 | extrasub_host= |
5607edfd | 7074 | for module in ${configdirs} ; do |
a6fbc1e2 | 7075 | if test -z "${no_recursion}"; then |
f063a9ed | 7076 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7077 | if test -f ${file}; then |
7078 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7079 | rm -f ${file} | |
7080 | fi | |
7081 | done | |
5607edfd | 7082 | fi |
9e1c8fc1 JJ |
7083 | case ${module},${bootstrap_fixincludes} in |
7084 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7085 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7086 | esac | |
3e54529c | 7087 | extrasub_host="$extrasub_host |
5607edfd PB |
7088 | /^@if $module\$/d |
7089 | /^@endif $module\$/d | |
9e1c8fc1 JJ |
7090 | /^@if $module-$host_bootstrap_suffix\$/d |
7091 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7092 | done |
3e54529c | 7093 | extrasub_target= |
5607edfd PB |
7094 | for module in ${target_configdirs} ; do |
7095 | if test -z "${no_recursion}" \ | |
7096 | && test -f ${target_subdir}/${module}/Makefile; then | |
7097 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7098 | rm -f ${target_subdir}/${module}/Makefile | |
7099 | fi | |
00020c16 ILT |
7100 | |
7101 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7102 | case $bootstrap_target_libs in | |
7103 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7104 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7105 | esac | |
7106 | ||
3e54529c | 7107 | extrasub_target="$extrasub_target |
5607edfd PB |
7108 | /^@if target-$module\$/d |
7109 | /^@endif target-$module\$/d | |
00020c16 ILT |
7110 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7111 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7112 | done |
7113 | ||
3e54529c RW |
7114 | # Do the final fixup along with target modules. |
7115 | extrasub_target="$extrasub_target | |
60975492 | 7116 | /^@if /,/^@endif /d" |
671aa708 NN |
7117 | |
7118 | # Create the serialization dependencies. This uses a temporary file. | |
7119 | ||
5213506e RW |
7120 | # Check whether --enable-serial-configure was given. |
7121 | if test "${enable_serial_configure+set}" = set; then : | |
7122 | enableval=$enable_serial_configure; | |
7123 | fi | |
ade82b16 AO |
7124 | |
7125 | ||
bf1d3e81 NN |
7126 | case ${enable_serial_configure} in |
7127 | yes) | |
7128 | enable_serial_build_configure=yes | |
7129 | enable_serial_host_configure=yes | |
7130 | enable_serial_target_configure=yes | |
7131 | ;; | |
7132 | esac | |
7133 | ||
671aa708 NN |
7134 | # These force 'configure's to be done one at a time, to avoid problems |
7135 | # with contention over a shared config.cache. | |
7136 | rm -f serdep.tmp | |
ade82b16 | 7137 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7138 | olditem= |
bf1d3e81 | 7139 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7140 | for item in ${build_configdirs} ; do |
7141 | case ${olditem} in | |
7142 | "") ;; | |
ade82b16 | 7143 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7144 | esac |
7145 | olditem=${item} | |
7146 | done | |
7147 | olditem= | |
bf1d3e81 | 7148 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7149 | for item in ${configdirs} ; do |
7150 | case ${olditem} in | |
7151 | "") ;; | |
ade82b16 | 7152 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7153 | esac |
7154 | olditem=${item} | |
7155 | done | |
7156 | olditem= | |
bf1d3e81 | 7157 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7158 | for item in ${target_configdirs} ; do |
7159 | case ${olditem} in | |
7160 | "") ;; | |
ade82b16 | 7161 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7162 | esac |
7163 | olditem=${item} | |
7164 | done | |
7165 | serialization_dependencies=serdep.tmp | |
7166 | ||
7167 | ||
ade82b16 | 7168 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7169 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7170 | # might not want to pass down to subconfigures. The exception being |
7171 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7172 | # files altogether, and which should be passed on to subconfigures. | |
7173 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7174 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7175 | baseargs= |
29a63921 | 7176 | tbaseargs= |
1c710c3c DJ |
7177 | keep_next=no |
7178 | skip_next=no | |
7179 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7180 | for ac_arg |
7181 | do | |
1c710c3c DJ |
7182 | if test X"$skip_next" = X"yes"; then |
7183 | skip_next=no | |
7184 | continue | |
7185 | fi | |
7186 | if test X"$keep_next" = X"yes"; then | |
7187 | case $ac_arg in | |
7188 | *\'*) | |
7189 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7190 | esac | |
7191 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7192 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7193 | keep_next=no |
7194 | continue | |
7195 | fi | |
7196 | ||
7197 | # Handle separated arguments. Based on the logic generated by | |
7198 | # autoconf 2.59. | |
7199 | case $ac_arg in | |
7200 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7201 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7202 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7203 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7204 | separate_arg=no | |
7205 | ;; | |
7206 | -*) | |
7207 | separate_arg=yes | |
7208 | ;; | |
7209 | *) | |
7210 | separate_arg=no | |
7211 | ;; | |
7212 | esac | |
7213 | ||
29a63921 AO |
7214 | skip_targ=no |
7215 | case $ac_arg in | |
7216 | ||
7217 | --with-* | --without-*) | |
7218 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7219 | ||
7220 | case $libopt in | |
7221 | *[-_]include) | |
7222 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7223 | ;; | |
7224 | *[-_]lib) | |
7225 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7226 | ;; | |
7227 | *) | |
7228 | lib=$libopt | |
7229 | ;; | |
7230 | esac | |
7231 | ||
7232 | ||
7233 | case $lib in | |
4a9bb2aa | 7234 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7235 | # If we're processing --with-$lib, --with-$lib-include or |
7236 | # --with-$lib-lib, for one of the libs above, and target is | |
7237 | # different from host, don't pass the current argument to any | |
7238 | # target library's configure. | |
7239 | if test x$is_cross_compiler = xyes; then | |
7240 | skip_targ=yes | |
7241 | fi | |
7242 | ;; | |
7243 | esac | |
7244 | ;; | |
7245 | esac | |
7246 | ||
1c710c3c | 7247 | case "$ac_arg" in |
f1a036e4 NC |
7248 | --cache-file=/dev/null | \ |
7249 | -cache-file=/dev/null ) | |
7250 | # Handled here to avoid the test to skip args below. | |
7251 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7252 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7253 | # Assert: $separate_arg should always be no. |
7254 | keep_next=$separate_arg | |
7255 | ;; | |
1c710c3c DJ |
7256 | --no*) |
7257 | continue | |
7258 | ;; | |
7259 | --c* | \ | |
7260 | --sr* | \ | |
7261 | --ho* | \ | |
7262 | --bu* | \ | |
7263 | --t* | \ | |
7264 | --program-* | \ | |
7265 | -cache_file* | \ | |
7266 | -srcdir* | \ | |
7267 | -host* | \ | |
7268 | -build* | \ | |
7269 | -target* | \ | |
7270 | -program-prefix* | \ | |
7271 | -program-suffix* | \ | |
7272 | -program-transform-name* ) | |
7273 | skip_next=$separate_arg | |
7274 | continue | |
7275 | ;; | |
7276 | -*) | |
7277 | # An option. Add it. | |
7278 | case $ac_arg in | |
7279 | *\'*) | |
7280 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7281 | esac | |
7282 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7283 | if test X"$skip_targ" = Xno; then |
7284 | tbaseargs="$tbaseargs '$ac_arg'" | |
7285 | fi | |
1c710c3c DJ |
7286 | keep_next=$separate_arg |
7287 | ;; | |
7288 | *) | |
7289 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7290 | # pass it down; let the Makefile handle this. | |
7291 | continue | |
7292 | ;; | |
7293 | esac | |
7294 | done | |
7295 | # Remove the initial space we just introduced and, as these will be | |
7296 | # expanded by make, quote '$'. | |
7297 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7298 | |
43bb47c2 DJ |
7299 | # Add in --program-transform-name, after --program-prefix and |
7300 | # --program-suffix have been applied to it. Autoconf has already | |
7301 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7302 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7303 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7304 | # Also, because we want to override the logic in subdir configure scripts to |
7305 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7306 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7307 | ${program_transform_name} | |
7308 | EOF_SED | |
7309 | gcc_transform_name=`cat conftestsed.out` | |
7310 | rm -f conftestsed.out | |
7311 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7312 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7313 | if test "$silent" = yes; then |
7314 | baseargs="$baseargs --silent" | |
29a63921 | 7315 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7316 | fi |
0115d4a3 | 7317 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7318 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7319 | |
ffedf511 RW |
7320 | # Record and document user additions to sub configure arguments. |
7321 | ||
7322 | ||
7323 | ||
7324 | ||
671aa708 NN |
7325 | # For the build-side libraries, we just need to pretend we're native, |
7326 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7327 | # desired. We can't even use the same cache file for all build-side |
7328 | # libraries, as they're compiled differently; some with C, some with | |
7329 | # C++ or with different feature-enabling options. | |
7330 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7331 | |
7332 | # For host modules, accept cache file option, or specification as blank. | |
7333 | case "${cache_file}" in | |
7334 | "") # empty | |
7335 | cache_file_option="" ;; | |
7336 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7337 | cache_file_option="--cache-file=${cache_file}" ;; | |
7338 | *) # relative path | |
7339 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7340 | esac | |
7341 | ||
09438bde NN |
7342 | # Host dirs don't like to share a cache file either, horribly enough. |
7343 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7344 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7345 | |
29a63921 | 7346 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7347 | |
7348 | # Passing a --with-cross-host argument lets the target libraries know | |
7349 | # whether they are being built with a cross-compiler or being built | |
7350 | # native. However, it would be better to use other mechanisms to make the | |
7351 | # sorts of decisions they want to make on this basis. Please consider | |
7352 | # this option to be deprecated. FIXME. | |
7353 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7354 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7355 | fi |
7356 | ||
79e0604d FXC |
7357 | # Special user-friendly check for native x86_64-linux build, if |
7358 | # multilib is not explicitly enabled. | |
7359 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7360 | x86_64-*linux*:yes:$build:$build:) | |
7361 | # Make sure we have a developement environment that handles 32-bit | |
7362 | dev64=no | |
7363 | echo "int main () { return 0; }" > conftest.c | |
7364 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7365 | if test $? = 0 ; then | |
7366 | if test -s conftest || test -s conftest.exe ; then | |
7367 | dev64=yes | |
7368 | fi | |
7369 | fi | |
7370 | rm -f conftest* | |
7371 | if test x${dev64} != xyes ; then | |
7372 | as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 | |
7373 | fi | |
7374 | ;; | |
7375 | esac | |
7376 | ||
dc683a3f RW |
7377 | # Default to --enable-multilib. |
7378 | if test x${enable_multilib} = x ; then | |
671aa708 | 7379 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7380 | fi |
671aa708 NN |
7381 | |
7382 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7383 | # changed from the earlier setting of with_newlib. | |
7384 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7385 | target_configargs="--with-newlib ${target_configargs}" | |
7386 | fi | |
7387 | ||
6b9eb62c NN |
7388 | # Different target subdirs use different values of certain variables |
7389 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7390 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7391 | # it doesn't automatically accept command-line overrides of them. | |
7392 | # This means it's not safe for target subdirs to share a cache file, | |
7393 | # which is disgusting, but there you have it. Hopefully this can be | |
7394 | # fixed in future. It's still worthwhile to use a cache file for each | |
7395 | # directory. I think. | |
7396 | ||
bebcd931 MS |
7397 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7398 | # We need to pass --target, as newer autoconf's requires consistency | |
7399 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7400 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7401 | |
671aa708 NN |
7402 | FLAGS_FOR_TARGET= |
7403 | case " $target_configdirs " in | |
7404 | *" newlib "*) | |
7405 | case " $target_configargs " in | |
7406 | *" --with-newlib "*) | |
7407 | case "$target" in | |
5d571eaa | 7408 | *-cygwin*) |
443e6238 | 7409 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7410 | ;; |
671aa708 NN |
7411 | esac |
7412 | ||
7413 | # If we're not building GCC, don't discard standard headers. | |
7414 | if test -d ${srcdir}/gcc; then | |
7415 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7416 | ||
7417 | if test "${build}" != "${host}"; then | |
7418 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7419 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7420 | # to it. This is right: we don't want to search that directory | |
7421 | # for binaries, but we want the header files in there, so add | |
7422 | # them explicitly. | |
0463992b | 7423 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7424 | |
7425 | # Someone might think of using the pre-installed headers on | |
7426 | # Canadian crosses, in case the installed compiler is not fully | |
7427 | # compatible with the compiler being built. In this case, it | |
7428 | # would be better to flag an error than risking having | |
7429 | # incompatible object files being constructed. We can't | |
7430 | # guarantee that an error will be flagged, but let's hope the | |
7431 | # compiler will do it, when presented with incompatible header | |
7432 | # files. | |
7433 | fi | |
7434 | fi | |
7435 | ||
7436 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7437 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7438 | # Here host == target, so we don't need to build gcc, |
7439 | # so we don't want to discard standard headers. | |
7440 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7441 | ;; | |
7442 | *) | |
7443 | # If we're building newlib, use its generic headers last, but search | |
7444 | # for any libc-related directories first (so make it the last -B | |
7445 | # switch). | |
7446 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
c03353e2 RIL |
7447 | |
7448 | # If we're building libgloss, find the startup file, simulator library | |
7449 | # and linker script. | |
7450 | case " $target_configdirs " in | |
7451 | *" libgloss "*) | |
7452 | # Look for startup file, simulator library and maybe linker script. | |
7453 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7454 | # Look for libnosys.a in case the target needs it. | |
7455 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7456 | # Most targets have the linker script in the source directory. | |
7457 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7458 | ;; | |
7459 | esac | |
671aa708 NN |
7460 | ;; |
7461 | esac | |
7462 | ;; | |
7463 | esac | |
7464 | ;; | |
7465 | esac | |
5d571eaa | 7466 | |
b91f0a41 | 7467 | case "$target" in |
5d571eaa OS |
7468 | x86_64-*mingw* | *-w64-mingw*) |
7469 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7470 | # however, use a symlink named 'mingw' in ${prefix} . | |
7471 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7472 | ;; | |
7473 | *-mingw*) | |
7474 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7475 | 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' | |
7476 | ;; | |
b91f0a41 | 7477 | esac |
671aa708 | 7478 | |
6691a79e ME |
7479 | # Allow the user to override the flags for |
7480 | # our build compiler if desired. | |
f019adc1 MF |
7481 | if test x"${build}" = x"${host}" ; then |
7482 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7483 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7484 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7485 | fi | |
6691a79e | 7486 | |
671aa708 NN |
7487 | # On Canadian crosses, we'll be searching the right directories for |
7488 | # the previously-installed cross compiler, so don't bother to add | |
7489 | # flags for directories within the install tree of the compiler | |
7490 | # being built; programs in there won't even run. | |
7491 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7492 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7493 | 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 |
7494 | fi |
7495 | ||
7496 | if test "x${use_gnu_ld}" = x && | |
7497 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7498 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7499 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7500 | fi |
7501 | ||
e88a2c09 DD |
7502 | # Search for other target-specific linker scripts and such. |
7503 | case "${target}" in | |
3e19841a PB |
7504 | mep*) |
7505 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7506 | ;; | |
e88a2c09 DD |
7507 | esac |
7508 | ||
671aa708 | 7509 | # Makefile fragments. |
7b61653a PE |
7510 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7511 | do | |
7512 | eval fragval=\$$frag | |
7513 | if test $fragval != /dev/null; then | |
7514 | eval $frag=${srcdir}/$fragval | |
7515 | fi | |
7516 | done | |
671aa708 NN |
7517 | |
7518 | ||
7519 | ||
7520 | ||
7521 | ||
7522 | # Miscellanea: directories, flags, etc. | |
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | ||
d89f0ad6 | 7530 | |
23f6b2f9 | 7531 | # Build module lists & subconfigure args. |
671aa708 NN |
7532 | |
7533 | ||
7534 | ||
2abefe3d PB |
7535 | # Host module lists & subconfigure args. |
7536 | ||
7537 | ||
7538 | ||
aae29963 | 7539 | |
2abefe3d PB |
7540 | # Target module lists & subconfigure args. |
7541 | ||
7542 | ||
7543 | ||
7544 | # Build tools. | |
7545 | ||
7546 | ||
7547 | ||
0999159b PB |
7548 | |
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
2abefe3d PB |
7562 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7563 | # on the build machine. These are used if the Makefile can't locate these | |
7564 | # programs in objdir. | |
7565 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7566 | ||
7567 | for ac_prog in 'bison -y' byacc yacc | |
7568 | do | |
1c710c3c | 7569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7570 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7572 | $as_echo_n "checking for $ac_word... " >&6; } | |
7573 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7574 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7575 | else |
7576 | if test -n "$YACC"; then | |
7577 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7578 | else | |
1c710c3c DJ |
7579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7580 | for as_dir in $PATH | |
7581 | do | |
7582 | IFS=$as_save_IFS | |
7583 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7584 | for ac_exec_ext in '' $ac_executable_extensions; do |
7585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7586 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7588 | break 2 |
7589 | fi | |
7590 | done | |
5213506e RW |
7591 | done |
7592 | IFS=$as_save_IFS | |
1c710c3c | 7593 | |
2abefe3d PB |
7594 | fi |
7595 | fi | |
1c710c3c | 7596 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7597 | if test -n "$YACC"; then |
5213506e RW |
7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7599 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7600 | else |
5213506e RW |
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7602 | $as_echo "no" >&6; } | |
2abefe3d PB |
7603 | fi |
7604 | ||
5213506e | 7605 | |
1c710c3c | 7606 | test -n "$YACC" && break |
2abefe3d PB |
7607 | done |
7608 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7609 | ||
7610 | case " $build_configdirs " in | |
7611 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7612 | esac |
7613 | ||
7614 | for ac_prog in bison | |
7615 | do | |
1c710c3c | 7616 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7617 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7619 | $as_echo_n "checking for $ac_word... " >&6; } | |
7620 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7621 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7622 | else |
7623 | if test -n "$BISON"; then | |
7624 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7625 | else | |
1c710c3c DJ |
7626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7627 | for as_dir in $PATH | |
7628 | do | |
7629 | IFS=$as_save_IFS | |
7630 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7631 | for ac_exec_ext in '' $ac_executable_extensions; do |
7632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7633 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7635 | break 2 |
7636 | fi | |
7637 | done | |
5213506e RW |
7638 | done |
7639 | IFS=$as_save_IFS | |
1c710c3c | 7640 | |
2abefe3d PB |
7641 | fi |
7642 | fi | |
1c710c3c | 7643 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7644 | if test -n "$BISON"; then |
5213506e RW |
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7646 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7647 | else |
5213506e RW |
7648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7649 | $as_echo "no" >&6; } | |
2abefe3d PB |
7650 | fi |
7651 | ||
5213506e | 7652 | |
1c710c3c | 7653 | test -n "$BISON" && break |
2abefe3d PB |
7654 | done |
7655 | test -n "$BISON" || BISON="$MISSING bison" | |
7656 | ||
7657 | case " $build_configdirs " in | |
7658 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7659 | esac | |
7660 | ||
7661 | for ac_prog in gm4 gnum4 m4 | |
7662 | do | |
1c710c3c | 7663 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7664 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7666 | $as_echo_n "checking for $ac_word... " >&6; } | |
7667 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7668 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7669 | else |
7670 | if test -n "$M4"; then | |
7671 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7672 | else | |
1c710c3c DJ |
7673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7674 | for as_dir in $PATH | |
7675 | do | |
7676 | IFS=$as_save_IFS | |
7677 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7678 | for ac_exec_ext in '' $ac_executable_extensions; do |
7679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7680 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7682 | break 2 |
7683 | fi | |
7684 | done | |
5213506e RW |
7685 | done |
7686 | IFS=$as_save_IFS | |
1c710c3c | 7687 | |
2abefe3d PB |
7688 | fi |
7689 | fi | |
1c710c3c | 7690 | M4=$ac_cv_prog_M4 |
2abefe3d | 7691 | if test -n "$M4"; then |
5213506e RW |
7692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7693 | $as_echo "$M4" >&6; } | |
2abefe3d | 7694 | else |
5213506e RW |
7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7696 | $as_echo "no" >&6; } | |
2abefe3d PB |
7697 | fi |
7698 | ||
5213506e | 7699 | |
1c710c3c | 7700 | test -n "$M4" && break |
2abefe3d PB |
7701 | done |
7702 | test -n "$M4" || M4="$MISSING m4" | |
7703 | ||
7704 | case " $build_configdirs " in | |
7705 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7706 | esac | |
7707 | ||
7708 | for ac_prog in flex lex | |
7709 | do | |
1c710c3c | 7710 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7711 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7713 | $as_echo_n "checking for $ac_word... " >&6; } | |
7714 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7715 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7716 | else |
7717 | if test -n "$LEX"; then | |
7718 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7719 | else | |
1c710c3c DJ |
7720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7721 | for as_dir in $PATH | |
7722 | do | |
7723 | IFS=$as_save_IFS | |
7724 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7725 | for ac_exec_ext in '' $ac_executable_extensions; do |
7726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7727 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7729 | break 2 |
7730 | fi | |
7731 | done | |
5213506e RW |
7732 | done |
7733 | IFS=$as_save_IFS | |
1c710c3c | 7734 | |
2abefe3d PB |
7735 | fi |
7736 | fi | |
1c710c3c | 7737 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7738 | if test -n "$LEX"; then |
5213506e RW |
7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7740 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7741 | else |
5213506e RW |
7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7743 | $as_echo "no" >&6; } | |
2abefe3d PB |
7744 | fi |
7745 | ||
5213506e | 7746 | |
1c710c3c | 7747 | test -n "$LEX" && break |
2abefe3d PB |
7748 | done |
7749 | test -n "$LEX" || LEX="$MISSING flex" | |
7750 | ||
7751 | case " $build_configdirs " in | |
7752 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7753 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7754 | esac | |
7755 | ||
7756 | for ac_prog in flex | |
7757 | do | |
1c710c3c | 7758 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7759 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7761 | $as_echo_n "checking for $ac_word... " >&6; } | |
7762 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7763 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7764 | else |
7765 | if test -n "$FLEX"; then | |
7766 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7767 | else | |
1c710c3c DJ |
7768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7769 | for as_dir in $PATH | |
7770 | do | |
7771 | IFS=$as_save_IFS | |
7772 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7773 | for ac_exec_ext in '' $ac_executable_extensions; do |
7774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7775 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7777 | break 2 |
7778 | fi | |
7779 | done | |
5213506e RW |
7780 | done |
7781 | IFS=$as_save_IFS | |
1c710c3c | 7782 | |
2abefe3d PB |
7783 | fi |
7784 | fi | |
1c710c3c | 7785 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7786 | if test -n "$FLEX"; then |
5213506e RW |
7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7788 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7789 | else |
5213506e RW |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7791 | $as_echo "no" >&6; } | |
2abefe3d PB |
7792 | fi |
7793 | ||
5213506e | 7794 | |
1c710c3c | 7795 | test -n "$FLEX" && break |
2abefe3d PB |
7796 | done |
7797 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7798 | ||
7799 | case " $build_configdirs " in | |
7800 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7801 | esac | |
7802 | ||
7803 | for ac_prog in makeinfo | |
7804 | do | |
1c710c3c | 7805 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7806 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7808 | $as_echo_n "checking for $ac_word... " >&6; } | |
7809 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7810 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7811 | else |
7812 | if test -n "$MAKEINFO"; then | |
7813 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7814 | else | |
1c710c3c DJ |
7815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7816 | for as_dir in $PATH | |
7817 | do | |
7818 | IFS=$as_save_IFS | |
7819 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7820 | for ac_exec_ext in '' $ac_executable_extensions; do |
7821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7822 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 7823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7824 | break 2 |
7825 | fi | |
7826 | done | |
5213506e RW |
7827 | done |
7828 | IFS=$as_save_IFS | |
1c710c3c | 7829 | |
2abefe3d PB |
7830 | fi |
7831 | fi | |
1c710c3c | 7832 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 7833 | if test -n "$MAKEINFO"; then |
5213506e RW |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7835 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 7836 | else |
5213506e RW |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7838 | $as_echo "no" >&6; } | |
2abefe3d PB |
7839 | fi |
7840 | ||
5213506e | 7841 | |
1c710c3c | 7842 | test -n "$MAKEINFO" && break |
2abefe3d PB |
7843 | done |
7844 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7845 | ||
7846 | case " $build_configdirs " in | |
7847 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7848 | *) | |
7849 | ||
d18ff35a | 7850 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
7851 | # higher, else we use the "missing" dummy. |
7852 | if ${MAKEINFO} --version \ | |
d18ff35a | 7853 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
7854 | : |
7855 | else | |
7856 | MAKEINFO="$MISSING makeinfo" | |
7857 | fi | |
7858 | ;; | |
7859 | ||
7860 | esac | |
671aa708 | 7861 | |
2abefe3d | 7862 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 7863 | |
2abefe3d PB |
7864 | for ac_prog in expect |
7865 | do | |
1c710c3c | 7866 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7867 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7869 | $as_echo_n "checking for $ac_word... " >&6; } | |
7870 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7871 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7872 | else |
7873 | if test -n "$EXPECT"; then | |
7874 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7875 | else | |
1c710c3c DJ |
7876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7877 | for as_dir in $PATH | |
7878 | do | |
7879 | IFS=$as_save_IFS | |
7880 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7881 | for ac_exec_ext in '' $ac_executable_extensions; do |
7882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7883 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 7884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7885 | break 2 |
7886 | fi | |
7887 | done | |
5213506e RW |
7888 | done |
7889 | IFS=$as_save_IFS | |
1c710c3c | 7890 | |
2abefe3d PB |
7891 | fi |
7892 | fi | |
1c710c3c | 7893 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 7894 | if test -n "$EXPECT"; then |
5213506e RW |
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7896 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 7897 | else |
5213506e RW |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7899 | $as_echo "no" >&6; } | |
2abefe3d | 7900 | fi |
671aa708 | 7901 | |
5213506e | 7902 | |
1c710c3c | 7903 | test -n "$EXPECT" && break |
2abefe3d PB |
7904 | done |
7905 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 7906 | |
2abefe3d PB |
7907 | case " $configdirs " in |
7908 | *" expect "*) | |
7909 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7910 | ;; | |
7911 | esac | |
671aa708 | 7912 | |
2abefe3d PB |
7913 | for ac_prog in runtest |
7914 | do | |
1c710c3c | 7915 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7916 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7918 | $as_echo_n "checking for $ac_word... " >&6; } | |
7919 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7920 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7921 | else |
7922 | if test -n "$RUNTEST"; then | |
7923 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 7924 | else |
1c710c3c DJ |
7925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7926 | for as_dir in $PATH | |
7927 | do | |
7928 | IFS=$as_save_IFS | |
7929 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7930 | for ac_exec_ext in '' $ac_executable_extensions; do |
7931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7932 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 7933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7934 | break 2 |
7935 | fi | |
7936 | done | |
5213506e RW |
7937 | done |
7938 | IFS=$as_save_IFS | |
1c710c3c | 7939 | |
2abefe3d PB |
7940 | fi |
7941 | fi | |
1c710c3c | 7942 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 7943 | if test -n "$RUNTEST"; then |
5213506e RW |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7945 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 7946 | else |
5213506e RW |
7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7948 | $as_echo "no" >&6; } | |
2abefe3d | 7949 | fi |
671aa708 | 7950 | |
5213506e | 7951 | |
1c710c3c | 7952 | test -n "$RUNTEST" && break |
2abefe3d PB |
7953 | done |
7954 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 7955 | |
2abefe3d PB |
7956 | case " $configdirs " in |
7957 | *" dejagnu "*) | |
c394e891 | 7958 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
7959 | ;; |
7960 | esac | |
671aa708 NN |
7961 | |
7962 | ||
671aa708 | 7963 | # Host tools. |
ca9f4b81 AO |
7964 | ncn_tool_prefix= |
7965 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7966 | ncn_target_tool_prefix= | |
7967 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7968 | ||
278a7a38 AO |
7969 | |
7970 | ||
7971 | if test -n "$AR"; then | |
7972 | ac_cv_prog_AR=$AR | |
7973 | elif test -n "$ac_cv_prog_AR"; then | |
7974 | AR=$ac_cv_prog_AR | |
7975 | fi | |
7976 | ||
7977 | if test -n "$ac_cv_prog_AR"; then | |
7978 | for ncn_progname in ar; do | |
7979 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7980 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7982 | $as_echo_n "checking for $ac_word... " >&6; } | |
7983 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7984 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
7985 | else |
7986 | if test -n "$AR"; then | |
7987 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7988 | else | |
7989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7990 | for as_dir in $PATH | |
7991 | do | |
7992 | IFS=$as_save_IFS | |
7993 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7994 | for ac_exec_ext in '' $ac_executable_extensions; do |
7995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 7996 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 7997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
7998 | break 2 |
7999 | fi | |
8000 | done | |
5213506e RW |
8001 | done |
8002 | IFS=$as_save_IFS | |
278a7a38 AO |
8003 | |
8004 | fi | |
8005 | fi | |
8006 | AR=$ac_cv_prog_AR | |
8007 | if test -n "$AR"; then | |
5213506e RW |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8009 | $as_echo "$AR" >&6; } | |
278a7a38 | 8010 | else |
5213506e RW |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8012 | $as_echo "no" >&6; } | |
278a7a38 AO |
8013 | fi |
8014 | ||
5213506e | 8015 | |
278a7a38 AO |
8016 | done |
8017 | fi | |
8018 | ||
8019 | for ncn_progname in ar; do | |
2693c0b0 PB |
8020 | if test -n "$ncn_tool_prefix"; then |
8021 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8022 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8024 | $as_echo_n "checking for $ac_word... " >&6; } | |
8025 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8026 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8027 | else |
8028 | if test -n "$AR"; then | |
8029 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8030 | else | |
1c710c3c DJ |
8031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8032 | for as_dir in $PATH | |
8033 | do | |
8034 | IFS=$as_save_IFS | |
8035 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8036 | for ac_exec_ext in '' $ac_executable_extensions; do |
8037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8038 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8040 | break 2 |
8041 | fi | |
8042 | done | |
5213506e RW |
8043 | done |
8044 | IFS=$as_save_IFS | |
1c710c3c | 8045 | |
ca9f4b81 AO |
8046 | fi |
8047 | fi | |
1c710c3c | 8048 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8049 | if test -n "$AR"; then |
5213506e RW |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8051 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8052 | else |
5213506e RW |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8054 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8055 | fi |
8056 | ||
5213506e | 8057 | |
2693c0b0 PB |
8058 | fi |
8059 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8060 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8061 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8063 | $as_echo_n "checking for $ac_word... " >&6; } | |
8064 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8065 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8066 | else |
2693c0b0 | 8067 | if test -n "$AR"; then |
af71363e AS |
8068 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8069 | else | |
1c710c3c DJ |
8070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8071 | for as_dir in $PATH | |
8072 | do | |
8073 | IFS=$as_save_IFS | |
8074 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8075 | for ac_exec_ext in '' $ac_executable_extensions; do |
8076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8077 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8079 | break 2 |
8080 | fi | |
8081 | done | |
5213506e RW |
8082 | done |
8083 | IFS=$as_save_IFS | |
1c710c3c | 8084 | |
ca9f4b81 AO |
8085 | fi |
8086 | fi | |
1c710c3c | 8087 | AR=$ac_cv_prog_AR |
2693c0b0 | 8088 | if test -n "$AR"; then |
5213506e RW |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8090 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8091 | else |
5213506e RW |
8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8093 | $as_echo "no" >&6; } | |
ca9f4b81 | 8094 | fi |
1c710c3c | 8095 | |
5213506e | 8096 | |
2693c0b0 PB |
8097 | fi |
8098 | test -n "$ac_cv_prog_AR" && break | |
8099 | done | |
8100 | ||
8101 | if test -z "$ac_cv_prog_AR" ; then | |
8102 | set dummy ar | |
8103 | if test $build = $host ; then | |
8104 | AR="$2" | |
ca9f4b81 | 8105 | else |
2693c0b0 | 8106 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8107 | fi |
ca9f4b81 AO |
8108 | fi |
8109 | ||
278a7a38 AO |
8110 | |
8111 | ||
8112 | if test -n "$AS"; then | |
8113 | ac_cv_prog_AS=$AS | |
8114 | elif test -n "$ac_cv_prog_AS"; then | |
8115 | AS=$ac_cv_prog_AS | |
8116 | fi | |
8117 | ||
8118 | if test -n "$ac_cv_prog_AS"; then | |
8119 | for ncn_progname in as; do | |
8120 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8121 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8123 | $as_echo_n "checking for $ac_word... " >&6; } | |
8124 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8125 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8126 | else |
8127 | if test -n "$AS"; then | |
8128 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8129 | else | |
8130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8131 | for as_dir in $PATH | |
8132 | do | |
8133 | IFS=$as_save_IFS | |
8134 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8135 | for ac_exec_ext in '' $ac_executable_extensions; do |
8136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8137 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8139 | break 2 |
8140 | fi | |
8141 | done | |
5213506e RW |
8142 | done |
8143 | IFS=$as_save_IFS | |
278a7a38 AO |
8144 | |
8145 | fi | |
8146 | fi | |
8147 | AS=$ac_cv_prog_AS | |
8148 | if test -n "$AS"; then | |
5213506e RW |
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8150 | $as_echo "$AS" >&6; } | |
278a7a38 | 8151 | else |
5213506e RW |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8153 | $as_echo "no" >&6; } | |
278a7a38 AO |
8154 | fi |
8155 | ||
5213506e | 8156 | |
278a7a38 AO |
8157 | done |
8158 | fi | |
8159 | ||
8160 | for ncn_progname in as; do | |
2693c0b0 PB |
8161 | if test -n "$ncn_tool_prefix"; then |
8162 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8163 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8165 | $as_echo_n "checking for $ac_word... " >&6; } | |
8166 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8167 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8168 | else |
8169 | if test -n "$AS"; then | |
8170 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8171 | else |
1c710c3c DJ |
8172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8173 | for as_dir in $PATH | |
8174 | do | |
8175 | IFS=$as_save_IFS | |
8176 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8177 | for ac_exec_ext in '' $ac_executable_extensions; do |
8178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8179 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8181 | break 2 |
8182 | fi | |
8183 | done | |
5213506e RW |
8184 | done |
8185 | IFS=$as_save_IFS | |
1c710c3c | 8186 | |
ca9f4b81 AO |
8187 | fi |
8188 | fi | |
1c710c3c | 8189 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8190 | if test -n "$AS"; then |
5213506e RW |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8192 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8193 | else |
5213506e RW |
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8195 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8196 | fi |
8197 | ||
5213506e | 8198 | |
2693c0b0 PB |
8199 | fi |
8200 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8201 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8202 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8204 | $as_echo_n "checking for $ac_word... " >&6; } | |
8205 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8206 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8207 | else |
2693c0b0 PB |
8208 | if test -n "$AS"; then |
8209 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8210 | else |
1c710c3c DJ |
8211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8212 | for as_dir in $PATH | |
8213 | do | |
8214 | IFS=$as_save_IFS | |
8215 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8216 | for ac_exec_ext in '' $ac_executable_extensions; do |
8217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8218 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8220 | break 2 |
8221 | fi | |
8222 | done | |
5213506e RW |
8223 | done |
8224 | IFS=$as_save_IFS | |
1c710c3c | 8225 | |
ca9f4b81 AO |
8226 | fi |
8227 | fi | |
1c710c3c | 8228 | AS=$ac_cv_prog_AS |
2693c0b0 | 8229 | if test -n "$AS"; then |
5213506e RW |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8231 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8232 | else |
5213506e RW |
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8234 | $as_echo "no" >&6; } | |
ca9f4b81 | 8235 | fi |
1c710c3c | 8236 | |
5213506e | 8237 | |
2693c0b0 PB |
8238 | fi |
8239 | test -n "$ac_cv_prog_AS" && break | |
8240 | done | |
8241 | ||
8242 | if test -z "$ac_cv_prog_AS" ; then | |
8243 | set dummy as | |
8244 | if test $build = $host ; then | |
8245 | AS="$2" | |
ca9f4b81 | 8246 | else |
2693c0b0 | 8247 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8248 | fi |
ca9f4b81 AO |
8249 | fi |
8250 | ||
278a7a38 AO |
8251 | |
8252 | ||
8253 | if test -n "$DLLTOOL"; then | |
8254 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8255 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8256 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8257 | fi | |
8258 | ||
8259 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8260 | for ncn_progname in dlltool; do | |
8261 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8262 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8264 | $as_echo_n "checking for $ac_word... " >&6; } | |
8265 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8266 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8267 | else |
8268 | if test -n "$DLLTOOL"; then | |
8269 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8270 | else | |
8271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8272 | for as_dir in $PATH | |
8273 | do | |
8274 | IFS=$as_save_IFS | |
8275 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8276 | for ac_exec_ext in '' $ac_executable_extensions; do |
8277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8278 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8280 | break 2 |
8281 | fi | |
8282 | done | |
5213506e RW |
8283 | done |
8284 | IFS=$as_save_IFS | |
278a7a38 AO |
8285 | |
8286 | fi | |
8287 | fi | |
8288 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8289 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8291 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8292 | else |
5213506e RW |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8294 | $as_echo "no" >&6; } | |
278a7a38 AO |
8295 | fi |
8296 | ||
5213506e | 8297 | |
278a7a38 AO |
8298 | done |
8299 | fi | |
8300 | ||
8301 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8302 | if test -n "$ncn_tool_prefix"; then |
8303 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8304 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8306 | $as_echo_n "checking for $ac_word... " >&6; } | |
8307 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8308 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8309 | else |
8310 | if test -n "$DLLTOOL"; then | |
8311 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8312 | else | |
1c710c3c DJ |
8313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8314 | for as_dir in $PATH | |
8315 | do | |
8316 | IFS=$as_save_IFS | |
8317 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8318 | for ac_exec_ext in '' $ac_executable_extensions; do |
8319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8320 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8322 | break 2 |
8323 | fi | |
8324 | done | |
5213506e RW |
8325 | done |
8326 | IFS=$as_save_IFS | |
1c710c3c | 8327 | |
ca9f4b81 AO |
8328 | fi |
8329 | fi | |
1c710c3c | 8330 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8331 | if test -n "$DLLTOOL"; then |
5213506e RW |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8333 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8334 | else |
5213506e RW |
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8336 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8337 | fi |
8338 | ||
5213506e | 8339 | |
2693c0b0 PB |
8340 | fi |
8341 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8342 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8343 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8345 | $as_echo_n "checking for $ac_word... " >&6; } | |
8346 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8347 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8348 | else |
2693c0b0 PB |
8349 | if test -n "$DLLTOOL"; then |
8350 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8351 | else |
1c710c3c DJ |
8352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8353 | for as_dir in $PATH | |
8354 | do | |
8355 | IFS=$as_save_IFS | |
8356 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8357 | for ac_exec_ext in '' $ac_executable_extensions; do |
8358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8359 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8361 | break 2 |
8362 | fi | |
8363 | done | |
5213506e RW |
8364 | done |
8365 | IFS=$as_save_IFS | |
1c710c3c | 8366 | |
ca9f4b81 AO |
8367 | fi |
8368 | fi | |
1c710c3c | 8369 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8370 | if test -n "$DLLTOOL"; then |
5213506e RW |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8372 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8373 | else |
5213506e RW |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8375 | $as_echo "no" >&6; } | |
ca9f4b81 | 8376 | fi |
1c710c3c | 8377 | |
5213506e | 8378 | |
2693c0b0 PB |
8379 | fi |
8380 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8381 | done | |
8382 | ||
8383 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8384 | set dummy dlltool | |
8385 | if test $build = $host ; then | |
8386 | DLLTOOL="$2" | |
ca9f4b81 | 8387 | else |
2693c0b0 | 8388 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8389 | fi |
ca9f4b81 AO |
8390 | fi |
8391 | ||
278a7a38 AO |
8392 | |
8393 | ||
8394 | if test -n "$LD"; then | |
8395 | ac_cv_prog_LD=$LD | |
8396 | elif test -n "$ac_cv_prog_LD"; then | |
8397 | LD=$ac_cv_prog_LD | |
8398 | fi | |
8399 | ||
8400 | if test -n "$ac_cv_prog_LD"; then | |
8401 | for ncn_progname in ld; do | |
8402 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8403 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8405 | $as_echo_n "checking for $ac_word... " >&6; } | |
8406 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8407 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8408 | else |
8409 | if test -n "$LD"; then | |
8410 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8411 | else | |
8412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8413 | for as_dir in $PATH | |
8414 | do | |
8415 | IFS=$as_save_IFS | |
8416 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8417 | for ac_exec_ext in '' $ac_executable_extensions; do |
8418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8419 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8421 | break 2 |
8422 | fi | |
8423 | done | |
5213506e RW |
8424 | done |
8425 | IFS=$as_save_IFS | |
278a7a38 AO |
8426 | |
8427 | fi | |
8428 | fi | |
8429 | LD=$ac_cv_prog_LD | |
8430 | if test -n "$LD"; then | |
5213506e RW |
8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8432 | $as_echo "$LD" >&6; } | |
278a7a38 | 8433 | else |
5213506e RW |
8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8435 | $as_echo "no" >&6; } | |
278a7a38 AO |
8436 | fi |
8437 | ||
5213506e | 8438 | |
278a7a38 AO |
8439 | done |
8440 | fi | |
8441 | ||
8442 | for ncn_progname in ld; do | |
2693c0b0 PB |
8443 | if test -n "$ncn_tool_prefix"; then |
8444 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8445 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8447 | $as_echo_n "checking for $ac_word... " >&6; } | |
8448 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8449 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8450 | else |
8451 | if test -n "$LD"; then | |
8452 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8453 | else | |
1c710c3c DJ |
8454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8455 | for as_dir in $PATH | |
8456 | do | |
8457 | IFS=$as_save_IFS | |
8458 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8459 | for ac_exec_ext in '' $ac_executable_extensions; do |
8460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8461 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8463 | break 2 |
8464 | fi | |
8465 | done | |
5213506e RW |
8466 | done |
8467 | IFS=$as_save_IFS | |
1c710c3c | 8468 | |
ca9f4b81 AO |
8469 | fi |
8470 | fi | |
1c710c3c | 8471 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8472 | if test -n "$LD"; then |
5213506e RW |
8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8474 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8475 | else |
5213506e RW |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8477 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8478 | fi |
8479 | ||
5213506e | 8480 | |
2693c0b0 PB |
8481 | fi |
8482 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8483 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8484 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8486 | $as_echo_n "checking for $ac_word... " >&6; } | |
8487 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8488 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8489 | else |
2693c0b0 PB |
8490 | if test -n "$LD"; then |
8491 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8492 | else |
1c710c3c DJ |
8493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8494 | for as_dir in $PATH | |
8495 | do | |
8496 | IFS=$as_save_IFS | |
8497 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8498 | for ac_exec_ext in '' $ac_executable_extensions; do |
8499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8500 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8502 | break 2 |
8503 | fi | |
8504 | done | |
5213506e RW |
8505 | done |
8506 | IFS=$as_save_IFS | |
1c710c3c | 8507 | |
ca9f4b81 AO |
8508 | fi |
8509 | fi | |
1c710c3c | 8510 | LD=$ac_cv_prog_LD |
2693c0b0 | 8511 | if test -n "$LD"; then |
5213506e RW |
8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8513 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8514 | else |
5213506e RW |
8515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8516 | $as_echo "no" >&6; } | |
ca9f4b81 | 8517 | fi |
1c710c3c | 8518 | |
5213506e | 8519 | |
2693c0b0 PB |
8520 | fi |
8521 | test -n "$ac_cv_prog_LD" && break | |
8522 | done | |
8523 | ||
8524 | if test -z "$ac_cv_prog_LD" ; then | |
8525 | set dummy ld | |
8526 | if test $build = $host ; then | |
8527 | LD="$2" | |
ca9f4b81 | 8528 | else |
2693c0b0 | 8529 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8530 | fi |
ca9f4b81 AO |
8531 | fi |
8532 | ||
278a7a38 AO |
8533 | |
8534 | ||
8535 | if test -n "$LIPO"; then | |
8536 | ac_cv_prog_LIPO=$LIPO | |
8537 | elif test -n "$ac_cv_prog_LIPO"; then | |
8538 | LIPO=$ac_cv_prog_LIPO | |
8539 | fi | |
8540 | ||
8541 | if test -n "$ac_cv_prog_LIPO"; then | |
8542 | for ncn_progname in lipo; do | |
8543 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8544 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8546 | $as_echo_n "checking for $ac_word... " >&6; } | |
8547 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8548 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8549 | else |
8550 | if test -n "$LIPO"; then | |
8551 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8552 | else | |
8553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8554 | for as_dir in $PATH | |
8555 | do | |
8556 | IFS=$as_save_IFS | |
8557 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8558 | for ac_exec_ext in '' $ac_executable_extensions; do |
8559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8560 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8562 | break 2 |
8563 | fi | |
8564 | done | |
5213506e RW |
8565 | done |
8566 | IFS=$as_save_IFS | |
278a7a38 AO |
8567 | |
8568 | fi | |
8569 | fi | |
8570 | LIPO=$ac_cv_prog_LIPO | |
8571 | if test -n "$LIPO"; then | |
5213506e RW |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8573 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8574 | else |
5213506e RW |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8576 | $as_echo "no" >&6; } | |
278a7a38 AO |
8577 | fi |
8578 | ||
5213506e | 8579 | |
278a7a38 AO |
8580 | done |
8581 | fi | |
8582 | ||
8583 | for ncn_progname in lipo; do | |
2abefe3d PB |
8584 | if test -n "$ncn_tool_prefix"; then |
8585 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8586 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8588 | $as_echo_n "checking for $ac_word... " >&6; } | |
8589 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8590 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8591 | else |
8592 | if test -n "$LIPO"; then | |
8593 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8594 | else | |
1c710c3c DJ |
8595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8596 | for as_dir in $PATH | |
8597 | do | |
8598 | IFS=$as_save_IFS | |
8599 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8600 | for ac_exec_ext in '' $ac_executable_extensions; do |
8601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8602 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8604 | break 2 |
8605 | fi | |
8606 | done | |
5213506e RW |
8607 | done |
8608 | IFS=$as_save_IFS | |
1c710c3c | 8609 | |
2abefe3d PB |
8610 | fi |
8611 | fi | |
1c710c3c | 8612 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8613 | if test -n "$LIPO"; then |
5213506e RW |
8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8615 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8616 | else |
5213506e RW |
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8618 | $as_echo "no" >&6; } | |
2abefe3d PB |
8619 | fi |
8620 | ||
5213506e | 8621 | |
2abefe3d PB |
8622 | fi |
8623 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8624 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8625 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8627 | $as_echo_n "checking for $ac_word... " >&6; } | |
8628 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8629 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8630 | else |
8631 | if test -n "$LIPO"; then | |
8632 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8633 | else | |
1c710c3c DJ |
8634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8635 | for as_dir in $PATH | |
8636 | do | |
8637 | IFS=$as_save_IFS | |
8638 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8639 | for ac_exec_ext in '' $ac_executable_extensions; do |
8640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8641 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8643 | break 2 |
8644 | fi | |
8645 | done | |
5213506e RW |
8646 | done |
8647 | IFS=$as_save_IFS | |
1c710c3c | 8648 | |
2abefe3d PB |
8649 | fi |
8650 | fi | |
1c710c3c | 8651 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8652 | if test -n "$LIPO"; then |
5213506e RW |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8654 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8655 | else |
5213506e RW |
8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8657 | $as_echo "no" >&6; } | |
2abefe3d | 8658 | fi |
1c710c3c | 8659 | |
5213506e | 8660 | |
2abefe3d PB |
8661 | fi |
8662 | test -n "$ac_cv_prog_LIPO" && break | |
8663 | done | |
8664 | ||
8665 | if test -z "$ac_cv_prog_LIPO" ; then | |
8666 | set dummy lipo | |
8667 | if test $build = $host ; then | |
8668 | LIPO="$2" | |
8669 | else | |
8670 | LIPO="${ncn_tool_prefix}$2" | |
8671 | fi | |
8672 | fi | |
8673 | ||
278a7a38 AO |
8674 | |
8675 | ||
8676 | if test -n "$NM"; then | |
8677 | ac_cv_prog_NM=$NM | |
8678 | elif test -n "$ac_cv_prog_NM"; then | |
8679 | NM=$ac_cv_prog_NM | |
8680 | fi | |
8681 | ||
8682 | if test -n "$ac_cv_prog_NM"; then | |
8683 | for ncn_progname in nm; do | |
8684 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8685 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8687 | $as_echo_n "checking for $ac_word... " >&6; } | |
8688 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8689 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8690 | else |
8691 | if test -n "$NM"; then | |
8692 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8693 | else | |
1c710c3c DJ |
8694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8695 | for as_dir in $PATH | |
8696 | do | |
8697 | IFS=$as_save_IFS | |
8698 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8699 | for ac_exec_ext in '' $ac_executable_extensions; do |
8700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8701 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8703 | break 2 |
8704 | fi | |
8705 | done | |
5213506e RW |
8706 | done |
8707 | IFS=$as_save_IFS | |
1c710c3c | 8708 | |
ca9f4b81 AO |
8709 | fi |
8710 | fi | |
1c710c3c | 8711 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8712 | if test -n "$NM"; then |
5213506e RW |
8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8714 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8715 | else |
5213506e RW |
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8717 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8718 | fi |
8719 | ||
5213506e | 8720 | |
278a7a38 AO |
8721 | done |
8722 | fi | |
8723 | ||
8724 | for ncn_progname in nm; do | |
8725 | if test -n "$ncn_tool_prefix"; then | |
8726 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8727 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8729 | $as_echo_n "checking for $ac_word... " >&6; } | |
8730 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8731 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8732 | else |
2693c0b0 PB |
8733 | if test -n "$NM"; then |
8734 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8735 | else |
1c710c3c DJ |
8736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8737 | for as_dir in $PATH | |
8738 | do | |
8739 | IFS=$as_save_IFS | |
8740 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8741 | for ac_exec_ext in '' $ac_executable_extensions; do |
8742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8743 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8745 | break 2 |
8746 | fi | |
8747 | done | |
5213506e RW |
8748 | done |
8749 | IFS=$as_save_IFS | |
1c710c3c | 8750 | |
ca9f4b81 AO |
8751 | fi |
8752 | fi | |
1c710c3c | 8753 | NM=$ac_cv_prog_NM |
2693c0b0 | 8754 | if test -n "$NM"; then |
5213506e RW |
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8756 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8757 | else |
5213506e RW |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8759 | $as_echo "no" >&6; } | |
ca9f4b81 | 8760 | fi |
1c710c3c | 8761 | |
5213506e | 8762 | |
2693c0b0 | 8763 | fi |
278a7a38 AO |
8764 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8765 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8766 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8768 | $as_echo_n "checking for $ac_word... " >&6; } | |
8769 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8770 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8771 | else |
8772 | if test -n "$NM"; then | |
8773 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8774 | else | |
8775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8776 | for as_dir in $PATH | |
8777 | do | |
8778 | IFS=$as_save_IFS | |
8779 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8780 | for ac_exec_ext in '' $ac_executable_extensions; do |
8781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8782 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8784 | break 2 |
8785 | fi | |
8786 | done | |
5213506e RW |
8787 | done |
8788 | IFS=$as_save_IFS | |
278a7a38 AO |
8789 | |
8790 | fi | |
8791 | fi | |
8792 | NM=$ac_cv_prog_NM | |
8793 | if test -n "$NM"; then | |
5213506e RW |
8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8795 | $as_echo "$NM" >&6; } | |
278a7a38 | 8796 | else |
5213506e RW |
8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8798 | $as_echo "no" >&6; } | |
278a7a38 AO |
8799 | fi |
8800 | ||
5213506e | 8801 | |
278a7a38 AO |
8802 | fi |
8803 | test -n "$ac_cv_prog_NM" && break | |
8804 | done | |
8805 | ||
8806 | if test -z "$ac_cv_prog_NM" ; then | |
8807 | set dummy nm | |
8808 | if test $build = $host ; then | |
8809 | NM="$2" | |
8810 | else | |
8811 | NM="${ncn_tool_prefix}$2" | |
8812 | fi | |
8813 | fi | |
8814 | ||
8815 | ||
8816 | ||
8817 | if test -n "$RANLIB"; then | |
8818 | ac_cv_prog_RANLIB=$RANLIB | |
8819 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8820 | RANLIB=$ac_cv_prog_RANLIB | |
8821 | fi | |
8822 | ||
8823 | if test -n "$ac_cv_prog_RANLIB"; then | |
8824 | for ncn_progname in ranlib; do | |
8825 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8826 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8828 | $as_echo_n "checking for $ac_word... " >&6; } | |
8829 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8830 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8831 | else |
8832 | if test -n "$RANLIB"; then | |
8833 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8834 | else | |
8835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8836 | for as_dir in $PATH | |
8837 | do | |
8838 | IFS=$as_save_IFS | |
8839 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8840 | for ac_exec_ext in '' $ac_executable_extensions; do |
8841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8842 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8844 | break 2 |
8845 | fi | |
8846 | done | |
5213506e RW |
8847 | done |
8848 | IFS=$as_save_IFS | |
278a7a38 AO |
8849 | |
8850 | fi | |
8851 | fi | |
8852 | RANLIB=$ac_cv_prog_RANLIB | |
8853 | if test -n "$RANLIB"; then | |
5213506e RW |
8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8855 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 8856 | else |
5213506e RW |
8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8858 | $as_echo "no" >&6; } | |
278a7a38 AO |
8859 | fi |
8860 | ||
5213506e | 8861 | |
278a7a38 AO |
8862 | done |
8863 | fi | |
ca9f4b81 | 8864 | |
278a7a38 | 8865 | for ncn_progname in ranlib; do |
2693c0b0 PB |
8866 | if test -n "$ncn_tool_prefix"; then |
8867 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8868 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8870 | $as_echo_n "checking for $ac_word... " >&6; } | |
8871 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8872 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8873 | else |
8874 | if test -n "$RANLIB"; then | |
8875 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8876 | else | |
1c710c3c DJ |
8877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8878 | for as_dir in $PATH | |
8879 | do | |
8880 | IFS=$as_save_IFS | |
8881 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8882 | for ac_exec_ext in '' $ac_executable_extensions; do |
8883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8884 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8886 | break 2 |
8887 | fi | |
8888 | done | |
5213506e RW |
8889 | done |
8890 | IFS=$as_save_IFS | |
1c710c3c | 8891 | |
ca9f4b81 AO |
8892 | fi |
8893 | fi | |
1c710c3c | 8894 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 8895 | if test -n "$RANLIB"; then |
5213506e RW |
8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8897 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8898 | else |
5213506e RW |
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8900 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8901 | fi |
8902 | ||
5213506e | 8903 | |
2693c0b0 PB |
8904 | fi |
8905 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8906 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8907 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8909 | $as_echo_n "checking for $ac_word... " >&6; } | |
8910 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8911 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8912 | else |
2693c0b0 PB |
8913 | if test -n "$RANLIB"; then |
8914 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 8915 | else |
1c710c3c DJ |
8916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8917 | for as_dir in $PATH | |
8918 | do | |
8919 | IFS=$as_save_IFS | |
8920 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8921 | for ac_exec_ext in '' $ac_executable_extensions; do |
8922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8923 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8925 | break 2 |
8926 | fi | |
8927 | done | |
5213506e RW |
8928 | done |
8929 | IFS=$as_save_IFS | |
1c710c3c | 8930 | |
ca9f4b81 AO |
8931 | fi |
8932 | fi | |
1c710c3c | 8933 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 8934 | if test -n "$RANLIB"; then |
5213506e RW |
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8936 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8937 | else |
5213506e RW |
8938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8939 | $as_echo "no" >&6; } | |
ca9f4b81 | 8940 | fi |
1c710c3c | 8941 | |
5213506e | 8942 | |
ca9f4b81 | 8943 | fi |
2693c0b0 PB |
8944 | test -n "$ac_cv_prog_RANLIB" && break |
8945 | done | |
8946 | ||
8947 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 8948 | RANLIB="true" |
ca9f4b81 AO |
8949 | fi |
8950 | ||
278a7a38 AO |
8951 | |
8952 | ||
8953 | if test -n "$STRIP"; then | |
8954 | ac_cv_prog_STRIP=$STRIP | |
8955 | elif test -n "$ac_cv_prog_STRIP"; then | |
8956 | STRIP=$ac_cv_prog_STRIP | |
8957 | fi | |
8958 | ||
8959 | if test -n "$ac_cv_prog_STRIP"; then | |
8960 | for ncn_progname in strip; do | |
8961 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8962 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8964 | $as_echo_n "checking for $ac_word... " >&6; } | |
8965 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8966 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8967 | else |
8968 | if test -n "$STRIP"; then | |
8969 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8970 | else | |
8971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8972 | for as_dir in $PATH | |
8973 | do | |
8974 | IFS=$as_save_IFS | |
8975 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8976 | for ac_exec_ext in '' $ac_executable_extensions; do |
8977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8978 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 8979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8980 | break 2 |
8981 | fi | |
8982 | done | |
5213506e RW |
8983 | done |
8984 | IFS=$as_save_IFS | |
278a7a38 AO |
8985 | |
8986 | fi | |
8987 | fi | |
8988 | STRIP=$ac_cv_prog_STRIP | |
8989 | if test -n "$STRIP"; then | |
5213506e RW |
8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8991 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 8992 | else |
5213506e RW |
8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8994 | $as_echo "no" >&6; } | |
278a7a38 AO |
8995 | fi |
8996 | ||
5213506e | 8997 | |
278a7a38 AO |
8998 | done |
8999 | fi | |
9000 | ||
9001 | for ncn_progname in strip; do | |
2abefe3d PB |
9002 | if test -n "$ncn_tool_prefix"; then |
9003 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9004 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9006 | $as_echo_n "checking for $ac_word... " >&6; } | |
9007 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9008 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9009 | else |
9010 | if test -n "$STRIP"; then | |
9011 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9012 | else | |
1c710c3c DJ |
9013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9014 | for as_dir in $PATH | |
9015 | do | |
9016 | IFS=$as_save_IFS | |
9017 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9018 | for ac_exec_ext in '' $ac_executable_extensions; do |
9019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9020 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9022 | break 2 |
9023 | fi | |
9024 | done | |
5213506e RW |
9025 | done |
9026 | IFS=$as_save_IFS | |
1c710c3c | 9027 | |
2abefe3d PB |
9028 | fi |
9029 | fi | |
1c710c3c | 9030 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9031 | if test -n "$STRIP"; then |
5213506e RW |
9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9033 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9034 | else |
5213506e RW |
9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9036 | $as_echo "no" >&6; } | |
2abefe3d PB |
9037 | fi |
9038 | ||
5213506e | 9039 | |
2abefe3d PB |
9040 | fi |
9041 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9042 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9043 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9045 | $as_echo_n "checking for $ac_word... " >&6; } | |
9046 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9047 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9048 | else |
9049 | if test -n "$STRIP"; then | |
9050 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9051 | else | |
1c710c3c DJ |
9052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9053 | for as_dir in $PATH | |
9054 | do | |
9055 | IFS=$as_save_IFS | |
9056 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9057 | for ac_exec_ext in '' $ac_executable_extensions; do |
9058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9059 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9061 | break 2 |
9062 | fi | |
9063 | done | |
5213506e RW |
9064 | done |
9065 | IFS=$as_save_IFS | |
1c710c3c | 9066 | |
2abefe3d PB |
9067 | fi |
9068 | fi | |
1c710c3c | 9069 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9070 | if test -n "$STRIP"; then |
5213506e RW |
9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9072 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9073 | else |
5213506e RW |
9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9075 | $as_echo "no" >&6; } | |
2abefe3d | 9076 | fi |
1c710c3c | 9077 | |
5213506e | 9078 | |
2abefe3d PB |
9079 | fi |
9080 | test -n "$ac_cv_prog_STRIP" && break | |
9081 | done | |
9082 | ||
9083 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9084 | STRIP="true" |
2abefe3d PB |
9085 | fi |
9086 | ||
278a7a38 AO |
9087 | |
9088 | ||
9089 | if test -n "$WINDRES"; then | |
9090 | ac_cv_prog_WINDRES=$WINDRES | |
9091 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9092 | WINDRES=$ac_cv_prog_WINDRES | |
9093 | fi | |
9094 | ||
9095 | if test -n "$ac_cv_prog_WINDRES"; then | |
9096 | for ncn_progname in windres; do | |
9097 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9098 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9100 | $as_echo_n "checking for $ac_word... " >&6; } | |
9101 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9102 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9103 | else |
9104 | if test -n "$WINDRES"; then | |
9105 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9106 | else | |
9107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9108 | for as_dir in $PATH | |
9109 | do | |
9110 | IFS=$as_save_IFS | |
9111 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9112 | for ac_exec_ext in '' $ac_executable_extensions; do |
9113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9114 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9116 | break 2 |
9117 | fi | |
9118 | done | |
5213506e RW |
9119 | done |
9120 | IFS=$as_save_IFS | |
278a7a38 AO |
9121 | |
9122 | fi | |
9123 | fi | |
9124 | WINDRES=$ac_cv_prog_WINDRES | |
9125 | if test -n "$WINDRES"; then | |
5213506e RW |
9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9127 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9128 | else |
5213506e RW |
9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9130 | $as_echo "no" >&6; } | |
278a7a38 AO |
9131 | fi |
9132 | ||
5213506e | 9133 | |
278a7a38 AO |
9134 | done |
9135 | fi | |
9136 | ||
9137 | for ncn_progname in windres; do | |
2693c0b0 PB |
9138 | if test -n "$ncn_tool_prefix"; then |
9139 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9140 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9142 | $as_echo_n "checking for $ac_word... " >&6; } | |
9143 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9144 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9145 | else |
9146 | if test -n "$WINDRES"; then | |
9147 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9148 | else | |
1c710c3c DJ |
9149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9150 | for as_dir in $PATH | |
9151 | do | |
9152 | IFS=$as_save_IFS | |
9153 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9154 | for ac_exec_ext in '' $ac_executable_extensions; do |
9155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9156 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9158 | break 2 |
9159 | fi | |
9160 | done | |
5213506e RW |
9161 | done |
9162 | IFS=$as_save_IFS | |
1c710c3c | 9163 | |
ca9f4b81 AO |
9164 | fi |
9165 | fi | |
1c710c3c | 9166 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9167 | if test -n "$WINDRES"; then |
5213506e RW |
9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9169 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9170 | else |
5213506e RW |
9171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9172 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9173 | fi |
9174 | ||
5213506e | 9175 | |
2693c0b0 PB |
9176 | fi |
9177 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9178 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9179 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9181 | $as_echo_n "checking for $ac_word... " >&6; } | |
9182 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9183 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9184 | else |
2693c0b0 PB |
9185 | if test -n "$WINDRES"; then |
9186 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9187 | else |
1c710c3c DJ |
9188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9189 | for as_dir in $PATH | |
9190 | do | |
9191 | IFS=$as_save_IFS | |
9192 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9193 | for ac_exec_ext in '' $ac_executable_extensions; do |
9194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9195 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9197 | break 2 |
9198 | fi | |
9199 | done | |
5213506e RW |
9200 | done |
9201 | IFS=$as_save_IFS | |
1c710c3c | 9202 | |
ca9f4b81 AO |
9203 | fi |
9204 | fi | |
1c710c3c | 9205 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9206 | if test -n "$WINDRES"; then |
5213506e RW |
9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9208 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9209 | else |
5213506e RW |
9210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9211 | $as_echo "no" >&6; } | |
ca9f4b81 | 9212 | fi |
1c710c3c | 9213 | |
5213506e | 9214 | |
2693c0b0 PB |
9215 | fi |
9216 | test -n "$ac_cv_prog_WINDRES" && break | |
9217 | done | |
9218 | ||
9219 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9220 | set dummy windres | |
9221 | if test $build = $host ; then | |
9222 | WINDRES="$2" | |
ca9f4b81 | 9223 | else |
2693c0b0 | 9224 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9225 | fi |
ca9f4b81 AO |
9226 | fi |
9227 | ||
278a7a38 AO |
9228 | |
9229 | ||
901119ae KT |
9230 | if test -n "$WINDMC"; then |
9231 | ac_cv_prog_WINDMC=$WINDMC | |
9232 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9233 | WINDMC=$ac_cv_prog_WINDMC | |
9234 | fi | |
9235 | ||
9236 | if test -n "$ac_cv_prog_WINDMC"; then | |
9237 | for ncn_progname in windmc; do | |
9238 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9239 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9241 | $as_echo_n "checking for $ac_word... " >&6; } | |
9242 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9243 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9244 | else |
9245 | if test -n "$WINDMC"; then | |
9246 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9247 | else | |
9248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9249 | for as_dir in $PATH | |
9250 | do | |
9251 | IFS=$as_save_IFS | |
9252 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9253 | for ac_exec_ext in '' $ac_executable_extensions; do |
9254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9255 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9257 | break 2 |
9258 | fi | |
9259 | done | |
5213506e RW |
9260 | done |
9261 | IFS=$as_save_IFS | |
901119ae KT |
9262 | |
9263 | fi | |
9264 | fi | |
9265 | WINDMC=$ac_cv_prog_WINDMC | |
9266 | if test -n "$WINDMC"; then | |
5213506e RW |
9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9268 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9269 | else |
5213506e RW |
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9271 | $as_echo "no" >&6; } | |
901119ae KT |
9272 | fi |
9273 | ||
5213506e | 9274 | |
901119ae KT |
9275 | done |
9276 | fi | |
9277 | ||
9278 | for ncn_progname in windmc; do | |
9279 | if test -n "$ncn_tool_prefix"; then | |
9280 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9281 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9283 | $as_echo_n "checking for $ac_word... " >&6; } | |
9284 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9285 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9286 | else |
9287 | if test -n "$WINDMC"; then | |
9288 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9289 | else | |
9290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9291 | for as_dir in $PATH | |
9292 | do | |
9293 | IFS=$as_save_IFS | |
9294 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9295 | for ac_exec_ext in '' $ac_executable_extensions; do |
9296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9297 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9299 | break 2 |
9300 | fi | |
9301 | done | |
5213506e RW |
9302 | done |
9303 | IFS=$as_save_IFS | |
901119ae KT |
9304 | |
9305 | fi | |
9306 | fi | |
9307 | WINDMC=$ac_cv_prog_WINDMC | |
9308 | if test -n "$WINDMC"; then | |
5213506e RW |
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9310 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9311 | else |
5213506e RW |
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9313 | $as_echo "no" >&6; } | |
901119ae KT |
9314 | fi |
9315 | ||
5213506e | 9316 | |
901119ae KT |
9317 | fi |
9318 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9319 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9320 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9322 | $as_echo_n "checking for $ac_word... " >&6; } | |
9323 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9324 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9325 | else |
9326 | if test -n "$WINDMC"; then | |
9327 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9328 | else | |
9329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9330 | for as_dir in $PATH | |
9331 | do | |
9332 | IFS=$as_save_IFS | |
9333 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9334 | for ac_exec_ext in '' $ac_executable_extensions; do |
9335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9336 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9338 | break 2 |
9339 | fi | |
9340 | done | |
5213506e RW |
9341 | done |
9342 | IFS=$as_save_IFS | |
901119ae KT |
9343 | |
9344 | fi | |
9345 | fi | |
9346 | WINDMC=$ac_cv_prog_WINDMC | |
9347 | if test -n "$WINDMC"; then | |
5213506e RW |
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9349 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9350 | else |
5213506e RW |
9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9352 | $as_echo "no" >&6; } | |
901119ae KT |
9353 | fi |
9354 | ||
5213506e | 9355 | |
901119ae KT |
9356 | fi |
9357 | test -n "$ac_cv_prog_WINDMC" && break | |
9358 | done | |
9359 | ||
9360 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9361 | set dummy windmc | |
9362 | if test $build = $host ; then | |
9363 | WINDMC="$2" | |
9364 | else | |
9365 | WINDMC="${ncn_tool_prefix}$2" | |
9366 | fi | |
9367 | fi | |
9368 | ||
9369 | ||
9370 | ||
278a7a38 AO |
9371 | if test -n "$OBJCOPY"; then |
9372 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9373 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9374 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9375 | fi | |
9376 | ||
9377 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9378 | for ncn_progname in objcopy; do | |
9379 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9380 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9382 | $as_echo_n "checking for $ac_word... " >&6; } | |
9383 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9384 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9385 | else |
9386 | if test -n "$OBJCOPY"; then | |
9387 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9388 | else | |
9389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9390 | for as_dir in $PATH | |
9391 | do | |
9392 | IFS=$as_save_IFS | |
9393 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9394 | for ac_exec_ext in '' $ac_executable_extensions; do |
9395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9396 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9398 | break 2 |
9399 | fi | |
9400 | done | |
5213506e RW |
9401 | done |
9402 | IFS=$as_save_IFS | |
278a7a38 AO |
9403 | |
9404 | fi | |
9405 | fi | |
9406 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9407 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9409 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9410 | else |
5213506e RW |
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9412 | $as_echo "no" >&6; } | |
278a7a38 AO |
9413 | fi |
9414 | ||
5213506e | 9415 | |
278a7a38 AO |
9416 | done |
9417 | fi | |
9418 | ||
9419 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9420 | if test -n "$ncn_tool_prefix"; then |
9421 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9422 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9424 | $as_echo_n "checking for $ac_word... " >&6; } | |
9425 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9426 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9427 | else |
9428 | if test -n "$OBJCOPY"; then | |
9429 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9430 | else | |
1c710c3c DJ |
9431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9432 | for as_dir in $PATH | |
9433 | do | |
9434 | IFS=$as_save_IFS | |
9435 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9436 | for ac_exec_ext in '' $ac_executable_extensions; do |
9437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9438 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9440 | break 2 |
9441 | fi | |
9442 | done | |
5213506e RW |
9443 | done |
9444 | IFS=$as_save_IFS | |
1c710c3c | 9445 | |
ca9f4b81 AO |
9446 | fi |
9447 | fi | |
1c710c3c | 9448 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9449 | if test -n "$OBJCOPY"; then |
5213506e RW |
9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9451 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9452 | else |
5213506e RW |
9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9454 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9455 | fi |
9456 | ||
5213506e | 9457 | |
2693c0b0 PB |
9458 | fi |
9459 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9460 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9461 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9463 | $as_echo_n "checking for $ac_word... " >&6; } | |
9464 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9465 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9466 | else |
2693c0b0 PB |
9467 | if test -n "$OBJCOPY"; then |
9468 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9469 | else |
1c710c3c DJ |
9470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9471 | for as_dir in $PATH | |
9472 | do | |
9473 | IFS=$as_save_IFS | |
9474 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9475 | for ac_exec_ext in '' $ac_executable_extensions; do |
9476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9477 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9479 | break 2 |
9480 | fi | |
9481 | done | |
5213506e RW |
9482 | done |
9483 | IFS=$as_save_IFS | |
1c710c3c | 9484 | |
ca9f4b81 AO |
9485 | fi |
9486 | fi | |
1c710c3c | 9487 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9488 | if test -n "$OBJCOPY"; then |
5213506e RW |
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9490 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9491 | else |
5213506e RW |
9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9493 | $as_echo "no" >&6; } | |
ca9f4b81 | 9494 | fi |
1c710c3c | 9495 | |
5213506e | 9496 | |
2693c0b0 PB |
9497 | fi |
9498 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9499 | done | |
9500 | ||
9501 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9502 | set dummy objcopy | |
9503 | if test $build = $host ; then | |
9504 | OBJCOPY="$2" | |
ca9f4b81 | 9505 | else |
2693c0b0 | 9506 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9507 | fi |
ca9f4b81 AO |
9508 | fi |
9509 | ||
278a7a38 AO |
9510 | |
9511 | ||
9512 | if test -n "$OBJDUMP"; then | |
9513 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9514 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9515 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9516 | fi | |
9517 | ||
9518 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9519 | for ncn_progname in objdump; do | |
9520 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9521 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9523 | $as_echo_n "checking for $ac_word... " >&6; } | |
9524 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9525 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9526 | else |
9527 | if test -n "$OBJDUMP"; then | |
9528 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9529 | else | |
9530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9531 | for as_dir in $PATH | |
9532 | do | |
9533 | IFS=$as_save_IFS | |
9534 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9535 | for ac_exec_ext in '' $ac_executable_extensions; do |
9536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9537 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9539 | break 2 |
9540 | fi | |
9541 | done | |
5213506e RW |
9542 | done |
9543 | IFS=$as_save_IFS | |
278a7a38 AO |
9544 | |
9545 | fi | |
9546 | fi | |
9547 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9548 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9550 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9551 | else |
5213506e RW |
9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9553 | $as_echo "no" >&6; } | |
278a7a38 AO |
9554 | fi |
9555 | ||
5213506e | 9556 | |
278a7a38 AO |
9557 | done |
9558 | fi | |
9559 | ||
9560 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9561 | if test -n "$ncn_tool_prefix"; then |
9562 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9563 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9565 | $as_echo_n "checking for $ac_word... " >&6; } | |
9566 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9567 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9568 | else |
9569 | if test -n "$OBJDUMP"; then | |
9570 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9571 | else | |
1c710c3c DJ |
9572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9573 | for as_dir in $PATH | |
9574 | do | |
9575 | IFS=$as_save_IFS | |
9576 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9577 | for ac_exec_ext in '' $ac_executable_extensions; do |
9578 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9579 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9581 | break 2 |
9582 | fi | |
9583 | done | |
5213506e RW |
9584 | done |
9585 | IFS=$as_save_IFS | |
1c710c3c | 9586 | |
ca9f4b81 AO |
9587 | fi |
9588 | fi | |
1c710c3c | 9589 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9590 | if test -n "$OBJDUMP"; then |
5213506e RW |
9591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9592 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9593 | else |
5213506e RW |
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9595 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9596 | fi |
9597 | ||
5213506e | 9598 | |
2693c0b0 PB |
9599 | fi |
9600 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9601 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9602 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9604 | $as_echo_n "checking for $ac_word... " >&6; } | |
9605 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9606 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9607 | else |
2693c0b0 PB |
9608 | if test -n "$OBJDUMP"; then |
9609 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9610 | else |
1c710c3c DJ |
9611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9612 | for as_dir in $PATH | |
9613 | do | |
9614 | IFS=$as_save_IFS | |
9615 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9616 | for ac_exec_ext in '' $ac_executable_extensions; do |
9617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9618 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9620 | break 2 |
9621 | fi | |
9622 | done | |
5213506e RW |
9623 | done |
9624 | IFS=$as_save_IFS | |
1c710c3c | 9625 | |
ca9f4b81 AO |
9626 | fi |
9627 | fi | |
1c710c3c | 9628 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9629 | if test -n "$OBJDUMP"; then |
5213506e RW |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9631 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9632 | else |
5213506e RW |
9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9634 | $as_echo "no" >&6; } | |
ca9f4b81 | 9635 | fi |
1c710c3c | 9636 | |
5213506e | 9637 | |
2693c0b0 PB |
9638 | fi |
9639 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9640 | done | |
9641 | ||
9642 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9643 | set dummy objdump | |
9644 | if test $build = $host ; then | |
9645 | OBJDUMP="$2" | |
ca9f4b81 | 9646 | else |
2693c0b0 | 9647 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9648 | fi |
ca9f4b81 AO |
9649 | fi |
9650 | ||
671aa708 NN |
9651 | |
9652 | ||
e7a82751 RM |
9653 | if test -n "$READELF"; then |
9654 | ac_cv_prog_READELF=$READELF | |
9655 | elif test -n "$ac_cv_prog_READELF"; then | |
9656 | READELF=$ac_cv_prog_READELF | |
9657 | fi | |
9658 | ||
9659 | if test -n "$ac_cv_prog_READELF"; then | |
9660 | for ncn_progname in readelf; do | |
9661 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9662 | set dummy ${ncn_progname}; ac_word=$2 | |
9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9664 | $as_echo_n "checking for $ac_word... " >&6; } | |
9665 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9666 | $as_echo_n "(cached) " >&6 | |
9667 | else | |
9668 | if test -n "$READELF"; then | |
9669 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9670 | else | |
9671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9672 | for as_dir in $PATH | |
9673 | do | |
9674 | IFS=$as_save_IFS | |
9675 | test -z "$as_dir" && as_dir=. | |
9676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9678 | ac_cv_prog_READELF="${ncn_progname}" | |
9679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9680 | break 2 | |
9681 | fi | |
9682 | done | |
9683 | done | |
9684 | IFS=$as_save_IFS | |
9685 | ||
9686 | fi | |
9687 | fi | |
9688 | READELF=$ac_cv_prog_READELF | |
9689 | if test -n "$READELF"; then | |
9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9691 | $as_echo "$READELF" >&6; } | |
9692 | else | |
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9694 | $as_echo "no" >&6; } | |
9695 | fi | |
9696 | ||
9697 | ||
9698 | done | |
9699 | fi | |
9700 | ||
9701 | for ncn_progname in readelf; do | |
9702 | if test -n "$ncn_tool_prefix"; then | |
9703 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9704 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9706 | $as_echo_n "checking for $ac_word... " >&6; } | |
9707 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9708 | $as_echo_n "(cached) " >&6 | |
9709 | else | |
9710 | if test -n "$READELF"; then | |
9711 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9712 | else | |
9713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9714 | for as_dir in $PATH | |
9715 | do | |
9716 | IFS=$as_save_IFS | |
9717 | test -z "$as_dir" && as_dir=. | |
9718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9720 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9722 | break 2 | |
9723 | fi | |
9724 | done | |
9725 | done | |
9726 | IFS=$as_save_IFS | |
9727 | ||
9728 | fi | |
9729 | fi | |
9730 | READELF=$ac_cv_prog_READELF | |
9731 | if test -n "$READELF"; then | |
9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9733 | $as_echo "$READELF" >&6; } | |
9734 | else | |
9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9736 | $as_echo "no" >&6; } | |
9737 | fi | |
9738 | ||
9739 | ||
9740 | fi | |
9741 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9742 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9743 | set dummy ${ncn_progname}; ac_word=$2 | |
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9745 | $as_echo_n "checking for $ac_word... " >&6; } | |
9746 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9747 | $as_echo_n "(cached) " >&6 | |
9748 | else | |
9749 | if test -n "$READELF"; then | |
9750 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9751 | else | |
9752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9753 | for as_dir in $PATH | |
9754 | do | |
9755 | IFS=$as_save_IFS | |
9756 | test -z "$as_dir" && as_dir=. | |
9757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9759 | ac_cv_prog_READELF="${ncn_progname}" | |
9760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9761 | break 2 | |
9762 | fi | |
9763 | done | |
9764 | done | |
9765 | IFS=$as_save_IFS | |
9766 | ||
9767 | fi | |
9768 | fi | |
9769 | READELF=$ac_cv_prog_READELF | |
9770 | if test -n "$READELF"; then | |
9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9772 | $as_echo "$READELF" >&6; } | |
9773 | else | |
9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9775 | $as_echo "no" >&6; } | |
9776 | fi | |
9777 | ||
9778 | ||
9779 | fi | |
9780 | test -n "$ac_cv_prog_READELF" && break | |
9781 | done | |
9782 | ||
9783 | if test -z "$ac_cv_prog_READELF" ; then | |
9784 | set dummy readelf | |
9785 | if test $build = $host ; then | |
9786 | READELF="$2" | |
9787 | else | |
9788 | READELF="${ncn_tool_prefix}$2" | |
9789 | fi | |
9790 | fi | |
9791 | ||
9792 | ||
9793 | ||
671aa708 NN |
9794 | |
9795 | ||
9796 | ||
2abefe3d | 9797 | # Target tools. |
1c710c3c | 9798 | |
5213506e RW |
9799 | # Check whether --with-build-time-tools was given. |
9800 | if test "${with_build_time_tools+set}" = set; then : | |
9801 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
9802 | x/*) ;; |
9803 | *) | |
9804 | with_build_time_tools= | |
5213506e RW |
9805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9806 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
9807 | ;; |
9808 | esac | |
ca9f4b81 | 9809 | else |
e8b05380 | 9810 | with_build_time_tools= |
5213506e RW |
9811 | fi |
9812 | ||
ca9f4b81 | 9813 | |
278a7a38 AO |
9814 | |
9815 | ||
9816 | if test -n "$CC_FOR_TARGET"; then | |
9817 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9818 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9819 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9820 | fi | |
9821 | ||
9822 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9823 | for ncn_progname in cc gcc; do | |
9824 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9825 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9827 | $as_echo_n "checking for $ac_word... " >&6; } | |
9828 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9829 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9830 | else |
9831 | if test -n "$CC_FOR_TARGET"; then | |
9832 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9833 | else | |
9834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9835 | for as_dir in $PATH | |
9836 | do | |
9837 | IFS=$as_save_IFS | |
9838 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9839 | for ac_exec_ext in '' $ac_executable_extensions; do |
9840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9841 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9843 | break 2 |
9844 | fi | |
9845 | done | |
5213506e RW |
9846 | done |
9847 | IFS=$as_save_IFS | |
278a7a38 AO |
9848 | |
9849 | fi | |
9850 | fi | |
9851 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9852 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9854 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 9855 | else |
5213506e RW |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9857 | $as_echo "no" >&6; } | |
278a7a38 AO |
9858 | fi |
9859 | ||
5213506e | 9860 | |
278a7a38 AO |
9861 | done |
9862 | fi | |
9863 | ||
9864 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9865 | for ncn_progname in cc gcc; do |
5213506e RW |
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9867 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9868 | if test -x $with_build_time_tools/${ncn_progname}; then |
9869 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9871 | $as_echo "yes" >&6; } | |
72a7ab82 | 9872 | break |
e8b05380 | 9873 | else |
5213506e RW |
9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9875 | $as_echo "no" >&6; } | |
72a7ab82 AP |
9876 | fi |
9877 | done | |
4de997d1 PB |
9878 | fi |
9879 | ||
e8b05380 PB |
9880 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9881 | for ncn_progname in cc gcc; do | |
9882 | if test -n "$ncn_target_tool_prefix"; then | |
9883 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9884 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9886 | $as_echo_n "checking for $ac_word... " >&6; } | |
9887 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9888 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9889 | else |
9890 | if test -n "$CC_FOR_TARGET"; then | |
9891 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9892 | else | |
1c710c3c DJ |
9893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9894 | for as_dir in $PATH | |
9895 | do | |
9896 | IFS=$as_save_IFS | |
9897 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9898 | for ac_exec_ext in '' $ac_executable_extensions; do |
9899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9900 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9902 | break 2 |
9903 | fi | |
9904 | done | |
5213506e RW |
9905 | done |
9906 | IFS=$as_save_IFS | |
1c710c3c | 9907 | |
4de997d1 PB |
9908 | fi |
9909 | fi | |
1c710c3c | 9910 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 9911 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9913 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9914 | else |
5213506e RW |
9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9916 | $as_echo "no" >&6; } | |
4de997d1 PB |
9917 | fi |
9918 | ||
5213506e | 9919 | |
e8b05380 PB |
9920 | fi |
9921 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9922 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9923 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9925 | $as_echo_n "checking for $ac_word... " >&6; } | |
9926 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9927 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 9928 | else |
2693c0b0 PB |
9929 | if test -n "$CC_FOR_TARGET"; then |
9930 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9931 | else |
1c710c3c DJ |
9932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9933 | for as_dir in $PATH | |
9934 | do | |
9935 | IFS=$as_save_IFS | |
9936 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9937 | for ac_exec_ext in '' $ac_executable_extensions; do |
9938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9939 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9941 | break 2 |
9942 | fi | |
9943 | done | |
5213506e RW |
9944 | done |
9945 | IFS=$as_save_IFS | |
1c710c3c | 9946 | |
4de997d1 PB |
9947 | fi |
9948 | fi | |
1c710c3c | 9949 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 9950 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9952 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9953 | else |
5213506e RW |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9955 | $as_echo "no" >&6; } | |
4de997d1 | 9956 | fi |
1c710c3c | 9957 | |
5213506e | 9958 | |
e8b05380 PB |
9959 | fi |
9960 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9961 | done | |
9962 | fi | |
1c710c3c | 9963 | |
2693c0b0 PB |
9964 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9965 | set dummy cc gcc | |
9966 | if test $build = $target ; then | |
9967 | CC_FOR_TARGET="$2" | |
4de997d1 | 9968 | else |
2693c0b0 | 9969 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 9970 | fi |
1c00b503 PB |
9971 | else |
9972 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
9973 | fi |
9974 | ||
278a7a38 AO |
9975 | |
9976 | ||
9977 | if test -n "$CXX_FOR_TARGET"; then | |
9978 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9979 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9980 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9981 | fi | |
9982 | ||
9983 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9984 | for ncn_progname in c++ g++ cxx gxx; do | |
9985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9986 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9988 | $as_echo_n "checking for $ac_word... " >&6; } | |
9989 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9990 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9991 | else |
9992 | if test -n "$CXX_FOR_TARGET"; then | |
9993 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9994 | else | |
9995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9996 | for as_dir in $PATH | |
9997 | do | |
9998 | IFS=$as_save_IFS | |
9999 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10000 | for ac_exec_ext in '' $ac_executable_extensions; do |
10001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10002 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10004 | break 2 |
10005 | fi | |
10006 | done | |
5213506e RW |
10007 | done |
10008 | IFS=$as_save_IFS | |
278a7a38 AO |
10009 | |
10010 | fi | |
10011 | fi | |
10012 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10013 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10015 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 10016 | else |
5213506e RW |
10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10018 | $as_echo "no" >&6; } | |
278a7a38 AO |
10019 | fi |
10020 | ||
5213506e | 10021 | |
278a7a38 AO |
10022 | done |
10023 | fi | |
10024 | ||
10025 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10026 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10028 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10029 | if test -x $with_build_time_tools/${ncn_progname}; then |
10030 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10032 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10033 | break |
10034 | else | |
5213506e RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10036 | $as_echo "no" >&6; } | |
e8b05380 PB |
10037 | fi |
10038 | done | |
10039 | fi | |
10040 | ||
10041 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10042 | for ncn_progname in c++ g++ cxx gxx; do | |
10043 | if test -n "$ncn_target_tool_prefix"; then | |
10044 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10045 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10047 | $as_echo_n "checking for $ac_word... " >&6; } | |
10048 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10049 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
10050 | else |
10051 | if test -n "$CXX_FOR_TARGET"; then | |
10052 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10053 | else | |
1c710c3c DJ |
10054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10055 | for as_dir in $PATH | |
10056 | do | |
10057 | IFS=$as_save_IFS | |
10058 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10059 | for ac_exec_ext in '' $ac_executable_extensions; do |
10060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10061 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10063 | break 2 |
10064 | fi | |
10065 | done | |
5213506e RW |
10066 | done |
10067 | IFS=$as_save_IFS | |
1c710c3c | 10068 | |
4de997d1 PB |
10069 | fi |
10070 | fi | |
1c710c3c | 10071 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10072 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10074 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10075 | else |
5213506e RW |
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10077 | $as_echo "no" >&6; } | |
4de997d1 PB |
10078 | fi |
10079 | ||
5213506e | 10080 | |
e8b05380 PB |
10081 | fi |
10082 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10083 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10084 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10086 | $as_echo_n "checking for $ac_word... " >&6; } | |
10087 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10088 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10089 | else |
2693c0b0 PB |
10090 | if test -n "$CXX_FOR_TARGET"; then |
10091 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10092 | else |
1c710c3c DJ |
10093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10094 | for as_dir in $PATH | |
10095 | do | |
10096 | IFS=$as_save_IFS | |
10097 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10098 | for ac_exec_ext in '' $ac_executable_extensions; do |
10099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10100 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10102 | break 2 |
10103 | fi | |
10104 | done | |
5213506e RW |
10105 | done |
10106 | IFS=$as_save_IFS | |
1c710c3c | 10107 | |
4de997d1 PB |
10108 | fi |
10109 | fi | |
1c710c3c | 10110 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10111 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10113 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10114 | else |
5213506e RW |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10116 | $as_echo "no" >&6; } | |
4de997d1 | 10117 | fi |
1c710c3c | 10118 | |
5213506e | 10119 | |
e8b05380 PB |
10120 | fi |
10121 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10122 | done | |
10123 | fi | |
1c710c3c | 10124 | |
2693c0b0 PB |
10125 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10126 | set dummy c++ g++ cxx gxx | |
10127 | if test $build = $target ; then | |
10128 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10129 | else |
2693c0b0 | 10130 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10131 | fi |
1c00b503 PB |
10132 | else |
10133 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10134 | fi |
10135 | ||
278a7a38 AO |
10136 | |
10137 | ||
10138 | if test -n "$GCC_FOR_TARGET"; then | |
10139 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10140 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10141 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10142 | fi | |
10143 | ||
10144 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10145 | for ncn_progname in gcc; do | |
10146 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10147 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10149 | $as_echo_n "checking for $ac_word... " >&6; } | |
10150 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10151 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10152 | else |
10153 | if test -n "$GCC_FOR_TARGET"; then | |
10154 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10155 | else | |
10156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10157 | for as_dir in $PATH | |
10158 | do | |
10159 | IFS=$as_save_IFS | |
10160 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10161 | for ac_exec_ext in '' $ac_executable_extensions; do |
10162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10163 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10165 | break 2 |
10166 | fi | |
10167 | done | |
5213506e RW |
10168 | done |
10169 | IFS=$as_save_IFS | |
278a7a38 AO |
10170 | |
10171 | fi | |
10172 | fi | |
10173 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10174 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
10175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10176 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 10177 | else |
5213506e RW |
10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10179 | $as_echo "no" >&6; } | |
278a7a38 AO |
10180 | fi |
10181 | ||
5213506e | 10182 | |
278a7a38 AO |
10183 | done |
10184 | fi | |
10185 | ||
10186 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10187 | for ncn_progname in gcc; do |
5213506e RW |
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10189 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10190 | if test -x $with_build_time_tools/${ncn_progname}; then |
10191 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10193 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10194 | break |
10195 | else | |
5213506e RW |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10197 | $as_echo "no" >&6; } | |
e8b05380 PB |
10198 | fi |
10199 | done | |
10200 | fi | |
10201 | ||
10202 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10203 | for ncn_progname in gcc; do | |
10204 | if test -n "$ncn_target_tool_prefix"; then | |
10205 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10206 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10208 | $as_echo_n "checking for $ac_word... " >&6; } | |
10209 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10210 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10211 | else |
e8b05380 PB |
10212 | if test -n "$GCC_FOR_TARGET"; then |
10213 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10214 | else |
1c710c3c DJ |
10215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10216 | for as_dir in $PATH | |
10217 | do | |
10218 | IFS=$as_save_IFS | |
10219 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10220 | for ac_exec_ext in '' $ac_executable_extensions; do |
10221 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10222 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10224 | break 2 |
10225 | fi | |
10226 | done | |
5213506e RW |
10227 | done |
10228 | IFS=$as_save_IFS | |
1c710c3c | 10229 | |
ca9f4b81 AO |
10230 | fi |
10231 | fi | |
1c710c3c | 10232 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10233 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10235 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10236 | else |
5213506e RW |
10237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10238 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10239 | fi |
10240 | ||
5213506e | 10241 | |
e8b05380 PB |
10242 | fi |
10243 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10244 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10245 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10247 | $as_echo_n "checking for $ac_word... " >&6; } | |
10248 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10249 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10250 | else |
e8b05380 PB |
10251 | if test -n "$GCC_FOR_TARGET"; then |
10252 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10253 | else |
1c710c3c DJ |
10254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10255 | for as_dir in $PATH | |
10256 | do | |
10257 | IFS=$as_save_IFS | |
10258 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10259 | for ac_exec_ext in '' $ac_executable_extensions; do |
10260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10261 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10263 | break 2 |
10264 | fi | |
10265 | done | |
5213506e RW |
10266 | done |
10267 | IFS=$as_save_IFS | |
1c710c3c | 10268 | |
ca9f4b81 AO |
10269 | fi |
10270 | fi | |
1c710c3c | 10271 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10272 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10274 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10275 | else |
5213506e RW |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10277 | $as_echo "no" >&6; } | |
ca9f4b81 | 10278 | fi |
1c710c3c | 10279 | |
5213506e | 10280 | |
e8b05380 PB |
10281 | fi |
10282 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10283 | done | |
10284 | fi | |
1c710c3c | 10285 | |
e8b05380 PB |
10286 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10287 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10288 | else |
10289 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10290 | fi |
10291 | ||
278a7a38 AO |
10292 | |
10293 | ||
10294 | if test -n "$GCJ_FOR_TARGET"; then | |
10295 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10296 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10297 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10298 | fi | |
10299 | ||
10300 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10301 | for ncn_progname in gcj; do | |
10302 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10303 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10305 | $as_echo_n "checking for $ac_word... " >&6; } | |
10306 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10307 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10308 | else |
10309 | if test -n "$GCJ_FOR_TARGET"; then | |
10310 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10311 | else | |
10312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10313 | for as_dir in $PATH | |
10314 | do | |
10315 | IFS=$as_save_IFS | |
10316 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10317 | for ac_exec_ext in '' $ac_executable_extensions; do |
10318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10319 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10321 | break 2 |
10322 | fi | |
10323 | done | |
5213506e RW |
10324 | done |
10325 | IFS=$as_save_IFS | |
278a7a38 AO |
10326 | |
10327 | fi | |
10328 | fi | |
10329 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10330 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10332 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10333 | else |
5213506e RW |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10335 | $as_echo "no" >&6; } | |
278a7a38 AO |
10336 | fi |
10337 | ||
5213506e | 10338 | |
278a7a38 AO |
10339 | done |
10340 | fi | |
10341 | ||
10342 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10343 | for ncn_progname in gcj; do |
5213506e RW |
10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10345 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10346 | if test -x $with_build_time_tools/${ncn_progname}; then |
10347 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10349 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10350 | break |
10351 | else | |
5213506e RW |
10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10353 | $as_echo "no" >&6; } | |
e8b05380 PB |
10354 | fi |
10355 | done | |
10356 | fi | |
10357 | ||
10358 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10359 | for ncn_progname in gcj; do | |
10360 | if test -n "$ncn_target_tool_prefix"; then | |
10361 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10362 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10364 | $as_echo_n "checking for $ac_word... " >&6; } | |
10365 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10366 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10367 | else |
fb0103e5 RG |
10368 | if test -n "$GCJ_FOR_TARGET"; then |
10369 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10370 | else | |
1c710c3c DJ |
10371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10372 | for as_dir in $PATH | |
10373 | do | |
10374 | IFS=$as_save_IFS | |
10375 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10376 | for ac_exec_ext in '' $ac_executable_extensions; do |
10377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10378 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10380 | break 2 |
10381 | fi | |
10382 | done | |
5213506e RW |
10383 | done |
10384 | IFS=$as_save_IFS | |
1c710c3c | 10385 | |
e8b05380 PB |
10386 | fi |
10387 | fi | |
278a7a38 AO |
10388 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10389 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10391 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10392 | else |
5213506e RW |
10393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10394 | $as_echo "no" >&6; } | |
278a7a38 AO |
10395 | fi |
10396 | ||
5213506e | 10397 | |
278a7a38 AO |
10398 | fi |
10399 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10400 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10401 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10403 | $as_echo_n "checking for $ac_word... " >&6; } | |
10404 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10405 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10406 | else |
10407 | if test -n "$GCJ_FOR_TARGET"; then | |
10408 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10409 | else | |
10410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10411 | for as_dir in $PATH | |
10412 | do | |
10413 | IFS=$as_save_IFS | |
10414 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10415 | for ac_exec_ext in '' $ac_executable_extensions; do |
10416 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10417 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10419 | break 2 |
10420 | fi | |
10421 | done | |
5213506e RW |
10422 | done |
10423 | IFS=$as_save_IFS | |
278a7a38 AO |
10424 | |
10425 | fi | |
10426 | fi | |
10427 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10428 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10430 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10431 | else |
5213506e RW |
10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10433 | $as_echo "no" >&6; } | |
278a7a38 AO |
10434 | fi |
10435 | ||
5213506e | 10436 | |
278a7a38 AO |
10437 | fi |
10438 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10439 | done | |
10440 | fi | |
10441 | ||
10442 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10443 | set dummy gcj | |
10444 | if test $build = $target ; then | |
10445 | GCJ_FOR_TARGET="$2" | |
10446 | else | |
10447 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10448 | fi | |
1c00b503 PB |
10449 | else |
10450 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
278a7a38 AO |
10451 | fi |
10452 | ||
10453 | ||
10454 | ||
10455 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10456 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10457 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10458 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10459 | fi |
10460 | ||
278a7a38 AO |
10461 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10462 | for ncn_progname in gfortran; do | |
10463 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10464 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10466 | $as_echo_n "checking for $ac_word... " >&6; } | |
10467 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10468 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10469 | else |
278a7a38 AO |
10470 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10471 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10472 | else |
1c710c3c DJ |
10473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10474 | for as_dir in $PATH | |
10475 | do | |
10476 | IFS=$as_save_IFS | |
10477 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10478 | for ac_exec_ext in '' $ac_executable_extensions; do |
10479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10480 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10482 | break 2 |
10483 | fi | |
10484 | done | |
5213506e RW |
10485 | done |
10486 | IFS=$as_save_IFS | |
1c710c3c | 10487 | |
e8b05380 PB |
10488 | fi |
10489 | fi | |
278a7a38 AO |
10490 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10491 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10493 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10494 | else |
5213506e RW |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10496 | $as_echo "no" >&6; } | |
e8b05380 | 10497 | fi |
1c710c3c | 10498 | |
5213506e | 10499 | |
e8b05380 PB |
10500 | done |
10501 | fi | |
1c710c3c | 10502 | |
278a7a38 | 10503 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10504 | for ncn_progname in gfortran; do |
5213506e RW |
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10506 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10507 | if test -x $with_build_time_tools/${ncn_progname}; then |
10508 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10510 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10511 | break |
10512 | else | |
5213506e RW |
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10514 | $as_echo "no" >&6; } | |
e8b05380 PB |
10515 | fi |
10516 | done | |
10517 | fi | |
10518 | ||
10519 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10520 | for ncn_progname in gfortran; do | |
10521 | if test -n "$ncn_target_tool_prefix"; then | |
10522 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10523 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10525 | $as_echo_n "checking for $ac_word... " >&6; } | |
10526 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10527 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10528 | else |
10529 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10530 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10531 | else | |
10532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10533 | for as_dir in $PATH | |
10534 | do | |
10535 | IFS=$as_save_IFS | |
10536 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10537 | for ac_exec_ext in '' $ac_executable_extensions; do |
10538 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10539 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10541 | break 2 |
10542 | fi | |
10543 | done | |
5213506e RW |
10544 | done |
10545 | IFS=$as_save_IFS | |
1c710c3c | 10546 | |
e8b05380 PB |
10547 | fi |
10548 | fi | |
1c710c3c | 10549 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10550 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10552 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10553 | else |
5213506e RW |
10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10555 | $as_echo "no" >&6; } | |
e8b05380 PB |
10556 | fi |
10557 | ||
5213506e | 10558 | |
e8b05380 PB |
10559 | fi |
10560 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10561 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10562 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10564 | $as_echo_n "checking for $ac_word... " >&6; } | |
10565 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10566 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10567 | else |
10568 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10569 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10570 | else | |
1c710c3c DJ |
10571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10572 | for as_dir in $PATH | |
10573 | do | |
10574 | IFS=$as_save_IFS | |
10575 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10576 | for ac_exec_ext in '' $ac_executable_extensions; do |
10577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10578 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10580 | break 2 |
10581 | fi | |
10582 | done | |
5213506e RW |
10583 | done |
10584 | IFS=$as_save_IFS | |
1c710c3c | 10585 | |
e8b05380 PB |
10586 | fi |
10587 | fi | |
1c710c3c | 10588 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10589 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10591 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10592 | else |
5213506e RW |
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10594 | $as_echo "no" >&6; } | |
e8b05380 | 10595 | fi |
1c710c3c | 10596 | |
5213506e | 10597 | |
e8b05380 PB |
10598 | fi |
10599 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10600 | done | |
10601 | fi | |
1c710c3c | 10602 | |
e8b05380 PB |
10603 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10604 | set dummy gfortran | |
2693c0b0 | 10605 | if test $build = $target ; then |
e8b05380 | 10606 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10607 | else |
e8b05380 PB |
10608 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10609 | fi | |
1c00b503 PB |
10610 | else |
10611 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10612 | fi |
10613 | ||
10614 | ||
10615 | ||
632e2a07 ILT |
10616 | if test -n "$GOC_FOR_TARGET"; then |
10617 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10618 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10619 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10620 | fi | |
10621 | ||
10622 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10623 | for ncn_progname in gccgo; do | |
10624 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10625 | set dummy ${ncn_progname}; ac_word=$2 | |
10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10627 | $as_echo_n "checking for $ac_word... " >&6; } | |
10628 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10629 | $as_echo_n "(cached) " >&6 | |
10630 | else | |
10631 | if test -n "$GOC_FOR_TARGET"; then | |
10632 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10633 | else | |
10634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10635 | for as_dir in $PATH | |
10636 | do | |
10637 | IFS=$as_save_IFS | |
10638 | test -z "$as_dir" && as_dir=. | |
10639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10641 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10643 | break 2 | |
10644 | fi | |
10645 | done | |
10646 | done | |
10647 | IFS=$as_save_IFS | |
10648 | ||
10649 | fi | |
10650 | fi | |
10651 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10652 | if test -n "$GOC_FOR_TARGET"; then | |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10654 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10655 | else | |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10657 | $as_echo "no" >&6; } | |
10658 | fi | |
10659 | ||
10660 | ||
10661 | done | |
10662 | fi | |
10663 | ||
10664 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10665 | for ncn_progname in gccgo; do | |
10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10667 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10668 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10669 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10671 | $as_echo "yes" >&6; } | |
10672 | break | |
10673 | else | |
10674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10675 | $as_echo "no" >&6; } | |
10676 | fi | |
10677 | done | |
10678 | fi | |
10679 | ||
10680 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10681 | for ncn_progname in gccgo; do | |
10682 | if test -n "$ncn_target_tool_prefix"; then | |
10683 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10684 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10686 | $as_echo_n "checking for $ac_word... " >&6; } | |
10687 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10688 | $as_echo_n "(cached) " >&6 | |
10689 | else | |
10690 | if test -n "$GOC_FOR_TARGET"; then | |
10691 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10692 | else | |
10693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10694 | for as_dir in $PATH | |
10695 | do | |
10696 | IFS=$as_save_IFS | |
10697 | test -z "$as_dir" && as_dir=. | |
10698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10700 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10702 | break 2 | |
10703 | fi | |
10704 | done | |
10705 | done | |
10706 | IFS=$as_save_IFS | |
10707 | ||
10708 | fi | |
10709 | fi | |
10710 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10711 | if test -n "$GOC_FOR_TARGET"; then | |
10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10713 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10714 | else | |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10716 | $as_echo "no" >&6; } | |
10717 | fi | |
10718 | ||
10719 | ||
10720 | fi | |
10721 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10722 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10723 | set dummy ${ncn_progname}; ac_word=$2 | |
10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10725 | $as_echo_n "checking for $ac_word... " >&6; } | |
10726 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10727 | $as_echo_n "(cached) " >&6 | |
10728 | else | |
10729 | if test -n "$GOC_FOR_TARGET"; then | |
10730 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10731 | else | |
10732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10733 | for as_dir in $PATH | |
10734 | do | |
10735 | IFS=$as_save_IFS | |
10736 | test -z "$as_dir" && as_dir=. | |
10737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10739 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10741 | break 2 | |
10742 | fi | |
10743 | done | |
10744 | done | |
10745 | IFS=$as_save_IFS | |
10746 | ||
10747 | fi | |
10748 | fi | |
10749 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10750 | if test -n "$GOC_FOR_TARGET"; then | |
10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10752 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10753 | else | |
10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10755 | $as_echo "no" >&6; } | |
10756 | fi | |
10757 | ||
10758 | ||
10759 | fi | |
10760 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10761 | done | |
10762 | fi | |
10763 | ||
10764 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10765 | set dummy gccgo | |
10766 | if test $build = $target ; then | |
10767 | GOC_FOR_TARGET="$2" | |
10768 | else | |
10769 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10770 | fi | |
10771 | else | |
10772 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10773 | fi | |
10774 | ||
10775 | ||
10776 | ||
e8b05380 PB |
10777 | cat > conftest.c << \EOF |
10778 | #ifdef __GNUC__ | |
10779 | gcc_yay; | |
10780 | #endif | |
10781 | EOF | |
10782 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10783 | have_gcc_for_target=yes | |
10784 | else | |
10785 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10786 | have_gcc_for_target=no | |
10787 | fi | |
10788 | rm conftest.c | |
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10794 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10796 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10797 | if test -x $with_build_time_tools/ar; then |
10798 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10799 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10801 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 10802 | else |
5213506e RW |
10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10804 | $as_echo "no" >&6; } | |
d1f8db0c | 10805 | fi |
e8b05380 PB |
10806 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10807 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
10808 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10809 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
10810 | fi |
10811 | fi | |
3e19841a | 10812 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10813 | # Extract the first word of "ar", so it can be a program name with args. |
10814 | set dummy ar; ac_word=$2 | |
5213506e RW |
10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10816 | $as_echo_n "checking for $ac_word... " >&6; } | |
10817 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10818 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10819 | else |
1c710c3c DJ |
10820 | case $AR_FOR_TARGET in |
10821 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10822 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10823 | ;; | |
e8b05380 | 10824 | *) |
1c710c3c DJ |
10825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10826 | for as_dir in $gcc_cv_tool_dirs | |
10827 | do | |
10828 | IFS=$as_save_IFS | |
10829 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10830 | for ac_exec_ext in '' $ac_executable_extensions; do |
10831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10832 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10834 | break 2 |
10835 | fi | |
10836 | done | |
5213506e RW |
10837 | done |
10838 | IFS=$as_save_IFS | |
1c710c3c | 10839 | |
e8b05380 PB |
10840 | ;; |
10841 | esac | |
10842 | fi | |
1c710c3c | 10843 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 10844 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10846 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10847 | else |
5213506e RW |
10848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10849 | $as_echo "no" >&6; } | |
4de997d1 PB |
10850 | fi |
10851 | ||
5213506e | 10852 | |
e8b05380 PB |
10853 | fi |
10854 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
10855 | |
10856 | ||
10857 | if test -n "$AR_FOR_TARGET"; then | |
10858 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10859 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10860 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10861 | fi | |
10862 | ||
10863 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10864 | for ncn_progname in ar; do | |
10865 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10866 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10868 | $as_echo_n "checking for $ac_word... " >&6; } | |
10869 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10870 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10871 | else |
10872 | if test -n "$AR_FOR_TARGET"; then | |
10873 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10874 | else | |
10875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10876 | for as_dir in $PATH | |
10877 | do | |
10878 | IFS=$as_save_IFS | |
10879 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10880 | for ac_exec_ext in '' $ac_executable_extensions; do |
10881 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10882 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10884 | break 2 |
10885 | fi | |
10886 | done | |
5213506e RW |
10887 | done |
10888 | IFS=$as_save_IFS | |
278a7a38 AO |
10889 | |
10890 | fi | |
10891 | fi | |
10892 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10893 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10895 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 10896 | else |
5213506e RW |
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10898 | $as_echo "no" >&6; } | |
278a7a38 AO |
10899 | fi |
10900 | ||
5213506e | 10901 | |
278a7a38 AO |
10902 | done |
10903 | fi | |
10904 | ||
10905 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10906 | for ncn_progname in ar; do |
5213506e RW |
10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10908 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10909 | if test -x $with_build_time_tools/${ncn_progname}; then |
10910 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10912 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10913 | break |
10914 | else | |
5213506e RW |
10915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10916 | $as_echo "no" >&6; } | |
e8b05380 PB |
10917 | fi |
10918 | done | |
10919 | fi | |
10920 | ||
10921 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10922 | for ncn_progname in ar; do | |
10923 | if test -n "$ncn_target_tool_prefix"; then | |
10924 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10925 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10927 | $as_echo_n "checking for $ac_word... " >&6; } | |
10928 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10929 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10930 | else |
e8b05380 PB |
10931 | if test -n "$AR_FOR_TARGET"; then |
10932 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10933 | else |
1c710c3c DJ |
10934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10935 | for as_dir in $PATH | |
10936 | do | |
10937 | IFS=$as_save_IFS | |
10938 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10939 | for ac_exec_ext in '' $ac_executable_extensions; do |
10940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10941 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10943 | break 2 |
10944 | fi | |
10945 | done | |
5213506e RW |
10946 | done |
10947 | IFS=$as_save_IFS | |
1c710c3c | 10948 | |
4de997d1 PB |
10949 | fi |
10950 | fi | |
1c710c3c | 10951 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10952 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10954 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 10955 | else |
5213506e RW |
10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10957 | $as_echo "no" >&6; } | |
4de997d1 PB |
10958 | fi |
10959 | ||
5213506e | 10960 | |
e8b05380 PB |
10961 | fi |
10962 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10963 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10964 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10966 | $as_echo_n "checking for $ac_word... " >&6; } | |
10967 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10968 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10969 | else |
10970 | if test -n "$AR_FOR_TARGET"; then | |
10971 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10972 | else | |
1c710c3c DJ |
10973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10974 | for as_dir in $PATH | |
10975 | do | |
10976 | IFS=$as_save_IFS | |
10977 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10978 | for ac_exec_ext in '' $ac_executable_extensions; do |
10979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10980 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10982 | break 2 |
10983 | fi | |
10984 | done | |
5213506e RW |
10985 | done |
10986 | IFS=$as_save_IFS | |
1c710c3c | 10987 | |
e8b05380 PB |
10988 | fi |
10989 | fi | |
1c710c3c | 10990 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10991 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10993 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10994 | else |
5213506e RW |
10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10996 | $as_echo "no" >&6; } | |
e8b05380 | 10997 | fi |
1c710c3c | 10998 | |
5213506e | 10999 | |
e8b05380 PB |
11000 | fi |
11001 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11002 | done | |
11003 | fi | |
1c710c3c | 11004 | |
e8b05380 PB |
11005 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11006 | set dummy ar | |
11007 | if test $build = $target ; then | |
11008 | AR_FOR_TARGET="$2" | |
11009 | else | |
11010 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 11011 | fi |
1c00b503 PB |
11012 | else |
11013 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
11014 | fi |
11015 | ||
d1f8db0c PB |
11016 | else |
11017 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
11018 | fi |
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11024 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11026 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11027 | if test -x $with_build_time_tools/as; then |
11028 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11029 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11031 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 11032 | else |
5213506e RW |
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11034 | $as_echo "no" >&6; } | |
d1f8db0c | 11035 | fi |
e8b05380 PB |
11036 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11037 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
11038 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11039 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
11040 | fi |
11041 | fi | |
3e19841a | 11042 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11043 | # Extract the first word of "as", so it can be a program name with args. |
11044 | set dummy as; ac_word=$2 | |
5213506e RW |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11046 | $as_echo_n "checking for $ac_word... " >&6; } | |
11047 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11048 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11049 | else |
1c710c3c DJ |
11050 | case $AS_FOR_TARGET in |
11051 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11052 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11053 | ;; | |
e8b05380 | 11054 | *) |
1c710c3c DJ |
11055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11056 | for as_dir in $gcc_cv_tool_dirs | |
11057 | do | |
11058 | IFS=$as_save_IFS | |
11059 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11060 | for ac_exec_ext in '' $ac_executable_extensions; do |
11061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11062 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11064 | break 2 |
11065 | fi | |
11066 | done | |
5213506e RW |
11067 | done |
11068 | IFS=$as_save_IFS | |
1c710c3c | 11069 | |
e8b05380 PB |
11070 | ;; |
11071 | esac | |
11072 | fi | |
1c710c3c | 11073 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 11074 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11076 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11077 | else |
5213506e RW |
11078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11079 | $as_echo "no" >&6; } | |
e8b05380 PB |
11080 | fi |
11081 | ||
5213506e | 11082 | |
e8b05380 PB |
11083 | fi |
11084 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11085 | |
11086 | ||
11087 | if test -n "$AS_FOR_TARGET"; then | |
11088 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11089 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11090 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11091 | fi | |
11092 | ||
11093 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11094 | for ncn_progname in as; do | |
11095 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11096 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11098 | $as_echo_n "checking for $ac_word... " >&6; } | |
11099 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11100 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11101 | else |
11102 | if test -n "$AS_FOR_TARGET"; then | |
11103 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11104 | else | |
11105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11106 | for as_dir in $PATH | |
11107 | do | |
11108 | IFS=$as_save_IFS | |
11109 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11110 | for ac_exec_ext in '' $ac_executable_extensions; do |
11111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11112 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11114 | break 2 |
11115 | fi | |
11116 | done | |
5213506e RW |
11117 | done |
11118 | IFS=$as_save_IFS | |
278a7a38 AO |
11119 | |
11120 | fi | |
11121 | fi | |
11122 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11123 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11125 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 11126 | else |
5213506e RW |
11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11128 | $as_echo "no" >&6; } | |
278a7a38 AO |
11129 | fi |
11130 | ||
5213506e | 11131 | |
278a7a38 AO |
11132 | done |
11133 | fi | |
11134 | ||
11135 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11136 | for ncn_progname in as; do |
5213506e RW |
11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11138 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11139 | if test -x $with_build_time_tools/${ncn_progname}; then |
11140 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11142 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11143 | break |
11144 | else | |
5213506e RW |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11146 | $as_echo "no" >&6; } | |
e8b05380 PB |
11147 | fi |
11148 | done | |
11149 | fi | |
11150 | ||
11151 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11152 | for ncn_progname in as; do | |
11153 | if test -n "$ncn_target_tool_prefix"; then | |
11154 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11155 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11157 | $as_echo_n "checking for $ac_word... " >&6; } | |
11158 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11159 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
11160 | else |
11161 | if test -n "$AS_FOR_TARGET"; then | |
11162 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11163 | else | |
1c710c3c DJ |
11164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11165 | for as_dir in $PATH | |
11166 | do | |
11167 | IFS=$as_save_IFS | |
11168 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11169 | for ac_exec_ext in '' $ac_executable_extensions; do |
11170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11171 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11173 | break 2 |
11174 | fi | |
11175 | done | |
5213506e RW |
11176 | done |
11177 | IFS=$as_save_IFS | |
1c710c3c | 11178 | |
e8b05380 PB |
11179 | fi |
11180 | fi | |
1c710c3c | 11181 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11182 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11184 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11185 | else |
5213506e RW |
11186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11187 | $as_echo "no" >&6; } | |
e8b05380 PB |
11188 | fi |
11189 | ||
5213506e | 11190 | |
e8b05380 PB |
11191 | fi |
11192 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11193 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11194 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11196 | $as_echo_n "checking for $ac_word... " >&6; } | |
11197 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11198 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11199 | else |
e8b05380 PB |
11200 | if test -n "$AS_FOR_TARGET"; then |
11201 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11202 | else |
1c710c3c DJ |
11203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11204 | for as_dir in $PATH | |
11205 | do | |
11206 | IFS=$as_save_IFS | |
11207 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11208 | for ac_exec_ext in '' $ac_executable_extensions; do |
11209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11210 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11212 | break 2 |
11213 | fi | |
11214 | done | |
5213506e RW |
11215 | done |
11216 | IFS=$as_save_IFS | |
1c710c3c | 11217 | |
4de997d1 PB |
11218 | fi |
11219 | fi | |
1c710c3c | 11220 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11221 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11223 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11224 | else |
5213506e RW |
11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11226 | $as_echo "no" >&6; } | |
4de997d1 | 11227 | fi |
1c710c3c | 11228 | |
5213506e | 11229 | |
e8b05380 PB |
11230 | fi |
11231 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11232 | done | |
11233 | fi | |
1c710c3c | 11234 | |
e8b05380 PB |
11235 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11236 | set dummy as | |
11237 | if test $build = $target ; then | |
11238 | AS_FOR_TARGET="$2" | |
11239 | else | |
11240 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11241 | fi |
1c00b503 PB |
11242 | else |
11243 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11244 | fi |
2693c0b0 | 11245 | |
d1f8db0c PB |
11246 | else |
11247 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11248 | fi |
11249 | ||
e8b05380 PB |
11250 | |
11251 | ||
11252 | ||
11253 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11254 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11256 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11257 | if test -x $with_build_time_tools/dlltool; then |
11258 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11259 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11261 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11262 | else |
5213506e RW |
11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11264 | $as_echo "no" >&6; } | |
d1f8db0c | 11265 | fi |
e8b05380 PB |
11266 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11267 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11268 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11269 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11270 | fi |
11271 | fi | |
3e19841a | 11272 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11273 | # Extract the first word of "dlltool", so it can be a program name with args. |
11274 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11276 | $as_echo_n "checking for $ac_word... " >&6; } | |
11277 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11278 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11279 | else |
1c710c3c DJ |
11280 | case $DLLTOOL_FOR_TARGET in |
11281 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11282 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11283 | ;; | |
e8b05380 | 11284 | *) |
1c710c3c DJ |
11285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11286 | for as_dir in $gcc_cv_tool_dirs | |
11287 | do | |
11288 | IFS=$as_save_IFS | |
11289 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11290 | for ac_exec_ext in '' $ac_executable_extensions; do |
11291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11292 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11294 | break 2 |
11295 | fi | |
11296 | done | |
5213506e RW |
11297 | done |
11298 | IFS=$as_save_IFS | |
1c710c3c | 11299 | |
e8b05380 PB |
11300 | ;; |
11301 | esac | |
4de997d1 | 11302 | fi |
1c710c3c | 11303 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11304 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11306 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11307 | else |
5213506e RW |
11308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11309 | $as_echo "no" >&6; } | |
4de997d1 PB |
11310 | fi |
11311 | ||
5213506e | 11312 | |
e8b05380 PB |
11313 | fi |
11314 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11315 | |
11316 | ||
11317 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11318 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11319 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11320 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11321 | fi | |
11322 | ||
11323 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11324 | for ncn_progname in dlltool; do | |
11325 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11326 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11328 | $as_echo_n "checking for $ac_word... " >&6; } | |
11329 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11330 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11331 | else |
11332 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11333 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11334 | else | |
11335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11336 | for as_dir in $PATH | |
11337 | do | |
11338 | IFS=$as_save_IFS | |
11339 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11340 | for ac_exec_ext in '' $ac_executable_extensions; do |
11341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11342 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11344 | break 2 |
11345 | fi | |
11346 | done | |
5213506e RW |
11347 | done |
11348 | IFS=$as_save_IFS | |
278a7a38 AO |
11349 | |
11350 | fi | |
11351 | fi | |
11352 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11353 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11355 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11356 | else |
5213506e RW |
11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11358 | $as_echo "no" >&6; } | |
278a7a38 AO |
11359 | fi |
11360 | ||
5213506e | 11361 | |
278a7a38 AO |
11362 | done |
11363 | fi | |
11364 | ||
11365 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11366 | for ncn_progname in dlltool; do |
5213506e RW |
11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11368 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11369 | if test -x $with_build_time_tools/${ncn_progname}; then |
11370 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11372 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11373 | break |
11374 | else | |
5213506e RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11376 | $as_echo "no" >&6; } | |
e8b05380 PB |
11377 | fi |
11378 | done | |
11379 | fi | |
11380 | ||
11381 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11382 | for ncn_progname in dlltool; do | |
11383 | if test -n "$ncn_target_tool_prefix"; then | |
11384 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11385 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11387 | $as_echo_n "checking for $ac_word... " >&6; } | |
11388 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11389 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11390 | else |
e8b05380 PB |
11391 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11392 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11393 | else |
1c710c3c DJ |
11394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11395 | for as_dir in $PATH | |
11396 | do | |
11397 | IFS=$as_save_IFS | |
11398 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11399 | for ac_exec_ext in '' $ac_executable_extensions; do |
11400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11401 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11403 | break 2 |
11404 | fi | |
11405 | done | |
5213506e RW |
11406 | done |
11407 | IFS=$as_save_IFS | |
1c710c3c | 11408 | |
4de997d1 PB |
11409 | fi |
11410 | fi | |
1c710c3c | 11411 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11412 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11414 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11415 | else |
5213506e RW |
11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11417 | $as_echo "no" >&6; } | |
4de997d1 | 11418 | fi |
4de997d1 | 11419 | |
5213506e | 11420 | |
e8b05380 PB |
11421 | fi |
11422 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11423 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11424 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11426 | $as_echo_n "checking for $ac_word... " >&6; } | |
11427 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11428 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11429 | else |
e8b05380 PB |
11430 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11431 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11432 | else |
1c710c3c DJ |
11433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11434 | for as_dir in $PATH | |
11435 | do | |
11436 | IFS=$as_save_IFS | |
11437 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11438 | for ac_exec_ext in '' $ac_executable_extensions; do |
11439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11440 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11442 | break 2 |
11443 | fi | |
11444 | done | |
5213506e RW |
11445 | done |
11446 | IFS=$as_save_IFS | |
1c710c3c | 11447 | |
4de997d1 PB |
11448 | fi |
11449 | fi | |
1c710c3c | 11450 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11451 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11453 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11454 | else |
5213506e RW |
11455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11456 | $as_echo "no" >&6; } | |
4de997d1 | 11457 | fi |
1c710c3c | 11458 | |
5213506e | 11459 | |
e8b05380 PB |
11460 | fi |
11461 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11462 | done | |
11463 | fi | |
1c710c3c | 11464 | |
e8b05380 PB |
11465 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11466 | set dummy dlltool | |
11467 | if test $build = $target ; then | |
11468 | DLLTOOL_FOR_TARGET="$2" | |
11469 | else | |
11470 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11471 | fi | |
1c00b503 PB |
11472 | else |
11473 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11474 | fi |
11475 | ||
d1f8db0c PB |
11476 | else |
11477 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11478 | fi |
11479 | ||
4de997d1 | 11480 | |
e8b05380 PB |
11481 | |
11482 | ||
11483 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11484 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11486 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11487 | if test -x $with_build_time_tools/ld; then |
11488 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11489 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11491 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11492 | else |
5213506e RW |
11493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11494 | $as_echo "no" >&6; } | |
d1f8db0c | 11495 | fi |
e8b05380 PB |
11496 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11497 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11498 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11499 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11500 | fi |
e8b05380 | 11501 | fi |
3e19841a | 11502 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11503 | # Extract the first word of "ld", so it can be a program name with args. |
11504 | set dummy ld; ac_word=$2 | |
5213506e RW |
11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11506 | $as_echo_n "checking for $ac_word... " >&6; } | |
11507 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11508 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11509 | else |
1c710c3c DJ |
11510 | case $LD_FOR_TARGET in |
11511 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11512 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11513 | ;; | |
e8b05380 | 11514 | *) |
1c710c3c DJ |
11515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11516 | for as_dir in $gcc_cv_tool_dirs | |
11517 | do | |
11518 | IFS=$as_save_IFS | |
11519 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11520 | for ac_exec_ext in '' $ac_executable_extensions; do |
11521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11522 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11524 | break 2 |
11525 | fi | |
11526 | done | |
5213506e RW |
11527 | done |
11528 | IFS=$as_save_IFS | |
1c710c3c | 11529 | |
e8b05380 PB |
11530 | ;; |
11531 | esac | |
4de997d1 | 11532 | fi |
1c710c3c | 11533 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11534 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11536 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11537 | else |
5213506e RW |
11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11539 | $as_echo "no" >&6; } | |
4de997d1 | 11540 | fi |
2693c0b0 | 11541 | |
5213506e | 11542 | |
e8b05380 PB |
11543 | fi |
11544 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11545 | |
11546 | ||
11547 | if test -n "$LD_FOR_TARGET"; then | |
11548 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11549 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11550 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11551 | fi | |
11552 | ||
11553 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11554 | for ncn_progname in ld; do | |
11555 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11556 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11558 | $as_echo_n "checking for $ac_word... " >&6; } | |
11559 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11560 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11561 | else |
11562 | if test -n "$LD_FOR_TARGET"; then | |
11563 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11564 | else | |
11565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11566 | for as_dir in $PATH | |
11567 | do | |
11568 | IFS=$as_save_IFS | |
11569 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11570 | for ac_exec_ext in '' $ac_executable_extensions; do |
11571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11572 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11574 | break 2 |
11575 | fi | |
11576 | done | |
5213506e RW |
11577 | done |
11578 | IFS=$as_save_IFS | |
278a7a38 AO |
11579 | |
11580 | fi | |
11581 | fi | |
11582 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11583 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11585 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 11586 | else |
5213506e RW |
11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11588 | $as_echo "no" >&6; } | |
278a7a38 AO |
11589 | fi |
11590 | ||
5213506e | 11591 | |
278a7a38 AO |
11592 | done |
11593 | fi | |
11594 | ||
11595 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11596 | for ncn_progname in ld; do |
5213506e RW |
11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11598 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11599 | if test -x $with_build_time_tools/${ncn_progname}; then |
11600 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11602 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11603 | break |
11604 | else | |
5213506e RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11606 | $as_echo "no" >&6; } | |
e8b05380 PB |
11607 | fi |
11608 | done | |
ca9f4b81 AO |
11609 | fi |
11610 | ||
e8b05380 PB |
11611 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11612 | for ncn_progname in ld; do | |
11613 | if test -n "$ncn_target_tool_prefix"; then | |
11614 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11615 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11617 | $as_echo_n "checking for $ac_word... " >&6; } | |
11618 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11619 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11620 | else |
4de997d1 PB |
11621 | if test -n "$LD_FOR_TARGET"; then |
11622 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11623 | else |
1c710c3c DJ |
11624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11625 | for as_dir in $PATH | |
11626 | do | |
11627 | IFS=$as_save_IFS | |
11628 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11629 | for ac_exec_ext in '' $ac_executable_extensions; do |
11630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11631 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11633 | break 2 |
11634 | fi | |
11635 | done | |
5213506e RW |
11636 | done |
11637 | IFS=$as_save_IFS | |
1c710c3c | 11638 | |
ca9f4b81 AO |
11639 | fi |
11640 | fi | |
1c710c3c | 11641 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11642 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11644 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11645 | else |
5213506e RW |
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11647 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11648 | fi |
11649 | ||
5213506e | 11650 | |
e8b05380 PB |
11651 | fi |
11652 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11653 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11654 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11656 | $as_echo_n "checking for $ac_word... " >&6; } | |
11657 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11658 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11659 | else |
2693c0b0 PB |
11660 | if test -n "$LD_FOR_TARGET"; then |
11661 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11662 | else |
1c710c3c DJ |
11663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11664 | for as_dir in $PATH | |
11665 | do | |
11666 | IFS=$as_save_IFS | |
11667 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11668 | for ac_exec_ext in '' $ac_executable_extensions; do |
11669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11670 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11672 | break 2 |
11673 | fi | |
11674 | done | |
5213506e RW |
11675 | done |
11676 | IFS=$as_save_IFS | |
1c710c3c | 11677 | |
ca9f4b81 AO |
11678 | fi |
11679 | fi | |
1c710c3c | 11680 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 11681 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11683 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11684 | else |
5213506e RW |
11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11686 | $as_echo "no" >&6; } | |
ca9f4b81 | 11687 | fi |
1c710c3c | 11688 | |
5213506e | 11689 | |
e8b05380 PB |
11690 | fi |
11691 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11692 | done | |
11693 | fi | |
1c710c3c | 11694 | |
2693c0b0 PB |
11695 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11696 | set dummy ld | |
11697 | if test $build = $target ; then | |
11698 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 11699 | else |
2693c0b0 | 11700 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11701 | fi |
1c00b503 PB |
11702 | else |
11703 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
11704 | fi |
11705 | ||
d1f8db0c PB |
11706 | else |
11707 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
11708 | fi |
11709 | ||
11710 | ||
11711 | ||
11712 | ||
11713 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11714 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11716 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11717 | if test -x $with_build_time_tools/lipo; then |
11718 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11719 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11721 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 11722 | else |
5213506e RW |
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11724 | $as_echo "no" >&6; } | |
d1f8db0c | 11725 | fi |
e8b05380 PB |
11726 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11727 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
11728 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11729 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
11730 | fi |
11731 | fi | |
278a7a38 AO |
11732 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11733 | # Extract the first word of "lipo", so it can be a program name with args. | |
11734 | set dummy lipo; ac_word=$2 | |
5213506e RW |
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11736 | $as_echo_n "checking for $ac_word... " >&6; } | |
11737 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11738 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11739 | else |
11740 | case $LIPO_FOR_TARGET in | |
11741 | [\\/]* | ?:[\\/]*) | |
11742 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11743 | ;; | |
11744 | *) | |
11745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11746 | for as_dir in $gcc_cv_tool_dirs | |
11747 | do | |
11748 | IFS=$as_save_IFS | |
11749 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11750 | for ac_exec_ext in '' $ac_executable_extensions; do |
11751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11752 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11754 | break 2 |
11755 | fi | |
11756 | done | |
5213506e RW |
11757 | done |
11758 | IFS=$as_save_IFS | |
278a7a38 AO |
11759 | |
11760 | ;; | |
11761 | esac | |
11762 | fi | |
11763 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 11764 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11766 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 11767 | else |
5213506e RW |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11769 | $as_echo "no" >&6; } | |
278a7a38 AO |
11770 | fi |
11771 | ||
5213506e | 11772 | |
278a7a38 AO |
11773 | fi |
11774 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11775 | ||
11776 | ||
11777 | if test -n "$LIPO_FOR_TARGET"; then | |
11778 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11779 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11780 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11781 | fi | |
11782 | ||
11783 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11784 | for ncn_progname in lipo; do | |
11785 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11786 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11788 | $as_echo_n "checking for $ac_word... " >&6; } | |
11789 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11790 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11791 | else |
278a7a38 AO |
11792 | if test -n "$LIPO_FOR_TARGET"; then |
11793 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11794 | else | |
11795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11796 | for as_dir in $PATH | |
1c710c3c DJ |
11797 | do |
11798 | IFS=$as_save_IFS | |
11799 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11800 | for ac_exec_ext in '' $ac_executable_extensions; do |
11801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11802 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11804 | break 2 |
11805 | fi | |
11806 | done | |
5213506e RW |
11807 | done |
11808 | IFS=$as_save_IFS | |
1c710c3c | 11809 | |
e8b05380 | 11810 | fi |
278a7a38 AO |
11811 | fi |
11812 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 11813 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11815 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 11816 | else |
5213506e RW |
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11818 | $as_echo "no" >&6; } | |
e8b05380 PB |
11819 | fi |
11820 | ||
5213506e | 11821 | |
278a7a38 | 11822 | done |
e8b05380 | 11823 | fi |
278a7a38 AO |
11824 | |
11825 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11826 | for ncn_progname in lipo; do |
5213506e RW |
11827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11828 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11829 | if test -x $with_build_time_tools/${ncn_progname}; then |
11830 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11832 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11833 | break |
11834 | else | |
5213506e RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11836 | $as_echo "no" >&6; } | |
e8b05380 PB |
11837 | fi |
11838 | done | |
11839 | fi | |
11840 | ||
11841 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11842 | for ncn_progname in lipo; do | |
11843 | if test -n "$ncn_target_tool_prefix"; then | |
11844 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11845 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11847 | $as_echo_n "checking for $ac_word... " >&6; } | |
11848 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11849 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11850 | else |
11851 | if test -n "$LIPO_FOR_TARGET"; then | |
11852 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11853 | else | |
1c710c3c DJ |
11854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11855 | for as_dir in $PATH | |
11856 | do | |
11857 | IFS=$as_save_IFS | |
11858 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11859 | for ac_exec_ext in '' $ac_executable_extensions; do |
11860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11861 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11863 | break 2 |
11864 | fi | |
11865 | done | |
5213506e RW |
11866 | done |
11867 | IFS=$as_save_IFS | |
1c710c3c | 11868 | |
040b1c5a GK |
11869 | fi |
11870 | fi | |
1c710c3c | 11871 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11872 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11874 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11875 | else |
5213506e RW |
11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11877 | $as_echo "no" >&6; } | |
040b1c5a GK |
11878 | fi |
11879 | ||
5213506e | 11880 | |
e8b05380 PB |
11881 | fi |
11882 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11883 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11884 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11886 | $as_echo_n "checking for $ac_word... " >&6; } | |
11887 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11888 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11889 | else |
11890 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
11891 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11892 | else | |
1c710c3c DJ |
11893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11894 | for as_dir in $PATH | |
11895 | do | |
11896 | IFS=$as_save_IFS | |
11897 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11898 | for ac_exec_ext in '' $ac_executable_extensions; do |
11899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11900 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11902 | break 2 |
11903 | fi | |
11904 | done | |
5213506e RW |
11905 | done |
11906 | IFS=$as_save_IFS | |
1c710c3c | 11907 | |
040b1c5a GK |
11908 | fi |
11909 | fi | |
1c710c3c | 11910 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11911 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11913 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11914 | else |
5213506e RW |
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11916 | $as_echo "no" >&6; } | |
040b1c5a | 11917 | fi |
1c710c3c | 11918 | |
5213506e | 11919 | |
e8b05380 PB |
11920 | fi |
11921 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11922 | done | |
11923 | fi | |
1c710c3c | 11924 | |
040b1c5a GK |
11925 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11926 | set dummy lipo | |
11927 | if test $build = $target ; then | |
11928 | LIPO_FOR_TARGET="$2" | |
11929 | else | |
11930 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11931 | fi | |
1c00b503 PB |
11932 | else |
11933 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
11934 | fi |
11935 | ||
d1f8db0c PB |
11936 | else |
11937 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
11938 | fi |
11939 | ||
11940 | ||
11941 | ||
11942 | ||
11943 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11944 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11946 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11947 | if test -x $with_build_time_tools/nm; then |
11948 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11949 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11951 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 11952 | else |
5213506e RW |
11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11954 | $as_echo "no" >&6; } | |
d1f8db0c | 11955 | fi |
e8b05380 PB |
11956 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11957 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
11958 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11959 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
11960 | fi |
11961 | fi | |
3e19841a | 11962 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11963 | # Extract the first word of "nm", so it can be a program name with args. |
11964 | set dummy nm; ac_word=$2 | |
5213506e RW |
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11966 | $as_echo_n "checking for $ac_word... " >&6; } | |
11967 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11968 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11969 | else |
1c710c3c DJ |
11970 | case $NM_FOR_TARGET in |
11971 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11972 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11973 | ;; | |
e8b05380 | 11974 | *) |
1c710c3c DJ |
11975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11976 | for as_dir in $gcc_cv_tool_dirs | |
11977 | do | |
11978 | IFS=$as_save_IFS | |
11979 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11980 | for ac_exec_ext in '' $ac_executable_extensions; do |
11981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11982 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11984 | break 2 |
11985 | fi | |
11986 | done | |
5213506e RW |
11987 | done |
11988 | IFS=$as_save_IFS | |
1c710c3c | 11989 | |
e8b05380 PB |
11990 | ;; |
11991 | esac | |
11992 | fi | |
1c710c3c | 11993 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 11994 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11996 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 11997 | else |
5213506e RW |
11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11999 | $as_echo "no" >&6; } | |
e8b05380 PB |
12000 | fi |
12001 | ||
5213506e | 12002 | |
e8b05380 PB |
12003 | fi |
12004 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
12005 | |
12006 | ||
12007 | if test -n "$NM_FOR_TARGET"; then | |
12008 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12009 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12010 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12011 | fi | |
12012 | ||
12013 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12014 | for ncn_progname in nm; do | |
12015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12016 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12018 | $as_echo_n "checking for $ac_word... " >&6; } | |
12019 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12020 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12021 | else |
12022 | if test -n "$NM_FOR_TARGET"; then | |
12023 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12024 | else | |
12025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12026 | for as_dir in $PATH | |
12027 | do | |
12028 | IFS=$as_save_IFS | |
12029 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12030 | for ac_exec_ext in '' $ac_executable_extensions; do |
12031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12032 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12034 | break 2 |
12035 | fi | |
12036 | done | |
5213506e RW |
12037 | done |
12038 | IFS=$as_save_IFS | |
278a7a38 AO |
12039 | |
12040 | fi | |
12041 | fi | |
12042 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12043 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12045 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 12046 | else |
5213506e RW |
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12048 | $as_echo "no" >&6; } | |
278a7a38 AO |
12049 | fi |
12050 | ||
5213506e | 12051 | |
278a7a38 AO |
12052 | done |
12053 | fi | |
12054 | ||
12055 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12056 | for ncn_progname in nm; do |
5213506e RW |
12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12058 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12059 | if test -x $with_build_time_tools/${ncn_progname}; then |
12060 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12062 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12063 | break |
12064 | else | |
5213506e RW |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12066 | $as_echo "no" >&6; } | |
e8b05380 PB |
12067 | fi |
12068 | done | |
12069 | fi | |
12070 | ||
12071 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12072 | for ncn_progname in nm; do | |
12073 | if test -n "$ncn_target_tool_prefix"; then | |
12074 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12075 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12077 | $as_echo_n "checking for $ac_word... " >&6; } | |
12078 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12079 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12080 | else |
4de997d1 PB |
12081 | if test -n "$NM_FOR_TARGET"; then |
12082 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12083 | else |
1c710c3c DJ |
12084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12085 | for as_dir in $PATH | |
12086 | do | |
12087 | IFS=$as_save_IFS | |
12088 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12089 | for ac_exec_ext in '' $ac_executable_extensions; do |
12090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12091 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12093 | break 2 |
12094 | fi | |
12095 | done | |
5213506e RW |
12096 | done |
12097 | IFS=$as_save_IFS | |
1c710c3c | 12098 | |
ca9f4b81 AO |
12099 | fi |
12100 | fi | |
1c710c3c | 12101 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12102 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12104 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12105 | else |
5213506e RW |
12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12107 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12108 | fi |
12109 | ||
5213506e | 12110 | |
e8b05380 PB |
12111 | fi |
12112 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12113 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12114 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12116 | $as_echo_n "checking for $ac_word... " >&6; } | |
12117 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12118 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12119 | else |
2693c0b0 PB |
12120 | if test -n "$NM_FOR_TARGET"; then |
12121 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12122 | else |
1c710c3c DJ |
12123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12124 | for as_dir in $PATH | |
12125 | do | |
12126 | IFS=$as_save_IFS | |
12127 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12128 | for ac_exec_ext in '' $ac_executable_extensions; do |
12129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12130 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12132 | break 2 |
12133 | fi | |
12134 | done | |
5213506e RW |
12135 | done |
12136 | IFS=$as_save_IFS | |
1c710c3c | 12137 | |
ca9f4b81 AO |
12138 | fi |
12139 | fi | |
1c710c3c | 12140 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12141 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12143 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12144 | else |
5213506e RW |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12146 | $as_echo "no" >&6; } | |
ca9f4b81 | 12147 | fi |
1c710c3c | 12148 | |
5213506e | 12149 | |
e8b05380 PB |
12150 | fi |
12151 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12152 | done | |
12153 | fi | |
1c710c3c | 12154 | |
2693c0b0 PB |
12155 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12156 | set dummy nm | |
12157 | if test $build = $target ; then | |
12158 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 12159 | else |
2693c0b0 | 12160 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12161 | fi |
1c00b503 PB |
12162 | else |
12163 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
12164 | fi |
12165 | ||
d1f8db0c PB |
12166 | else |
12167 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
12168 | fi |
12169 | ||
12170 | ||
12171 | ||
12172 | ||
12173 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
12174 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12176 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12177 | if test -x $with_build_time_tools/objdump; then |
12178 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12179 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12181 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 12182 | else |
5213506e RW |
12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12184 | $as_echo "no" >&6; } | |
d1f8db0c | 12185 | fi |
e8b05380 PB |
12186 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12187 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
12188 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12189 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12190 | fi |
12191 | fi | |
3e19841a | 12192 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12193 | # Extract the first word of "objdump", so it can be a program name with args. |
12194 | set dummy objdump; ac_word=$2 | |
5213506e RW |
12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12196 | $as_echo_n "checking for $ac_word... " >&6; } | |
12197 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12198 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12199 | else |
1c710c3c DJ |
12200 | case $OBJDUMP_FOR_TARGET in |
12201 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12202 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12203 | ;; | |
e8b05380 | 12204 | *) |
1c710c3c DJ |
12205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12206 | for as_dir in $gcc_cv_tool_dirs | |
12207 | do | |
12208 | IFS=$as_save_IFS | |
12209 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12210 | for ac_exec_ext in '' $ac_executable_extensions; do |
12211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12212 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12214 | break 2 |
12215 | fi | |
12216 | done | |
5213506e RW |
12217 | done |
12218 | IFS=$as_save_IFS | |
1c710c3c | 12219 | |
e8b05380 PB |
12220 | ;; |
12221 | esac | |
12222 | fi | |
1c710c3c | 12223 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12224 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12226 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12227 | else |
5213506e RW |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12229 | $as_echo "no" >&6; } | |
e8b05380 PB |
12230 | fi |
12231 | ||
5213506e | 12232 | |
e8b05380 PB |
12233 | fi |
12234 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12235 | |
12236 | ||
12237 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12238 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12239 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12240 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12241 | fi | |
12242 | ||
12243 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12244 | for ncn_progname in objdump; do | |
12245 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12246 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12248 | $as_echo_n "checking for $ac_word... " >&6; } | |
12249 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12250 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12251 | else |
12252 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12253 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12254 | else | |
12255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12256 | for as_dir in $PATH | |
12257 | do | |
12258 | IFS=$as_save_IFS | |
12259 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12260 | for ac_exec_ext in '' $ac_executable_extensions; do |
12261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12262 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12264 | break 2 |
12265 | fi | |
12266 | done | |
5213506e RW |
12267 | done |
12268 | IFS=$as_save_IFS | |
278a7a38 AO |
12269 | |
12270 | fi | |
12271 | fi | |
12272 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12273 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12275 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12276 | else |
5213506e RW |
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12278 | $as_echo "no" >&6; } | |
278a7a38 AO |
12279 | fi |
12280 | ||
5213506e | 12281 | |
278a7a38 AO |
12282 | done |
12283 | fi | |
12284 | ||
12285 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12286 | for ncn_progname in objdump; do |
5213506e RW |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12288 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12289 | if test -x $with_build_time_tools/${ncn_progname}; then |
12290 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12292 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12293 | break |
12294 | else | |
5213506e RW |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12296 | $as_echo "no" >&6; } | |
e8b05380 PB |
12297 | fi |
12298 | done | |
12299 | fi | |
12300 | ||
12301 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12302 | for ncn_progname in objdump; do | |
12303 | if test -n "$ncn_target_tool_prefix"; then | |
12304 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12305 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12307 | $as_echo_n "checking for $ac_word... " >&6; } | |
12308 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12309 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12310 | else |
12311 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12312 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12313 | else | |
1c710c3c DJ |
12314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12315 | for as_dir in $PATH | |
12316 | do | |
12317 | IFS=$as_save_IFS | |
12318 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12319 | for ac_exec_ext in '' $ac_executable_extensions; do |
12320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12321 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12323 | break 2 |
12324 | fi | |
12325 | done | |
5213506e RW |
12326 | done |
12327 | IFS=$as_save_IFS | |
1c710c3c | 12328 | |
d739199a DJ |
12329 | fi |
12330 | fi | |
1c710c3c | 12331 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12332 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12334 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12335 | else |
5213506e RW |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12337 | $as_echo "no" >&6; } | |
d739199a DJ |
12338 | fi |
12339 | ||
5213506e | 12340 | |
e8b05380 PB |
12341 | fi |
12342 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12343 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12344 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12346 | $as_echo_n "checking for $ac_word... " >&6; } | |
12347 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12348 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12349 | else |
12350 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12351 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12352 | else | |
1c710c3c DJ |
12353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12354 | for as_dir in $PATH | |
12355 | do | |
12356 | IFS=$as_save_IFS | |
12357 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12358 | for ac_exec_ext in '' $ac_executable_extensions; do |
12359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12360 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12362 | break 2 |
12363 | fi | |
12364 | done | |
5213506e RW |
12365 | done |
12366 | IFS=$as_save_IFS | |
1c710c3c | 12367 | |
d739199a DJ |
12368 | fi |
12369 | fi | |
1c710c3c | 12370 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12371 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12373 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12374 | else |
5213506e RW |
12375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12376 | $as_echo "no" >&6; } | |
d739199a | 12377 | fi |
1c710c3c | 12378 | |
5213506e | 12379 | |
e8b05380 PB |
12380 | fi |
12381 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12382 | done | |
12383 | fi | |
1c710c3c | 12384 | |
d739199a DJ |
12385 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12386 | set dummy objdump | |
12387 | if test $build = $target ; then | |
12388 | OBJDUMP_FOR_TARGET="$2" | |
12389 | else | |
12390 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12391 | fi | |
1c00b503 PB |
12392 | else |
12393 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12394 | fi |
12395 | ||
d1f8db0c PB |
12396 | else |
12397 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12398 | fi |
12399 | ||
12400 | ||
12401 | ||
12402 | ||
12403 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12404 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12406 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12407 | if test -x $with_build_time_tools/ranlib; then |
12408 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12409 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12411 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 12412 | else |
5213506e RW |
12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12414 | $as_echo "no" >&6; } | |
d1f8db0c | 12415 | fi |
e8b05380 PB |
12416 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12417 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
12418 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12419 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
12420 | fi |
12421 | fi | |
3e19841a | 12422 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12423 | # Extract the first word of "ranlib", so it can be a program name with args. |
12424 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12426 | $as_echo_n "checking for $ac_word... " >&6; } | |
12427 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12428 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12429 | else |
1c710c3c DJ |
12430 | case $RANLIB_FOR_TARGET in |
12431 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12432 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12433 | ;; | |
e8b05380 | 12434 | *) |
1c710c3c DJ |
12435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12436 | for as_dir in $gcc_cv_tool_dirs | |
12437 | do | |
12438 | IFS=$as_save_IFS | |
12439 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12440 | for ac_exec_ext in '' $ac_executable_extensions; do |
12441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12442 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12444 | break 2 |
12445 | fi | |
12446 | done | |
5213506e RW |
12447 | done |
12448 | IFS=$as_save_IFS | |
1c710c3c | 12449 | |
e8b05380 PB |
12450 | ;; |
12451 | esac | |
12452 | fi | |
1c710c3c | 12453 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 12454 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12456 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 12457 | else |
5213506e RW |
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12459 | $as_echo "no" >&6; } | |
e8b05380 PB |
12460 | fi |
12461 | ||
5213506e | 12462 | |
e8b05380 PB |
12463 | fi |
12464 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
12465 | |
12466 | ||
12467 | if test -n "$RANLIB_FOR_TARGET"; then | |
12468 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12469 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12470 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12471 | fi | |
12472 | ||
12473 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12474 | for ncn_progname in ranlib; do | |
12475 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12476 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12478 | $as_echo_n "checking for $ac_word... " >&6; } | |
12479 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12480 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12481 | else |
12482 | if test -n "$RANLIB_FOR_TARGET"; then | |
12483 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12484 | else | |
12485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12486 | for as_dir in $PATH | |
12487 | do | |
12488 | IFS=$as_save_IFS | |
12489 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12490 | for ac_exec_ext in '' $ac_executable_extensions; do |
12491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12492 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12494 | break 2 |
12495 | fi | |
12496 | done | |
5213506e RW |
12497 | done |
12498 | IFS=$as_save_IFS | |
278a7a38 AO |
12499 | |
12500 | fi | |
12501 | fi | |
12502 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12503 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12505 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 12506 | else |
5213506e RW |
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12508 | $as_echo "no" >&6; } | |
278a7a38 AO |
12509 | fi |
12510 | ||
5213506e | 12511 | |
278a7a38 AO |
12512 | done |
12513 | fi | |
12514 | ||
12515 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12516 | for ncn_progname in ranlib; do |
5213506e RW |
12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12518 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12519 | if test -x $with_build_time_tools/${ncn_progname}; then |
12520 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12522 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12523 | break |
12524 | else | |
5213506e RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12526 | $as_echo "no" >&6; } | |
e8b05380 PB |
12527 | fi |
12528 | done | |
12529 | fi | |
12530 | ||
12531 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12532 | for ncn_progname in ranlib; do | |
12533 | if test -n "$ncn_target_tool_prefix"; then | |
12534 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 12535 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12537 | $as_echo_n "checking for $ac_word... " >&6; } | |
12538 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12539 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12540 | else |
4de997d1 PB |
12541 | if test -n "$RANLIB_FOR_TARGET"; then |
12542 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12543 | else |
1c710c3c DJ |
12544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12545 | for as_dir in $PATH | |
12546 | do | |
12547 | IFS=$as_save_IFS | |
12548 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12549 | for ac_exec_ext in '' $ac_executable_extensions; do |
12550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12551 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12553 | break 2 |
12554 | fi | |
12555 | done | |
5213506e RW |
12556 | done |
12557 | IFS=$as_save_IFS | |
1c710c3c | 12558 | |
ca9f4b81 AO |
12559 | fi |
12560 | fi | |
1c710c3c | 12561 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 12562 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12564 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12565 | else |
5213506e RW |
12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12567 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12568 | fi |
12569 | ||
5213506e | 12570 | |
e8b05380 PB |
12571 | fi |
12572 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12574 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12576 | $as_echo_n "checking for $ac_word... " >&6; } | |
12577 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12578 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12579 | else |
2693c0b0 PB |
12580 | if test -n "$RANLIB_FOR_TARGET"; then |
12581 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12582 | else |
1c710c3c DJ |
12583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12584 | for as_dir in $PATH | |
12585 | do | |
12586 | IFS=$as_save_IFS | |
12587 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12588 | for ac_exec_ext in '' $ac_executable_extensions; do |
12589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12590 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12592 | break 2 |
12593 | fi | |
12594 | done | |
5213506e RW |
12595 | done |
12596 | IFS=$as_save_IFS | |
1c710c3c | 12597 | |
ca9f4b81 AO |
12598 | fi |
12599 | fi | |
1c710c3c | 12600 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 12601 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12603 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12604 | else |
5213506e RW |
12605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12606 | $as_echo "no" >&6; } | |
ca9f4b81 | 12607 | fi |
1c710c3c | 12608 | |
5213506e | 12609 | |
e8b05380 PB |
12610 | fi |
12611 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12612 | done | |
12613 | fi | |
1c710c3c | 12614 | |
e8b05380 PB |
12615 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12616 | set dummy ranlib | |
12617 | if test $build = $target ; then | |
12618 | RANLIB_FOR_TARGET="$2" | |
12619 | else | |
12620 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 12621 | fi |
1c00b503 PB |
12622 | else |
12623 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 12624 | fi |
2693c0b0 | 12625 | |
d1f8db0c PB |
12626 | else |
12627 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
12628 | fi |
12629 | ||
e8b05380 PB |
12630 | |
12631 | ||
12632 | ||
e7a82751 RM |
12633 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12634 | if test -n "$with_build_time_tools"; then | |
12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12636 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12637 | if test -x $with_build_time_tools/readelf; then | |
12638 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12639 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12641 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12642 | else | |
12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12644 | $as_echo "no" >&6; } | |
12645 | fi | |
12646 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12647 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12648 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12649 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12650 | fi | |
12651 | fi | |
12652 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12653 | # Extract the first word of "readelf", so it can be a program name with args. | |
12654 | set dummy readelf; ac_word=$2 | |
12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12656 | $as_echo_n "checking for $ac_word... " >&6; } | |
12657 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12658 | $as_echo_n "(cached) " >&6 | |
12659 | else | |
12660 | case $READELF_FOR_TARGET in | |
12661 | [\\/]* | ?:[\\/]*) | |
12662 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12663 | ;; | |
12664 | *) | |
12665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12666 | for as_dir in $gcc_cv_tool_dirs | |
12667 | do | |
12668 | IFS=$as_save_IFS | |
12669 | test -z "$as_dir" && as_dir=. | |
12670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12672 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12674 | break 2 | |
12675 | fi | |
12676 | done | |
12677 | done | |
12678 | IFS=$as_save_IFS | |
12679 | ||
12680 | ;; | |
12681 | esac | |
12682 | fi | |
12683 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12684 | if test -n "$READELF_FOR_TARGET"; then | |
12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12686 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12687 | else | |
12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12689 | $as_echo "no" >&6; } | |
12690 | fi | |
12691 | ||
12692 | ||
12693 | fi | |
12694 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12695 | ||
12696 | ||
12697 | if test -n "$READELF_FOR_TARGET"; then | |
12698 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12699 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12700 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12701 | fi | |
12702 | ||
12703 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12704 | for ncn_progname in readelf; do | |
12705 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12706 | set dummy ${ncn_progname}; ac_word=$2 | |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12708 | $as_echo_n "checking for $ac_word... " >&6; } | |
12709 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12710 | $as_echo_n "(cached) " >&6 | |
12711 | else | |
12712 | if test -n "$READELF_FOR_TARGET"; then | |
12713 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12714 | else | |
12715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12716 | for as_dir in $PATH | |
12717 | do | |
12718 | IFS=$as_save_IFS | |
12719 | test -z "$as_dir" && as_dir=. | |
12720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12722 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12724 | break 2 | |
12725 | fi | |
12726 | done | |
12727 | done | |
12728 | IFS=$as_save_IFS | |
12729 | ||
12730 | fi | |
12731 | fi | |
12732 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12733 | if test -n "$READELF_FOR_TARGET"; then | |
12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12735 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12736 | else | |
12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12738 | $as_echo "no" >&6; } | |
12739 | fi | |
12740 | ||
12741 | ||
12742 | done | |
12743 | fi | |
12744 | ||
12745 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12746 | for ncn_progname in readelf; do | |
12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12748 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12749 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12750 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12752 | $as_echo "yes" >&6; } | |
12753 | break | |
12754 | else | |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12756 | $as_echo "no" >&6; } | |
12757 | fi | |
12758 | done | |
12759 | fi | |
12760 | ||
12761 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12762 | for ncn_progname in readelf; do | |
12763 | if test -n "$ncn_target_tool_prefix"; then | |
12764 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12765 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12767 | $as_echo_n "checking for $ac_word... " >&6; } | |
12768 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12769 | $as_echo_n "(cached) " >&6 | |
12770 | else | |
12771 | if test -n "$READELF_FOR_TARGET"; then | |
12772 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12773 | else | |
12774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12775 | for as_dir in $PATH | |
12776 | do | |
12777 | IFS=$as_save_IFS | |
12778 | test -z "$as_dir" && as_dir=. | |
12779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12781 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12783 | break 2 | |
12784 | fi | |
12785 | done | |
12786 | done | |
12787 | IFS=$as_save_IFS | |
12788 | ||
12789 | fi | |
12790 | fi | |
12791 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12792 | if test -n "$READELF_FOR_TARGET"; then | |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12794 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12795 | else | |
12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12797 | $as_echo "no" >&6; } | |
12798 | fi | |
12799 | ||
12800 | ||
12801 | fi | |
12802 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12803 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12804 | set dummy ${ncn_progname}; ac_word=$2 | |
12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12806 | $as_echo_n "checking for $ac_word... " >&6; } | |
12807 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12808 | $as_echo_n "(cached) " >&6 | |
12809 | else | |
12810 | if test -n "$READELF_FOR_TARGET"; then | |
12811 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12812 | else | |
12813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12814 | for as_dir in $PATH | |
12815 | do | |
12816 | IFS=$as_save_IFS | |
12817 | test -z "$as_dir" && as_dir=. | |
12818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12820 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12822 | break 2 | |
12823 | fi | |
12824 | done | |
12825 | done | |
12826 | IFS=$as_save_IFS | |
12827 | ||
12828 | fi | |
12829 | fi | |
12830 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12831 | if test -n "$READELF_FOR_TARGET"; then | |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12833 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12834 | else | |
12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12836 | $as_echo "no" >&6; } | |
12837 | fi | |
12838 | ||
12839 | ||
12840 | fi | |
12841 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12842 | done | |
12843 | fi | |
12844 | ||
12845 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12846 | set dummy readelf | |
12847 | if test $build = $target ; then | |
12848 | READELF_FOR_TARGET="$2" | |
12849 | else | |
12850 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12851 | fi | |
12852 | else | |
12853 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12854 | fi | |
12855 | ||
12856 | else | |
12857 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12858 | fi | |
12859 | ||
12860 | ||
12861 | ||
12862 | ||
e8b05380 PB |
12863 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12864 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12866 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12867 | if test -x $with_build_time_tools/strip; then |
12868 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12869 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12871 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 12872 | else |
5213506e RW |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12874 | $as_echo "no" >&6; } | |
d1f8db0c | 12875 | fi |
e8b05380 PB |
12876 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12877 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
12878 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12879 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
12880 | fi |
12881 | fi | |
3e19841a | 12882 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12883 | # Extract the first word of "strip", so it can be a program name with args. |
12884 | set dummy strip; ac_word=$2 | |
5213506e RW |
12885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12886 | $as_echo_n "checking for $ac_word... " >&6; } | |
12887 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12888 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12889 | else |
1c710c3c DJ |
12890 | case $STRIP_FOR_TARGET in |
12891 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12892 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12893 | ;; | |
e8b05380 | 12894 | *) |
1c710c3c DJ |
12895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12896 | for as_dir in $gcc_cv_tool_dirs | |
12897 | do | |
12898 | IFS=$as_save_IFS | |
12899 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12900 | for ac_exec_ext in '' $ac_executable_extensions; do |
12901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12902 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12904 | break 2 |
12905 | fi | |
12906 | done | |
5213506e RW |
12907 | done |
12908 | IFS=$as_save_IFS | |
1c710c3c | 12909 | |
e8b05380 PB |
12910 | ;; |
12911 | esac | |
12912 | fi | |
1c710c3c | 12913 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 12914 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12916 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 12917 | else |
5213506e RW |
12918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12919 | $as_echo "no" >&6; } | |
e8b05380 PB |
12920 | fi |
12921 | ||
5213506e | 12922 | |
e8b05380 PB |
12923 | fi |
12924 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
12925 | |
12926 | ||
12927 | if test -n "$STRIP_FOR_TARGET"; then | |
12928 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12929 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12930 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12931 | fi | |
12932 | ||
12933 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12934 | for ncn_progname in strip; do | |
12935 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12936 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12938 | $as_echo_n "checking for $ac_word... " >&6; } | |
12939 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12940 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12941 | else |
12942 | if test -n "$STRIP_FOR_TARGET"; then | |
12943 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12944 | else | |
12945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12946 | for as_dir in $PATH | |
12947 | do | |
12948 | IFS=$as_save_IFS | |
12949 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12950 | for ac_exec_ext in '' $ac_executable_extensions; do |
12951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12952 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 12953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12954 | break 2 |
12955 | fi | |
12956 | done | |
5213506e RW |
12957 | done |
12958 | IFS=$as_save_IFS | |
278a7a38 AO |
12959 | |
12960 | fi | |
12961 | fi | |
12962 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12963 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12965 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 12966 | else |
5213506e RW |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12968 | $as_echo "no" >&6; } | |
278a7a38 AO |
12969 | fi |
12970 | ||
5213506e | 12971 | |
278a7a38 AO |
12972 | done |
12973 | fi | |
12974 | ||
12975 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12976 | for ncn_progname in strip; do |
5213506e RW |
12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12978 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12979 | if test -x $with_build_time_tools/${ncn_progname}; then |
12980 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12982 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12983 | break |
12984 | else | |
5213506e RW |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12986 | $as_echo "no" >&6; } | |
e8b05380 PB |
12987 | fi |
12988 | done | |
12989 | fi | |
12990 | ||
12991 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12992 | for ncn_progname in strip; do | |
12993 | if test -n "$ncn_target_tool_prefix"; then | |
12994 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12995 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12997 | $as_echo_n "checking for $ac_word... " >&6; } | |
12998 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12999 | $as_echo_n "(cached) " >&6 | |
af71363e AS |
13000 | else |
13001 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
13002 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13003 | else | |
13004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13005 | for as_dir in $PATH | |
13006 | do | |
13007 | IFS=$as_save_IFS | |
13008 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13009 | for ac_exec_ext in '' $ac_executable_extensions; do |
13010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13011 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13013 | break 2 |
13014 | fi | |
13015 | done | |
5213506e RW |
13016 | done |
13017 | IFS=$as_save_IFS | |
1c710c3c | 13018 | |
040b1c5a GK |
13019 | fi |
13020 | fi | |
1c710c3c | 13021 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13022 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13024 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13025 | else |
5213506e RW |
13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13027 | $as_echo "no" >&6; } | |
040b1c5a GK |
13028 | fi |
13029 | ||
5213506e | 13030 | |
e8b05380 PB |
13031 | fi |
13032 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13033 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13034 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13036 | $as_echo_n "checking for $ac_word... " >&6; } | |
13037 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13038 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
13039 | else |
13040 | if test -n "$STRIP_FOR_TARGET"; then | |
13041 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13042 | else | |
1c710c3c DJ |
13043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13044 | for as_dir in $PATH | |
13045 | do | |
13046 | IFS=$as_save_IFS | |
13047 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13048 | for ac_exec_ext in '' $ac_executable_extensions; do |
13049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13050 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13052 | break 2 |
13053 | fi | |
13054 | done | |
5213506e RW |
13055 | done |
13056 | IFS=$as_save_IFS | |
1c710c3c | 13057 | |
040b1c5a GK |
13058 | fi |
13059 | fi | |
1c710c3c | 13060 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13061 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13063 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13064 | else |
5213506e RW |
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13066 | $as_echo "no" >&6; } | |
040b1c5a | 13067 | fi |
1c710c3c | 13068 | |
5213506e | 13069 | |
e8b05380 PB |
13070 | fi |
13071 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13072 | done | |
13073 | fi | |
1c710c3c | 13074 | |
040b1c5a GK |
13075 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13076 | set dummy strip | |
13077 | if test $build = $target ; then | |
13078 | STRIP_FOR_TARGET="$2" | |
13079 | else | |
13080 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13081 | fi | |
1c00b503 PB |
13082 | else |
13083 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
13084 | fi |
13085 | ||
d1f8db0c PB |
13086 | else |
13087 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
13088 | fi |
13089 | ||
13090 | ||
13091 | ||
13092 | ||
13093 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13094 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13096 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13097 | if test -x $with_build_time_tools/windres; then |
13098 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13099 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13101 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 13102 | else |
5213506e RW |
13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13104 | $as_echo "no" >&6; } | |
d1f8db0c | 13105 | fi |
e8b05380 PB |
13106 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13107 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
13108 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13109 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
13110 | fi |
13111 | fi | |
3e19841a | 13112 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13113 | # Extract the first word of "windres", so it can be a program name with args. |
13114 | set dummy windres; ac_word=$2 | |
5213506e RW |
13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13116 | $as_echo_n "checking for $ac_word... " >&6; } | |
13117 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13118 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13119 | else |
1c710c3c DJ |
13120 | case $WINDRES_FOR_TARGET in |
13121 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13122 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13123 | ;; | |
e8b05380 | 13124 | *) |
1c710c3c DJ |
13125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13126 | for as_dir in $gcc_cv_tool_dirs | |
13127 | do | |
13128 | IFS=$as_save_IFS | |
13129 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13130 | for ac_exec_ext in '' $ac_executable_extensions; do |
13131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13132 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13134 | break 2 |
13135 | fi | |
13136 | done | |
5213506e RW |
13137 | done |
13138 | IFS=$as_save_IFS | |
1c710c3c | 13139 | |
e8b05380 PB |
13140 | ;; |
13141 | esac | |
13142 | fi | |
1c710c3c | 13143 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 13144 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13146 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 13147 | else |
5213506e RW |
13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13149 | $as_echo "no" >&6; } | |
e8b05380 PB |
13150 | fi |
13151 | ||
5213506e | 13152 | |
e8b05380 PB |
13153 | fi |
13154 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
13155 | |
13156 | ||
13157 | if test -n "$WINDRES_FOR_TARGET"; then | |
13158 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13159 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13160 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13161 | fi | |
13162 | ||
13163 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13164 | for ncn_progname in windres; do | |
13165 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13166 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13168 | $as_echo_n "checking for $ac_word... " >&6; } | |
13169 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13170 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
13171 | else |
13172 | if test -n "$WINDRES_FOR_TARGET"; then | |
13173 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13174 | else | |
13175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13176 | for as_dir in $PATH | |
13177 | do | |
13178 | IFS=$as_save_IFS | |
13179 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13180 | for ac_exec_ext in '' $ac_executable_extensions; do |
13181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 13182 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13184 | break 2 |
13185 | fi | |
13186 | done | |
5213506e RW |
13187 | done |
13188 | IFS=$as_save_IFS | |
278a7a38 AO |
13189 | |
13190 | fi | |
13191 | fi | |
13192 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13193 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
13194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13195 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 13196 | else |
5213506e RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13198 | $as_echo "no" >&6; } | |
278a7a38 AO |
13199 | fi |
13200 | ||
5213506e | 13201 | |
278a7a38 AO |
13202 | done |
13203 | fi | |
13204 | ||
13205 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13206 | for ncn_progname in windres; do |
5213506e RW |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13208 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13209 | if test -x $with_build_time_tools/${ncn_progname}; then |
13210 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13212 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13213 | break |
13214 | else | |
5213506e RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13216 | $as_echo "no" >&6; } | |
e8b05380 PB |
13217 | fi |
13218 | done | |
13219 | fi | |
13220 | ||
13221 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13222 | for ncn_progname in windres; do | |
13223 | if test -n "$ncn_target_tool_prefix"; then | |
13224 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13225 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13227 | $as_echo_n "checking for $ac_word... " >&6; } | |
13228 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13229 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13230 | else |
4de997d1 PB |
13231 | if test -n "$WINDRES_FOR_TARGET"; then |
13232 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13233 | else |
1c710c3c DJ |
13234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13235 | for as_dir in $PATH | |
13236 | do | |
13237 | IFS=$as_save_IFS | |
13238 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13239 | for ac_exec_ext in '' $ac_executable_extensions; do |
13240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13241 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13243 | break 2 |
13244 | fi | |
13245 | done | |
5213506e RW |
13246 | done |
13247 | IFS=$as_save_IFS | |
1c710c3c | 13248 | |
ca9f4b81 AO |
13249 | fi |
13250 | fi | |
1c710c3c | 13251 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 13252 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13254 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13255 | else |
5213506e RW |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13257 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13258 | fi |
13259 | ||
5213506e | 13260 | |
e8b05380 PB |
13261 | fi |
13262 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13264 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13266 | $as_echo_n "checking for $ac_word... " >&6; } | |
13267 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13268 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13269 | else |
2693c0b0 PB |
13270 | if test -n "$WINDRES_FOR_TARGET"; then |
13271 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13272 | else |
1c710c3c DJ |
13273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13274 | for as_dir in $PATH | |
13275 | do | |
13276 | IFS=$as_save_IFS | |
13277 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13278 | for ac_exec_ext in '' $ac_executable_extensions; do |
13279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13280 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13282 | break 2 |
13283 | fi | |
13284 | done | |
5213506e RW |
13285 | done |
13286 | IFS=$as_save_IFS | |
1c710c3c | 13287 | |
ca9f4b81 AO |
13288 | fi |
13289 | fi | |
1c710c3c | 13290 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 13291 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13293 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13294 | else |
5213506e RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13296 | $as_echo "no" >&6; } | |
ca9f4b81 | 13297 | fi |
1c710c3c | 13298 | |
5213506e | 13299 | |
e8b05380 PB |
13300 | fi |
13301 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13302 | done | |
13303 | fi | |
1c710c3c | 13304 | |
2693c0b0 PB |
13305 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13306 | set dummy windres | |
13307 | if test $build = $target ; then | |
13308 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 13309 | else |
2693c0b0 | 13310 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13311 | fi |
1c00b503 PB |
13312 | else |
13313 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
13314 | fi |
13315 | ||
d1f8db0c PB |
13316 | else |
13317 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
13318 | fi |
13319 | ||
4977bab6 | 13320 | |
901119ae KT |
13321 | |
13322 | ||
13323 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13324 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13326 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
13327 | if test -x $with_build_time_tools/windmc; then |
13328 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13329 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13331 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13332 | else |
5213506e RW |
13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13334 | $as_echo "no" >&6; } | |
901119ae KT |
13335 | fi |
13336 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13337 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
13338 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13339 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
13340 | fi |
13341 | fi | |
13342 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13343 | # Extract the first word of "windmc", so it can be a program name with args. | |
13344 | set dummy windmc; ac_word=$2 | |
5213506e RW |
13345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13346 | $as_echo_n "checking for $ac_word... " >&6; } | |
13347 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13348 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13349 | else |
13350 | case $WINDMC_FOR_TARGET in | |
13351 | [\\/]* | ?:[\\/]*) | |
13352 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13353 | ;; | |
13354 | *) | |
13355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13356 | for as_dir in $gcc_cv_tool_dirs | |
13357 | do | |
13358 | IFS=$as_save_IFS | |
13359 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13360 | for ac_exec_ext in '' $ac_executable_extensions; do |
13361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13362 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13364 | break 2 |
13365 | fi | |
13366 | done | |
5213506e RW |
13367 | done |
13368 | IFS=$as_save_IFS | |
901119ae KT |
13369 | |
13370 | ;; | |
13371 | esac | |
13372 | fi | |
13373 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 13374 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13376 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13377 | else |
5213506e RW |
13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13379 | $as_echo "no" >&6; } | |
901119ae KT |
13380 | fi |
13381 | ||
5213506e | 13382 | |
901119ae KT |
13383 | fi |
13384 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13385 | ||
13386 | ||
13387 | if test -n "$WINDMC_FOR_TARGET"; then | |
13388 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13389 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13390 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13391 | fi | |
13392 | ||
13393 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13394 | for ncn_progname in windmc; do | |
13395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13396 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13398 | $as_echo_n "checking for $ac_word... " >&6; } | |
13399 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13400 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13401 | else |
13402 | if test -n "$WINDMC_FOR_TARGET"; then | |
13403 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13404 | else | |
13405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13406 | for as_dir in $PATH | |
13407 | do | |
13408 | IFS=$as_save_IFS | |
13409 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13410 | for ac_exec_ext in '' $ac_executable_extensions; do |
13411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13412 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13414 | break 2 |
13415 | fi | |
13416 | done | |
5213506e RW |
13417 | done |
13418 | IFS=$as_save_IFS | |
901119ae KT |
13419 | |
13420 | fi | |
13421 | fi | |
13422 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13423 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13425 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13426 | else |
5213506e RW |
13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13428 | $as_echo "no" >&6; } | |
901119ae KT |
13429 | fi |
13430 | ||
5213506e | 13431 | |
901119ae KT |
13432 | done |
13433 | fi | |
13434 | ||
13435 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13436 | for ncn_progname in windmc; do | |
5213506e RW |
13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13438 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
13439 | if test -x $with_build_time_tools/${ncn_progname}; then |
13440 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13442 | $as_echo "yes" >&6; } | |
901119ae KT |
13443 | break |
13444 | else | |
5213506e RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13446 | $as_echo "no" >&6; } | |
901119ae KT |
13447 | fi |
13448 | done | |
13449 | fi | |
13450 | ||
13451 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13452 | for ncn_progname in windmc; do | |
13453 | if test -n "$ncn_target_tool_prefix"; then | |
13454 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13455 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13457 | $as_echo_n "checking for $ac_word... " >&6; } | |
13458 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13459 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13460 | else |
13461 | if test -n "$WINDMC_FOR_TARGET"; then | |
13462 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13463 | else | |
13464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13465 | for as_dir in $PATH | |
13466 | do | |
13467 | IFS=$as_save_IFS | |
13468 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13469 | for ac_exec_ext in '' $ac_executable_extensions; do |
13470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13471 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13473 | break 2 |
13474 | fi | |
13475 | done | |
5213506e RW |
13476 | done |
13477 | IFS=$as_save_IFS | |
901119ae KT |
13478 | |
13479 | fi | |
13480 | fi | |
13481 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13482 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13484 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13485 | else |
5213506e RW |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13487 | $as_echo "no" >&6; } | |
901119ae KT |
13488 | fi |
13489 | ||
5213506e | 13490 | |
901119ae KT |
13491 | fi |
13492 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13493 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13494 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13496 | $as_echo_n "checking for $ac_word... " >&6; } | |
13497 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13498 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13499 | else |
13500 | if test -n "$WINDMC_FOR_TARGET"; then | |
13501 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13502 | else | |
13503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13504 | for as_dir in $PATH | |
13505 | do | |
13506 | IFS=$as_save_IFS | |
13507 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13508 | for ac_exec_ext in '' $ac_executable_extensions; do |
13509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13510 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13512 | break 2 |
13513 | fi | |
13514 | done | |
5213506e RW |
13515 | done |
13516 | IFS=$as_save_IFS | |
901119ae KT |
13517 | |
13518 | fi | |
13519 | fi | |
13520 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13521 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13523 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13524 | else |
5213506e RW |
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13526 | $as_echo "no" >&6; } | |
901119ae KT |
13527 | fi |
13528 | ||
5213506e | 13529 | |
901119ae KT |
13530 | fi |
13531 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13532 | done | |
13533 | fi | |
13534 | ||
13535 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13536 | set dummy windmc | |
13537 | if test $build = $target ; then | |
13538 | WINDMC_FOR_TARGET="$2" | |
13539 | else | |
13540 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13541 | fi | |
1c00b503 PB |
13542 | else |
13543 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
13544 | fi |
13545 | ||
13546 | else | |
13547 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13548 | fi | |
13549 | ||
13550 | ||
2abefe3d PB |
13551 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13552 | ||
5213506e RW |
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13554 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 13555 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13556 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13557 | # We already found the complete path | |
172e41aa | 13558 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13560 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13561 | else |
13562 | # Canadian cross, just use what we found | |
5213506e RW |
13563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13564 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13565 | fi |
2abefe3d PB |
13566 | else |
13567 | ok=yes | |
13568 | case " ${configdirs} " in | |
13569 | *" binutils "*) ;; | |
13570 | *) ok=no ;; | |
13571 | esac | |
1c710c3c | 13572 | |
2abefe3d PB |
13573 | if test $ok = yes; then |
13574 | # An in-tree tool is available and we can use it | |
13575 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13577 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13578 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13579 | # We already found the complete path | |
172e41aa | 13580 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13582 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13583 | elif test "x$target" = "x$host"; then |
13584 | # We can use an host tool | |
13585 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13587 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13588 | else |
13589 | # We need a cross tool | |
5213506e RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13591 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13592 | fi |
13593 | fi | |
0b0dc272 | 13594 | |
5213506e RW |
13595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13596 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 13597 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13598 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13599 | # We already found the complete path | |
172e41aa | 13600 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13602 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13603 | else |
13604 | # Canadian cross, just use what we found | |
5213506e RW |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13606 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13607 | fi |
2abefe3d PB |
13608 | else |
13609 | ok=yes | |
13610 | case " ${configdirs} " in | |
13611 | *" gas "*) ;; | |
13612 | *) ok=no ;; | |
13613 | esac | |
1c710c3c | 13614 | |
2abefe3d PB |
13615 | if test $ok = yes; then |
13616 | # An in-tree tool is available and we can use it | |
13617 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13619 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13620 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13621 | # We already found the complete path | |
172e41aa | 13622 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13624 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13625 | elif test "x$target" = "x$host"; then |
13626 | # We can use an host tool | |
13627 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13629 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13630 | else |
13631 | # We need a cross tool | |
5213506e RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13633 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13634 | fi |
13635 | fi | |
0b0dc272 | 13636 | |
5213506e RW |
13637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13638 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 13639 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13640 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13641 | # We already found the complete path | |
172e41aa | 13642 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13644 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13645 | else |
13646 | # Canadian cross, just use what we found | |
5213506e RW |
13647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13648 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13649 | fi |
2abefe3d PB |
13650 | else |
13651 | ok=yes | |
13652 | case " ${configdirs} " in | |
13653 | *" gcc "*) ;; | |
13654 | *) ok=no ;; | |
13655 | esac | |
1c710c3c | 13656 | |
2abefe3d PB |
13657 | if test $ok = yes; then |
13658 | # An in-tree tool is available and we can use it | |
13659 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13661 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13662 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13663 | # We already found the complete path | |
172e41aa | 13664 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13666 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13667 | elif test "x$target" = "x$host"; then |
13668 | # We can use an host tool | |
13669 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13671 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13672 | else |
13673 | # We need a cross tool | |
5213506e RW |
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13675 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13676 | fi |
13677 | fi | |
0b0dc272 | 13678 | |
5213506e RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13680 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 13681 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13682 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13683 | # We already found the complete path | |
172e41aa | 13684 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13686 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13687 | else |
13688 | # Canadian cross, just use what we found | |
5213506e RW |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13690 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13691 | fi |
2abefe3d PB |
13692 | else |
13693 | ok=yes | |
13694 | case " ${configdirs} " in | |
13695 | *" gcc "*) ;; | |
13696 | *) ok=no ;; | |
13697 | esac | |
13698 | case ,${enable_languages}, in | |
13699 | *,c++,*) ;; | |
13700 | *) ok=no ;; | |
13701 | esac | |
13702 | if test $ok = yes; then | |
13703 | # An in-tree tool is available and we can use it | |
2077db1b | 13704 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13706 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13707 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13708 | # We already found the complete path | |
172e41aa | 13709 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13711 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13712 | elif test "x$target" = "x$host"; then |
13713 | # We can use an host tool | |
13714 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13716 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13717 | else |
13718 | # We need a cross tool | |
5213506e RW |
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13720 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13721 | fi |
13722 | fi | |
0b0dc272 | 13723 | |
5213506e RW |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13725 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 13726 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13727 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13728 | # We already found the complete path | |
172e41aa | 13729 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13731 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13732 | else |
13733 | # Canadian cross, just use what we found | |
5213506e RW |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13735 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13736 | fi |
2abefe3d PB |
13737 | else |
13738 | ok=yes | |
13739 | case " ${configdirs} " in | |
13740 | *" gcc "*) ;; | |
13741 | *) ok=no ;; | |
13742 | esac | |
13743 | case ,${enable_languages}, in | |
13744 | *,c++,*) ;; | |
13745 | *) ok=no ;; | |
13746 | esac | |
13747 | if test $ok = yes; then | |
13748 | # An in-tree tool is available and we can use it | |
2077db1b | 13749 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13751 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13752 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13753 | # We already found the complete path | |
172e41aa | 13754 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13756 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13757 | elif test "x$target" = "x$host"; then |
13758 | # We can use an host tool | |
13759 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13761 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13762 | else |
13763 | # We need a cross tool | |
5213506e RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13765 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13766 | fi |
13767 | fi | |
0b0dc272 | 13768 | |
5213506e RW |
13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13770 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 13771 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13772 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13773 | # We already found the complete path | |
172e41aa | 13774 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13776 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13777 | else |
13778 | # Canadian cross, just use what we found | |
5213506e RW |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13780 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13781 | fi |
2abefe3d PB |
13782 | else |
13783 | ok=yes | |
13784 | case " ${configdirs} " in | |
13785 | *" binutils "*) ;; | |
13786 | *) ok=no ;; | |
13787 | esac | |
1c710c3c | 13788 | |
2abefe3d PB |
13789 | if test $ok = yes; then |
13790 | # An in-tree tool is available and we can use it | |
13791 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13793 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13794 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13795 | # We already found the complete path | |
172e41aa | 13796 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13798 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13799 | elif test "x$target" = "x$host"; then |
13800 | # We can use an host tool | |
13801 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13803 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13804 | else |
13805 | # We need a cross tool | |
5213506e RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13807 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13808 | fi |
13809 | fi | |
0b0dc272 | 13810 | |
5213506e RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13812 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 13813 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13814 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13815 | # We already found the complete path | |
172e41aa | 13816 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13818 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13819 | else |
13820 | # Canadian cross, just use what we found | |
5213506e RW |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13822 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13823 | fi |
2abefe3d PB |
13824 | else |
13825 | ok=yes | |
13826 | case " ${configdirs} " in | |
13827 | *" gcc "*) ;; | |
13828 | *) ok=no ;; | |
13829 | esac | |
1c710c3c | 13830 | |
2abefe3d PB |
13831 | if test $ok = yes; then |
13832 | # An in-tree tool is available and we can use it | |
13833 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13835 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13836 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13837 | # We already found the complete path | |
172e41aa | 13838 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13840 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13841 | elif test "x$target" = "x$host"; then |
13842 | # We can use an host tool | |
13843 | GCC_FOR_TARGET='$()' | |
5213506e RW |
13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13845 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13846 | else |
13847 | # We need a cross tool | |
5213506e RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13849 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13850 | fi |
13851 | fi | |
0b0dc272 | 13852 | |
5213506e RW |
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13854 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
2abefe3d | 13855 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13856 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13857 | # We already found the complete path | |
172e41aa | 13858 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13860 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13861 | else |
13862 | # Canadian cross, just use what we found | |
5213506e RW |
13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13864 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13865 | fi |
2abefe3d PB |
13866 | else |
13867 | ok=yes | |
13868 | case " ${configdirs} " in | |
13869 | *" gcc "*) ;; | |
13870 | *) ok=no ;; | |
13871 | esac | |
13872 | case ,${enable_languages}, in | |
13873 | *,java,*) ;; | |
13874 | *) ok=no ;; | |
13875 | esac | |
13876 | if test $ok = yes; then | |
13877 | # An in-tree tool is available and we can use it | |
13878 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13880 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13881 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13882 | # We already found the complete path | |
172e41aa | 13883 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13885 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13886 | elif test "x$target" = "x$host"; then |
13887 | # We can use an host tool | |
13888 | GCJ_FOR_TARGET='$(GCJ)' | |
5213506e RW |
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13890 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13891 | else |
13892 | # We need a cross tool | |
5213506e RW |
13893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13894 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13895 | fi |
13896 | fi | |
0b0dc272 | 13897 | |
5213506e RW |
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13899 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 13900 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13901 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13902 | # We already found the complete path | |
172e41aa | 13903 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13905 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13906 | else |
13907 | # Canadian cross, just use what we found | |
5213506e RW |
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13909 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13910 | fi |
2abefe3d PB |
13911 | else |
13912 | ok=yes | |
13913 | case " ${configdirs} " in | |
13914 | *" gcc "*) ;; | |
13915 | *) ok=no ;; | |
13916 | esac | |
13917 | case ,${enable_languages}, in | |
13918 | *,fortran,*) ;; | |
13919 | *) ok=no ;; | |
13920 | esac | |
13921 | if test $ok = yes; then | |
13922 | # An in-tree tool is available and we can use it | |
13923 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13925 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13926 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13927 | # We already found the complete path | |
172e41aa | 13928 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13930 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13931 | elif test "x$target" = "x$host"; then |
13932 | # We can use an host tool | |
13933 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13935 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13936 | else |
13937 | # We need a cross tool | |
5213506e RW |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13939 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13940 | fi |
13941 | fi | |
0b0dc272 | 13942 | |
632e2a07 ILT |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13944 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13945 | if test "x${build}" != "x${host}" ; then | |
13946 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13947 | # We already found the complete path | |
13948 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13950 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13951 | else | |
13952 | # Canadian cross, just use what we found | |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13954 | $as_echo "pre-installed" >&6; } | |
13955 | fi | |
13956 | else | |
13957 | ok=yes | |
13958 | case " ${configdirs} " in | |
13959 | *" gcc "*) ;; | |
13960 | *) ok=no ;; | |
13961 | esac | |
13962 | case ,${enable_languages}, in | |
13963 | *,go,*) ;; | |
13964 | *) ok=no ;; | |
13965 | esac | |
13966 | if test $ok = yes; then | |
13967 | # An in-tree tool is available and we can use it | |
13968 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13970 | $as_echo "just compiled" >&6; } | |
13971 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13972 | # We already found the complete path | |
13973 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13975 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13976 | elif test "x$target" = "x$host"; then | |
13977 | # We can use an host tool | |
13978 | GOC_FOR_TARGET='$(GOC)' | |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13980 | $as_echo "host tool" >&6; } | |
13981 | else | |
13982 | # We need a cross tool | |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13984 | $as_echo "pre-installed" >&6; } | |
13985 | fi | |
13986 | fi | |
13987 | ||
5213506e RW |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13989 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 13990 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13991 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13992 | # We already found the complete path | |
172e41aa | 13993 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13995 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13996 | else |
13997 | # Canadian cross, just use what we found | |
5213506e RW |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13999 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14000 | fi |
2abefe3d PB |
14001 | else |
14002 | ok=yes | |
14003 | case " ${configdirs} " in | |
14004 | *" ld "*) ;; | |
14005 | *) ok=no ;; | |
14006 | esac | |
1c710c3c | 14007 | |
2abefe3d PB |
14008 | if test $ok = yes; then |
14009 | # An in-tree tool is available and we can use it | |
14010 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14012 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14013 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14014 | # We already found the complete path | |
172e41aa | 14015 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14017 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14018 | elif test "x$target" = "x$host"; then |
14019 | # We can use an host tool | |
14020 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14022 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14023 | else |
14024 | # We need a cross tool | |
5213506e RW |
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14026 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14027 | fi |
14028 | fi | |
0b0dc272 | 14029 | |
5213506e RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14031 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 14032 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14033 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14034 | # We already found the complete path | |
172e41aa | 14035 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14037 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14038 | else |
14039 | # Canadian cross, just use what we found | |
5213506e RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14041 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14042 | fi |
2abefe3d | 14043 | else |
e8b05380 PB |
14044 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14045 | # We already found the complete path | |
172e41aa | 14046 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14048 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 14049 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
14050 | # We can use an host tool |
14051 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14053 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14054 | else |
14055 | # We need a cross tool | |
5213506e RW |
14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14057 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14058 | fi |
14059 | fi | |
0b0dc272 | 14060 | |
5213506e RW |
14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14062 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 14063 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14064 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14065 | # We already found the complete path | |
172e41aa | 14066 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14068 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14069 | else |
14070 | # Canadian cross, just use what we found | |
5213506e RW |
14071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14072 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14073 | fi |
2abefe3d PB |
14074 | else |
14075 | ok=yes | |
14076 | case " ${configdirs} " in | |
14077 | *" binutils "*) ;; | |
14078 | *) ok=no ;; | |
14079 | esac | |
1c710c3c | 14080 | |
2abefe3d PB |
14081 | if test $ok = yes; then |
14082 | # An in-tree tool is available and we can use it | |
14083 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14085 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14086 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14087 | # We already found the complete path | |
172e41aa | 14088 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14090 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14091 | elif test "x$target" = "x$host"; then |
14092 | # We can use an host tool | |
14093 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14095 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14096 | else |
14097 | # We need a cross tool | |
5213506e RW |
14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14099 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14100 | fi |
14101 | fi | |
0b0dc272 | 14102 | |
5213506e RW |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14104 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 14105 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14106 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14107 | # We already found the complete path | |
172e41aa | 14108 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14110 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14111 | else |
14112 | # Canadian cross, just use what we found | |
5213506e RW |
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14114 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14115 | fi |
2abefe3d PB |
14116 | else |
14117 | ok=yes | |
14118 | case " ${configdirs} " in | |
14119 | *" binutils "*) ;; | |
14120 | *) ok=no ;; | |
14121 | esac | |
1c710c3c | 14122 | |
2abefe3d PB |
14123 | if test $ok = yes; then |
14124 | # An in-tree tool is available and we can use it | |
14125 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14127 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14128 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14129 | # We already found the complete path | |
172e41aa | 14130 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14132 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14133 | elif test "x$target" = "x$host"; then |
14134 | # We can use an host tool | |
14135 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14137 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14138 | else |
14139 | # We need a cross tool | |
5213506e RW |
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14141 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14142 | fi |
14143 | fi | |
0b0dc272 | 14144 | |
5213506e RW |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14146 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 14147 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14148 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14149 | # We already found the complete path | |
172e41aa | 14150 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14152 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14153 | else |
14154 | # Canadian cross, just use what we found | |
5213506e RW |
14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14156 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14157 | fi |
2abefe3d PB |
14158 | else |
14159 | ok=yes | |
14160 | case " ${configdirs} " in | |
14161 | *" binutils "*) ;; | |
14162 | *) ok=no ;; | |
14163 | esac | |
1c710c3c | 14164 | |
2abefe3d PB |
14165 | if test $ok = yes; then |
14166 | # An in-tree tool is available and we can use it | |
14167 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14169 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14170 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14171 | # We already found the complete path | |
172e41aa | 14172 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14174 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14175 | elif test "x$target" = "x$host"; then |
14176 | # We can use an host tool | |
14177 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14179 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14180 | else |
14181 | # We need a cross tool | |
5213506e RW |
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14183 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14184 | fi |
14185 | fi | |
0b0dc272 | 14186 | |
e7a82751 RM |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14188 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14189 | if test "x${build}" != "x${host}" ; then | |
14190 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14191 | # We already found the complete path | |
14192 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14194 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14195 | else | |
14196 | # Canadian cross, just use what we found | |
14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14198 | $as_echo "pre-installed" >&6; } | |
14199 | fi | |
14200 | else | |
14201 | ok=yes | |
14202 | case " ${configdirs} " in | |
14203 | *" binutils "*) ;; | |
14204 | *) ok=no ;; | |
14205 | esac | |
14206 | ||
14207 | if test $ok = yes; then | |
14208 | # An in-tree tool is available and we can use it | |
14209 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14211 | $as_echo "just compiled" >&6; } | |
14212 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14213 | # We already found the complete path | |
14214 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14216 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14217 | elif test "x$target" = "x$host"; then | |
14218 | # We can use an host tool | |
14219 | READELF_FOR_TARGET='$(READELF)' | |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14221 | $as_echo "host tool" >&6; } | |
14222 | else | |
14223 | # We need a cross tool | |
14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14225 | $as_echo "pre-installed" >&6; } | |
14226 | fi | |
14227 | fi | |
14228 | ||
5213506e RW |
14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14230 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 14231 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14232 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14233 | # We already found the complete path | |
172e41aa | 14234 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14236 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14237 | else |
14238 | # Canadian cross, just use what we found | |
5213506e RW |
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14240 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14241 | fi |
2abefe3d PB |
14242 | else |
14243 | ok=yes | |
14244 | case " ${configdirs} " in | |
14245 | *" binutils "*) ;; | |
14246 | *) ok=no ;; | |
14247 | esac | |
1c710c3c | 14248 | |
2abefe3d PB |
14249 | if test $ok = yes; then |
14250 | # An in-tree tool is available and we can use it | |
455c8f48 | 14251 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
14252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14253 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14254 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14255 | # We already found the complete path | |
172e41aa | 14256 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14258 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14259 | elif test "x$target" = "x$host"; then |
14260 | # We can use an host tool | |
14261 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14263 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14264 | else |
14265 | # We need a cross tool | |
5213506e RW |
14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14267 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14268 | fi |
14269 | fi | |
0b0dc272 | 14270 | |
5213506e RW |
14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14272 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 14273 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14274 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14275 | # We already found the complete path | |
172e41aa | 14276 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14278 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14279 | else |
14280 | # Canadian cross, just use what we found | |
5213506e RW |
14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14282 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14283 | fi |
2abefe3d PB |
14284 | else |
14285 | ok=yes | |
14286 | case " ${configdirs} " in | |
14287 | *" binutils "*) ;; | |
14288 | *) ok=no ;; | |
14289 | esac | |
1c710c3c | 14290 | |
2abefe3d PB |
14291 | if test $ok = yes; then |
14292 | # An in-tree tool is available and we can use it | |
14293 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14295 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14296 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14297 | # We already found the complete path | |
172e41aa | 14298 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14300 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14301 | elif test "x$target" = "x$host"; then |
14302 | # We can use an host tool | |
14303 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
14304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14305 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14306 | else |
14307 | # We need a cross tool | |
5213506e RW |
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14309 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 14310 | fi |
671aa708 | 14311 | fi |
be912515 | 14312 | |
5213506e RW |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14314 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
14315 | if test "x${build}" != "x${host}" ; then |
14316 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14317 | # We already found the complete path | |
14318 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14320 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14321 | else |
14322 | # Canadian cross, just use what we found | |
5213506e RW |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14324 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14325 | fi |
14326 | else | |
14327 | ok=yes | |
14328 | case " ${configdirs} " in | |
14329 | *" binutils "*) ;; | |
14330 | *) ok=no ;; | |
14331 | esac | |
14332 | ||
14333 | if test $ok = yes; then | |
14334 | # An in-tree tool is available and we can use it | |
14335 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14337 | $as_echo "just compiled" >&6; } | |
901119ae KT |
14338 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14339 | # We already found the complete path | |
14340 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14342 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14343 | elif test "x$target" = "x$host"; then |
14344 | # We can use an host tool | |
14345 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14347 | $as_echo "host tool" >&6; } | |
901119ae KT |
14348 | else |
14349 | # We need a cross tool | |
5213506e RW |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14351 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14352 | fi |
14353 | fi | |
14354 | ||
be912515 NN |
14355 | |
14356 | ||
2abefe3d | 14357 | |
0b0dc272 | 14358 | |
671aa708 NN |
14359 | # Certain tools may need extra flags. |
14360 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14361 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14362 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14363 | ||
2abefe3d PB |
14364 | # When building target libraries, except in a Canadian cross, we use |
14365 | # the same toolchain as the compiler we just built. | |
14366 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14367 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14368 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14369 | if test $host = $build; then | |
14370 | case " $configdirs " in | |
14371 | *" gcc "*) | |
14372 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14373 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14374 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14375 | ;; | |
14376 | esac | |
14377 | fi | |
14378 | ||
14379 | ||
14380 | ||
14381 | ||
14382 | ||
5213506e RW |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14384 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14385 | # Check whether --enable-maintainer-mode was given. | |
14386 | if test "${enable_maintainer_mode+set}" = set; then : | |
14387 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
14388 | else |
14389 | USE_MAINTAINER_MODE=no | |
5213506e RW |
14390 | fi |
14391 | ||
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14393 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
14394 | |
14395 | ||
14396 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14397 | MAINTAINER_MODE_TRUE= | |
14398 | MAINTAINER_MODE_FALSE='#' | |
14399 | else | |
14400 | MAINTAINER_MODE_TRUE='#' | |
14401 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 14402 | fi |
ee03dc5e AO |
14403 | MAINT=$MAINTAINER_MODE_TRUE |
14404 | ||
2805b53a NN |
14405 | # --------------------- |
14406 | # GCC bootstrap support | |
14407 | # --------------------- | |
14408 | ||
14409 | # Stage specific cflags for build. | |
14410 | stage1_cflags="-g" | |
14411 | case $build in | |
14412 | vax-*-*) | |
14413 | case ${GCC} in | |
14414 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14415 | *) stage1_cflags="-g -J" ;; | |
14416 | esac ;; | |
2805b53a NN |
14417 | esac |
14418 | ||
0b50988a | 14419 | |
2805b53a | 14420 | |
8efea775 | 14421 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
14422 | # Check whether --enable-stage1-checking was given. |
14423 | if test "${enable_stage1_checking+set}" = set; then : | |
14424 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 14425 | else |
e643dc23 | 14426 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
7e98624c | 14427 | stage1_checking=--enable-checking=yes,types |
8efea775 | 14428 | else |
e643dc23 | 14429 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 14430 | fi |
5213506e | 14431 | fi |
8efea775 PB |
14432 | |
14433 | ||
2aeb72e9 | 14434 | |
5213506e RW |
14435 | # Enable -Werror in bootstrap stage2 and later. |
14436 | # Check whether --enable-werror was given. | |
14437 | if test "${enable_werror+set}" = set; then : | |
14438 | enableval=$enable_werror; | |
2805b53a | 14439 | else |
416cfb5e | 14440 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 14441 | enable_werror=yes |
88fceb68 PB |
14442 | else |
14443 | enable_werror=no | |
14444 | fi | |
5213506e RW |
14445 | fi |
14446 | ||
09a9c095 NN |
14447 | case ${enable_werror} in |
14448 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14449 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
14450 | esac |
14451 | ||
14452 | ||
459260ec DM |
14453 | # Enable --enable-host-shared. |
14454 | # Check whether --enable-host-shared was given. | |
14455 | if test "${enable_host_shared+set}" = set; then : | |
14456 | enableval=$enable_host_shared; host_shared=$enableval | |
14457 | else | |
14458 | host_shared=no | |
14459 | fi | |
14460 | ||
14461 | ||
14462 | ||
f2689b09 SE |
14463 | # Specify what files to not compare during bootstrap. |
14464 | ||
14465 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14466 | case "$target" in | |
14467 | hppa*64*-*-hpux*) ;; | |
14468 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
d91491e5 | 14469 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
f2689b09 SE |
14470 | esac |
14471 | ||
14472 | ||
5213506e RW |
14473 | ac_config_files="$ac_config_files Makefile" |
14474 | ||
1c710c3c | 14475 | cat >confcache <<\_ACEOF |
671aa708 NN |
14476 | # This file is a shell script that caches the results of configure |
14477 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
14478 | # scripts and configure runs, see configure's option --config-cache. |
14479 | # It is not useful on other systems. If it contains results you don't | |
14480 | # want to keep, you may remove or edit it. | |
671aa708 | 14481 | # |
1c710c3c DJ |
14482 | # config.status only pays attention to the cache file if you give it |
14483 | # the --recheck option to rerun configure. | |
671aa708 | 14484 | # |
1c710c3c DJ |
14485 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14486 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14487 | # following values. | |
14488 | ||
14489 | _ACEOF | |
14490 | ||
671aa708 NN |
14491 | # The following way of writing the cache mishandles newlines in values, |
14492 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 14493 | # So, we kill variables containing newlines. |
671aa708 NN |
14494 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14495 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
14496 | ( |
14497 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14498 | eval ac_val=\$$ac_var | |
14499 | case $ac_val in #( | |
14500 | *${as_nl}*) | |
14501 | case $ac_var in #( | |
14502 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14503 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14504 | esac | |
14505 | case $ac_var in #( | |
14506 | _ | IFS | as_nl) ;; #( | |
14507 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14508 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14509 | esac ;; | |
14510 | esac | |
14511 | done | |
14512 | ||
1c710c3c | 14513 | (set) 2>&1 | |
5213506e RW |
14514 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14515 | *${as_nl}ac_space=\ *) | |
14516 | # `set' does not quote correctly, so add quotes: double-quote | |
14517 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
14518 | sed -n \ |
14519 | "s/'/'\\\\''/g; | |
14520 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 14521 | ;; #( |
1c710c3c DJ |
14522 | *) |
14523 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 14524 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 14525 | ;; |
5213506e RW |
14526 | esac | |
14527 | sort | |
14528 | ) | | |
1c710c3c | 14529 | sed ' |
5213506e | 14530 | /^ac_cv_env_/b end |
1c710c3c | 14531 | t clear |
5213506e | 14532 | :clear |
1c710c3c DJ |
14533 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14534 | t end | |
5213506e RW |
14535 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14536 | :end' >>confcache | |
14537 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14538 | if test -w "$cache_file"; then | |
14539 | test "x$cache_file" != "x/dev/null" && | |
14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14541 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 14542 | cat confcache >$cache_file |
671aa708 | 14543 | else |
5213506e RW |
14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14545 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 14546 | fi |
4977bab6 | 14547 | fi |
671aa708 | 14548 | rm -f confcache |
79c06341 | 14549 | |
671aa708 NN |
14550 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14551 | # Let make expand exec_prefix. | |
14552 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 14553 | |
671aa708 NN |
14554 | # Transform confdefs.h into DEFS. |
14555 | # Protect against shell expansion while executing Makefile rules. | |
14556 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
14557 | # |
14558 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 14559 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 14560 | # look for a macro that doesn't take arguments. |
5213506e RW |
14561 | ac_script=' |
14562 | :mline | |
14563 | /\\$/{ | |
14564 | N | |
14565 | s,\\\n,, | |
14566 | b mline | |
14567 | } | |
1c710c3c | 14568 | t clear |
5213506e RW |
14569 | :clear |
14570 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 14571 | t quote |
5213506e | 14572 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 14573 | t quote |
5213506e RW |
14574 | b any |
14575 | :quote | |
14576 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14577 | s/\[/\\&/g | |
14578 | s/\]/\\&/g | |
14579 | s/\$/$$/g | |
14580 | H | |
14581 | :any | |
14582 | ${ | |
14583 | g | |
14584 | s/^\n// | |
14585 | s/\n/ /g | |
14586 | p | |
14587 | } | |
14588 | ' | |
14589 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
14590 | |
14591 | ||
14592 | ac_libobjs= | |
14593 | ac_ltlibobjs= | |
14594 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14595 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
14596 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14597 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14598 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14599 | # will be set to the directory where LIBOBJS objects are built. | |
14600 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14601 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
14602 | done |
14603 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 14604 | |
1c710c3c | 14605 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 14606 | |
af71363e | 14607 | |
1c710c3c DJ |
14608 | |
14609 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 14610 | ac_write_fail=0 |
1c710c3c DJ |
14611 | ac_clean_files_save=$ac_clean_files |
14612 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14614 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14615 | as_write_fail=0 | |
14616 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
14617 | #! $SHELL |
14618 | # Generated by $as_me. | |
671aa708 | 14619 | # Run this file to recreate the current configuration. |
671aa708 | 14620 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 14621 | # configure, is in config.log if it exists. |
0b0dc272 | 14622 | |
1c710c3c DJ |
14623 | debug=false |
14624 | ac_cs_recheck=false | |
14625 | ac_cs_silent=false | |
1c710c3c | 14626 | |
5213506e RW |
14627 | SHELL=\${CONFIG_SHELL-$SHELL} |
14628 | export SHELL | |
14629 | _ASEOF | |
14630 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14631 | ## -------------------- ## | |
14632 | ## M4sh Initialization. ## | |
14633 | ## -------------------- ## | |
14634 | ||
14635 | # Be more Bourne compatible | |
14636 | DUALCASE=1; export DUALCASE # for MKS sh | |
14637 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
14638 | emulate sh |
14639 | NULLCMD=: | |
5213506e | 14640 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
14641 | # is contrary to our usage. Disable this feature. |
14642 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
14643 | setopt NO_GLOB_SUBST |
14644 | else | |
14645 | case `(set -o) 2>/dev/null` in #( | |
14646 | *posix*) : | |
14647 | set -o posix ;; #( | |
14648 | *) : | |
14649 | ;; | |
14650 | esac | |
1c710c3c | 14651 | fi |
1c710c3c | 14652 | |
5213506e RW |
14653 | |
14654 | as_nl=' | |
14655 | ' | |
14656 | export as_nl | |
14657 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14658 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14659 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14660 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14661 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14662 | # but without wasting forks for bash or zsh. | |
14663 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14664 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14665 | as_echo='print -r --' | |
14666 | as_echo_n='print -rn --' | |
14667 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14668 | as_echo='printf %s\n' | |
14669 | as_echo_n='printf %s' | |
14670 | else | |
14671 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14672 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14673 | as_echo_n='/usr/ucb/echo -n' | |
14674 | else | |
14675 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14676 | as_echo_n_body='eval | |
14677 | arg=$1; | |
14678 | case $arg in #( | |
14679 | *"$as_nl"*) | |
14680 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14681 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14682 | esac; | |
14683 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14684 | ' | |
14685 | export as_echo_n_body | |
14686 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14687 | fi | |
14688 | export as_echo_body | |
14689 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
14690 | fi |
14691 | ||
5213506e RW |
14692 | # The user is always right. |
14693 | if test "${PATH_SEPARATOR+set}" != set; then | |
14694 | PATH_SEPARATOR=: | |
14695 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14696 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14697 | PATH_SEPARATOR=';' | |
14698 | } | |
14699 | fi | |
14700 | ||
14701 | ||
14702 | # IFS | |
14703 | # We need space, tab and new line, in precisely that order. Quoting is | |
14704 | # there to prevent editors from complaining about space-tab. | |
14705 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14706 | # splitting by setting IFS to empty value.) | |
14707 | IFS=" "" $as_nl" | |
14708 | ||
14709 | # Find who we are. Look in the path if we contain no directory separator. | |
14710 | case $0 in #(( | |
14711 | *[\\/]* ) as_myself=$0 ;; | |
14712 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14713 | for as_dir in $PATH | |
14714 | do | |
14715 | IFS=$as_save_IFS | |
14716 | test -z "$as_dir" && as_dir=. | |
14717 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14718 | done | |
14719 | IFS=$as_save_IFS | |
14720 | ||
14721 | ;; | |
14722 | esac | |
14723 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14724 | # in which case we are not to be found in the path. | |
14725 | if test "x$as_myself" = x; then | |
14726 | as_myself=$0 | |
14727 | fi | |
14728 | if test ! -f "$as_myself"; then | |
14729 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14730 | exit 1 | |
14731 | fi | |
1c710c3c | 14732 | |
5213506e RW |
14733 | # Unset variables that we do not need and which cause bugs (e.g. in |
14734 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14735 | # suppresses any "Segmentation fault" message there. '((' could | |
14736 | # trigger a bug in pdksh 5.2.14. | |
14737 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14738 | do eval test x\${$as_var+set} = xset \ | |
14739 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14740 | done | |
1c710c3c DJ |
14741 | PS1='$ ' |
14742 | PS2='> ' | |
14743 | PS4='+ ' | |
14744 | ||
14745 | # NLS nuisances. | |
5213506e RW |
14746 | LC_ALL=C |
14747 | export LC_ALL | |
14748 | LANGUAGE=C | |
14749 | export LANGUAGE | |
14750 | ||
14751 | # CDPATH. | |
14752 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14753 | ||
14754 | ||
14755 | # as_fn_error ERROR [LINENO LOG_FD] | |
14756 | # --------------------------------- | |
14757 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14758 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14759 | # script with status $?, using 1 if that was 0. | |
14760 | as_fn_error () | |
14761 | { | |
14762 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14763 | if test "$3"; then | |
14764 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14765 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1c710c3c | 14766 | fi |
5213506e RW |
14767 | $as_echo "$as_me: error: $1" >&2 |
14768 | as_fn_exit $as_status | |
14769 | } # as_fn_error | |
14770 | ||
14771 | ||
14772 | # as_fn_set_status STATUS | |
14773 | # ----------------------- | |
14774 | # Set $? to STATUS, without forking. | |
14775 | as_fn_set_status () | |
14776 | { | |
14777 | return $1 | |
14778 | } # as_fn_set_status | |
14779 | ||
14780 | # as_fn_exit STATUS | |
14781 | # ----------------- | |
14782 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14783 | as_fn_exit () | |
14784 | { | |
14785 | set +e | |
14786 | as_fn_set_status $1 | |
14787 | exit $1 | |
14788 | } # as_fn_exit | |
14789 | ||
14790 | # as_fn_unset VAR | |
14791 | # --------------- | |
14792 | # Portably unset VAR. | |
14793 | as_fn_unset () | |
14794 | { | |
14795 | { eval $1=; unset $1;} | |
14796 | } | |
14797 | as_unset=as_fn_unset | |
14798 | # as_fn_append VAR VALUE | |
14799 | # ---------------------- | |
14800 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14801 | # advantage of any shell optimizations that allow amortized linear growth over | |
14802 | # repeated appends, instead of the typical quadratic growth present in naive | |
14803 | # implementations. | |
14804 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14805 | eval 'as_fn_append () | |
14806 | { | |
14807 | eval $1+=\$2 | |
14808 | }' | |
14809 | else | |
14810 | as_fn_append () | |
14811 | { | |
14812 | eval $1=\$$1\$2 | |
14813 | } | |
14814 | fi # as_fn_append | |
14815 | ||
14816 | # as_fn_arith ARG... | |
14817 | # ------------------ | |
14818 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14819 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14820 | # must be portable across $(()) and expr. | |
14821 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14822 | eval 'as_fn_arith () | |
14823 | { | |
14824 | as_val=$(( $* )) | |
14825 | }' | |
14826 | else | |
14827 | as_fn_arith () | |
14828 | { | |
14829 | as_val=`expr "$@" || test $? -eq 1` | |
14830 | } | |
14831 | fi # as_fn_arith | |
14832 | ||
1c710c3c | 14833 | |
5213506e RW |
14834 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14835 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
14836 | as_expr=expr |
14837 | else | |
14838 | as_expr=false | |
14839 | fi | |
14840 | ||
5213506e | 14841 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
14842 | as_basename=basename |
14843 | else | |
14844 | as_basename=false | |
14845 | fi | |
14846 | ||
5213506e RW |
14847 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14848 | as_dirname=dirname | |
14849 | else | |
14850 | as_dirname=false | |
14851 | fi | |
1c710c3c | 14852 | |
5213506e | 14853 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
14854 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14855 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
14856 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14857 | $as_echo X/"$0" | | |
14858 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14859 | s//\1/ | |
14860 | q | |
14861 | } | |
14862 | /^X\/\(\/\/\)$/{ | |
14863 | s//\1/ | |
14864 | q | |
14865 | } | |
14866 | /^X\/\(\/\).*/{ | |
14867 | s//\1/ | |
14868 | q | |
14869 | } | |
14870 | s/.*/./; q'` | |
2aeb72e9 | 14871 | |
2aeb72e9 DD |
14872 | # Avoid depending upon Character Ranges. |
14873 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14874 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14875 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14876 | as_cr_digits='0123456789' | |
14877 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14878 | ||
5213506e RW |
14879 | ECHO_C= ECHO_N= ECHO_T= |
14880 | case `echo -n x` in #((((( | |
14881 | -n*) | |
14882 | case `echo 'xy\c'` in | |
14883 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14884 | xy) ECHO_C='\c';; | |
14885 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14886 | ECHO_T=' ';; | |
14887 | esac;; | |
14888 | *) | |
14889 | ECHO_N='-n';; | |
1c710c3c DJ |
14890 | esac |
14891 | ||
5213506e RW |
14892 | rm -f conf$$ conf$$.exe conf$$.file |
14893 | if test -d conf$$.dir; then | |
14894 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 14895 | else |
5213506e RW |
14896 | rm -f conf$$.dir |
14897 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 14898 | fi |
5213506e RW |
14899 | if (echo >conf$$.file) 2>/dev/null; then |
14900 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 14901 | as_ln_s='ln -s' |
5213506e RW |
14902 | # ... but there are two gotchas: |
14903 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14904 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14905 | # In both cases, we have to default to `cp -p'. | |
14906 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14907 | as_ln_s='cp -p' | |
14908 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14909 | as_ln_s=ln | |
14910 | else | |
14911 | as_ln_s='cp -p' | |
2aeb72e9 | 14912 | fi |
1c710c3c DJ |
14913 | else |
14914 | as_ln_s='cp -p' | |
14915 | fi | |
5213506e RW |
14916 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14917 | rmdir conf$$.dir 2>/dev/null | |
14918 | ||
14919 | ||
14920 | # as_fn_mkdir_p | |
14921 | # ------------- | |
14922 | # Create "$as_dir" as a directory, including parents if necessary. | |
14923 | as_fn_mkdir_p () | |
14924 | { | |
14925 | ||
14926 | case $as_dir in #( | |
14927 | -*) as_dir=./$as_dir;; | |
14928 | esac | |
14929 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14930 | as_dirs= | |
14931 | while :; do | |
14932 | case $as_dir in #( | |
14933 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14934 | *) as_qdir=$as_dir;; | |
14935 | esac | |
14936 | as_dirs="'$as_qdir' $as_dirs" | |
14937 | as_dir=`$as_dirname -- "$as_dir" || | |
14938 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14939 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14940 | X"$as_dir" : 'X\(//\)$' \| \ | |
14941 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14942 | $as_echo X"$as_dir" | | |
14943 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14944 | s//\1/ | |
14945 | q | |
14946 | } | |
14947 | /^X\(\/\/\)[^/].*/{ | |
14948 | s//\1/ | |
14949 | q | |
14950 | } | |
14951 | /^X\(\/\/\)$/{ | |
14952 | s//\1/ | |
14953 | q | |
14954 | } | |
14955 | /^X\(\/\).*/{ | |
14956 | s//\1/ | |
14957 | q | |
14958 | } | |
14959 | s/.*/./; q'` | |
14960 | test -d "$as_dir" && break | |
14961 | done | |
14962 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14963 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14964 | ||
1c710c3c | 14965 | |
5213506e | 14966 | } # as_fn_mkdir_p |
1c710c3c | 14967 | if mkdir -p . 2>/dev/null; then |
5213506e | 14968 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
14969 | else |
14970 | test -d ./-p && rmdir ./-p | |
14971 | as_mkdir_p=false | |
14972 | fi | |
14973 | ||
5213506e RW |
14974 | if test -x / >/dev/null 2>&1; then |
14975 | as_test_x='test -x' | |
14976 | else | |
14977 | if ls -dL / >/dev/null 2>&1; then | |
14978 | as_ls_L_option=L | |
14979 | else | |
14980 | as_ls_L_option= | |
14981 | fi | |
14982 | as_test_x=' | |
14983 | eval sh -c '\'' | |
14984 | if test -d "$1"; then | |
14985 | test -d "$1/."; | |
14986 | else | |
14987 | case $1 in #( | |
14988 | -*)set "./$1";; | |
14989 | esac; | |
14990 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14991 | ???[sx]*):;;*)false;;esac;fi | |
14992 | '\'' sh | |
14993 | ' | |
14994 | fi | |
14995 | as_executable_p=$as_test_x | |
1c710c3c DJ |
14996 | |
14997 | # Sed expression to map a string onto a valid CPP name. | |
14998 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14999 | ||
15000 | # Sed expression to map a string onto a valid variable name. | |
15001 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15002 | ||
15003 | ||
1c710c3c | 15004 | exec 6>&1 |
5213506e RW |
15005 | ## ----------------------------------- ## |
15006 | ## Main body of $CONFIG_STATUS script. ## | |
15007 | ## ----------------------------------- ## | |
15008 | _ASEOF | |
15009 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15010 | ||
15011 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15012 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 15013 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
15014 | # values after options handling. |
15015 | ac_log=" | |
1c710c3c | 15016 | This file was extended by $as_me, which was |
5213506e | 15017 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
15018 | |
15019 | CONFIG_FILES = $CONFIG_FILES | |
15020 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15021 | CONFIG_LINKS = $CONFIG_LINKS | |
15022 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15023 | $ $0 $@ | |
15024 | ||
5213506e RW |
15025 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15026 | " | |
15027 | ||
1c710c3c DJ |
15028 | _ACEOF |
15029 | ||
5213506e RW |
15030 | case $ac_config_files in *" |
15031 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15032 | esac | |
1c710c3c | 15033 | |
2aeb72e9 | 15034 | |
2aeb72e9 | 15035 | |
5213506e RW |
15036 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15037 | # Files that config.status was made for. | |
15038 | config_files="$ac_config_files" | |
1c710c3c | 15039 | |
5213506e | 15040 | _ACEOF |
2aeb72e9 | 15041 | |
5213506e | 15042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 15043 | ac_cs_usage="\ |
5213506e RW |
15044 | \`$as_me' instantiates files and other configuration actions |
15045 | from templates according to the current configuration. Unless the files | |
15046 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 15047 | |
5213506e | 15048 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
15049 | |
15050 | -h, --help print this help, then exit | |
5213506e RW |
15051 | -V, --version print version number and configuration settings, then exit |
15052 | -q, --quiet, --silent | |
15053 | do not print progress messages | |
1c710c3c DJ |
15054 | -d, --debug don't remove temporary files |
15055 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
15056 | --file=FILE[:TEMPLATE] |
15057 | instantiate the configuration file FILE | |
1c710c3c DJ |
15058 | |
15059 | Configuration files: | |
15060 | $config_files | |
15061 | ||
5213506e | 15062 | Report bugs to the package provider." |
2aeb72e9 | 15063 | |
5213506e RW |
15064 | _ACEOF |
15065 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1c710c3c DJ |
15066 | ac_cs_version="\\ |
15067 | config.status | |
5213506e RW |
15068 | configured by $0, generated by GNU Autoconf 2.64, |
15069 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 15070 | |
5213506e | 15071 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
15072 | This config.status script is free software; the Free Software Foundation |
15073 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
15074 | |
15075 | ac_pwd='$ac_pwd' | |
15076 | srcdir='$srcdir' | |
15077 | INSTALL='$INSTALL' | |
87264276 | 15078 | AWK='$AWK' |
5213506e | 15079 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
15080 | _ACEOF |
15081 | ||
5213506e RW |
15082 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15083 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
15084 | ac_need_defaults=: |
15085 | while test $# != 0 | |
a4b9e93e | 15086 | do |
1c710c3c DJ |
15087 | case $1 in |
15088 | --*=*) | |
5213506e RW |
15089 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15090 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
15091 | ac_shift=: |
15092 | ;; | |
5213506e | 15093 | *) |
1c710c3c DJ |
15094 | ac_option=$1 |
15095 | ac_optarg=$2 | |
15096 | ac_shift=shift | |
15097 | ;; | |
1c710c3c DJ |
15098 | esac |
15099 | ||
15100 | case $ac_option in | |
15101 | # Handling of the options. | |
671aa708 | 15102 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 15103 | ac_cs_recheck=: ;; |
5213506e RW |
15104 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15105 | $as_echo "$ac_cs_version"; exit ;; | |
15106 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
15107 | debug=: ;; |
15108 | --file | --fil | --fi | --f ) | |
15109 | $ac_shift | |
5213506e RW |
15110 | case $ac_optarg in |
15111 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15112 | esac | |
15113 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 15114 | ac_need_defaults=false;; |
5213506e RW |
15115 | --he | --h | --help | --hel | -h ) |
15116 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
15117 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15118 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15119 | ac_cs_silent=: ;; | |
15120 | ||
15121 | # This is an error. | |
5213506e RW |
15122 | -*) as_fn_error "unrecognized option: \`$1' |
15123 | Try \`$0 --help' for more information." ;; | |
1c710c3c | 15124 | |
5213506e RW |
15125 | *) as_fn_append ac_config_targets " $1" |
15126 | ac_need_defaults=false ;; | |
1c710c3c | 15127 | |
0b0dc272 | 15128 | esac |
1c710c3c | 15129 | shift |
0b0dc272 AM |
15130 | done |
15131 | ||
1c710c3c | 15132 | ac_configure_extra_args= |
0b0dc272 | 15133 | |
1c710c3c DJ |
15134 | if $ac_cs_silent; then |
15135 | exec 6>/dev/null | |
15136 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15137 | fi | |
0b0dc272 | 15138 | |
1c710c3c | 15139 | _ACEOF |
5213506e | 15140 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 15141 | if \$ac_cs_recheck; then |
5213506e RW |
15142 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15143 | shift | |
15144 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15145 | CONFIG_SHELL='$SHELL' | |
15146 | export CONFIG_SHELL | |
15147 | exec "\$@" | |
1c710c3c DJ |
15148 | fi |
15149 | ||
15150 | _ACEOF | |
5213506e RW |
15151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15152 | exec 5>>config.log | |
15153 | { | |
15154 | echo | |
15155 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15156 | ## Running $as_me. ## | |
15157 | _ASBOX | |
15158 | $as_echo "$ac_log" | |
15159 | } >&5 | |
1c710c3c | 15160 | |
5213506e RW |
15161 | _ACEOF |
15162 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
15163 | # |
15164 | # INIT-COMMANDS | |
15165 | # | |
15166 | extrasub_build="$extrasub_build" | |
15167 | extrasub_host="$extrasub_host" | |
15168 | extrasub_target="$extrasub_target" | |
15169 | ||
5213506e | 15170 | _ACEOF |
1c710c3c | 15171 | |
5213506e | 15172 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 15173 | |
5213506e | 15174 | # Handling of arguments. |
1c710c3c DJ |
15175 | for ac_config_target in $ac_config_targets |
15176 | do | |
5213506e RW |
15177 | case $ac_config_target in |
15178 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15179 | ||
15180 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1c710c3c DJ |
15181 | esac |
15182 | done | |
15183 | ||
5213506e | 15184 | |
1c710c3c DJ |
15185 | # If the user did not use the arguments to specify the items to instantiate, |
15186 | # then the envvar interface is used. Set only those that are not. | |
15187 | # We use the long form for the default assignment because of an extremely | |
15188 | # bizarre bug on SunOS 4.1.3. | |
15189 | if $ac_need_defaults; then | |
15190 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15191 | fi | |
15192 | ||
15193 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 15194 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 15195 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
15196 | # Hook for its removal unless debugging. |
15197 | # Note that there is a small window in which the directory will not be cleaned: | |
15198 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
15199 | $debug || |
15200 | { | |
5213506e RW |
15201 | tmp= |
15202 | trap 'exit_status=$? | |
15203 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15204 | ' 0 | |
15205 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 15206 | } |
1c710c3c DJ |
15207 | # Create a (secure) tmp directory for tmp files. |
15208 | ||
15209 | { | |
5213506e | 15210 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
15211 | test -n "$tmp" && test -d "$tmp" |
15212 | } || | |
15213 | { | |
5213506e RW |
15214 | tmp=./conf$$-$RANDOM |
15215 | (umask 077 && mkdir "$tmp") | |
15216 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15217 | ||
15218 | # Set up the scripts for CONFIG_FILES section. | |
15219 | # No need to generate them if there are no CONFIG_FILES. | |
15220 | # This happens for instance with `./config.status config.h'. | |
15221 | if test -n "$CONFIG_FILES"; then | |
15222 | ||
15223 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15224 | ac_cs_awk_getline=: | |
15225 | ac_cs_awk_pipe_init= | |
15226 | ac_cs_awk_read_file=' | |
15227 | while ((getline aline < (F[key])) > 0) | |
15228 | print(aline) | |
15229 | close(F[key])' | |
15230 | ac_cs_awk_pipe_fini= | |
15231 | else | |
15232 | ac_cs_awk_getline=false | |
15233 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15234 | ac_cs_awk_read_file=' | |
15235 | print "|#_!!_#|" | |
15236 | print "cat " F[key] " &&" | |
15237 | '$ac_cs_awk_pipe_init | |
15238 | # The final `:' finishes the AND list. | |
15239 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15240 | fi | |
15241 | ac_cr=`echo X | tr X '\015'` | |
15242 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15243 | # But we know of no other shell where ac_cr would be empty at this | |
15244 | # point, so we can use a bashism as a fallback. | |
15245 | if test "x$ac_cr" = x; then | |
15246 | eval ac_cr=\$\'\\r\' | |
15247 | fi | |
15248 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15249 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15250 | ac_cs_awk_cr='\r' | |
15251 | else | |
15252 | ac_cs_awk_cr=$ac_cr | |
15253 | fi | |
15254 | ||
15255 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15256 | _ACEOF | |
15257 | ||
15258 | # Create commands to substitute file output variables. | |
1c710c3c | 15259 | { |
5213506e RW |
15260 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15261 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15262 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15263 | echo "_ACAWK" && | |
15264 | echo "_ACEOF" | |
15265 | } >conf$$files.sh && | |
15266 | . ./conf$$files.sh || | |
15267 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15268 | rm -f conf$$files.sh | |
1c710c3c | 15269 | |
5213506e RW |
15270 | { |
15271 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15272 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15273 | echo "_ACEOF" | |
15274 | } >conf$$subs.sh || | |
15275 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15276 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15277 | ac_delim='%!_!# ' | |
15278 | for ac_last_try in false false false false false :; do | |
15279 | . ./conf$$subs.sh || | |
15280 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15281 | ||
15282 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15283 | if test $ac_delim_n = $ac_delim_num; then | |
15284 | break | |
15285 | elif $ac_last_try; then | |
15286 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15287 | else | |
15288 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15289 | fi | |
15290 | done | |
15291 | rm -f conf$$subs.sh | |
15292 | ||
15293 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15294 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
2aeb72e9 | 15295 | _ACEOF |
5213506e RW |
15296 | sed -n ' |
15297 | h | |
15298 | s/^/S["/; s/!.*/"]=/ | |
15299 | p | |
15300 | g | |
15301 | s/^[^!]*!// | |
15302 | :repl | |
15303 | t repl | |
15304 | s/'"$ac_delim"'$// | |
15305 | t delim | |
15306 | :nl | |
15307 | h | |
15308 | s/\(.\{148\}\).*/\1/ | |
15309 | t more1 | |
15310 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15311 | p | |
15312 | n | |
15313 | b repl | |
15314 | :more1 | |
15315 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15316 | p | |
15317 | g | |
15318 | s/.\{148\}// | |
15319 | t nl | |
15320 | :delim | |
15321 | h | |
15322 | s/\(.\{148\}\).*/\1/ | |
15323 | t more2 | |
15324 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15325 | p | |
15326 | b | |
15327 | :more2 | |
15328 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15329 | p | |
15330 | g | |
15331 | s/.\{148\}// | |
15332 | t delim | |
15333 | ' <conf$$subs.awk | sed ' | |
15334 | /^[^""]/{ | |
15335 | N | |
15336 | s/\n// | |
15337 | } | |
15338 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15339 | rm -f conf$$subs.awk | |
15340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15341 | _ACAWK | |
15342 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15343 | for (key in S) S_is_set[key] = 1 | |
15344 | FS = "\a" | |
15345 | \$ac_cs_awk_pipe_init | |
15346 | } | |
15347 | { | |
15348 | line = $ 0 | |
15349 | nfields = split(line, field, "@") | |
15350 | substed = 0 | |
15351 | len = length(field[1]) | |
15352 | for (i = 2; i < nfields; i++) { | |
15353 | key = field[i] | |
15354 | keylen = length(key) | |
15355 | if (S_is_set[key]) { | |
15356 | value = S[key] | |
15357 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15358 | len += length(value) + length(field[++i]) | |
15359 | substed = 1 | |
15360 | } else | |
15361 | len += 1 + keylen | |
15362 | } | |
15363 | if (nfields == 3 && !substed) { | |
15364 | key = field[2] | |
15365 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15366 | \$ac_cs_awk_read_file | |
15367 | next | |
15368 | } | |
15369 | } | |
15370 | print line | |
15371 | } | |
15372 | \$ac_cs_awk_pipe_fini | |
15373 | _ACAWK | |
15374 | _ACEOF | |
15375 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15376 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15377 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15378 | else | |
15379 | cat | |
15380 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15381 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15382 | _ACEOF | |
15383 | ||
15384 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15385 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15386 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15387 | # (actually we leave an empty line to preserve line numbers). | |
15388 | if test "x$srcdir" = x.; then | |
15389 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15390 | s/:*\$(srcdir):*/:/ | |
15391 | s/:*\${srcdir}:*/:/ | |
15392 | s/:*@srcdir@:*/:/ | |
15393 | s/^\([^=]*=[ ]*\):*/\1/ | |
15394 | s/:*$// | |
15395 | s/^[^=]*=[ ]*$// | |
15396 | }' | |
15397 | fi | |
2aeb72e9 | 15398 | |
5213506e RW |
15399 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15400 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 15401 | |
1c710c3c | 15402 | |
5213506e RW |
15403 | eval set X " :F $CONFIG_FILES " |
15404 | shift | |
15405 | for ac_tag | |
15406 | do | |
15407 | case $ac_tag in | |
15408 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15409 | esac | |
15410 | case $ac_mode$ac_tag in | |
15411 | :[FHL]*:*);; | |
15412 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15413 | :[FH]-) ac_tag=-:-;; | |
15414 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15415 | esac | |
15416 | ac_save_IFS=$IFS | |
15417 | IFS=: | |
15418 | set x $ac_tag | |
15419 | IFS=$ac_save_IFS | |
15420 | shift | |
15421 | ac_file=$1 | |
15422 | shift | |
79c06341 | 15423 | |
5213506e RW |
15424 | case $ac_mode in |
15425 | :L) ac_source=$1;; | |
15426 | :[FH]) | |
15427 | ac_file_inputs= | |
15428 | for ac_f | |
15429 | do | |
15430 | case $ac_f in | |
15431 | -) ac_f="$tmp/stdin";; | |
15432 | *) # Look for the file first in the build tree, then in the source tree | |
15433 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15434 | # because $ac_f cannot contain `:'. | |
15435 | test -f "$ac_f" || | |
15436 | case $ac_f in | |
15437 | [\\/$]*) false;; | |
15438 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15439 | esac || | |
15440 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15441 | esac | |
15442 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15443 | as_fn_append ac_file_inputs " '$ac_f'" | |
15444 | done | |
1c710c3c | 15445 | |
5213506e RW |
15446 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15447 | # use $as_me), people would be surprised to read: | |
15448 | # /* config.h. Generated by config.status. */ | |
15449 | configure_input='Generated from '` | |
15450 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15451 | `' by configure.' | |
15452 | if test x"$ac_file" != x-; then | |
15453 | configure_input="$ac_file. $configure_input" | |
15454 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15455 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 15456 | fi |
5213506e RW |
15457 | # Neutralize special characters interpreted by sed in replacement strings. |
15458 | case $configure_input in #( | |
15459 | *\&* | *\|* | *\\* ) | |
15460 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15461 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15462 | *) ac_sed_conf_input=$configure_input;; | |
15463 | esac | |
11a67599 | 15464 | |
5213506e RW |
15465 | case $ac_tag in |
15466 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15467 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15468 | esac | |
15469 | ;; | |
11a67599 ZW |
15470 | esac |
15471 | ||
5213506e | 15472 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
15473 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15474 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15475 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
15476 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15477 | $as_echo X"$ac_file" | | |
15478 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15479 | s//\1/ | |
15480 | q | |
15481 | } | |
15482 | /^X\(\/\/\)[^/].*/{ | |
15483 | s//\1/ | |
15484 | q | |
15485 | } | |
15486 | /^X\(\/\/\)$/{ | |
15487 | s//\1/ | |
15488 | q | |
15489 | } | |
15490 | /^X\(\/\).*/{ | |
15491 | s//\1/ | |
15492 | q | |
15493 | } | |
15494 | s/.*/./; q'` | |
15495 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 15496 | ac_builddir=. |
0b0dc272 | 15497 | |
5213506e RW |
15498 | case "$ac_dir" in |
15499 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15500 | *) | |
15501 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15502 | # A ".." for each directory in $ac_dir_suffix. | |
15503 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15504 | case $ac_top_builddir_sub in | |
15505 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15506 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15507 | esac ;; | |
15508 | esac | |
15509 | ac_abs_top_builddir=$ac_pwd | |
15510 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15511 | # for backward compatibility: | |
15512 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
15513 | |
15514 | case $srcdir in | |
5213506e | 15515 | .) # We are building in place. |
1c710c3c | 15516 | ac_srcdir=. |
5213506e RW |
15517 | ac_top_srcdir=$ac_top_builddir_sub |
15518 | ac_abs_top_srcdir=$ac_pwd ;; | |
15519 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 15520 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
15521 | ac_top_srcdir=$srcdir |
15522 | ac_abs_top_srcdir=$srcdir ;; | |
15523 | *) # Relative name. | |
15524 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15525 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15526 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 15527 | esac |
5213506e | 15528 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 15529 | |
0b0dc272 | 15530 | |
5213506e RW |
15531 | case $ac_mode in |
15532 | :F) | |
15533 | # | |
15534 | # CONFIG_FILE | |
15535 | # | |
1c710c3c DJ |
15536 | |
15537 | case $INSTALL in | |
15538 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 15539 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 15540 | esac |
5213506e | 15541 | _ACEOF |
11a67599 | 15542 | |
5213506e RW |
15543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15544 | # If the template does not know about datarootdir, expand it. | |
15545 | # FIXME: This hack should be removed a few years after 2.60. | |
15546 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15547 | ac_sed_dataroot=' | |
15548 | /datarootdir/ { | |
15549 | p | |
15550 | q | |
15551 | } | |
15552 | /@datadir@/p | |
15553 | /@docdir@/p | |
15554 | /@infodir@/p | |
15555 | /@localedir@/p | |
15556 | /@mandir@/p' | |
15557 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15558 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15559 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15560 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15561 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 15562 | _ACEOF |
5213506e RW |
15563 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15564 | ac_datarootdir_hack=' | |
15565 | s&@datadir@&$datadir&g | |
15566 | s&@docdir@&$docdir&g | |
15567 | s&@infodir@&$infodir&g | |
15568 | s&@localedir@&$localedir&g | |
15569 | s&@mandir@&$mandir&g | |
15570 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15571 | esac | |
15572 | _ACEOF | |
15573 | ||
15574 | # Neutralize VPATH when `$srcdir' = `.'. | |
15575 | # Shell code in configure.ac might set extrasub. | |
15576 | # FIXME: do we really want to maintain this feature? | |
15577 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15578 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
15579 | $extrasub |
15580 | _ACEOF | |
5213506e | 15581 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
15582 | :t |
15583 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
15584 | s|@configure_input@|$ac_sed_conf_input|;t t |
15585 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15586 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15587 | s&@srcdir@&$ac_srcdir&;t t | |
15588 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15589 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15590 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15591 | s&@builddir@&$ac_builddir&;t t | |
15592 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15593 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15594 | s&@INSTALL@&$ac_INSTALL&;t t | |
15595 | $ac_datarootdir_hack | |
15596 | " | |
15597 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15598 | if $ac_cs_awk_getline; then | |
15599 | $AWK -f "$tmp/subs.awk" | |
15600 | else | |
15601 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15602 | fi >$tmp/out \ | |
15603 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15604 | ||
15605 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15606 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15607 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15609 | which seems to be undefined. Please make sure it is defined." >&5 | |
15610 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15611 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15612 | ||
15613 | rm -f "$tmp/stdin" | |
15614 | case $ac_file in | |
15615 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15616 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15617 | esac \ | |
15618 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15619 | ;; | |
11a67599 | 15620 | |
11a67599 | 15621 | |
79c06341 | 15622 | |
5213506e RW |
15623 | esac |
15624 | ||
3e54529c RW |
15625 | |
15626 | case $ac_file$ac_mode in | |
15627 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15628 | sed "$extrasub_host" | | |
15629 | sed "$extrasub_target" > mf$$ | |
15630 | mv -f mf$$ Makefile ;; | |
15631 | ||
15632 | esac | |
5213506e RW |
15633 | done # for ac_tag |
15634 | ||
15635 | ||
15636 | as_fn_exit 0 | |
1c710c3c | 15637 | _ACEOF |
1c710c3c DJ |
15638 | ac_clean_files=$ac_clean_files_save |
15639 | ||
5213506e RW |
15640 | test $ac_write_fail = 0 || |
15641 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15642 | ||
1c710c3c DJ |
15643 | |
15644 | # configure is writing to config.log, and then calls config.status. | |
15645 | # config.status does its own redirection, appending to config.log. | |
15646 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15647 | # by configure, so config.status won't be able to write to it; its | |
15648 | # output is simply discarded. So we exec the FD to /dev/null, | |
15649 | # effectively closing config.log, so it can be properly (re)opened and | |
15650 | # appended to by config.status. When coming back to configure, we | |
15651 | # need to make the FD available again. | |
15652 | if test "$no_create" != yes; then | |
15653 | ac_cs_success=: | |
15654 | ac_config_status_args= | |
15655 | test "$silent" = yes && | |
15656 | ac_config_status_args="$ac_config_status_args --quiet" | |
15657 | exec 5>/dev/null | |
15658 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15659 | exec 5>>config.log | |
15660 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15661 | # would make configure fail if this is the last instruction. | |
5213506e RW |
15662 | $ac_cs_success || as_fn_exit $? |
15663 | fi | |
15664 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15666 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 15667 | fi |
79c06341 | 15668 |