]>
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 | |
9bccfdf5 | 577 | OBJCOPY_FOR_TARGET |
5213506e RW |
578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
632e2a07 | 584 | GOC_FOR_TARGET |
5213506e RW |
585 | GFORTRAN_FOR_TARGET |
586 | GCJ_FOR_TARGET | |
587 | GCC_FOR_TARGET | |
588 | CXX_FOR_TARGET | |
589 | CC_FOR_TARGET | |
e7a82751 | 590 | READELF |
5213506e RW |
591 | OBJDUMP |
592 | OBJCOPY | |
593 | WINDMC | |
594 | WINDRES | |
595 | STRIP | |
596 | RANLIB | |
597 | NM | |
598 | LIPO | |
599 | LD | |
600 | DLLTOOL | |
601 | AS | |
602 | AR | |
603 | RUNTEST | |
604 | EXPECT | |
605 | MAKEINFO | |
606 | FLEX | |
607 | LEX | |
608 | M4 | |
609 | BISON | |
610 | YACC | |
5213506e RW |
611 | WINDRES_FOR_BUILD |
612 | WINDMC_FOR_BUILD | |
613 | RANLIB_FOR_BUILD | |
614 | NM_FOR_BUILD | |
615 | LD_FOR_BUILD | |
616 | LDFLAGS_FOR_BUILD | |
632e2a07 | 617 | GOC_FOR_BUILD |
5213506e RW |
618 | GFORTRAN_FOR_BUILD |
619 | GCJ_FOR_BUILD | |
620 | DLLTOOL_FOR_BUILD | |
621 | CXX_FOR_BUILD | |
622 | CXXFLAGS_FOR_BUILD | |
623 | CFLAGS_FOR_BUILD | |
624 | CC_FOR_BUILD | |
625 | AS_FOR_BUILD | |
626 | AR_FOR_BUILD | |
aae29963 | 627 | target_configdirs |
5213506e | 628 | configdirs |
5213506e | 629 | build_configdirs |
5213506e RW |
630 | INSTALL_GDB_TK |
631 | GDB_TK | |
632 | CONFIGURE_GDB_TK | |
633 | build_tooldir | |
634 | tooldir | |
635 | GCC_SHLIB_SUBDIR | |
636 | RPATH_ENVVAR | |
ffedf511 RW |
637 | target_configargs |
638 | host_configargs | |
639 | build_configargs | |
e12c4094 | 640 | BUILD_CONFIG |
6f57bdf6 | 641 | LDFLAGS_FOR_TARGET |
5213506e RW |
642 | CXXFLAGS_FOR_TARGET |
643 | CFLAGS_FOR_TARGET | |
644 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
645 | SYSROOT_CFLAGS_FOR_TARGET | |
1c01ebf6 | 646 | extra_host_zlib_configure_flags |
d7f09764 | 647 | extra_host_libiberty_configure_flags |
fca38047 | 648 | stage1_languages |
45b3824d TS |
649 | extra_linker_plugin_flags |
650 | extra_linker_plugin_configure_flags | |
33ad93b9 | 651 | islinc |
eae1a5d4 | 652 | isllibs |
1e050c90 | 653 | islver |
5213506e | 654 | poststage1_ldflags |
ed2eaa9f | 655 | poststage1_libs |
5213506e | 656 | stage1_ldflags |
0b21f5d3 | 657 | stage1_libs |
0ff2d841 | 658 | extra_isl_gmp_configure_flags |
5213506e RW |
659 | extra_mpc_mpfr_configure_flags |
660 | extra_mpc_gmp_configure_flags | |
661 | extra_mpfr_configure_flags | |
662 | gmpinc | |
663 | gmplibs | |
664 | do_compare | |
665 | GNATMAKE | |
666 | GNATBIND | |
667 | ac_ct_CXX | |
668 | CXXFLAGS | |
669 | CXX | |
670 | OBJEXT | |
671 | EXEEXT | |
672 | ac_ct_CC | |
673 | CPPFLAGS | |
674 | LDFLAGS | |
675 | CFLAGS | |
676 | CC | |
a4a2c37d | 677 | EXTRA_CONFIGARGS_LIBJAVA |
5f520819 | 678 | extra_liboffloadmic_configure_flags |
5213506e RW |
679 | target_subdir |
680 | host_subdir | |
681 | build_subdir | |
682 | build_libsubdir | |
87264276 PB |
683 | AWK |
684 | SED | |
5213506e RW |
685 | LN_S |
686 | LN | |
687 | INSTALL_DATA | |
688 | INSTALL_SCRIPT | |
689 | INSTALL_PROGRAM | |
690 | target_os | |
691 | target_vendor | |
692 | target_cpu | |
693 | target | |
694 | host_os | |
695 | host_vendor | |
696 | host_cpu | |
697 | host | |
698 | target_noncanonical | |
699 | host_noncanonical | |
700 | build_noncanonical | |
701 | build_os | |
702 | build_vendor | |
703 | build_cpu | |
704 | build | |
705 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
706 | target_alias | |
707 | host_alias | |
708 | build_alias | |
709 | LIBS | |
710 | ECHO_T | |
711 | ECHO_N | |
712 | ECHO_C | |
713 | DEFS | |
714 | mandir | |
715 | localedir | |
716 | libdir | |
717 | psdir | |
718 | pdfdir | |
719 | dvidir | |
720 | htmldir | |
721 | infodir | |
722 | docdir | |
723 | oldincludedir | |
724 | includedir | |
725 | localstatedir | |
726 | sharedstatedir | |
727 | sysconfdir | |
728 | datadir | |
729 | datarootdir | |
730 | libexecdir | |
731 | sbindir | |
732 | bindir | |
733 | program_transform_name | |
734 | prefix | |
735 | exec_prefix | |
736 | PACKAGE_URL | |
737 | PACKAGE_BUGREPORT | |
738 | PACKAGE_STRING | |
739 | PACKAGE_VERSION | |
740 | PACKAGE_TARNAME | |
741 | PACKAGE_NAME | |
742 | PATH_SEPARATOR | |
743 | SHELL' | |
744 | ac_subst_files='serialization_dependencies | |
745 | host_makefile_frag | |
746 | target_makefile_frag | |
747 | alphaieee_frag | |
748 | ospace_frag' | |
749 | ac_user_opts=' | |
750 | enable_option_checking | |
751 | with_build_libsubdir | |
a05c2c75 | 752 | with_system_zlib |
85c64bbe BS |
753 | enable_as_accelerator_for |
754 | enable_offload_targets | |
5213506e | 755 | enable_gold |
21539e2e | 756 | enable_ld |
78edb32f | 757 | enable_compressed_debug_sections |
87e6d9dc TB |
758 | enable_libquadmath |
759 | enable_libquadmath_support | |
5213506e RW |
760 | enable_libada |
761 | enable_libssp | |
1873ec0c | 762 | enable_libstdcxx |
5f520819 | 763 | enable_liboffloadmic |
a4a2c37d | 764 | enable_static_libjava |
ff3ac0f4 | 765 | enable_bootstrap |
5213506e RW |
766 | with_mpc |
767 | with_mpc_include | |
768 | with_mpc_lib | |
769 | with_mpfr_dir | |
770 | with_mpfr | |
771 | with_mpfr_include | |
772 | with_mpfr_lib | |
773 | with_gmp_dir | |
774 | with_gmp | |
775 | with_gmp_include | |
776 | with_gmp_lib | |
5213506e | 777 | with_stage1_libs |
0b21f5d3 | 778 | with_stage1_ldflags |
5213506e | 779 | with_boot_libs |
ed2eaa9f | 780 | with_boot_ldflags |
33ad93b9 RG |
781 | with_isl |
782 | with_isl_include | |
783 | with_isl_lib | |
784 | enable_isl_version_check | |
d7f09764 | 785 | enable_lto |
45b3824d TS |
786 | enable_linker_plugin_configure_flags |
787 | enable_linker_plugin_flags | |
5213506e RW |
788 | enable_stage1_languages |
789 | enable_objc_gc | |
790 | with_build_sysroot | |
791 | with_debug_prefix_map | |
5646b7b9 | 792 | with_build_config |
beeda1d9 | 793 | enable_vtable_verify |
5213506e RW |
794 | enable_serial_configure |
795 | with_build_time_tools | |
796 | enable_maintainer_mode | |
797 | enable_stage1_checking | |
798 | enable_werror | |
459260ec | 799 | enable_host_shared |
5213506e RW |
800 | ' |
801 | ac_precious_vars='build_alias | |
802 | host_alias | |
803 | target_alias | |
804 | CC | |
805 | CFLAGS | |
806 | LDFLAGS | |
807 | LIBS | |
808 | CPPFLAGS | |
809 | CXX | |
810 | CXXFLAGS | |
811 | CCC | |
ffedf511 RW |
812 | build_configargs |
813 | host_configargs | |
814 | target_configargs | |
5213506e RW |
815 | AR |
816 | AS | |
817 | DLLTOOL | |
818 | LD | |
819 | LIPO | |
820 | NM | |
821 | RANLIB | |
822 | STRIP | |
823 | WINDRES | |
824 | WINDMC | |
825 | OBJCOPY | |
826 | OBJDUMP | |
e7a82751 | 827 | READELF |
5213506e RW |
828 | CC_FOR_TARGET |
829 | CXX_FOR_TARGET | |
830 | GCC_FOR_TARGET | |
831 | GCJ_FOR_TARGET | |
832 | GFORTRAN_FOR_TARGET | |
632e2a07 | 833 | GOC_FOR_TARGET |
5213506e RW |
834 | AR_FOR_TARGET |
835 | AS_FOR_TARGET | |
836 | DLLTOOL_FOR_TARGET | |
837 | LD_FOR_TARGET | |
838 | LIPO_FOR_TARGET | |
839 | NM_FOR_TARGET | |
9bccfdf5 | 840 | OBJCOPY_FOR_TARGET |
5213506e RW |
841 | OBJDUMP_FOR_TARGET |
842 | RANLIB_FOR_TARGET | |
e7a82751 | 843 | READELF_FOR_TARGET |
5213506e RW |
844 | STRIP_FOR_TARGET |
845 | WINDRES_FOR_TARGET | |
846 | WINDMC_FOR_TARGET' | |
847 | ||
671aa708 NN |
848 | |
849 | # Initialize some variables set by options. | |
1c710c3c DJ |
850 | ac_init_help= |
851 | ac_init_version=false | |
5213506e RW |
852 | ac_unrecognized_opts= |
853 | ac_unrecognized_sep= | |
671aa708 NN |
854 | # The variables have the same names as the options, with |
855 | # dashes changed to underlines. | |
1c710c3c | 856 | cache_file=/dev/null |
671aa708 | 857 | exec_prefix=NONE |
671aa708 | 858 | no_create= |
671aa708 NN |
859 | no_recursion= |
860 | prefix=NONE | |
861 | program_prefix=NONE | |
862 | program_suffix=NONE | |
863 | program_transform_name=s,x,x, | |
864 | silent= | |
865 | site= | |
866 | srcdir= | |
671aa708 NN |
867 | verbose= |
868 | x_includes=NONE | |
869 | x_libraries=NONE | |
1c710c3c DJ |
870 | |
871 | # Installation directory options. | |
872 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
873 | # and all the variables that are supposed to be based on exec_prefix | |
874 | # by default will actually change. | |
875 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 876 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
877 | bindir='${exec_prefix}/bin' |
878 | sbindir='${exec_prefix}/sbin' | |
879 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
880 | datarootdir='${prefix}/share' |
881 | datadir='${datarootdir}' | |
671aa708 NN |
882 | sysconfdir='${prefix}/etc' |
883 | sharedstatedir='${prefix}/com' | |
884 | localstatedir='${prefix}/var' | |
671aa708 NN |
885 | includedir='${prefix}/include' |
886 | oldincludedir='/usr/include' | |
5213506e RW |
887 | docdir='${datarootdir}/doc/${PACKAGE}' |
888 | infodir='${datarootdir}/info' | |
889 | htmldir='${docdir}' | |
890 | dvidir='${docdir}' | |
891 | pdfdir='${docdir}' | |
892 | psdir='${docdir}' | |
893 | libdir='${exec_prefix}/lib' | |
894 | localedir='${datarootdir}/locale' | |
895 | mandir='${datarootdir}/man' | |
79c06341 | 896 | |
671aa708 | 897 | ac_prev= |
5213506e | 898 | ac_dashdash= |
671aa708 NN |
899 | for ac_option |
900 | do | |
671aa708 NN |
901 | # If the previous option needs an argument, assign it. |
902 | if test -n "$ac_prev"; then | |
5213506e | 903 | eval $ac_prev=\$ac_option |
671aa708 NN |
904 | ac_prev= |
905 | continue | |
906 | fi | |
79c06341 | 907 | |
5213506e RW |
908 | case $ac_option in |
909 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
910 | *) ac_optarg=yes ;; | |
911 | esac | |
671aa708 NN |
912 | |
913 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
914 | ||
5213506e RW |
915 | case $ac_dashdash$ac_option in |
916 | --) | |
917 | ac_dashdash=yes ;; | |
671aa708 NN |
918 | |
919 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
920 | ac_prev=bindir ;; | |
921 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 922 | bindir=$ac_optarg ;; |
671aa708 NN |
923 | |
924 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 925 | ac_prev=build_alias ;; |
671aa708 | 926 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 927 | build_alias=$ac_optarg ;; |
671aa708 NN |
928 | |
929 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
930 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
931 | ac_prev=cache_file ;; | |
932 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
933 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
934 | cache_file=$ac_optarg ;; |
935 | ||
936 | --config-cache | -C) | |
937 | cache_file=config.cache ;; | |
671aa708 | 938 | |
5213506e | 939 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 940 | ac_prev=datadir ;; |
5213506e | 941 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 942 | datadir=$ac_optarg ;; |
671aa708 | 943 | |
5213506e RW |
944 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
945 | | --dataroo | --dataro | --datar) | |
946 | ac_prev=datarootdir ;; | |
947 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
948 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
949 | datarootdir=$ac_optarg ;; | |
950 | ||
671aa708 | 951 | -disable-* | --disable-*) |
5213506e | 952 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 953 | # Reject names that are not valid shell variable names. |
5213506e RW |
954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
955 | as_fn_error "invalid feature name: $ac_useropt" | |
956 | ac_useropt_orig=$ac_useropt | |
957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
958 | case $ac_user_opts in | |
959 | *" | |
960 | "enable_$ac_useropt" | |
961 | "*) ;; | |
962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
963 | ac_unrecognized_sep=', ';; | |
964 | esac | |
965 | eval enable_$ac_useropt=no ;; | |
966 | ||
967 | -docdir | --docdir | --docdi | --doc | --do) | |
968 | ac_prev=docdir ;; | |
969 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
970 | docdir=$ac_optarg ;; | |
971 | ||
972 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
973 | ac_prev=dvidir ;; | |
974 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
975 | dvidir=$ac_optarg ;; | |
671aa708 NN |
976 | |
977 | -enable-* | --enable-*) | |
5213506e | 978 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 979 | # Reject names that are not valid shell variable names. |
5213506e RW |
980 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
981 | as_fn_error "invalid feature name: $ac_useropt" | |
982 | ac_useropt_orig=$ac_useropt | |
983 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
984 | case $ac_user_opts in | |
985 | *" | |
986 | "enable_$ac_useropt" | |
987 | "*) ;; | |
988 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
989 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 990 | esac |
5213506e | 991 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
992 | |
993 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
994 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
995 | | --exec | --exe | --ex) | |
996 | ac_prev=exec_prefix ;; | |
997 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
998 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
999 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1000 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1001 | |
1002 | -gas | --gas | --ga | --g) | |
1003 | # Obsolete; use --with-gas. | |
1004 | with_gas=yes ;; | |
1005 | ||
1c710c3c DJ |
1006 | -help | --help | --hel | --he | -h) |
1007 | ac_init_help=long ;; | |
1008 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1009 | ac_init_help=recursive ;; | |
1010 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1011 | ac_init_help=short ;; | |
671aa708 NN |
1012 | |
1013 | -host | --host | --hos | --ho) | |
1c710c3c | 1014 | ac_prev=host_alias ;; |
671aa708 | 1015 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1016 | host_alias=$ac_optarg ;; |
671aa708 | 1017 | |
5213506e RW |
1018 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1019 | ac_prev=htmldir ;; | |
1020 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1021 | | --ht=*) | |
1022 | htmldir=$ac_optarg ;; | |
1023 | ||
671aa708 NN |
1024 | -includedir | --includedir | --includedi | --included | --include \ |
1025 | | --includ | --inclu | --incl | --inc) | |
1026 | ac_prev=includedir ;; | |
1027 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1028 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1029 | includedir=$ac_optarg ;; |
671aa708 NN |
1030 | |
1031 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1032 | ac_prev=infodir ;; | |
1033 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1034 | infodir=$ac_optarg ;; |
671aa708 NN |
1035 | |
1036 | -libdir | --libdir | --libdi | --libd) | |
1037 | ac_prev=libdir ;; | |
1038 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1039 | libdir=$ac_optarg ;; |
671aa708 NN |
1040 | |
1041 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1042 | | --libexe | --libex | --libe) | |
1043 | ac_prev=libexecdir ;; | |
1044 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1045 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1046 | libexecdir=$ac_optarg ;; |
671aa708 | 1047 | |
5213506e RW |
1048 | -localedir | --localedir | --localedi | --localed | --locale) |
1049 | ac_prev=localedir ;; | |
1050 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1051 | localedir=$ac_optarg ;; | |
1052 | ||
671aa708 | 1053 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1054 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1055 | ac_prev=localstatedir ;; |
1056 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1057 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1058 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1059 | |
1060 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1061 | ac_prev=mandir ;; | |
1062 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1063 | mandir=$ac_optarg ;; |
671aa708 NN |
1064 | |
1065 | -nfp | --nfp | --nf) | |
1066 | # Obsolete; use --without-fp. | |
1067 | with_fp=no ;; | |
1068 | ||
1069 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1070 | | --no-cr | --no-c | -n) |
671aa708 NN |
1071 | no_create=yes ;; |
1072 | ||
1073 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1074 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1075 | no_recursion=yes ;; | |
1076 | ||
1077 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1078 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1079 | | --oldin | --oldi | --old | --ol | --o) | |
1080 | ac_prev=oldincludedir ;; | |
1081 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1082 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1083 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1084 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1085 | |
1086 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1087 | ac_prev=prefix ;; | |
1088 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1089 | prefix=$ac_optarg ;; |
671aa708 NN |
1090 | |
1091 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1092 | | --program-pre | --program-pr | --program-p) | |
1093 | ac_prev=program_prefix ;; | |
1094 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1095 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1096 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1097 | |
1098 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1099 | | --program-suf | --program-su | --program-s) | |
1100 | ac_prev=program_suffix ;; | |
1101 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1102 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1103 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1104 | |
1105 | -program-transform-name | --program-transform-name \ | |
1106 | | --program-transform-nam | --program-transform-na \ | |
1107 | | --program-transform-n | --program-transform- \ | |
1108 | | --program-transform | --program-transfor \ | |
1109 | | --program-transfo | --program-transf \ | |
1110 | | --program-trans | --program-tran \ | |
1111 | | --progr-tra | --program-tr | --program-t) | |
1112 | ac_prev=program_transform_name ;; | |
1113 | -program-transform-name=* | --program-transform-name=* \ | |
1114 | | --program-transform-nam=* | --program-transform-na=* \ | |
1115 | | --program-transform-n=* | --program-transform-=* \ | |
1116 | | --program-transform=* | --program-transfor=* \ | |
1117 | | --program-transfo=* | --program-transf=* \ | |
1118 | | --program-trans=* | --program-tran=* \ | |
1119 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1120 | program_transform_name=$ac_optarg ;; |
671aa708 | 1121 | |
5213506e RW |
1122 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1123 | ac_prev=pdfdir ;; | |
1124 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1125 | pdfdir=$ac_optarg ;; | |
1126 | ||
1127 | -psdir | --psdir | --psdi | --psd | --ps) | |
1128 | ac_prev=psdir ;; | |
1129 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1130 | psdir=$ac_optarg ;; | |
1131 | ||
671aa708 NN |
1132 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1133 | | -silent | --silent | --silen | --sile | --sil) | |
1134 | silent=yes ;; | |
1135 | ||
1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
1c710c3c | 1140 | sbindir=$ac_optarg ;; |
671aa708 NN |
1141 | |
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
1c710c3c | 1151 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1152 | |
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1156 | site=$ac_optarg ;; |
671aa708 NN |
1157 | |
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1161 | srcdir=$ac_optarg ;; |
671aa708 NN |
1162 | |
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1168 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1169 | |
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1171 | ac_prev=target_alias ;; |
671aa708 | 1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1173 | target_alias=$ac_optarg ;; |
671aa708 NN |
1174 | |
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
1c710c3c DJ |
1178 | -version | --version | --versio | --versi | --vers | -V) |
1179 | ac_init_version=: ;; | |
671aa708 NN |
1180 | |
1181 | -with-* | --with-*) | |
5213506e | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1183 | # Reject names that are not valid shell variable names. |
5213506e RW |
1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1185 | as_fn_error "invalid package name: $ac_useropt" | |
1186 | ac_useropt_orig=$ac_useropt | |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1194 | esac |
5213506e | 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1196 | |
1197 | -without-* | --without-*) | |
5213506e | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1199 | # Reject names that are not valid shell variable names. |
5213506e RW |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | as_fn_error "invalid package name: $ac_useropt" | |
1202 | ac_useropt_orig=$ac_useropt | |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1212 | |
1213 | --x) | |
1214 | # Obsolete; use --with-x. | |
1215 | with_x=yes ;; | |
1216 | ||
1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1218 | | --x-incl | --x-inc | --x-in | --x-i) | |
1219 | ac_prev=x_includes ;; | |
1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1222 | x_includes=$ac_optarg ;; |
671aa708 NN |
1223 | |
1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1226 | ac_prev=x_libraries ;; | |
1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1229 | x_libraries=$ac_optarg ;; |
671aa708 | 1230 | |
5213506e RW |
1231 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1232 | Try \`$0 --help' for more information." | |
671aa708 NN |
1233 | ;; |
1234 | ||
1c710c3c DJ |
1235 | *=*) |
1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1237 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1238 | case $ac_envvar in #( |
1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1240 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1241 | esac | |
1242 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1243 | export $ac_envvar ;; |
1244 | ||
671aa708 | 1245 | *) |
1c710c3c | 1246 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1c710c3c | 1250 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
671aa708 NN |
1251 | ;; |
1252 | ||
1253 | esac | |
1254 | done | |
1255 | ||
1256 | if test -n "$ac_prev"; then | |
1c710c3c | 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5213506e | 1258 | as_fn_error "missing argument to $ac_option" |
af71363e | 1259 | fi |
af71363e | 1260 | |
5213506e RW |
1261 | if test -n "$ac_unrecognized_opts"; then |
1262 | case $enable_option_checking in | |
1263 | no) ;; | |
1264 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
2aeb72e9 | 1266 | esac |
5213506e | 1267 | fi |
2aeb72e9 | 1268 | |
5213506e RW |
1269 | # Check all directory arguments for consistency. |
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1273 | libdir localedir mandir | |
2aeb72e9 | 1274 | do |
5213506e RW |
1275 | eval ac_val=\$$ac_var |
1276 | # Remove trailing slashes. | |
1277 | case $ac_val in | |
1278 | */ ) | |
1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1280 | eval $ac_var=\$ac_val;; | |
1281 | esac | |
1282 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1283 | case $ac_val in |
5213506e RW |
1284 | [\\/$]* | ?:[\\/]* ) continue;; |
1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1286 | esac |
5213506e | 1287 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1288 | done |
1289 | ||
1c710c3c DJ |
1290 | # There might be people who depend on the old broken behavior: `$host' |
1291 | # used to hold the argument of --host etc. | |
1292 | # FIXME: To remove some day. | |
1293 | build=$build_alias | |
1294 | host=$host_alias | |
1295 | target=$target_alias | |
0b0dc272 | 1296 | |
1c710c3c DJ |
1297 | # FIXME: To remove some day. |
1298 | if test "x$host_alias" != x; then | |
1299 | if test "x$build_alias" = x; then | |
1300 | cross_compiling=maybe | |
5213506e | 1301 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1c710c3c DJ |
1302 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1303 | elif test "x$build_alias" != "x$host_alias"; then | |
1304 | cross_compiling=yes | |
1305 | fi | |
1306 | fi | |
1307 | ||
1308 | ac_tool_prefix= | |
1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1310 | ||
1311 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1312 | |
671aa708 | 1313 | |
5213506e RW |
1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1315 | ac_ls_di=`ls -di .` && | |
1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1317 | as_fn_error "working directory cannot be determined" | |
1318 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1319 | as_fn_error "pwd does not report name of working directory" | |
1320 | ||
1321 | ||
671aa708 NN |
1322 | # Find the source files, if location was not specified. |
1323 | if test -z "$srcdir"; then | |
1324 | ac_srcdir_defaulted=yes | |
5213506e RW |
1325 | # Try the directory containing this script, then the parent directory. |
1326 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1329 | X"$as_myself" : 'X\(//\)$' \| \ | |
1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1331 | $as_echo X"$as_myself" | | |
1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)[^/].*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\).*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | s/.*/./; q'` | |
671aa708 | 1349 | srcdir=$ac_confdir |
5213506e | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1351 | srcdir=.. |
1352 | fi | |
1353 | else | |
1354 | ac_srcdir_defaulted=no | |
1355 | fi | |
5213506e RW |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1358 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1359 | fi | |
1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1361 | ac_abs_confdir=`( | |
1362 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1363 | pwd)` | |
1364 | # When building in place, set srcdir=. | |
1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1366 | srcdir=. | |
1367 | fi | |
1368 | # Remove unnecessary trailing slashes from srcdir. | |
1369 | # Double slashes in file names in object file debugging info | |
1370 | # mess up M-x gdb in Emacs. | |
1371 | case $srcdir in | |
1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1373 | esac | |
87841584 AM |
1374 | case $srcdir in |
1375 | *" "*) | |
1376 | as_fn_error "path to source, $srcdir, contains spaces" | |
1377 | ;; | |
1378 | esac | |
ac9e6043 RW |
1379 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1380 | ||
5213506e RW |
1381 | for ac_var in $ac_precious_vars; do |
1382 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 | done | |
1c710c3c DJ |
1387 | |
1388 | # | |
1389 | # Report the --help message. | |
1390 | # | |
1391 | if test "$ac_init_help" = "long"; then | |
1392 | # Omit some internal or obsolete options to make the list less imposing. | |
1393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 | cat <<_ACEOF | |
1395 | \`configure' configures this package to adapt to many kinds of systems. | |
1396 | ||
1397 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1398 | ||
1399 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1400 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1401 | ||
1402 | Defaults for the options are specified in brackets. | |
1403 | ||
1404 | Configuration: | |
1405 | -h, --help display this help and exit | |
1406 | --help=short display options specific to this package | |
1407 | --help=recursive display the short help of all the included packages | |
1408 | -V, --version display version information and exit | |
1409 | -q, --quiet, --silent do not print \`checking...' messages | |
1410 | --cache-file=FILE cache test results in FILE [disabled] | |
1411 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 | -n, --no-create do not create output files | |
1413 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | ||
1c710c3c DJ |
1415 | Installation directories: |
1416 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1417 | [$ac_default_prefix] |
1c710c3c | 1418 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1419 | [PREFIX] |
1c710c3c DJ |
1420 | |
1421 | By default, \`make install' will install all the files in | |
1422 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 | for instance \`--prefix=\$HOME'. | |
1425 | ||
1426 | For better control, use the options below. | |
1427 | ||
1428 | Fine tuning of the installation directories: | |
5213506e RW |
1429 | --bindir=DIR user executables [EPREFIX/bin] |
1430 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 | --includedir=DIR C header files [PREFIX/include] | |
1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1443 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1444 | --htmldir=DIR html documentation [DOCDIR] | |
1445 | --dvidir=DIR dvi documentation [DOCDIR] | |
1446 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1448 | _ACEOF |
1449 | ||
1450 | cat <<\_ACEOF | |
1451 | ||
1452 | Program names: | |
1453 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1456 | ||
1457 | System types: | |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1461 | _ACEOF | |
1462 | fi | |
1463 | ||
1464 | if test -n "$ac_init_help"; then | |
1465 | ||
1466 | cat <<\_ACEOF | |
1467 | ||
1468 | Optional Features: | |
5213506e | 1469 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1472 | --enable-as-accelerator-for=ARG |
1473 | build as offload target compiler. Specify offload | |
1474 | host triple by ARG | |
1475 | --enable-offload-targets=LIST | |
1476 | enable offloading to devices from comma-separated | |
1477 | LIST of TARGET[=DIR]. Use optional path to find | |
1478 | offload target compiler during the build | |
21539e2e | 1479 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1480 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1481 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1482 | Enable compressed debug sections for gas, gold or ld |
1483 | by default | |
87e6d9dc TB |
1484 | --disable-libquadmath do not build libquadmath directory |
1485 | --disable-libquadmath-support | |
1486 | disable libquadmath support for Fortran | |
30b74385 RW |
1487 | --enable-libada build libada directory |
1488 | --enable-libssp build libssp directory | |
1873ec0c | 1489 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1490 | --enable-liboffloadmic=ARG |
1491 | build liboffloadmic [ARG={no,host,target}] | |
a4a2c37d MK |
1492 | --enable-static-libjava[=ARG] |
1493 | build static libjava [default=no] | |
ff3ac0f4 | 1494 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1495 | --disable-isl-version-check |
560d18d3 | 1496 | disable check for isl version |
d7f09764 | 1497 | --enable-lto enable link time optimization support |
45b3824d TS |
1498 | --enable-linker-plugin-configure-flags=FLAGS |
1499 | additional flags for configuring linker plugins | |
1500 | [none] | |
1501 | --enable-linker-plugin-flags=FLAGS | |
1502 | additional flags for configuring and building linker | |
1503 | plugins [none] | |
33e39b66 AS |
1504 | --enable-stage1-languages[=all] |
1505 | choose additional languages to build during stage1. | |
1506 | Mostly useful for compiler development | |
1507 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1508 | Objective-C runtime | |
318a4e6d | 1509 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1510 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1511 | force sequential configuration of sub-packages for |
1512 | the host, target or build machine, or all | |
1513 | sub-packages | |
1514 | --enable-maintainer-mode | |
1515 | enable make rules and dependencies not useful (and | |
1516 | sometimes confusing) to the casual installer | |
1517 | --enable-stage1-checking[=all] | |
1518 | choose additional checking for stage1 of the | |
1519 | compiler | |
1c710c3c | 1520 | --enable-werror enable -Werror in bootstrap stage2 and later |
459260ec | 1521 | --enable-host-shared build host code as shared libraries |
1c710c3c DJ |
1522 | |
1523 | Optional Packages: | |
1524 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1525 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1526 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1527 | --with-system-zlib use installed libz |
33e39b66 AS |
1528 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1529 | Equivalent to --with-mpc-include=PATH/include plus | |
1530 | --with-mpc-lib=PATH/lib | |
1531 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1532 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1533 | --with-mpfr-dir=PATH this option has been REMOVED |
1534 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1535 | Equivalent to --with-mpfr-include=PATH/include plus |
1536 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1537 | --with-mpfr-include=PATH |
30b74385 RW |
1538 | specify directory for installed MPFR include files |
1539 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1540 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1541 | --with-gmp=PATH specify prefix directory for the installed GMP |
1542 | package. Equivalent to | |
1543 | --with-gmp-include=PATH/include plus | |
1544 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1545 | --with-gmp-include=PATH specify directory for installed GMP include files |
1546 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1547 | --with-stage1-libs=LIBS libraries for stage1 |
33e39b66 AS |
1548 | --with-stage1-ldflags=FLAGS |
1549 | linker flags for stage1 | |
33e39b66 AS |
1550 | --with-boot-libs=LIBS libraries for stage2 and later |
1551 | --with-boot-ldflags=FLAGS | |
1552 | linker flags for stage2 and later | |
e357a5e0 | 1553 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1554 | package. Equivalent to |
33ad93b9 RG |
1555 | --with-isl-include=PATH/include plus |
1556 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1557 | --with-isl-include=PATH Specify directory for installed isl include files |
1558 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
30b74385 | 1559 | --with-build-sysroot=SYSROOT |
1c710c3c | 1560 | use sysroot as the system root during the build |
c8aea42c | 1561 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1562 | map A to B, C to D ... in debug information |
1563 | --with-build-config='NAME NAME2...' | |
1564 | use config/NAME.mk build configuration | |
30b74385 | 1565 | --with-build-time-tools=PATH |
1c710c3c | 1566 | use given path to find target tools during the build |
1c710c3c DJ |
1567 | |
1568 | Some influential environment variables: | |
1569 | CC C compiler command | |
1570 | CFLAGS C compiler flags | |
1571 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1572 | nonstandard directory <lib dir> | |
5213506e RW |
1573 | LIBS libraries to pass to the linker, e.g. -l<library> |
1574 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1575 | you have headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
1576 | CXX C++ compiler command |
1577 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1578 | build_configargs |
1579 | additional configure arguments for build directories | |
1580 | host_configargs | |
1581 | additional configure arguments for host directories | |
1582 | target_configargs | |
1583 | additional configure arguments for target directories | |
278a7a38 AO |
1584 | AR AR for the host |
1585 | AS AS for the host | |
1586 | DLLTOOL DLLTOOL for the host | |
1587 | LD LD for the host | |
1588 | LIPO LIPO for the host | |
1589 | NM NM for the host | |
1590 | RANLIB RANLIB for the host | |
1591 | STRIP STRIP for the host | |
1592 | WINDRES WINDRES for the host | |
901119ae | 1593 | WINDMC WINDMC for the host |
278a7a38 AO |
1594 | OBJCOPY OBJCOPY for the host |
1595 | OBJDUMP OBJDUMP for the host | |
e7a82751 | 1596 | READELF READELF for the host |
278a7a38 AO |
1597 | CC_FOR_TARGET |
1598 | CC for the target | |
1599 | CXX_FOR_TARGET | |
1600 | CXX for the target | |
1601 | GCC_FOR_TARGET | |
1602 | GCC for the target | |
1603 | GCJ_FOR_TARGET | |
1604 | GCJ for the target | |
1605 | GFORTRAN_FOR_TARGET | |
1606 | GFORTRAN for the target | |
632e2a07 ILT |
1607 | GOC_FOR_TARGET |
1608 | GOC for the target | |
278a7a38 AO |
1609 | AR_FOR_TARGET |
1610 | AR for the target | |
1611 | AS_FOR_TARGET | |
1612 | AS for the target | |
1613 | DLLTOOL_FOR_TARGET | |
1614 | DLLTOOL for the target | |
1615 | LD_FOR_TARGET | |
1616 | LD for the target | |
1617 | LIPO_FOR_TARGET | |
1618 | LIPO for the target | |
1619 | NM_FOR_TARGET | |
1620 | NM for the target | |
9bccfdf5 AP |
1621 | OBJCOPY_FOR_TARGET |
1622 | OBJCOPY for the target | |
278a7a38 AO |
1623 | OBJDUMP_FOR_TARGET |
1624 | OBJDUMP for the target | |
1625 | RANLIB_FOR_TARGET | |
1626 | RANLIB for the target | |
e7a82751 RM |
1627 | READELF_FOR_TARGET |
1628 | READELF for the target | |
278a7a38 AO |
1629 | STRIP_FOR_TARGET |
1630 | STRIP for the target | |
1631 | WINDRES_FOR_TARGET | |
1632 | WINDRES for the target | |
901119ae KT |
1633 | WINDMC_FOR_TARGET |
1634 | WINDMC for the target | |
1c710c3c DJ |
1635 | |
1636 | Use these variables to override the choices made by `configure' or to help | |
1637 | it to find libraries and programs with nonstandard names/locations. | |
1638 | ||
5213506e | 1639 | Report bugs to the package provider. |
1c710c3c | 1640 | _ACEOF |
5213506e | 1641 | ac_status=$? |
1c710c3c DJ |
1642 | fi |
1643 | ||
1644 | if test "$ac_init_help" = "recursive"; then | |
1645 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1646 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1647 | test -d "$ac_dir" || |
1648 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1649 | continue | |
1c710c3c DJ |
1650 | ac_builddir=. |
1651 | ||
5213506e RW |
1652 | case "$ac_dir" in |
1653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1654 | *) | |
1655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1656 | # A ".." for each directory in $ac_dir_suffix. | |
1657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1658 | case $ac_top_builddir_sub in | |
1659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1661 | esac ;; | |
1662 | esac | |
1663 | ac_abs_top_builddir=$ac_pwd | |
1664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1665 | # for backward compatibility: | |
1666 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1667 | |
1668 | case $srcdir in | |
5213506e | 1669 | .) # We are building in place. |
1c710c3c | 1670 | ac_srcdir=. |
5213506e RW |
1671 | ac_top_srcdir=$ac_top_builddir_sub |
1672 | ac_abs_top_srcdir=$ac_pwd ;; | |
1673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1674 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1675 | ac_top_srcdir=$srcdir |
1676 | ac_abs_top_srcdir=$srcdir ;; | |
1677 | *) # Relative name. | |
1678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1681 | esac |
5213506e RW |
1682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1683 | ||
1684 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1685 | # Check for guested configure. | |
1686 | if test -f "$ac_srcdir/configure.gnu"; then | |
1687 | echo && | |
1688 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1689 | elif test -f "$ac_srcdir/configure"; then | |
1690 | echo && | |
1691 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1692 | else |
5213506e RW |
1693 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1694 | fi || ac_status=$? | |
1695 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1696 | done |
1697 | fi | |
1698 | ||
5213506e | 1699 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1700 | if $ac_init_version; then |
1701 | cat <<\_ACEOF | |
5213506e RW |
1702 | configure |
1703 | generated by GNU Autoconf 2.64 | |
1c710c3c | 1704 | |
5213506e | 1705 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
1706 | This configure script is free software; the Free Software Foundation |
1707 | gives unlimited permission to copy, distribute and modify it. | |
1708 | _ACEOF | |
5213506e | 1709 | exit |
0b0dc272 | 1710 | fi |
5213506e RW |
1711 | |
1712 | ## ------------------------ ## | |
1713 | ## Autoconf initialization. ## | |
1714 | ## ------------------------ ## | |
1715 | ||
1716 | # ac_fn_c_try_compile LINENO | |
1717 | # -------------------------- | |
1718 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1719 | ac_fn_c_try_compile () | |
1720 | { | |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1722 | rm -f conftest.$ac_objext | |
1723 | if { { ac_try="$ac_compile" | |
1724 | case "(($ac_try" in | |
1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1726 | *) ac_try_echo=$ac_try;; | |
1727 | esac | |
1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1729 | $as_echo "$ac_try_echo"; } >&5 | |
1730 | (eval "$ac_compile") 2>conftest.err | |
1731 | ac_status=$? | |
1732 | if test -s conftest.err; then | |
1733 | grep -v '^ *+' conftest.err >conftest.er1 | |
1734 | cat conftest.er1 >&5 | |
1735 | mv -f conftest.er1 conftest.err | |
1736 | fi | |
1737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1738 | test $ac_status = 0; } && { | |
1739 | test -z "$ac_c_werror_flag" || | |
1740 | test ! -s conftest.err | |
1741 | } && test -s conftest.$ac_objext; then : | |
1742 | ac_retval=0 | |
1743 | else | |
1744 | $as_echo "$as_me: failed program was:" >&5 | |
1745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1746 | ||
1747 | ac_retval=1 | |
1748 | fi | |
1749 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1750 | return $ac_retval | |
1751 | ||
1752 | } # ac_fn_c_try_compile | |
1753 | ||
1754 | # ac_fn_cxx_try_compile LINENO | |
1755 | # ---------------------------- | |
1756 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1757 | ac_fn_cxx_try_compile () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | rm -f conftest.$ac_objext | |
1761 | if { { ac_try="$ac_compile" | |
1762 | case "(($ac_try" in | |
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1764 | *) ac_try_echo=$ac_try;; | |
1765 | esac | |
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1767 | $as_echo "$ac_try_echo"; } >&5 | |
1768 | (eval "$ac_compile") 2>conftest.err | |
1769 | ac_status=$? | |
1770 | if test -s conftest.err; then | |
1771 | grep -v '^ *+' conftest.err >conftest.er1 | |
1772 | cat conftest.er1 >&5 | |
1773 | mv -f conftest.er1 conftest.err | |
1774 | fi | |
1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1776 | test $ac_status = 0; } && { | |
1777 | test -z "$ac_cxx_werror_flag" || | |
1778 | test ! -s conftest.err | |
1779 | } && test -s conftest.$ac_objext; then : | |
1780 | ac_retval=0 | |
1781 | else | |
1782 | $as_echo "$as_me: failed program was:" >&5 | |
1783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1784 | ||
1785 | ac_retval=1 | |
1786 | fi | |
1787 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1788 | return $ac_retval | |
1789 | ||
1790 | } # ac_fn_cxx_try_compile | |
1791 | ||
0b21f5d3 EB |
1792 | # ac_fn_cxx_try_link LINENO |
1793 | # ------------------------- | |
1794 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1795 | ac_fn_cxx_try_link () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1799 | if { { ac_try="$ac_link" | |
1800 | case "(($ac_try" in | |
1801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1802 | *) ac_try_echo=$ac_try;; | |
1803 | esac | |
1804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1805 | $as_echo "$ac_try_echo"; } >&5 | |
1806 | (eval "$ac_link") 2>conftest.err | |
1807 | ac_status=$? | |
1808 | if test -s conftest.err; then | |
1809 | grep -v '^ *+' conftest.err >conftest.er1 | |
1810 | cat conftest.er1 >&5 | |
1811 | mv -f conftest.er1 conftest.err | |
1812 | fi | |
1813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1814 | test $ac_status = 0; } && { | |
1815 | test -z "$ac_cxx_werror_flag" || | |
1816 | test ! -s conftest.err | |
1817 | } && test -s conftest$ac_exeext && { | |
1818 | test "$cross_compiling" = yes || | |
1819 | $as_test_x conftest$ac_exeext | |
1820 | }; then : | |
1821 | ac_retval=0 | |
1822 | else | |
1823 | $as_echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_retval=1 | |
1827 | fi | |
1828 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1829 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1830 | # interfere with the next link command; also delete a directory that is | |
1831 | # left behind by Apple's compiler. We do this before executing the actions. | |
1832 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1833 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1834 | return $ac_retval | |
1835 | ||
1836 | } # ac_fn_cxx_try_link | |
1837 | ||
5213506e RW |
1838 | # ac_fn_c_try_link LINENO |
1839 | # ----------------------- | |
1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1841 | ac_fn_c_try_link () | |
1842 | { | |
1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1845 | if { { ac_try="$ac_link" | |
1846 | case "(($ac_try" in | |
1847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1848 | *) ac_try_echo=$ac_try;; | |
1849 | esac | |
1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1851 | $as_echo "$ac_try_echo"; } >&5 | |
1852 | (eval "$ac_link") 2>conftest.err | |
1853 | ac_status=$? | |
1854 | if test -s conftest.err; then | |
1855 | grep -v '^ *+' conftest.err >conftest.er1 | |
1856 | cat conftest.er1 >&5 | |
1857 | mv -f conftest.er1 conftest.err | |
1858 | fi | |
1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1860 | test $ac_status = 0; } && { | |
1861 | test -z "$ac_c_werror_flag" || | |
1862 | test ! -s conftest.err | |
1863 | } && test -s conftest$ac_exeext && { | |
1864 | test "$cross_compiling" = yes || | |
1865 | $as_test_x conftest$ac_exeext | |
1866 | }; then : | |
1867 | ac_retval=0 | |
1868 | else | |
1869 | $as_echo "$as_me: failed program was:" >&5 | |
1870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1871 | ||
1872 | ac_retval=1 | |
1873 | fi | |
1874 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1875 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1876 | # interfere with the next link command; also delete a directory that is | |
1877 | # left behind by Apple's compiler. We do this before executing the actions. | |
1878 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1879 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1880 | return $ac_retval | |
1881 | ||
1882 | } # ac_fn_c_try_link | |
1883 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1884 | This file contains any messages produced by compilers while |
1885 | running configure, to aid debugging if configure makes a mistake. | |
1886 | ||
1887 | It was created by $as_me, which was | |
5213506e | 1888 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
1889 | |
1890 | $ $0 $@ | |
1891 | ||
1892 | _ACEOF | |
5213506e | 1893 | exec 5>>config.log |
1c710c3c DJ |
1894 | { |
1895 | cat <<_ASUNAME | |
1896 | ## --------- ## | |
1897 | ## Platform. ## | |
1898 | ## --------- ## | |
1899 | ||
1900 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1901 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1902 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1903 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1904 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1905 | ||
1906 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1907 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1908 | ||
1909 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1910 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1911 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1912 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1913 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1914 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1915 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1916 | ||
1917 | _ASUNAME | |
1918 | ||
1919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1920 | for as_dir in $PATH | |
1921 | do | |
1922 | IFS=$as_save_IFS | |
1923 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1924 | $as_echo "PATH: $as_dir" |
1925 | done | |
1926 | IFS=$as_save_IFS | |
1c710c3c DJ |
1927 | |
1928 | } >&5 | |
1929 | ||
1930 | cat >&5 <<_ACEOF | |
1931 | ||
1932 | ||
1933 | ## ----------- ## | |
1934 | ## Core tests. ## | |
1935 | ## ----------- ## | |
1936 | ||
1937 | _ACEOF | |
1938 | ||
1939 | ||
1940 | # Keep a trace of the command line. | |
1941 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1942 | # Strip out --silent because we don't want to record it for future runs. | |
1943 | # Also quote any args containing shell meta-characters. | |
1944 | # Make two passes to allow for proper duplicate-argument suppression. | |
1945 | ac_configure_args= | |
1946 | ac_configure_args0= | |
1947 | ac_configure_args1= | |
1c710c3c DJ |
1948 | ac_must_keep_next=false |
1949 | for ac_pass in 1 2 | |
1950 | do | |
1951 | for ac_arg | |
1952 | do | |
1953 | case $ac_arg in | |
1954 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1955 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1956 | | -silent | --silent | --silen | --sile | --sil) | |
1957 | continue ;; | |
5213506e RW |
1958 | *\'*) |
1959 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1960 | esac |
1961 | case $ac_pass in | |
5213506e | 1962 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 1963 | 2) |
5213506e | 1964 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
1965 | if test $ac_must_keep_next = true; then |
1966 | ac_must_keep_next=false # Got value, back to normal. | |
1967 | else | |
1968 | case $ac_arg in | |
1969 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1970 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1971 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1972 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1973 | case "$ac_configure_args0 " in | |
1974 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1975 | esac | |
1976 | ;; | |
1977 | -* ) ac_must_keep_next=true ;; | |
1978 | esac | |
1979 | fi | |
5213506e | 1980 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
1981 | ;; |
1982 | esac | |
1983 | done | |
1984 | done | |
5213506e RW |
1985 | { ac_configure_args0=; unset ac_configure_args0;} |
1986 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
1987 | |
1988 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1989 | # config.log. We remove comments because anyway the quotes in there | |
1990 | # would cause problems or look ugly. | |
5213506e RW |
1991 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1992 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
1993 | trap 'exit_status=$? |
1994 | # Save into config.log some information that might help in debugging. | |
1995 | { | |
1996 | echo | |
1997 | ||
1998 | cat <<\_ASBOX | |
1999 | ## ---------------- ## | |
2000 | ## Cache variables. ## | |
2001 | ## ---------------- ## | |
2002 | _ASBOX | |
2003 | echo | |
2004 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2005 | ( |
2006 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2007 | eval ac_val=\$$ac_var | |
2008 | case $ac_val in #( | |
2009 | *${as_nl}*) | |
2010 | case $ac_var in #( | |
2011 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2012 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2013 | esac | |
2014 | case $ac_var in #( | |
2015 | _ | IFS | as_nl) ;; #( | |
2016 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2017 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2018 | esac ;; | |
2019 | esac | |
2020 | done | |
1c710c3c | 2021 | (set) 2>&1 | |
5213506e RW |
2022 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2023 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2024 | sed -n \ |
5213506e RW |
2025 | "s/'\''/'\''\\\\'\'''\''/g; |
2026 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2027 | ;; #( | |
1c710c3c | 2028 | *) |
5213506e | 2029 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2030 | ;; |
5213506e RW |
2031 | esac | |
2032 | sort | |
2033 | ) | |
1c710c3c DJ |
2034 | echo |
2035 | ||
2036 | cat <<\_ASBOX | |
2037 | ## ----------------- ## | |
2038 | ## Output variables. ## | |
2039 | ## ----------------- ## | |
2040 | _ASBOX | |
2041 | echo | |
2042 | for ac_var in $ac_subst_vars | |
2043 | do | |
5213506e RW |
2044 | eval ac_val=\$$ac_var |
2045 | case $ac_val in | |
2046 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2047 | esac | |
2048 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2049 | done | sort |
2050 | echo | |
2051 | ||
2052 | if test -n "$ac_subst_files"; then | |
2053 | cat <<\_ASBOX | |
5213506e RW |
2054 | ## ------------------- ## |
2055 | ## File substitutions. ## | |
2056 | ## ------------------- ## | |
1c710c3c DJ |
2057 | _ASBOX |
2058 | echo | |
2059 | for ac_var in $ac_subst_files | |
2060 | do | |
5213506e RW |
2061 | eval ac_val=\$$ac_var |
2062 | case $ac_val in | |
2063 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2064 | esac | |
2065 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2066 | done | sort |
2067 | echo | |
2068 | fi | |
2069 | ||
2070 | if test -s confdefs.h; then | |
2071 | cat <<\_ASBOX | |
2072 | ## ----------- ## | |
2073 | ## confdefs.h. ## | |
2074 | ## ----------- ## | |
2075 | _ASBOX | |
2076 | echo | |
5213506e | 2077 | cat confdefs.h |
1c710c3c DJ |
2078 | echo |
2079 | fi | |
2080 | test "$ac_signal" != 0 && | |
5213506e RW |
2081 | $as_echo "$as_me: caught signal $ac_signal" |
2082 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2083 | } >&5 |
5213506e RW |
2084 | rm -f core *.core core.conftest.* && |
2085 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2086 | exit $exit_status |
5213506e | 2087 | ' 0 |
1c710c3c | 2088 | for ac_signal in 1 2 13 15; do |
5213506e | 2089 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2090 | done |
2091 | ac_signal=0 | |
2092 | ||
2093 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2094 | rm -f -r conftest* confdefs.h |
2095 | ||
2096 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2097 | |
2098 | # Predefined preprocessor variables. | |
2099 | ||
2100 | cat >>confdefs.h <<_ACEOF | |
2101 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2102 | _ACEOF | |
2103 | ||
1c710c3c DJ |
2104 | cat >>confdefs.h <<_ACEOF |
2105 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2106 | _ACEOF | |
2107 | ||
1c710c3c DJ |
2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2110 | _ACEOF | |
0b0dc272 | 2111 | |
1c710c3c DJ |
2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2114 | _ACEOF | |
2115 | ||
1c710c3c DJ |
2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2118 | _ACEOF | |
2119 | ||
5213506e RW |
2120 | cat >>confdefs.h <<_ACEOF |
2121 | #define PACKAGE_URL "$PACKAGE_URL" | |
2122 | _ACEOF | |
2123 | ||
1c710c3c DJ |
2124 | |
2125 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2126 | # Prefer an explicitly selected file to automatically selected ones. |
2127 | ac_site_file1=NONE | |
2128 | ac_site_file2=NONE | |
2129 | if test -n "$CONFIG_SITE"; then | |
2130 | ac_site_file1=$CONFIG_SITE | |
2131 | elif test "x$prefix" != xNONE; then | |
2132 | ac_site_file1=$prefix/share/config.site | |
2133 | ac_site_file2=$prefix/etc/config.site | |
2134 | else | |
2135 | ac_site_file1=$ac_default_prefix/share/config.site | |
2136 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2137 | fi |
5213506e RW |
2138 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2139 | do | |
2140 | test "x$ac_site_file" = xNONE && continue | |
671aa708 | 2141 | if test -r "$ac_site_file"; then |
5213506e RW |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2143 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2144 | sed 's/^/| /' "$ac_site_file" >&5 |
671aa708 NN |
2145 | . "$ac_site_file" |
2146 | fi | |
2147 | done | |
2148 | ||
2149 | if test -r "$cache_file"; then | |
1c710c3c DJ |
2150 | # Some versions of bash will fail to source /dev/null (special |
2151 | # files actually), so we avoid doing that. | |
2152 | if test -f "$cache_file"; then | |
5213506e RW |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2154 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2155 | case $cache_file in |
5213506e RW |
2156 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2157 | *) . "./$cache_file";; | |
1c710c3c DJ |
2158 | esac |
2159 | fi | |
671aa708 | 2160 | else |
5213506e RW |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2162 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2163 | >$cache_file |
2164 | fi | |
2165 | ||
2166 | # Check that the precious variables saved in the cache have kept the same | |
2167 | # value. | |
2168 | ac_cache_corrupted=false | |
5213506e | 2169 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2170 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2171 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2172 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2173 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2174 | case $ac_old_set,$ac_new_set in |
2175 | set,) | |
5213506e RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2177 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2178 | ac_cache_corrupted=: ;; |
2179 | ,set) | |
5213506e RW |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2181 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2182 | ac_cache_corrupted=: ;; |
2183 | ,);; | |
2184 | *) | |
2185 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2186 | # differences in whitespace do not lead to failure. |
2187 | ac_old_val_w=`echo x $ac_old_val` | |
2188 | ac_new_val_w=`echo x $ac_new_val` | |
2189 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2191 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2192 | ac_cache_corrupted=: | |
2193 | else | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2195 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2196 | eval $ac_var=\$ac_old_val | |
2197 | fi | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2199 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2201 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2202 | fi;; |
2203 | esac | |
2204 | # Pass precious variables to config.status. | |
2205 | if test "$ac_new_set" = set; then | |
2206 | case $ac_new_val in | |
5213506e | 2207 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2208 | *) ac_arg=$ac_var=$ac_new_val ;; |
2209 | esac | |
2210 | case " $ac_configure_args " in | |
2211 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2212 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2213 | esac |
2214 | fi | |
2215 | done | |
2216 | if $ac_cache_corrupted; then | |
5213506e RW |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2218 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2220 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2221 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
671aa708 | 2222 | fi |
5213506e RW |
2223 | ## -------------------- ## |
2224 | ## Main body of script. ## | |
2225 | ## -------------------- ## | |
671aa708 | 2226 | |
2aeb72e9 DD |
2227 | ac_ext=c |
2228 | ac_cpp='$CPP $CPPFLAGS' | |
2229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2232 | ||
1c710c3c DJ |
2233 | |
2234 | ||
2235 | ||
1c710c3c DJ |
2236 | |
2237 | ||
0115d4a3 | 2238 | |
1c710c3c | 2239 | |
ad33ff57 RW |
2240 | |
2241 | progname=$0 | |
2242 | # if PWD already has a value, it is probably wrong. | |
2243 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2244 | ||
2245 | # Export original configure arguments for use by sub-configures. | |
2246 | # Quote arguments with shell meta charatcers. | |
2247 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2248 | set -- "$progname" "$@" | |
2249 | for ac_arg | |
2250 | do | |
2251 | case "$ac_arg" in | |
2252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2253 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2254 | # if the argument is of the form -foo=baz, quote the baz part only | |
2255 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2256 | *) ;; | |
2257 | esac | |
2258 | # Add the quoted argument to the list. | |
2259 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2260 | done | |
2261 | if test "$silent" = yes; then | |
2262 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2263 | fi | |
2264 | # Remove the initial space we just introduced and, as these will be | |
2265 | # expanded by make, quote '$'. | |
2266 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2267 | ||
1c710c3c DJ |
2268 | |
2269 | # Find the build, host, and target systems. | |
671aa708 | 2270 | ac_aux_dir= |
5213506e RW |
2271 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2272 | for ac_t in install-sh install.sh shtool; do | |
2273 | if test -f "$ac_dir/$ac_t"; then | |
2274 | ac_aux_dir=$ac_dir | |
2275 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2276 | break 2 | |
2277 | fi | |
2278 | done | |
671aa708 NN |
2279 | done |
2280 | if test -z "$ac_aux_dir"; then | |
5213506e | 2281 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2282 | fi |
5213506e RW |
2283 | |
2284 | # These three variables are undocumented and unsupported, | |
2285 | # and are intended to be withdrawn in a future Autoconf release. | |
2286 | # They can cause serious problems if a builder's source tree is in a directory | |
2287 | # whose full name contains unusual characters. | |
2288 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2289 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2290 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2291 | ||
671aa708 | 2292 | |
1c710c3c | 2293 | # Make sure we can run config.sub. |
5213506e RW |
2294 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2295 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2296 | ||
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2298 | $as_echo_n "checking build system type... " >&6; } | |
2299 | if test "${ac_cv_build+set}" = set; then : | |
2300 | $as_echo_n "(cached) " >&6 | |
2301 | else | |
2302 | ac_build_alias=$build_alias | |
2303 | test "x$ac_build_alias" = x && | |
2304 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2305 | test "x$ac_build_alias" = x && | |
2306 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2307 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2308 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2309 | ||
2310 | fi | |
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2312 | $as_echo "$ac_cv_build" >&6; } | |
2313 | case $ac_cv_build in | |
2314 | *-*-*) ;; | |
2315 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2316 | esac | |
1c710c3c | 2317 | build=$ac_cv_build |
5213506e RW |
2318 | ac_save_IFS=$IFS; IFS='-' |
2319 | set x $ac_cv_build | |
2320 | shift | |
2321 | build_cpu=$1 | |
2322 | build_vendor=$2 | |
2323 | shift; shift | |
2324 | # Remember, the first character of IFS is used to create $*, | |
2325 | # except with old shells: | |
2326 | build_os=$* | |
2327 | IFS=$ac_save_IFS | |
2328 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2329 | |
671aa708 | 2330 | |
1c710c3c DJ |
2331 | case ${build_alias} in |
2332 | "") build_noncanonical=${build} ;; | |
2333 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2334 | esac |
2335 | ||
2336 | ||
af71363e | 2337 | |
1c710c3c DJ |
2338 | case ${host_alias} in |
2339 | "") host_noncanonical=${build_noncanonical} ;; | |
2340 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2341 | esac |
2342 | ||
af71363e | 2343 | |
1c710c3c DJ |
2344 | |
2345 | case ${target_alias} in | |
2346 | "") target_noncanonical=${host_noncanonical} ;; | |
2347 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2348 | esac |
2349 | ||
af71363e | 2350 | |
1c710c3c DJ |
2351 | |
2352 | ||
2353 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2354 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2355 | NONENONEs,x,x, && | |
1c710c3c | 2356 | program_transform_name=s,y,y, |
af71363e | 2357 | |
5213506e RW |
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2359 | $as_echo_n "checking host system type... " >&6; } | |
2360 | if test "${ac_cv_host+set}" = set; then : | |
2361 | $as_echo_n "(cached) " >&6 | |
af71363e | 2362 | else |
5213506e RW |
2363 | if test "x$host_alias" = x; then |
2364 | ac_cv_host=$ac_cv_build | |
2365 | else | |
2366 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2367 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2368 | fi | |
1c710c3c | 2369 | |
af71363e | 2370 | fi |
5213506e RW |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2372 | $as_echo "$ac_cv_host" >&6; } | |
2373 | case $ac_cv_host in | |
2374 | *-*-*) ;; | |
2375 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2376 | esac | |
1c710c3c | 2377 | host=$ac_cv_host |
5213506e RW |
2378 | ac_save_IFS=$IFS; IFS='-' |
2379 | set x $ac_cv_host | |
2380 | shift | |
2381 | host_cpu=$1 | |
2382 | host_vendor=$2 | |
2383 | shift; shift | |
2384 | # Remember, the first character of IFS is used to create $*, | |
2385 | # except with old shells: | |
2386 | host_os=$* | |
2387 | IFS=$ac_save_IFS | |
2388 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2389 | |
2390 | ||
5213506e RW |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2392 | $as_echo_n "checking target system type... " >&6; } | |
2393 | if test "${ac_cv_target+set}" = set; then : | |
2394 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 2395 | else |
5213506e RW |
2396 | if test "x$target_alias" = x; then |
2397 | ac_cv_target=$ac_cv_host | |
2398 | else | |
2399 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2400 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2401 | fi | |
1c710c3c DJ |
2402 | |
2403 | fi | |
5213506e RW |
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2405 | $as_echo "$ac_cv_target" >&6; } | |
2406 | case $ac_cv_target in | |
2407 | *-*-*) ;; | |
2408 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2409 | esac | |
1c710c3c | 2410 | target=$ac_cv_target |
5213506e RW |
2411 | ac_save_IFS=$IFS; IFS='-' |
2412 | set x $ac_cv_target | |
2413 | shift | |
2414 | target_cpu=$1 | |
2415 | target_vendor=$2 | |
2416 | shift; shift | |
2417 | # Remember, the first character of IFS is used to create $*, | |
2418 | # except with old shells: | |
2419 | target_os=$* | |
2420 | IFS=$ac_save_IFS | |
2421 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2422 | |
2423 | ||
2424 | # The aliases save the names the user supplied, while $host etc. | |
2425 | # will get canonicalized. | |
2426 | test -n "$target_alias" && | |
2427 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2428 | NONENONEs,x,x, && | |
2429 | program_prefix=${target_alias}- | |
5213506e | 2430 | |
671aa708 | 2431 | test "$program_prefix" != NONE && |
5213506e | 2432 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2433 | # Use a double $ so make ignores it. |
2434 | test "$program_suffix" != NONE && | |
5213506e RW |
2435 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2436 | # Double any \ or $. | |
1c710c3c | 2437 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2438 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2439 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2440 | |
671aa708 NN |
2441 | |
2442 | ||
775956d0 NN |
2443 | # Get 'install' or 'install-sh' and its variants. |
2444 | # Find a good install program. We prefer a C program (faster), | |
2445 | # so one script is as good as another. But avoid the broken or | |
2446 | # incompatible versions: | |
2447 | # SysV /etc/install, /usr/sbin/install | |
2448 | # SunOS /usr/etc/install | |
2449 | # IRIX /sbin/install | |
2450 | # AIX /bin/install | |
1c710c3c | 2451 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2452 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2453 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2454 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2455 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2456 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2457 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2459 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2460 | if test -z "$INSTALL"; then |
5213506e RW |
2461 | if test "${ac_cv_path_install+set}" = set; then : |
2462 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
2463 | else |
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2465 | for as_dir in $PATH | |
2466 | do | |
2467 | IFS=$as_save_IFS | |
2468 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2469 | # Account for people who put trailing slashes in PATH elements. |
2470 | case $as_dir/ in #(( | |
2471 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2472 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2473 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2474 | /usr/ucb/* ) ;; |
2475 | *) | |
2476 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2477 | # Don't use installbsd from OSF since it installs stuff as root | |
2478 | # by default. | |
2479 | for ac_prog in ginstall scoinst install; do | |
2480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2481 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
775956d0 | 2482 | if test $ac_prog = install && |
1c710c3c | 2483 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2484 | # AIX install. It has an incompatible calling convention. |
2485 | : | |
1c710c3c DJ |
2486 | elif test $ac_prog = install && |
2487 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2488 | # program-specific install script used by HP pwplus--don't use. | |
2489 | : | |
775956d0 | 2490 | else |
38d24731 RW |
2491 | rm -rf conftest.one conftest.two conftest.dir |
2492 | echo one > conftest.one | |
2493 | echo two > conftest.two | |
2494 | mkdir conftest.dir | |
2495 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2496 | test -s conftest.one && test -s conftest.two && | |
2497 | test -s conftest.dir/conftest.one && | |
2498 | test -s conftest.dir/conftest.two | |
2499 | then | |
2500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2501 | break 3 | |
2502 | fi | |
775956d0 NN |
2503 | fi |
2504 | fi | |
2505 | done | |
1c710c3c DJ |
2506 | done |
2507 | ;; | |
2508 | esac | |
5213506e RW |
2509 | |
2510 | done | |
2511 | IFS=$as_save_IFS | |
1c710c3c | 2512 | |
38d24731 | 2513 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2514 | |
2515 | fi | |
2516 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2517 | INSTALL=$ac_cv_path_install |
775956d0 | 2518 | else |
38d24731 RW |
2519 | # As a last resort, use the slow shell script. Don't cache a |
2520 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2521 | # break other packages using the cache if that directory is |
38d24731 | 2522 | # removed, or if the value is a relative name. |
1c710c3c | 2523 | INSTALL=$ac_install_sh |
775956d0 NN |
2524 | fi |
2525 | fi | |
5213506e RW |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2527 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2528 | |
2529 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2530 | # It thinks the first close brace ends the variable substitution. | |
2531 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2532 | ||
1c710c3c | 2533 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2534 | |
2535 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2536 | ||
5213506e RW |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2538 | $as_echo_n "checking whether ln works... " >&6; } | |
2539 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2540 | $as_echo_n "(cached) " >&6 | |
ad6717df PB |
2541 | else |
2542 | rm -f conftestdata_t | |
2543 | echo >conftestdata_f | |
2544 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2545 | then | |
2546 | acx_cv_prog_LN=ln | |
2547 | else | |
2548 | acx_cv_prog_LN=no | |
2549 | fi | |
2550 | rm -f conftestdata_f conftestdata_t | |
2551 | ||
2552 | fi | |
2553 | if test $acx_cv_prog_LN = no; then | |
2554 | LN="cp" | |
5213506e RW |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2556 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2557 | else |
2558 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2560 | $as_echo "yes" >&6; } | |
ad6717df PB |
2561 | fi |
2562 | ||
5213506e RW |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2564 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2565 | LN_S=$as_ln_s |
2566 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2568 | $as_echo "yes" >&6; } | |
fb0103e5 | 2569 | else |
5213506e RW |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2571 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2572 | fi |
2573 | ||
87264276 PB |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2575 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2576 | if test "${ac_cv_path_SED+set}" = set; then : | |
2577 | $as_echo_n "(cached) " >&6 | |
2578 | else | |
2579 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2580 | for ac_i in 1 2 3 4 5 6 7; do | |
2581 | ac_script="$ac_script$as_nl$ac_script" | |
2582 | done | |
2583 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2584 | { ac_script=; unset ac_script;} | |
2585 | if test -z "$SED"; then | |
2586 | ac_path_SED_found=false | |
2587 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | for ac_prog in sed gsed; do | |
2594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2595 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2596 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2597 | # Check for GNU ac_path_SED and select it if it is found. | |
2598 | # Check for GNU $ac_path_SED | |
2599 | case `"$ac_path_SED" --version 2>&1` in | |
2600 | *GNU*) | |
2601 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2602 | *) | |
2603 | ac_count=0 | |
2604 | $as_echo_n 0123456789 >"conftest.in" | |
2605 | while : | |
2606 | do | |
2607 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2608 | mv "conftest.tmp" "conftest.in" | |
2609 | cp "conftest.in" "conftest.nl" | |
2610 | $as_echo '' >> "conftest.nl" | |
2611 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2612 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2613 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2614 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2615 | # Best one so far, save it but keep looking for a better one | |
2616 | ac_cv_path_SED="$ac_path_SED" | |
2617 | ac_path_SED_max=$ac_count | |
2618 | fi | |
2619 | # 10*(2^10) chars as input seems more than enough | |
2620 | test $ac_count -gt 10 && break | |
2621 | done | |
2622 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2623 | esac | |
2624 | ||
2625 | $ac_path_SED_found && break 3 | |
2626 | done | |
2627 | done | |
2628 | done | |
2629 | IFS=$as_save_IFS | |
2630 | if test -z "$ac_cv_path_SED"; then | |
2631 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2632 | fi | |
2633 | else | |
2634 | ac_cv_path_SED=$SED | |
2635 | fi | |
2636 | ||
2637 | fi | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2639 | $as_echo "$ac_cv_path_SED" >&6; } | |
2640 | SED="$ac_cv_path_SED" | |
2641 | rm -f conftest.sed | |
2642 | ||
2643 | for ac_prog in gawk mawk nawk awk | |
2644 | do | |
2645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2646 | set dummy $ac_prog; ac_word=$2 | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2648 | $as_echo_n "checking for $ac_word... " >&6; } | |
2649 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | if test -n "$AWK"; then | |
2653 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2662 | ac_cv_prog_AWK="$ac_prog" | |
2663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2664 | break 2 | |
2665 | fi | |
2666 | done | |
2667 | done | |
2668 | IFS=$as_save_IFS | |
2669 | ||
2670 | fi | |
2671 | fi | |
2672 | AWK=$ac_cv_prog_AWK | |
2673 | if test -n "$AWK"; then | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2675 | $as_echo "$AWK" >&6; } | |
2676 | else | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2678 | $as_echo "no" >&6; } | |
2679 | fi | |
2680 | ||
2681 | ||
2682 | test -n "$AWK" && break | |
2683 | done | |
2684 | ||
775956d0 | 2685 | |
ee6a22df L |
2686 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2687 | ||
2688 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2689 | # a relative path. | |
2690 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2691 | INSTALL="${srcpwd}/install-sh -c" | |
2692 | fi | |
2693 | ||
671aa708 NN |
2694 | # Set srcdir to "." if that's what it is. |
2695 | # This is important for multilib support. | |
2696 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2697 | if test "${pwd}" = "${srcpwd}" ; then |
2698 | srcdir=. | |
79c06341 JL |
2699 | fi |
2700 | ||
671aa708 | 2701 | topsrcdir=$srcpwd |
5d4a5ee6 | 2702 | |
671aa708 | 2703 | extra_host_args= |
afabd8e6 | 2704 | |
671aa708 NN |
2705 | ### To add a new directory to the tree, first choose whether it is a target |
2706 | ### or a host dependent tool. Then put it into the appropriate list | |
2707 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2708 | |
1c710c3c | 2709 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2710 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2711 | |
1c710c3c DJ |
2712 | # Dependency sorting is only needed when *configuration* must be done in |
2713 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2714 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2715 | |
671aa708 NN |
2716 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2717 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2718 | |
23f6b2f9 PB |
2719 | # these library is used by various programs built for the build |
2720 | # environment | |
2721 | # | |
929315a9 | 2722 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2723 | |
2724 | # these tools are built for the build environment | |
85bfb75e | 2725 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2726 | |
671aa708 | 2727 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2728 | #f |
4a9bb2aa | 2729 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
671aa708 | 2730 | |
671aa708 NN |
2731 | # these tools are built for the host environment |
2732 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2733 | # know that we are building the simulator. | |
2734 | # binutils, gas and ld appear in that order because it makes sense to run | |
2735 | # "make check" in that particular order. | |
38e3d868 | 2736 | # If --enable-gold is used, "gold" may replace "ld". |
bf1de3f0 | 2737 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
671aa708 NN |
2738 | |
2739 | # libgcj represents the runtime libraries only used by gcj. | |
2740 | libgcj="target-libffi \ | |
671aa708 | 2741 | target-zlib \ |
671aa708 NN |
2742 | target-libjava" |
2743 | ||
2744 | # these libraries are built for the target environment, and are built after | |
2745 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2746 | # Note that libiberty is not a target library. |
291f172e | 2747 | target_libraries="target-libgcc \ |
eff02e4f | 2748 | target-libbacktrace \ |
671aa708 NN |
2749 | target-libgloss \ |
2750 | target-newlib \ | |
6d3b5aea | 2751 | target-libgomp \ |
3038054c | 2752 | target-libcilkrts \ |
5f520819 | 2753 | target-liboffloadmic \ |
48310492 | 2754 | target-libatomic \ |
0a35513e | 2755 | target-libitm \ |
cb543528 | 2756 | target-libstdc++-v3 \ |
f35db108 | 2757 | target-libsanitizer \ |
2077db1b | 2758 | target-libvtv \ |
5373cd33 | 2759 | target-libmpx \ |
77008252 | 2760 | target-libssp \ |
1ec601bf | 2761 | target-libquadmath \ |
6de9cd9a | 2762 | target-libgfortran \ |
7cd0cf9c | 2763 | target-boehm-gc \ |
77d187bc | 2764 | ${libgcj} \ |
d9cdb878 | 2765 | target-libobjc \ |
632e2a07 ILT |
2766 | target-libada \ |
2767 | target-libgo" | |
671aa708 | 2768 | |
4dbda6f0 NN |
2769 | # these tools are built using the target libraries, and are intended to |
2770 | # run only in the target environment | |
671aa708 | 2771 | # |
4dbda6f0 | 2772 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2773 | # list belongs in this list. |
671aa708 | 2774 | # |
85bfb75e | 2775 | target_tools="target-rda" |
79c06341 | 2776 | |
671aa708 | 2777 | ################################################################################ |
79c06341 | 2778 | |
671aa708 NN |
2779 | ## All tools belong in one of the four categories, and are assigned above |
2780 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2781 | ## is important because configure will choke if they ever get through. | |
2782 | ## ${configdirs} is directories we build using the host tools. | |
2783 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2784 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2785 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2786 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2787 | |
ac9e6043 RW |
2788 | |
2789 | ||
671aa708 | 2790 | ################################################################################ |
79c06341 | 2791 | |
671aa708 | 2792 | srcname="gnu development package" |
79c06341 | 2793 | |
671aa708 NN |
2794 | # This gets set non-empty for some net releases of packages. |
2795 | appdirs="" | |
79c06341 | 2796 | |
671aa708 NN |
2797 | # Define is_cross_compiler to save on calls to 'test'. |
2798 | is_cross_compiler= | |
2799 | if test x"${host}" = x"${target}" ; then | |
2800 | is_cross_compiler=no | |
79c06341 | 2801 | else |
671aa708 | 2802 | is_cross_compiler=yes |
1c710c3c | 2803 | fi |
79c06341 | 2804 | |
b4acb5ef | 2805 | # Find the build and target subdir names. |
8b87bb96 | 2806 | |
2e9e6f68 DJ |
2807 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2808 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2809 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2810 | # However, they still use the build modules, because the corresponding | |
2811 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2812 | # finishes. So: | |
2813 | # - build_subdir is where we find build modules, and never changes. | |
2814 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2815 | ||
2816 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2817 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2818 | |
5213506e RW |
2819 | # Check whether --with-build-libsubdir was given. |
2820 | if test "${with_build_libsubdir+set}" = set; then : | |
2821 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2822 | else |
2823 | build_libsubdir="$build_subdir" | |
5213506e RW |
2824 | fi |
2825 | ||
215c351a PB |
2826 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2827 | if ( test $srcdir = . && test -d gcc ) \ | |
2828 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2829 | host_subdir="host-${host_noncanonical}" | |
2830 | else | |
2831 | host_subdir=. | |
2832 | fi | |
8b87bb96 NN |
2833 | # No prefix. |
2834 | target_subdir=${target_noncanonical} | |
1c710c3c | 2835 | |
0db770bd RW |
2836 | # Be sure to cover against remnants of an in-tree build. |
2837 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2838 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2839 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2840 | fi | |
79c06341 | 2841 | |
671aa708 NN |
2842 | # Skipdirs are removed silently. |
2843 | skipdirs= | |
2844 | # Noconfigdirs are removed loudly. | |
2845 | noconfigdirs="" | |
79c06341 | 2846 | |
671aa708 NN |
2847 | use_gnu_ld= |
2848 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2849 | if test x$with_gnu_ld = xno ; then | |
2850 | use_gnu_ld=no | |
5afab7ad | 2851 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2852 | fi |
2853 | ||
671aa708 NN |
2854 | use_gnu_as= |
2855 | # Make sure we don't let GNU as be added if we didn't want it. | |
2856 | if test x$with_gnu_as = xno ; then | |
2857 | use_gnu_as=no | |
2858 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2859 | fi |
2860 | ||
d7f09764 | 2861 | use_included_zlib= |
a05c2c75 L |
2862 | |
2863 | # Check whether --with-system-zlib was given. | |
2864 | if test "${with_system_zlib+set}" = set; then : | |
2865 | withval=$with_system_zlib; | |
2866 | fi | |
2867 | ||
d7f09764 DN |
2868 | # Make sure we don't let ZLIB be added if we didn't want it. |
2869 | if test x$with_system_zlib = xyes ; then | |
2870 | use_included_zlib=no | |
2871 | noconfigdirs="$noconfigdirs zlib" | |
2872 | fi | |
2873 | ||
1c710c3c | 2874 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2875 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2876 | |
671aa708 NN |
2877 | case ${with_x} in |
2878 | yes | "") ;; # the default value for this tree is that X11 is available | |
2879 | no) | |
b4f96efe | 2880 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2881 | # We won't be able to build gdbtk without X. |
1c710c3c | 2882 | enable_gdbtk=no |
671aa708 NN |
2883 | ;; |
2884 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2885 | esac | |
79c06341 | 2886 | |
1bcce263 | 2887 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2888 | # Remove these if host=target. |
2889 | cross_only="target-libgloss target-newlib target-opcodes" | |
2890 | ||
2891 | case $is_cross_compiler in | |
2892 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2893 | esac |
79c06341 | 2894 | |
671aa708 NN |
2895 | # If both --with-headers and --with-libs are specified, default to |
2896 | # --without-newlib. | |
ee6a22df L |
2897 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2898 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2899 | if test x"${with_newlib}" = x ; then |
2900 | with_newlib=no | |
2901 | fi | |
79c06341 JL |
2902 | fi |
2903 | ||
671aa708 NN |
2904 | # Recognize --with-newlib/--without-newlib. |
2905 | case ${with_newlib} in | |
2906 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2907 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2908 | esac | |
79c06341 | 2909 | |
85c64bbe BS |
2910 | # Check whether --enable-as-accelerator-for was given. |
2911 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2912 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2913 | fi |
2914 | ||
2915 | ||
2916 | # Check whether --enable-offload-targets was given. | |
2917 | if test "${enable_offload_targets+set}" = set; then : | |
2918 | enableval=$enable_offload_targets; | |
2919 | if test x"$enable_offload_targets" = x; then | |
2920 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | enable_offload_targets= | |
2925 | fi | |
2926 | ||
2927 | ||
21539e2e MK |
2928 | # Handle --enable-gold, --enable-ld. |
2929 | # --disable-gold [--enable-ld] | |
2930 | # Build only ld. Default option. | |
9580395f L |
2931 | # --enable-gold [--enable-ld] |
2932 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2933 | # as "ld.bfd" and "ld". | |
2934 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2935 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2936 | # install ld as "ld.bfd". | |
2937 | # --enable-gold[=default] --disable-ld | |
2938 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2939 | # --enable-gold --enable-ld=default | |
9580395f L |
2940 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2941 | # and ld.bfd). | |
21539e2e MK |
2942 | # In other words, ld is default |
2943 | # --enable-gold=default --enable-ld=default | |
2944 | # Error. | |
2945 | ||
2946 | default_ld= | |
5213506e RW |
2947 | # Check whether --enable-gold was given. |
2948 | if test "${enable_gold+set}" = set; then : | |
2949 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2950 | else |
2951 | ENABLE_GOLD=no | |
5213506e RW |
2952 | fi |
2953 | ||
21539e2e MK |
2954 | case "${ENABLE_GOLD}" in |
2955 | yes|default) | |
38e3d868 RM |
2956 | # Check for ELF target. |
2957 | is_elf=no | |
2958 | case "${target}" in | |
2959 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 2960 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 2961 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 2962 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
2963 | case "${target}" in |
2964 | *-*-linux*aout* | *-*-linux*oldld*) | |
2965 | ;; | |
2966 | *) | |
2967 | is_elf=yes | |
2968 | ;; | |
2969 | esac | |
2970 | esac | |
2971 | ||
2972 | if test "$is_elf" = "yes"; then | |
2973 | # Check for target supported by gold. | |
5afab7ad | 2974 | case "${target}" in |
7705dfd1 | 2975 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 2976 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
2977 | configdirs="$configdirs gold" |
2978 | if test x${ENABLE_GOLD} = xdefault; then | |
2979 | default_ld=gold | |
2980 | fi | |
38e3d868 | 2981 | ENABLE_GOLD=yes |
5afab7ad ILT |
2982 | ;; |
2983 | esac | |
38e3d868 RM |
2984 | fi |
2985 | ;; | |
2986 | no) | |
2987 | ;; | |
2988 | *) | |
2989 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2990 | ;; | |
21539e2e MK |
2991 | esac |
2992 | ||
2993 | # Check whether --enable-ld was given. | |
2994 | if test "${enable_ld+set}" = set; then : | |
2995 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2996 | else | |
2997 | ENABLE_LD=yes | |
2998 | fi | |
2999 | ||
3000 | ||
3001 | case "${ENABLE_LD}" in | |
3002 | default) | |
9580395f | 3003 | if test x${default_ld} != x; then |
21539e2e MK |
3004 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3005 | fi | |
3006 | ;; | |
3007 | yes) | |
3008 | ;; | |
3009 | no) | |
3010 | if test x${ENABLE_GOLD} != xyes; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3012 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3013 | fi | |
3014 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3015 | ;; | |
3016 | *) | |
3017 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3018 | ;; | |
3019 | esac | |
5afab7ad | 3020 | |
78edb32f L |
3021 | # PR gas/19109 |
3022 | # Decide the default method for compressing debug sections. | |
3023 | # Provide a configure time option to override our default. | |
3024 | # Check whether --enable-compressed_debug_sections was given. | |
3025 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3026 | enableval=$enable_compressed_debug_sections; | |
3027 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3028 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3029 | fi | |
3030 | ||
3031 | else | |
3032 | enable_compressed_debug_sections= | |
3033 | fi | |
3034 | ||
3035 | ||
671aa708 | 3036 | # Configure extra directories which are host specific |
79c06341 | 3037 | |
671aa708 NN |
3038 | case "${host}" in |
3039 | *-cygwin*) | |
3040 | configdirs="$configdirs libtermcap" ;; | |
3041 | esac | |
79c06341 | 3042 | |
4fab7234 HPN |
3043 | # A target can indicate whether a language isn't supported for some reason. |
3044 | # Only spaces may be used in this macro; not newlines or tabs. | |
3045 | unsupported_languages= | |
3046 | ||
1c710c3c | 3047 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3048 | # target this usually means that a port of the program doesn't |
3049 | # exist yet. | |
ec8d6ddc | 3050 | |
671aa708 | 3051 | case "${host}" in |
111eeb6e | 3052 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3053 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3054 | ;; |
671aa708 | 3055 | esac |
ec8d6ddc | 3056 | |
6de9cd9a | 3057 | |
87e6d9dc TB |
3058 | # Check whether --enable-libquadmath was given. |
3059 | if test "${enable_libquadmath+set}" = set; then : | |
3060 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3061 | else | |
3062 | ENABLE_LIBQUADMATH=yes | |
3063 | fi | |
3064 | ||
3065 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3066 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | # Check whether --enable-libquadmath-support was given. | |
3071 | if test "${enable_libquadmath_support+set}" = set; then : | |
3072 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3073 | else | |
3074 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3075 | fi | |
3076 | ||
3077 | enable_libquadmath_support= | |
3078 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3079 | enable_libquadmath_support=no | |
3080 | fi | |
3081 | ||
3082 | ||
5213506e RW |
3083 | # Check whether --enable-libada was given. |
3084 | if test "${enable_libada+set}" = set; then : | |
3085 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3086 | else |
3087 | ENABLE_LIBADA=yes | |
5213506e RW |
3088 | fi |
3089 | ||
d9cdb878 | 3090 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3091 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3092 | fi |
3093 | ||
5213506e RW |
3094 | # Check whether --enable-libssp was given. |
3095 | if test "${enable_libssp+set}" = set; then : | |
3096 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3097 | else |
3098 | ENABLE_LIBSSP=yes | |
5213506e RW |
3099 | fi |
3100 | ||
ef0087a7 | 3101 | |
1873ec0c L |
3102 | # Check whether --enable-libstdcxx was given. |
3103 | if test "${enable_libstdcxx+set}" = set; then : | |
3104 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3105 | else | |
3106 | ENABLE_LIBSTDCXX=default | |
3107 | fi | |
3108 | ||
3109 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3110 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3111 | fi |
3112 | ||
5f520819 KY |
3113 | # If this is accelerator compiler and its target is intelmic we enable |
3114 | # target liboffloadmic by default. If this is compiler with offloading | |
3115 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3116 | # liboffloadmic is disabled by default. | |
3117 | # Check whether --enable-liboffloadmic was given. | |
3118 | if test "${enable_liboffloadmic+set}" = set; then : | |
3119 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3120 | no | host | target) | |
3121 | enable_liboffloadmic=$enableval ;; | |
3122 | *) | |
3123 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3124 | esac | |
3125 | else | |
4b4f2e35 | 3126 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3127 | case "${target}" in |
3128 | *-intelmic-* | *-intelmicemul-*) | |
3129 | enable_liboffloadmic=target | |
3130 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3131 | ;; | |
3132 | *) | |
3133 | enable_liboffloadmic=no | |
3134 | ;; | |
3135 | esac | |
3136 | else | |
3137 | case "${enable_offload_targets}" in | |
3138 | *-intelmic-* | *-intelmicemul-*) | |
3139 | enable_liboffloadmic=host | |
3140 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3141 | ;; | |
3142 | *) | |
3143 | enable_liboffloadmic=no | |
3144 | ;; | |
3145 | esac | |
3146 | fi | |
3147 | fi | |
3148 | ||
3149 | ||
3150 | ||
671aa708 NN |
3151 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3152 | # front-end isn't enabled, we still get libgcj disabled. | |
3153 | libgcj_saved=$libgcj | |
3154 | case $enable_libgcj in | |
3155 | yes) | |
3156 | # If we reset it here, it won't get added to noconfigdirs in the | |
3157 | # target-specific build rules, so it will be forcibly enabled | |
3158 | # (unless the Java language itself isn't enabled). | |
3159 | libgcj= | |
3160 | ;; | |
3161 | no) | |
3162 | # Make sure we get it printed in the list of not supported target libs. | |
4da3b0f8 ILT |
3163 | # Don't disable libffi, though, other languages use it. |
3164 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
d479b128 ILT |
3165 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3166 | # built. | |
3167 | libgcj_saved= | |
671aa708 NN |
3168 | ;; |
3169 | esac | |
ec8d6ddc | 3170 | |
a4a2c37d MK |
3171 | # Check whether --enable-static-libjava was given. |
3172 | if test "${enable_static_libjava+set}" = set; then : | |
3173 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3174 | else | |
3175 | ENABLE_STATIC_LIBJAVA=no | |
3176 | fi | |
3177 | ||
3178 | enable_static_libjava= | |
3179 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3180 | enable_static_libjava=yes | |
3181 | fi | |
3182 | ||
3183 | if test x$enable_static_libjava != xyes ; then | |
3184 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3185 | fi | |
3186 | ||
6de9cd9a | 3187 | |
44a7d18d | 3188 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3189 | if test x$enable_libgomp = x ; then |
953ff289 | 3190 | case "${target}" in |
416ac4d4 | 3191 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3192 | ;; |
8c6d158a | 3193 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3194 | ;; |
b24513a1 | 3195 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3196 | ;; |
cac90078 | 3197 | *-*-darwin* | *-*-aix*) |
953ff289 | 3198 | ;; |
44a7d18d TS |
3199 | nvptx*-*-*) |
3200 | ;; | |
953ff289 DN |
3201 | *) |
3202 | noconfigdirs="$noconfigdirs target-libgomp" | |
3203 | ;; | |
3204 | esac | |
27079765 | 3205 | fi |
953ff289 | 3206 | |
48310492 RH |
3207 | # Disable libatomic on unsupported systems. |
3208 | if test -d ${srcdir}/libatomic; then | |
3209 | if test x$enable_libatomic = x; then | |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3211 | $as_echo_n "checking for libatomic support... " >&6; } | |
3212 | if (srcdir=${srcdir}/libatomic; \ | |
3213 | . ${srcdir}/configure.tgt; \ | |
3214 | test -n "$UNSUPPORTED") | |
3215 | then | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3217 | $as_echo "no" >&6; } | |
3218 | noconfigdirs="$noconfigdirs target-libatomic" | |
3219 | else | |
3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3221 | $as_echo "yes" >&6; } | |
3222 | fi | |
3223 | fi | |
3224 | fi | |
3225 | ||
3038054c BI |
3226 | # Disable libcilkrts on unsupported systems. |
3227 | if test -d ${srcdir}/libcilkrts; then | |
3228 | if test x$enable_libcilkrts = x; then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3230 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3231 | if (srcdir=${srcdir}/libcilkrts; \ | |
3232 | . ${srcdir}/configure.tgt; \ | |
3233 | test -n "$UNSUPPORTED") | |
3234 | then | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3236 | $as_echo "no" >&6; } | |
3237 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3238 | else | |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3240 | $as_echo "yes" >&6; } | |
3241 | fi | |
3242 | fi | |
3243 | fi | |
3244 | ||
5f520819 KY |
3245 | # Disable liboffloadmic on unsupported systems. |
3246 | if test -d ${srcdir}/liboffloadmic; then | |
3247 | if test x$enable_liboffloadmic != xno; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3249 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3250 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3251 | . ${srcdir}/configure.tgt; \ | |
3252 | test -n "$UNSUPPORTED") | |
3253 | then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3255 | $as_echo "no" >&6; } | |
3256 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3257 | else | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3259 | $as_echo "yes" >&6; } | |
3260 | fi | |
3261 | fi | |
3262 | fi | |
3263 | ||
e948157d RH |
3264 | # Disable libitm on unsupported systems. |
3265 | if test -d ${srcdir}/libitm; then | |
3266 | if test x$enable_libitm = x; then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3268 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3269 | if (srcdir=${srcdir}/libitm; \ |
3270 | . ${srcdir}/configure.tgt; \ | |
3271 | test -n "$UNSUPPORTED") | |
3272 | then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3274 | $as_echo "no" >&6; } |
e948157d RH |
3275 | noconfigdirs="$noconfigdirs target-libitm" |
3276 | else | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3278 | $as_echo "yes" >&6; } |
e948157d RH |
3279 | fi |
3280 | fi | |
0a35513e AH |
3281 | fi |
3282 | ||
93bf5390 RH |
3283 | # Disable libsanitizer on unsupported systems. |
3284 | if test -d ${srcdir}/libsanitizer; then | |
3285 | if test x$enable_libsanitizer = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3287 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libsanitizer; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test -n "$UNSUPPORTED") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | ||
2077db1b CT |
3302 | # Disable libvtv on unsupported systems. |
3303 | if test -d ${srcdir}/libvtv; then | |
3304 | if test x$enable_libvtv = x; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3306 | $as_echo_n "checking for libvtv support... " >&6; } | |
3307 | if (srcdir=${srcdir}/libvtv; \ | |
3308 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3309 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3310 | then |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3312 | $as_echo "no" >&6; } | |
3313 | noconfigdirs="$noconfigdirs target-libvtv" | |
3314 | else | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3316 | $as_echo "yes" >&6; } | |
3317 | fi | |
3318 | fi | |
3319 | fi | |
3320 | ||
5373cd33 IE |
3321 | |
3322 | # Enable libmpx on supported systems by request. | |
3323 | if test -d ${srcdir}/libmpx; then | |
54985c70 | 3324 | if test x$enable_libmpx = x; then |
5373cd33 IE |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 |
3326 | $as_echo_n "checking for libmpx support... " >&6; } | |
3327 | if (srcdir=${srcdir}/libmpx; \ | |
3328 | . ${srcdir}/configure.tgt; \ | |
3329 | test "$LIBMPX_SUPPORTED" != "yes") | |
3330 | then | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3332 | $as_echo "no" >&6; } | |
3333 | noconfigdirs="$noconfigdirs target-libmpx" | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3336 | $as_echo "yes" >&6; } | |
3337 | fi | |
5373cd33 IE |
3338 | fi |
3339 | fi | |
3340 | ||
3341 | ||
3342 | ||
d91491e5 SE |
3343 | # Disable libquadmath for some systems. |
3344 | case "${target}" in | |
e7fae550 DE |
3345 | avr-*-*) |
3346 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3347 | ;; | |
d91491e5 SE |
3348 | # libquadmath is unused on AIX and libquadmath build process use of |
3349 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3350 | powerpc-*-aix* | rs6000-*-aix*) | |
3351 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3352 | ;; | |
3353 | esac | |
3354 | ||
1e9e0e23 JM |
3355 | # Disable libssp for some systems. |
3356 | case "${target}" in | |
3357 | avr-*-*) | |
b318fb4b | 3358 | # No hosted I/O support. |
1e9e0e23 JM |
3359 | noconfigdirs="$noconfigdirs target-libssp" |
3360 | ;; | |
3361 | powerpc-*-aix* | rs6000-*-aix*) | |
3362 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e DD |
3363 | ;; |
3364 | rl78-*-*) | |
7cb62ef1 EB |
3365 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3366 | # doesn't fault for those - instead, it gives a build-time error | |
3367 | # for explicit misaligned loads. | |
85b8555e | 3368 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3369 | ;; |
0969ec7d EB |
3370 | visium-*-*) |
3371 | # No hosted I/O support. | |
3372 | noconfigdirs="$noconfigdirs target-libssp" | |
3373 | ;; | |
1e9e0e23 JM |
3374 | esac |
3375 | ||
1e9e0e23 | 3376 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3377 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3378 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3379 | case "${target}" in | |
3380 | *-*-vxworks*) | |
3381 | # VxWorks uses the Dinkumware C++ library. | |
3382 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3383 | ;; | |
3384 | arm*-wince-pe*) | |
3385 | # the C++ libraries don't build on top of CE's C libraries | |
3386 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3387 | ;; | |
3388 | avr-*-*) | |
3389 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3390 | ;; | |
fef939d6 JB |
3391 | ft32-*-*) |
3392 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3393 | ;; | |
1873ec0c L |
3394 | esac |
3395 | fi | |
1e9e0e23 JM |
3396 | |
3397 | # Disable Fortran for some systems. | |
3398 | case "${target}" in | |
3399 | mmix-*-*) | |
3400 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3401 | unsupported_languages="$unsupported_languages fortran" | |
3402 | ;; | |
3403 | esac | |
3404 | ||
80f81134 | 3405 | # Disable Java if libffi is not supported. |
2909494b | 3406 | case "${target}" in |
eb7062cf AS |
3407 | aarch64-*-*) |
3408 | ;; | |
80f81134 JM |
3409 | alpha*-*-*) |
3410 | ;; | |
3411 | arm*-*-*) | |
3412 | ;; | |
3413 | cris-*-*) | |
3414 | ;; | |
3415 | frv-*-*) | |
3416 | ;; | |
3417 | hppa*-*-linux*) | |
3418 | ;; | |
3419 | hppa*-*-hpux*) | |
3420 | ;; | |
3421 | i?86-*-*) | |
3422 | ;; | |
3423 | ia64*-*-*) | |
3424 | ;; | |
3425 | m32r*-*-*) | |
3426 | ;; | |
3427 | m68k-*-*) | |
3428 | ;; | |
b24513a1 | 3429 | mips*-*-rtems*) |
80f81134 JM |
3430 | ;; |
3431 | mips*-*-linux*) | |
3432 | ;; | |
3433 | powerpc*-*-linux*) | |
3434 | ;; | |
3435 | powerpc-*-darwin*) | |
3436 | ;; | |
3437 | powerpc-*-aix* | rs6000-*-aix*) | |
3438 | ;; | |
3439 | powerpc-*-freebsd*) | |
3440 | ;; | |
3441 | powerpc64-*-freebsd*) | |
3442 | ;; | |
3443 | powerpc*-*-rtems*) | |
2909494b | 3444 | ;; |
80f81134 JM |
3445 | s390-*-* | s390x-*-*) |
3446 | ;; | |
3447 | sh-*-* | sh[34]*-*-*) | |
3448 | ;; | |
80f81134 JM |
3449 | sparc*-*-*) |
3450 | ;; | |
3451 | x86_64-*-*) | |
3452 | ;; | |
3453 | *-*-*) | |
3454 | unsupported_languages="$unsupported_languages java" | |
3455 | ;; | |
3456 | esac | |
3457 | ||
3458 | # Disable Java, libgcj or related libraries for some systems. | |
3459 | case "${target}" in | |
2909494b JM |
3460 | powerpc-*-darwin*) |
3461 | ;; | |
3462 | i[3456789]86-*-darwin*) | |
3463 | ;; | |
3464 | x86_64-*-darwin[912]*) | |
3465 | ;; | |
3466 | *-*-darwin*) | |
3467 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3468 | ;; | |
2909494b JM |
3469 | *-*-netware*) |
3470 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3471 | ;; | |
fd6487af JS |
3472 | *-*-phoenix*) |
3473 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3474 | ;; | |
2909494b JM |
3475 | *-*-rtems*) |
3476 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3477 | ;; | |
3478 | *-*-tpf*) | |
3479 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3480 | ;; | |
3481 | *-*-uclinux*) | |
3482 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3483 | ;; | |
3484 | *-*-vxworks*) | |
3485 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3486 | ;; | |
2909494b JM |
3487 | alpha*-*-*vms*) |
3488 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3489 | ;; | |
82a19768 AT |
3490 | arm*-*-freebsd*) |
3491 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3492 | ;; | |
80f81134 | 3493 | arm-wince-pe) |
2909494b JM |
3494 | noconfigdirs="$noconfigdirs ${libgcj}" |
3495 | ;; | |
2909494b JM |
3496 | arm*-*-symbianelf*) |
3497 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3498 | ;; | |
2909494b | 3499 | bfin-*-*) |
2909494b JM |
3500 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3501 | ;; | |
2909494b JM |
3502 | cris-*-* | crisv32-*-*) |
3503 | unsupported_languages="$unsupported_languages java" | |
3504 | case "${target}" in | |
3505 | *-*-linux*) | |
3506 | ;; | |
3507 | *) # See PR46792 regarding target-libffi. | |
3508 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3509 | esac | |
3510 | ;; | |
2909494b JM |
3511 | hppa*64*-*-linux*) |
3512 | # In this case, it's because the hppa64-linux target is for | |
3513 | # the kernel only at this point and has no libc, and thus no | |
3514 | # headers, crt*.o, etc., all of which are needed by these. | |
fddf9ee7 | 3515 | unsupported_languages="$unsupported_languages java" |
2909494b | 3516 | ;; |
fddf9ee7 | 3517 | hppa*64*-*-hpux*) |
2909494b JM |
3518 | noconfigdirs="$noconfigdirs ${libgcj}" |
3519 | ;; | |
3520 | hppa*-hp-hpux11*) | |
3521 | ;; | |
fddf9ee7 | 3522 | hppa*-*-hpux*) |
2909494b JM |
3523 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3524 | # build on HP-UX 10.20. | |
3525 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3526 | ;; | |
2909494b JM |
3527 | ia64*-*-*vms*) |
3528 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3529 | ;; | |
2909494b JM |
3530 | i[3456789]86-w64-mingw*) |
3531 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3532 | ;; | |
3533 | i[3456789]86-*-mingw*) | |
3534 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3535 | ;; | |
3536 | x86_64-*-mingw*) | |
3537 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3538 | ;; | |
2909494b JM |
3539 | mmix-*-*) |
3540 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
2909494b JM |
3541 | ;; |
3542 | powerpc-*-aix*) | |
3543 | # copied from rs6000-*-* entry | |
3544 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3545 | ;; | |
2909494b JM |
3546 | rs6000-*-aix*) |
3547 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3548 | ;; | |
a05c2c75 L |
3549 | ft32-*-*) |
3550 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3551 | ;; | |
2909494b JM |
3552 | *-*-lynxos*) |
3553 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3554 | ;; | |
2909494b JM |
3555 | esac |
3556 | ||
1335a8ca JBG |
3557 | # Disable the go frontend on systems where it is known to not work. Please keep |
3558 | # this in sync with contrib/config-list.mk. | |
74cc5471 ILT |
3559 | case "${target}" in |
3560 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3561 | unsupported_languages="$unsupported_languages go" | |
3562 | ;; | |
3563 | esac | |
3564 | ||
cdbc9e92 ILT |
3565 | # Disable libgo for some systems where it is known to not work. |
3566 | # For testing, you can easily override this with --enable-libgo. | |
3567 | if test x$enable_libgo = x; then | |
3568 | case "${target}" in | |
3569 | *-*-darwin*) | |
3570 | # PR 46986 | |
3571 | noconfigdirs="$noconfigdirs target-libgo" | |
3572 | ;; | |
3573 | *-*-cygwin* | *-*-mingw*) | |
3574 | noconfigdirs="$noconfigdirs target-libgo" | |
3575 | ;; | |
3576 | *-*-aix*) | |
3577 | noconfigdirs="$noconfigdirs target-libgo" | |
3578 | ;; | |
3579 | esac | |
3580 | fi | |
3581 | ||
c03353e2 RIL |
3582 | # Default libgloss CPU subdirectory. |
3583 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3584 | |
fbcf0dca JM |
3585 | case "${target}" in |
3586 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3587 | libgloss_dir=wince | |
3588 | ;; | |
4dddfc74 YZ |
3589 | aarch64*-*-* ) |
3590 | libgloss_dir=aarch64 | |
3591 | ;; | |
fbcf0dca JM |
3592 | arm*-*-*) |
3593 | libgloss_dir=arm | |
3594 | ;; | |
3595 | cris-*-* | crisv32-*-*) | |
3596 | libgloss_dir=cris | |
3597 | ;; | |
3598 | hppa*-*-*) | |
3599 | libgloss_dir=pa | |
3600 | ;; | |
3601 | i[3456789]86-*-*) | |
3602 | libgloss_dir=i386 | |
3603 | ;; | |
3604 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3605 | libgloss_dir=m68hc11 | |
3606 | ;; | |
3607 | m68*-*-* | fido-*-*) | |
3608 | libgloss_dir=m68k | |
3609 | ;; | |
3610 | mips*-*-*) | |
3611 | libgloss_dir=mips | |
3612 | ;; | |
3613 | powerpc*-*-*) | |
3614 | libgloss_dir=rs6000 | |
3615 | ;; | |
3616 | sparc*-*-*) | |
3617 | libgloss_dir=sparc | |
3618 | ;; | |
3619 | esac | |
3620 | ||
6a789d5e | 3621 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3622 | case "${target}" in |
6a789d5e JM |
3623 | alpha*-dec-osf*) |
3624 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3625 | ;; | |
3626 | i[3456789]86-*-linux*) | |
3627 | # This section makes it possible to build newlib natively on linux. | |
3628 | # If we are using a cross compiler then don't configure newlib. | |
3629 | if test x${is_cross_compiler} != xno ; then | |
3630 | noconfigdirs="$noconfigdirs target-newlib" | |
3631 | fi | |
3632 | noconfigdirs="$noconfigdirs target-libgloss" | |
3633 | # If we are not using a cross compiler, do configure newlib. | |
3634 | # Note however, that newlib will only be configured in this situation | |
3635 | # if the --with-newlib option has been given, because otherwise | |
3636 | # 'target-newlib' will appear in skipdirs. | |
3637 | ;; | |
3638 | i[3456789]86-*-rdos*) | |
3639 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3640 | ;; | |
3641 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3642 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3643 | ;; | |
3644 | sparc-*-sunos4*) | |
3645 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3646 | ;; | |
3647 | *-*-aix*) | |
3648 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3649 | ;; | |
3650 | *-*-beos*) | |
3651 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3652 | ;; | |
671aa708 | 3653 | *-*-chorusos) |
0036370f | 3654 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3655 | ;; |
6a789d5e JM |
3656 | *-*-dragonfly*) |
3657 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3658 | ;; | |
3659 | *-*-freebsd*) | |
3660 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3661 | ;; | |
3662 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3663 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3664 | ;; | |
3665 | *-*-lynxos*) | |
3666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3667 | ;; | |
3668 | *-*-mingw*) | |
3669 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3670 | ;; | |
3671 | *-*-netbsd*) | |
3672 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3673 | ;; | |
3674 | *-*-netware*) | |
3675 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3676 | ;; | |
3677 | *-*-tpf*) | |
3678 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3679 | ;; | |
3680 | *-*-uclinux*) | |
3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3682 | ;; | |
3683 | *-*-vxworks*) | |
3684 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3685 | ;; | |
3686 | esac | |
3687 | ||
3688 | case "${target}" in | |
3689 | *-*-chorusos) | |
3690 | ;; | |
3be96231 TG |
3691 | aarch64-*-darwin*) |
3692 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3693 | noconfigdirs="$noconfigdirs sim target-rda" | |
3694 | ;; | |
3695 | arm-*-darwin*) | |
3696 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3697 | noconfigdirs="$noconfigdirs sim target-rda" | |
3698 | ;; | |
75eeae1a | 3699 | powerpc-*-darwin*) |
e1514c3f | 3700 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3701 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3702 | ;; |
354ebf88 RW |
3703 | i[3456789]86-*-darwin*) |
3704 | noconfigdirs="$noconfigdirs ld gprof" | |
3705 | noconfigdirs="$noconfigdirs sim target-rda" | |
3706 | ;; | |
3707 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3708 | noconfigdirs="$noconfigdirs ld gas gprof" |
3709 | noconfigdirs="$noconfigdirs sim target-rda" | |
3710 | ;; | |
42c1cd8a AT |
3711 | *-*-darwin*) |
3712 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3713 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3714 | ;; |
8c6d158a | 3715 | *-*-dragonfly*) |
8c6d158a | 3716 | ;; |
c3f84f61 | 3717 | *-*-freebsd*) |
6de9cd9a DN |
3718 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3719 | && test -f /usr/local/include/gmp.h; then | |
3720 | with_gmp=/usr/local | |
3721 | fi | |
6de9cd9a | 3722 | ;; |
ef4e7569 US |
3723 | *-*-kaos*) |
3724 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3725 | noconfigdirs="$noconfigdirs target-libgloss" |
3726 | ;; | |
671aa708 | 3727 | *-*-netbsd*) |
671aa708 | 3728 | ;; |
61fec9ff | 3729 | *-*-netware*) |
671aa708 | 3730 | ;; |
fd6487af JS |
3731 | *-*-phoenix*) |
3732 | noconfigdirs="$noconfigdirs target-libgloss" | |
3733 | ;; | |
671aa708 | 3734 | *-*-rtems*) |
2909494b | 3735 | noconfigdirs="$noconfigdirs target-libgloss" |
d896cc4d JBG |
3736 | # this is not caught below because this stanza matches earlier |
3737 | case $target in | |
3738 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3739 | esac | |
671aa708 | 3740 | ;; |
a8ba31f2 EC |
3741 | # The tpf target doesn't support gdb yet. |
3742 | *-*-tpf*) | |
6a789d5e | 3743 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3744 | ;; |
5785c0ed | 3745 | *-*-uclinux*) |
6a789d5e | 3746 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3747 | ;; |
671aa708 | 3748 | *-*-vxworks*) |
671aa708 NN |
3749 | ;; |
3750 | alpha*-dec-osf*) | |
3751 | # ld works, but does not support shared libraries. | |
671aa708 | 3752 | # gas doesn't generate exception information. |
6a789d5e | 3753 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3754 | ;; |
3755 | alpha*-*-*vms*) | |
2909494b | 3756 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3757 | ;; |
671aa708 NN |
3758 | alpha*-*-*) |
3759 | # newlib is not 64 bit ready | |
2909494b | 3760 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3761 | ;; |
671aa708 | 3762 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3763 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3764 | ;; |
671aa708 | 3765 | arm-*-pe*) |
2909494b | 3766 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3767 | ;; |
671aa708 | 3768 | arm-*-riscix*) |
0036370f | 3769 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3770 | ;; |
b588ae30 GJL |
3771 | avr-*-*) |
3772 | if test x${with_avrlibc} != xno; then | |
3773 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3774 | fi | |
3775 | ;; | |
671aa708 | 3776 | c4x-*-* | tic4x-*-*) |
0036370f | 3777 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3778 | ;; |
0036370f JM |
3779 | tic54x-*-*) |
3780 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3781 | ;; |
671aa708 | 3782 | d10v-*-*) |
0036370f | 3783 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3784 | ;; |
3785 | d30v-*-*) | |
0036370f | 3786 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3787 | ;; |
3788 | fr30-*-elf*) | |
2909494b | 3789 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3790 | ;; |
a05c2c75 L |
3791 | ft32-*-*) |
3792 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3793 | ;; | |
55f2d967 | 3794 | moxie-*-*) |
a05c2c75 | 3795 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3796 | ;; |
671aa708 | 3797 | h8300*-*-*) |
2909494b | 3798 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3799 | ;; |
3800 | h8500-*-*) | |
0036370f | 3801 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3802 | ;; |
ee6a22df | 3803 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3804 | ;; |
a05c2c75 L |
3805 | hppa*64*-*-hpux*) |
3806 | noconfigdirs="$noconfigdirs gdb" | |
3807 | ;; | |
3808 | hppa*-*-hpux11*) | |
3809 | noconfigdirs="$noconfigdirs gdb ld" | |
3810 | ;; | |
4569f85e | 3811 | hppa*64*-*-linux*) |
671aa708 | 3812 | ;; |
56f8587a | 3813 | hppa*-*-linux*) |
3e732ba0 | 3814 | ;; |
671aa708 | 3815 | hppa*-*-*elf* | \ |
671aa708 NN |
3816 | hppa*-*-lites* | \ |
3817 | hppa*-*-openbsd* | \ | |
3818 | hppa*64*-*-*) | |
671aa708 | 3819 | ;; |
c03353e2 | 3820 | hppa*-*-pro*) |
c03353e2 | 3821 | ;; |
671aa708 | 3822 | hppa*-*-*) |
2909494b | 3823 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3824 | ;; |
fb87ad5d | 3825 | i960-*-*) |
0036370f | 3826 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3827 | ;; |
671aa708 NN |
3828 | ia64*-*-elf*) |
3829 | # No gdb support yet. | |
1bcce263 | 3830 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3831 | ;; |
3832 | ia64*-**-hpux*) | |
5a2931d1 | 3833 | # No ld support yet. |
a05c2c75 | 3834 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3835 | ;; |
52535a64 | 3836 | ia64*-*-*vms*) |
091fe9ca TG |
3837 | # No ld support yet. |
3838 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3839 | ;; |
ef4c4300 | 3840 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3841 | ;; |
3842 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3843 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3844 | ;; |
671aa708 NN |
3845 | *-*-cygwin*) |
3846 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3847 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3848 | # always build newlib if winsup directory is present. |
b91f0a41 | 3849 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3850 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3851 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3852 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3853 | fi |
1c710c3c | 3854 | ;; |
f2a0e225 | 3855 | i[3456789]86-*-pe) |
ebb9f8b0 | 3856 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3857 | ;; |
f2a0e225 | 3858 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3859 | # The linker does not yet know about weak symbols in COFF, |
3860 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3861 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3862 | ;; |
f2a0e225 | 3863 | i[3456789]86-*-sco*) |
0036370f | 3864 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3865 | ;; |
fbdd5d87 | 3866 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3867 | noconfigdirs="$noconfigdirs target-libgloss" |
3868 | ;; | |
f2a0e225 | 3869 | i[3456789]86-*-sysv4*) |
0036370f | 3870 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3871 | ;; |
f2a0e225 | 3872 | i[3456789]86-*-beos*) |
6a789d5e | 3873 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3874 | ;; |
d1f8db0c | 3875 | i[3456789]86-*-rdos*) |
6a789d5e | 3876 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3877 | ;; |
671aa708 | 3878 | mmix-*-*) |
2909494b | 3879 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3880 | ;; |
ab34901f | 3881 | mt-*-*) |
79dd769c AH |
3882 | noconfigdirs="$noconfigdirs sim" |
3883 | ;; | |
671aa708 NN |
3884 | powerpc-*-aix*) |
3885 | # copied from rs6000-*-* entry | |
6a789d5e | 3886 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3887 | ;; |
4569f85e | 3888 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3889 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3890 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3891 | # always build newlib. |
3892 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3893 | ;; | |
3894 | # This is temporary until we can link against shared libraries | |
3895 | powerpcle-*-solaris*) | |
0036370f | 3896 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3897 | ;; |
3898 | powerpc-*-beos*) | |
6a789d5e | 3899 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3900 | ;; |
671aa708 | 3901 | rs6000-*-lynxos*) |
6a789d5e | 3902 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3903 | ;; |
3904 | rs6000-*-aix*) | |
6a789d5e | 3905 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3906 | ;; |
3907 | rs6000-*-*) | |
2909494b | 3908 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3909 | ;; |
3910 | m68k-apollo-*) | |
0036370f | 3911 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3912 | ;; |
ca9fe997 | 3913 | microblaze*) |
2909494b | 3914 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3915 | ;; |
d896cc4d | 3916 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3917 | if test x$with_newlib = xyes; then |
3918 | noconfigdirs="$noconfigdirs gprof" | |
3919 | fi | |
d9dced13 | 3920 | ;; |
671aa708 | 3921 | mips*-*-irix5*) |
0036370f | 3922 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3923 | ;; |
3924 | mips*-*-irix6*) | |
2909494b | 3925 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3926 | ;; |
671aa708 | 3927 | mips*-*-bsd*) |
bc98bcc4 | 3928 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3929 | ;; |
671aa708 | 3930 | mips*-*-linux*) |
671aa708 | 3931 | ;; |
bc98bcc4 JBG |
3932 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3933 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3934 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3935 | ;; | |
671aa708 | 3936 | mips*-*-*) |
2909494b | 3937 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3938 | ;; |
738f2522 | 3939 | nvptx*-*-*) |
738f2522 BS |
3940 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3941 | ;; | |
d896cc4d JBG |
3942 | or1k*-*-*) |
3943 | noconfigdirs="$noconfigdirs gdb" | |
3944 | ;; | |
bc6d9014 | 3945 | sh-*-*) |
ea2002ba CB |
3946 | case "${target}" in |
3947 | sh*-*-elf) | |
2909494b | 3948 | ;; |
ea2002ba | 3949 | *) |
2909494b | 3950 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3951 | esac |
671aa708 | 3952 | ;; |
671aa708 | 3953 | sparc-*-sunos4*) |
6a789d5e | 3954 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3955 | use_gnu_ld=no |
3956 | fi | |
3957 | ;; | |
b42f0d7e | 3958 | tic6x-*-*) |
0d557ff8 | 3959 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3960 | ;; |
341c653c | 3961 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
3962 | noconfigdirs="$noconfigdirs sim" |
3963 | ;; | |
671aa708 | 3964 | v810-*-*) |
0036370f | 3965 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3966 | ;; |
3967 | vax-*-*) | |
2909494b | 3968 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3969 | ;; |
671aa708 | 3970 | esac |
79c06341 | 3971 | |
671aa708 NN |
3972 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3973 | # depends upon some newlib header files. | |
3974 | case "${noconfigdirs}" in | |
3975 | *target-libgloss*) ;; | |
3976 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3977 | esac | |
3978 | ||
671aa708 | 3979 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3980 | host_makefile_frag=/dev/null |
3981 | if test -d ${srcdir}/config ; then | |
3982 | case "${host}" in | |
f2a0e225 | 3983 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3984 | host_makefile_frag="config/mh-djgpp" |
3985 | ;; | |
3986 | *-cygwin*) | |
2a79c47f | 3987 | |
5213506e RW |
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3989 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3990 | echo a >cygwin-cat-check |
e25a8c82 | 3991 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3992 | rm cygwin-cat-check |
5213506e RW |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3994 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3995 | else |
3996 | rm cygwin-cat-check | |
5213506e RW |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3998 | $as_echo "no" >&6; } | |
3999 | as_fn_error "The cat command does not ignore carriage return characters. | |
2a79c47f NC |
4000 | Please either mount the build directory in binary mode or run the following |
4001 | commands before running any configure script: | |
4002 | set -o igncr | |
4003 | export SHELLOPTS | |
5213506e | 4004 | " "$LINENO" 5 |
2a79c47f NC |
4005 | fi |
4006 | ||
671aa708 NN |
4007 | host_makefile_frag="config/mh-cygwin" |
4008 | ;; | |
c53a18d3 | 4009 | *-mingw*) |
1f5a6b84 | 4010 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4011 | ;; |
cabb9d59 | 4012 | alpha*-linux*) |
13be44ed UB |
4013 | host_makefile_frag="config/mh-alpha-linux" |
4014 | ;; | |
efd41714 | 4015 | hppa*-hp-hpux10*) |
efd41714 | 4016 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4017 | ;; |
111eeb6e | 4018 | hppa*-hp-hpux*) |
efd41714 PB |
4019 | host_makefile_frag="config/mh-pa" |
4020 | ;; | |
4021 | hppa*-*) | |
4022 | host_makefile_frag="config/mh-pa" | |
4023 | ;; | |
d8ed14ce IS |
4024 | *-*-darwin*) |
4025 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 4026 | ;; |
d19bca38 PB |
4027 | powerpc-*-aix*) |
4028 | host_makefile_frag="config/mh-ppc-aix" | |
4029 | ;; | |
4030 | rs6000-*-aix*) | |
4031 | host_makefile_frag="config/mh-ppc-aix" | |
4032 | ;; | |
671aa708 NN |
4033 | esac |
4034 | fi | |
4035 | ||
55ffb5ed | 4036 | if test "${build}" != "${host}" ; then |
0999159b PB |
4037 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4038 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4039 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b PB |
4040 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4041 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4042 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
632e2a07 | 4043 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
0999159b PB |
4044 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4045 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4046 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4047 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4048 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4049 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4050 | else | |
4051 | AR_FOR_BUILD="\$(AR)" | |
4052 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4053 | CC_FOR_BUILD="\$(CC)" |
0999159b PB |
4054 | CXX_FOR_BUILD="\$(CXX)" |
4055 | GCJ_FOR_BUILD="\$(GCJ)" | |
4056 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
632e2a07 | 4057 | GOC_FOR_BUILD="\$(GOC)" |
0999159b PB |
4058 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4059 | LD_FOR_BUILD="\$(LD)" | |
4060 | NM_FOR_BUILD="\$(NM)" | |
4061 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4062 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4063 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4064 | fi |
4065 | ||
4066 | ac_ext=c | |
1c710c3c DJ |
4067 | ac_cpp='$CPP $CPPFLAGS' |
4068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4071 | if test -n "$ac_tool_prefix"; then | |
4072 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4073 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4075 | $as_echo_n "checking for $ac_word... " >&6; } | |
4076 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4077 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
4078 | else |
4079 | if test -n "$CC"; then | |
4080 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4081 | else | |
4082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4083 | for as_dir in $PATH | |
4084 | do | |
4085 | IFS=$as_save_IFS | |
4086 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4087 | for ac_exec_ext in '' $ac_executable_extensions; do |
4088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4089 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4091 | break 2 |
4092 | fi | |
4093 | done | |
5213506e RW |
4094 | done |
4095 | IFS=$as_save_IFS | |
1c710c3c DJ |
4096 | |
4097 | fi | |
4098 | fi | |
4099 | CC=$ac_cv_prog_CC | |
4100 | if test -n "$CC"; then | |
5213506e RW |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4102 | $as_echo "$CC" >&6; } | |
1c710c3c | 4103 | else |
5213506e RW |
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4105 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4106 | fi |
4107 | ||
5213506e | 4108 | |
1c710c3c DJ |
4109 | fi |
4110 | if test -z "$ac_cv_prog_CC"; then | |
4111 | ac_ct_CC=$CC | |
fb0103e5 RG |
4112 | # Extract the first word of "gcc", so it can be a program name with args. |
4113 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4115 | $as_echo_n "checking for $ac_word... " >&6; } | |
4116 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4117 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
4118 | else |
4119 | if test -n "$ac_ct_CC"; then | |
4120 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4121 | else | |
4122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4123 | for as_dir in $PATH | |
4124 | do | |
4125 | IFS=$as_save_IFS | |
4126 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4127 | for ac_exec_ext in '' $ac_executable_extensions; do |
4128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4129 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4131 | break 2 |
4132 | fi | |
4133 | done | |
5213506e RW |
4134 | done |
4135 | IFS=$as_save_IFS | |
1c710c3c DJ |
4136 | |
4137 | fi | |
4138 | fi | |
4139 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4140 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4142 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4143 | else |
5213506e RW |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4145 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4146 | fi |
4147 | ||
5213506e RW |
4148 | if test "x$ac_ct_CC" = x; then |
4149 | CC="" | |
4150 | else | |
4151 | case $cross_compiling:$ac_tool_warned in | |
4152 | yes:) | |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4154 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4155 | ac_tool_warned=yes ;; | |
4156 | esac | |
4157 | CC=$ac_ct_CC | |
4158 | fi | |
1c710c3c DJ |
4159 | else |
4160 | CC="$ac_cv_prog_CC" | |
4161 | fi | |
4162 | ||
4163 | if test -z "$CC"; then | |
5213506e RW |
4164 | if test -n "$ac_tool_prefix"; then |
4165 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4166 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4168 | $as_echo_n "checking for $ac_word... " >&6; } | |
4169 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4170 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4171 | else |
4172 | if test -n "$CC"; then | |
4173 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4174 | else | |
1c710c3c DJ |
4175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4176 | for as_dir in $PATH | |
4177 | do | |
4178 | IFS=$as_save_IFS | |
4179 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
4181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4182 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4184 | break 2 |
4185 | fi | |
4186 | done | |
5213506e RW |
4187 | done |
4188 | IFS=$as_save_IFS | |
1c710c3c | 4189 | |
0b0dc272 | 4190 | fi |
0b0dc272 | 4191 | fi |
1c710c3c | 4192 | CC=$ac_cv_prog_CC |
af71363e | 4193 | if test -n "$CC"; then |
5213506e RW |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4195 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4196 | else |
5213506e RW |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4198 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4199 | fi |
4200 | ||
2aeb72e9 | 4201 | |
5213506e | 4202 | fi |
1c710c3c | 4203 | fi |
55ffb5ed NN |
4204 | if test -z "$CC"; then |
4205 | # Extract the first word of "cc", so it can be a program name with args. | |
4206 | set dummy cc; ac_word=$2 | |
5213506e RW |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4208 | $as_echo_n "checking for $ac_word... " >&6; } | |
4209 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4210 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4211 | else |
4212 | if test -n "$CC"; then | |
4213 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4214 | else | |
0b0dc272 | 4215 | ac_prog_rejected=no |
1c710c3c DJ |
4216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4217 | for as_dir in $PATH | |
4218 | do | |
4219 | IFS=$as_save_IFS | |
4220 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4221 | for ac_exec_ext in '' $ac_executable_extensions; do |
4222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c DJ |
4223 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4224 | ac_prog_rejected=yes | |
4225 | continue | |
4226 | fi | |
4227 | ac_cv_prog_CC="cc" | |
5213506e | 4228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4229 | break 2 |
4230 | fi | |
4231 | done | |
5213506e RW |
4232 | done |
4233 | IFS=$as_save_IFS | |
1c710c3c | 4234 | |
55ffb5ed NN |
4235 | if test $ac_prog_rejected = yes; then |
4236 | # We found a bogon in the path, so make sure we never use it. | |
4237 | set dummy $ac_cv_prog_CC | |
4238 | shift | |
1c710c3c | 4239 | if test $# != 0; then |
55ffb5ed NN |
4240 | # We chose a different compiler from the bogus one. |
4241 | # However, it has the same basename, so the bogon will be chosen | |
4242 | # first if we set CC to just the basename; use the full file name. | |
4243 | shift | |
1c710c3c | 4244 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4245 | fi |
4246 | fi | |
4247 | fi | |
4248 | fi | |
1c710c3c | 4249 | CC=$ac_cv_prog_CC |
55ffb5ed | 4250 | if test -n "$CC"; then |
5213506e RW |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4252 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4253 | else |
5213506e RW |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4255 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4256 | fi |
4257 | ||
5213506e | 4258 | |
1c710c3c DJ |
4259 | fi |
4260 | if test -z "$CC"; then | |
4261 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4262 | for ac_prog in cl.exe |
1c710c3c DJ |
4263 | do |
4264 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4265 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4267 | $as_echo_n "checking for $ac_word... " >&6; } | |
4268 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4269 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4270 | else |
4271 | if test -n "$CC"; then | |
4272 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4273 | else | |
1c710c3c DJ |
4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4275 | for as_dir in $PATH | |
4276 | do | |
4277 | IFS=$as_save_IFS | |
4278 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
4280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4281 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4283 | break 2 |
4284 | fi | |
4285 | done | |
5213506e RW |
4286 | done |
4287 | IFS=$as_save_IFS | |
1c710c3c | 4288 | |
55ffb5ed NN |
4289 | fi |
4290 | fi | |
1c710c3c | 4291 | CC=$ac_cv_prog_CC |
55ffb5ed | 4292 | if test -n "$CC"; then |
5213506e RW |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4294 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4295 | else |
5213506e RW |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4297 | $as_echo "no" >&6; } | |
fb0103e5 | 4298 | fi |
af71363e | 4299 | |
5213506e | 4300 | |
1c710c3c DJ |
4301 | test -n "$CC" && break |
4302 | done | |
af71363e | 4303 | fi |
1c710c3c DJ |
4304 | if test -z "$CC"; then |
4305 | ac_ct_CC=$CC | |
5213506e | 4306 | for ac_prog in cl.exe |
1c710c3c DJ |
4307 | do |
4308 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4309 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4311 | $as_echo_n "checking for $ac_word... " >&6; } | |
4312 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4313 | $as_echo_n "(cached) " >&6 | |
0b0dc272 | 4314 | else |
1c710c3c DJ |
4315 | if test -n "$ac_ct_CC"; then |
4316 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4317 | else |
1c710c3c DJ |
4318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4319 | for as_dir in $PATH | |
4320 | do | |
4321 | IFS=$as_save_IFS | |
4322 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4323 | for ac_exec_ext in '' $ac_executable_extensions; do |
4324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4325 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4327 | break 2 |
4328 | fi | |
4329 | done | |
5213506e RW |
4330 | done |
4331 | IFS=$as_save_IFS | |
1c710c3c | 4332 | |
af71363e AS |
4333 | fi |
4334 | fi | |
1c710c3c DJ |
4335 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4336 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4338 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4339 | else |
5213506e RW |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4341 | $as_echo "no" >&6; } | |
af71363e | 4342 | fi |
0b0dc272 | 4343 | |
5213506e | 4344 | |
1c710c3c DJ |
4345 | test -n "$ac_ct_CC" && break |
4346 | done | |
4347 | ||
5213506e RW |
4348 | if test "x$ac_ct_CC" = x; then |
4349 | CC="" | |
4350 | else | |
4351 | case $cross_compiling:$ac_tool_warned in | |
4352 | yes:) | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4354 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4355 | ac_tool_warned=yes ;; | |
4356 | esac | |
4357 | CC=$ac_ct_CC | |
4358 | fi | |
1c710c3c DJ |
4359 | fi |
4360 | ||
4361 | fi | |
4362 | ||
4363 | ||
5213506e RW |
4364 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4365 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4366 | as_fn_error "no acceptable C compiler found in \$PATH | |
4367 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c DJ |
4368 | |
4369 | # Provide some information about the compiler. | |
5213506e RW |
4370 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4371 | set X $ac_compile | |
4372 | ac_compiler=$2 | |
4373 | for ac_option in --version -v -V -qversion; do | |
4374 | { { ac_try="$ac_compiler $ac_option >&5" | |
4375 | case "(($ac_try" in | |
4376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4377 | *) ac_try_echo=$ac_try;; | |
4378 | esac | |
4379 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4380 | $as_echo "$ac_try_echo"; } >&5 | |
4381 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4382 | ac_status=$? |
5213506e RW |
4383 | if test -s conftest.err; then |
4384 | sed '10a\ | |
4385 | ... rest of stderr output deleted ... | |
4386 | 10q' conftest.err >conftest.er1 | |
4387 | cat conftest.er1 >&5 | |
4388 | rm -f conftest.er1 conftest.err | |
4389 | fi | |
4390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4391 | test $ac_status = 0; } | |
4392 | done | |
1c710c3c | 4393 | |
5213506e | 4394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4395 | /* end confdefs.h. */ |
4396 | ||
4397 | int | |
4398 | main () | |
4399 | { | |
4400 | ||
4401 | ; | |
4402 | return 0; | |
4403 | } | |
4404 | _ACEOF | |
4405 | ac_clean_files_save=$ac_clean_files | |
5213506e | 4406 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
1c710c3c DJ |
4407 | # Try to create an executable without -o first, disregard a.out. |
4408 | # It will help us diagnose broken compilers, and finding out an intuition | |
4409 | # of exeext. | |
5213506e RW |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4411 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4412 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4413 | ||
4414 | # The possible output files: | |
4415 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4416 | ||
4417 | ac_rmfiles= | |
4418 | for ac_file in $ac_files | |
4419 | do | |
4420 | case $ac_file in | |
4421 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4422 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4423 | esac | |
4424 | done | |
4425 | rm -f $ac_rmfiles | |
4426 | ||
4427 | if { { ac_try="$ac_link_default" | |
4428 | case "(($ac_try" in | |
4429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4430 | *) ac_try_echo=$ac_try;; | |
4431 | esac | |
4432 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4433 | $as_echo "$ac_try_echo"; } >&5 | |
4434 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4435 | ac_status=$? |
5213506e RW |
4436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4437 | test $ac_status = 0; }; then : | |
4438 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4439 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4440 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4441 | # so that the user can short-circuit this test for compilers unknown to | |
4442 | # Autoconf. | |
4443 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4444 | do |
4445 | test -f "$ac_file" || continue | |
4446 | case $ac_file in | |
5213506e | 4447 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4448 | ;; |
4449 | [ab].out ) | |
4450 | # We found the default executable, but exeext='' is most | |
4451 | # certainly right. | |
4452 | break;; | |
4453 | *.* ) | |
5213506e RW |
4454 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4455 | then :; else | |
4456 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4457 | fi | |
4458 | # We set ac_cv_exeext here because the later test for it is not | |
4459 | # safe: cross compilers may not add the suffix if given an `-o' | |
4460 | # argument, so we may need to know it at that point already. | |
4461 | # Even if this section looks crufty: it has the advantage of | |
4462 | # actually working. | |
1c710c3c DJ |
4463 | break;; |
4464 | * ) | |
4465 | break;; | |
4466 | esac | |
4467 | done | |
5213506e RW |
4468 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4469 | ||
1c710c3c | 4470 | else |
5213506e RW |
4471 | ac_file='' |
4472 | fi | |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4474 | $as_echo "$ac_file" >&6; } | |
4475 | if test -z "$ac_file"; then : | |
4476 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4477 | sed 's/^/| /' conftest.$ac_ext >&5 |
4478 | ||
5213506e RW |
4479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4481 | { as_fn_set_status 77 | |
4482 | as_fn_error "C compiler cannot create executables | |
4483 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1c710c3c | 4484 | fi |
1c710c3c | 4485 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4486 | |
5213506e | 4487 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4488 | # the compiler is broken, or we cross compile. |
5213506e RW |
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4490 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1c710c3c DJ |
4491 | # If not cross compiling, check that we can run a simple program. |
4492 | if test "$cross_compiling" != yes; then | |
4493 | if { ac_try='./$ac_file' | |
5213506e RW |
4494 | { { case "(($ac_try" in |
4495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4496 | *) ac_try_echo=$ac_try;; | |
4497 | esac | |
4498 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4499 | $as_echo "$ac_try_echo"; } >&5 | |
4500 | (eval "$ac_try") 2>&5 | |
1c710c3c | 4501 | ac_status=$? |
5213506e RW |
4502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4503 | test $ac_status = 0; }; }; then | |
1c710c3c DJ |
4504 | cross_compiling=no |
4505 | else | |
4506 | if test "$cross_compiling" = maybe; then | |
4507 | cross_compiling=yes | |
4508 | else | |
5213506e RW |
4509 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4511 | as_fn_error "cannot run C compiled programs. | |
1c710c3c | 4512 | If you meant to cross compile, use \`--host'. |
5213506e | 4513 | See \`config.log' for more details." "$LINENO" 5; } |
1c710c3c DJ |
4514 | fi |
4515 | fi | |
4516 | fi | |
5213506e RW |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4518 | $as_echo "yes" >&6; } | |
1c710c3c | 4519 | |
5213506e | 4520 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
1c710c3c | 4521 | ac_clean_files=$ac_clean_files_save |
5213506e | 4522 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4523 | # the compiler is broken, or we cross compile. |
5213506e RW |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4525 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4527 | $as_echo "$cross_compiling" >&6; } | |
4528 | ||
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4530 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4531 | if { { ac_try="$ac_link" | |
4532 | case "(($ac_try" in | |
4533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4534 | *) ac_try_echo=$ac_try;; | |
4535 | esac | |
4536 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4537 | $as_echo "$ac_try_echo"; } >&5 | |
4538 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4539 | ac_status=$? |
5213506e RW |
4540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4541 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4542 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4543 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4544 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4545 | # `rm'. | |
4546 | for ac_file in conftest.exe conftest conftest.*; do | |
4547 | test -f "$ac_file" || continue | |
4548 | case $ac_file in | |
5213506e | 4549 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4550 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4551 | break;; |
4552 | * ) break;; | |
4553 | esac | |
4554 | done | |
af71363e | 4555 | else |
5213506e RW |
4556 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4557 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4558 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4559 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4560 | fi |
1c710c3c | 4561 | rm -f conftest$ac_cv_exeext |
5213506e RW |
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4563 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4564 | |
4565 | rm -f conftest.$ac_ext | |
4566 | EXEEXT=$ac_cv_exeext | |
4567 | ac_exeext=$EXEEXT | |
5213506e RW |
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4569 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4570 | if test "${ac_cv_objext+set}" = set; then : | |
4571 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4572 | else |
5213506e | 4573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4574 | /* end confdefs.h. */ |
4575 | ||
4576 | int | |
4577 | main () | |
4578 | { | |
4579 | ||
4580 | ; | |
4581 | return 0; | |
4582 | } | |
4583 | _ACEOF | |
4584 | rm -f conftest.o conftest.obj | |
5213506e RW |
4585 | if { { ac_try="$ac_compile" |
4586 | case "(($ac_try" in | |
4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4588 | *) ac_try_echo=$ac_try;; | |
4589 | esac | |
4590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4591 | $as_echo "$ac_try_echo"; } >&5 | |
4592 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4593 | ac_status=$? |
5213506e RW |
4594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4595 | test $ac_status = 0; }; then : | |
4596 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4597 | test -f "$ac_file" || continue; | |
1c710c3c | 4598 | case $ac_file in |
5213506e | 4599 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4600 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4601 | break;; | |
4602 | esac | |
4603 | done | |
4604 | else | |
5213506e | 4605 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4606 | sed 's/^/| /' conftest.$ac_ext >&5 |
4607 | ||
5213506e RW |
4608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4610 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4611 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4612 | fi |
1c710c3c DJ |
4613 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4614 | fi | |
5213506e RW |
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4616 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4617 | OBJEXT=$ac_cv_objext |
4618 | ac_objext=$OBJEXT | |
5213506e RW |
4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4620 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4621 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4622 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4623 | else |
5213506e | 4624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4625 | /* end confdefs.h. */ |
4626 | ||
4627 | int | |
4628 | main () | |
4629 | { | |
4630 | #ifndef __GNUC__ | |
4631 | choke me | |
4632 | #endif | |
4633 | ||
4634 | ; | |
4635 | return 0; | |
4636 | } | |
4637 | _ACEOF | |
5213506e | 4638 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4639 | ac_compiler_gnu=yes |
4640 | else | |
5213506e | 4641 | ac_compiler_gnu=no |
1c710c3c | 4642 | fi |
5213506e | 4643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4644 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4645 | ||
4646 | fi | |
5213506e RW |
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4648 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4649 | if test $ac_compiler_gnu = yes; then | |
4650 | GCC=yes | |
4651 | else | |
4652 | GCC= | |
4653 | fi | |
1c710c3c DJ |
4654 | ac_test_CFLAGS=${CFLAGS+set} |
4655 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4657 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4658 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4659 | $as_echo_n "(cached) " >&6 | |
4660 | else | |
4661 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4662 | ac_c_werror_flag=yes | |
4663 | ac_cv_prog_cc_g=no | |
4664 | CFLAGS="-g" | |
4665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4666 | /* end confdefs.h. */ |
4667 | ||
4668 | int | |
4669 | main () | |
4670 | { | |
4671 | ||
4672 | ; | |
4673 | return 0; | |
4674 | } | |
4675 | _ACEOF | |
5213506e | 4676 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4677 | ac_cv_prog_cc_g=yes |
4678 | else | |
5213506e RW |
4679 | CFLAGS="" |
4680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4681 | /* end confdefs.h. */ | |
4682 | ||
4683 | int | |
4684 | main () | |
4685 | { | |
4686 | ||
4687 | ; | |
4688 | return 0; | |
4689 | } | |
4690 | _ACEOF | |
4691 | if ac_fn_c_try_compile "$LINENO"; then : | |
4692 | ||
4693 | else | |
4694 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4695 | CFLAGS="-g" | |
4696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4697 | /* end confdefs.h. */ | |
af71363e | 4698 | |
5213506e RW |
4699 | int |
4700 | main () | |
4701 | { | |
4702 | ||
4703 | ; | |
4704 | return 0; | |
4705 | } | |
4706 | _ACEOF | |
4707 | if ac_fn_c_try_compile "$LINENO"; then : | |
4708 | ac_cv_prog_cc_g=yes | |
4709 | fi | |
4710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4711 | fi |
5213506e | 4712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4713 | fi |
5213506e RW |
4714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4715 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4716 | fi | |
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4718 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4719 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4720 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4721 | elif test $ac_cv_prog_cc_g = yes; then |
4722 | if test "$GCC" = yes; then | |
4723 | CFLAGS="-g -O2" | |
4724 | else | |
4725 | CFLAGS="-g" | |
4726 | fi | |
4727 | else | |
4728 | if test "$GCC" = yes; then | |
4729 | CFLAGS="-O2" | |
4730 | else | |
4731 | CFLAGS= | |
4732 | fi | |
4733 | fi | |
5213506e RW |
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4735 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4736 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4737 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4738 | else |
5213506e | 4739 | ac_cv_prog_cc_c89=no |
1c710c3c | 4740 | ac_save_CC=$CC |
5213506e | 4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4742 | /* end confdefs.h. */ |
4743 | #include <stdarg.h> | |
4744 | #include <stdio.h> | |
4745 | #include <sys/types.h> | |
4746 | #include <sys/stat.h> | |
4747 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4748 | struct buf { int x; }; | |
4749 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4750 | static char *e (p, i) | |
4751 | char **p; | |
4752 | int i; | |
4753 | { | |
4754 | return p[i]; | |
4755 | } | |
4756 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4757 | { | |
4758 | char *s; | |
4759 | va_list v; | |
4760 | va_start (v,p); | |
4761 | s = g (p, va_arg (v,int)); | |
4762 | va_end (v); | |
4763 | return s; | |
4764 | } | |
4765 | ||
4766 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4767 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4768 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4769 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4770 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4771 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4772 | that's true only with -std. */ |
1c710c3c DJ |
4773 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4774 | ||
5213506e RW |
4775 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4776 | inside strings and character constants. */ | |
4777 | #define FOO(x) 'x' | |
4778 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4779 | ||
1c710c3c DJ |
4780 | int test (int i, double x); |
4781 | struct s1 {int (*f) (int a);}; | |
4782 | struct s2 {int (*f) (double a);}; | |
4783 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4784 | int argc; | |
4785 | char **argv; | |
4786 | int | |
4787 | main () | |
4788 | { | |
4789 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4790 | ; | |
4791 | return 0; | |
4792 | } | |
4793 | _ACEOF | |
5213506e RW |
4794 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4795 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4796 | do |
4797 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4798 | if ac_fn_c_try_compile "$LINENO"; then : |
4799 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4800 | fi |
5213506e RW |
4801 | rm -f core conftest.err conftest.$ac_objext |
4802 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4803 | done |
5213506e | 4804 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4805 | CC=$ac_save_CC |
4806 | ||
4807 | fi | |
5213506e RW |
4808 | # AC_CACHE_VAL |
4809 | case "x$ac_cv_prog_cc_c89" in | |
4810 | x) | |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4812 | $as_echo "none needed" >&6; } ;; | |
4813 | xno) | |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4815 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4816 | *) |
5213506e RW |
4817 | CC="$CC $ac_cv_prog_cc_c89" |
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4819 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4820 | esac |
5213506e | 4821 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4822 | |
2aeb72e9 DD |
4823 | fi |
4824 | ||
2aeb72e9 DD |
4825 | ac_ext=c |
4826 | ac_cpp='$CPP $CPPFLAGS' | |
4827 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4828 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4829 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4830 | ||
5213506e | 4831 | ac_ext=cpp |
2aeb72e9 DD |
4832 | ac_cpp='$CXXCPP $CPPFLAGS' |
4833 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4834 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4835 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4836 | if test -z "$CXX"; then |
4837 | if test -n "$CCC"; then | |
4838 | CXX=$CCC | |
4839 | else | |
4840 | if test -n "$ac_tool_prefix"; then | |
4841 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4842 | do |
4843 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4844 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4846 | $as_echo_n "checking for $ac_word... " >&6; } | |
4847 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4848 | $as_echo_n "(cached) " >&6 | |
2aeb72e9 DD |
4849 | else |
4850 | if test -n "$CXX"; then | |
4851 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4852 | else | |
4853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4854 | for as_dir in $PATH | |
4855 | do | |
4856 | IFS=$as_save_IFS | |
4857 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4858 | for ac_exec_ext in '' $ac_executable_extensions; do |
4859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2aeb72e9 | 4860 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4862 | break 2 |
4863 | fi | |
4864 | done | |
5213506e RW |
4865 | done |
4866 | IFS=$as_save_IFS | |
55ffb5ed | 4867 | |
c3a86da9 DJ |
4868 | fi |
4869 | fi | |
4870 | CXX=$ac_cv_prog_CXX | |
4871 | if test -n "$CXX"; then | |
5213506e RW |
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4873 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4874 | else |
5213506e RW |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4876 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4877 | fi |
4878 | ||
5213506e | 4879 | |
c3a86da9 DJ |
4880 | test -n "$CXX" && break |
4881 | done | |
4882 | fi | |
4883 | if test -z "$CXX"; then | |
4884 | ac_ct_CXX=$CXX | |
5213506e | 4885 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4886 | do |
4887 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4888 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4890 | $as_echo_n "checking for $ac_word... " >&6; } | |
4891 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4892 | $as_echo_n "(cached) " >&6 | |
c3a86da9 DJ |
4893 | else |
4894 | if test -n "$ac_ct_CXX"; then | |
4895 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4896 | else | |
4897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4898 | for as_dir in $PATH | |
4899 | do | |
4900 | IFS=$as_save_IFS | |
4901 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4902 | for ac_exec_ext in '' $ac_executable_extensions; do |
4903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c3a86da9 | 4904 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4906 | break 2 |
4907 | fi | |
4908 | done | |
5213506e RW |
4909 | done |
4910 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4911 | |
4912 | fi | |
4913 | fi | |
4914 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4915 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4917 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4918 | else |
5213506e RW |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4920 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4921 | fi |
4922 | ||
5213506e | 4923 | |
c3a86da9 DJ |
4924 | test -n "$ac_ct_CXX" && break |
4925 | done | |
c3a86da9 | 4926 | |
5213506e RW |
4927 | if test "x$ac_ct_CXX" = x; then |
4928 | CXX="g++" | |
4929 | else | |
4930 | case $cross_compiling:$ac_tool_warned in | |
4931 | yes:) | |
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4933 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4934 | ac_tool_warned=yes ;; | |
4935 | esac | |
4936 | CXX=$ac_ct_CXX | |
4937 | fi | |
c3a86da9 DJ |
4938 | fi |
4939 | ||
5213506e RW |
4940 | fi |
4941 | fi | |
c3a86da9 | 4942 | # Provide some information about the compiler. |
5213506e RW |
4943 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4944 | set X $ac_compile | |
4945 | ac_compiler=$2 | |
4946 | for ac_option in --version -v -V -qversion; do | |
4947 | { { ac_try="$ac_compiler $ac_option >&5" | |
4948 | case "(($ac_try" in | |
4949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4950 | *) ac_try_echo=$ac_try;; | |
4951 | esac | |
4952 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4953 | $as_echo "$ac_try_echo"; } >&5 | |
4954 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4955 | ac_status=$? |
5213506e RW |
4956 | if test -s conftest.err; then |
4957 | sed '10a\ | |
4958 | ... rest of stderr output deleted ... | |
4959 | 10q' conftest.err >conftest.er1 | |
4960 | cat conftest.er1 >&5 | |
4961 | rm -f conftest.er1 conftest.err | |
4962 | fi | |
4963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4964 | test $ac_status = 0; } | |
4965 | done | |
c3a86da9 | 4966 | |
5213506e RW |
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4968 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4969 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4970 | $as_echo_n "(cached) " >&6 | |
c3a86da9 | 4971 | else |
5213506e | 4972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4973 | /* end confdefs.h. */ |
4974 | ||
4975 | int | |
4976 | main () | |
4977 | { | |
4978 | #ifndef __GNUC__ | |
4979 | choke me | |
4980 | #endif | |
4981 | ||
4982 | ; | |
4983 | return 0; | |
4984 | } | |
4985 | _ACEOF | |
5213506e | 4986 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4987 | ac_compiler_gnu=yes |
4988 | else | |
5213506e | 4989 | ac_compiler_gnu=no |
c3a86da9 | 4990 | fi |
5213506e | 4991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4992 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4993 | ||
4994 | fi | |
5213506e RW |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4996 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4997 | if test $ac_compiler_gnu = yes; then | |
4998 | GXX=yes | |
4999 | else | |
5000 | GXX= | |
5001 | fi | |
c3a86da9 DJ |
5002 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5003 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5005 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5006 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
5007 | $as_echo_n "(cached) " >&6 | |
5008 | else | |
5009 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5010 | ac_cxx_werror_flag=yes | |
5011 | ac_cv_prog_cxx_g=no | |
5012 | CXXFLAGS="-g" | |
5013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5014 | /* end confdefs.h. */ |
5015 | ||
5016 | int | |
5017 | main () | |
5018 | { | |
5019 | ||
5020 | ; | |
5021 | return 0; | |
5022 | } | |
5023 | _ACEOF | |
5213506e | 5024 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5025 | ac_cv_prog_cxx_g=yes |
5026 | else | |
5213506e RW |
5027 | CXXFLAGS="" |
5028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5029 | /* end confdefs.h. */ |
5213506e | 5030 | |
c3a86da9 DJ |
5031 | int |
5032 | main () | |
5033 | { | |
5213506e | 5034 | |
c3a86da9 DJ |
5035 | ; |
5036 | return 0; | |
5037 | } | |
5038 | _ACEOF | |
5213506e | 5039 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5040 | |
5213506e RW |
5041 | else |
5042 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5043 | CXXFLAGS="-g" | |
5044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5045 | /* end confdefs.h. */ |
5213506e | 5046 | |
c3a86da9 DJ |
5047 | int |
5048 | main () | |
5049 | { | |
5213506e | 5050 | |
c3a86da9 DJ |
5051 | ; |
5052 | return 0; | |
5053 | } | |
5054 | _ACEOF | |
5213506e RW |
5055 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5056 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5057 | fi |
5213506e RW |
5058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5059 | fi | |
5060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5061 | fi | |
5062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5063 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5064 | fi | |
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5066 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5067 | if test "$ac_test_CXXFLAGS" = set; then | |
5068 | CXXFLAGS=$ac_save_CXXFLAGS | |
5069 | elif test $ac_cv_prog_cxx_g = yes; then | |
5070 | if test "$GXX" = yes; then | |
5071 | CXXFLAGS="-g -O2" | |
5072 | else | |
5073 | CXXFLAGS="-g" | |
5074 | fi | |
5075 | else | |
5076 | if test "$GXX" = yes; then | |
5077 | CXXFLAGS="-O2" | |
5078 | else | |
5079 | CXXFLAGS= | |
5080 | fi | |
c3a86da9 | 5081 | fi |
c3a86da9 DJ |
5082 | ac_ext=c |
5083 | ac_cpp='$CPP $CPPFLAGS' | |
5084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5087 | ||
5088 | ||
5089 | # We must set the default linker to the linker used by gcc for the correct | |
5090 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5091 | # set the LD default to the ld used by gcc. | |
5092 | if test -z "$LD"; then | |
5093 | if test "$GCC" = yes; then | |
5094 | case $build in | |
5095 | *-*-mingw*) | |
5096 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5097 | *) | |
5098 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5099 | esac | |
5100 | case $gcc_prog_ld in | |
5101 | # Accept absolute paths. | |
5102 | [\\/]* | [A-Za-z]:[\\/]*) | |
5103 | LD="$gcc_prog_ld" ;; | |
5104 | esac | |
5105 | fi | |
23f6b2f9 PB |
5106 | fi |
5107 | ||
0b21f5d3 EB |
5108 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5109 | have_static_libs=no | |
5110 | if test "$GCC" = yes; then | |
5111 | saved_LDFLAGS="$LDFLAGS" | |
5112 | ||
5113 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5115 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5116 | ac_ext=cpp | |
5117 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5118 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5119 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5120 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5121 | ||
5122 | ||
5123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5124 | /* end confdefs.h. */ | |
0d6414b2 EB |
5125 | |
5126 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5127 | #error -static-libstdc++ not implemented | |
5128 | #endif | |
0b21f5d3 EB |
5129 | int main() {} |
5130 | _ACEOF | |
5131 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5133 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5134 | else | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5136 | $as_echo "no" >&6; } | |
5137 | fi | |
5138 | rm -f core conftest.err conftest.$ac_objext \ | |
5139 | conftest$ac_exeext conftest.$ac_ext | |
5140 | ac_ext=c | |
5141 | ac_cpp='$CPP $CPPFLAGS' | |
5142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5145 | ||
5146 | ||
5147 | LDFLAGS="$saved_LDFLAGS" | |
5148 | fi | |
5149 | ||
23f6b2f9 PB |
5150 | |
5151 | ||
55ffb5ed | 5152 | |
1c710c3c DJ |
5153 | if test -n "$ac_tool_prefix"; then |
5154 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5155 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5157 | $as_echo_n "checking for $ac_word... " >&6; } | |
5158 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5159 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5160 | else |
5161 | if test -n "$GNATBIND"; then | |
5162 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5163 | else | |
1c710c3c DJ |
5164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5165 | for as_dir in $PATH | |
5166 | do | |
5167 | IFS=$as_save_IFS | |
5168 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5169 | for ac_exec_ext in '' $ac_executable_extensions; do |
5170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5171 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5173 | break 2 |
5174 | fi | |
5175 | done | |
5213506e RW |
5176 | done |
5177 | IFS=$as_save_IFS | |
1c710c3c | 5178 | |
55ffb5ed NN |
5179 | fi |
5180 | fi | |
1c710c3c | 5181 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5182 | if test -n "$GNATBIND"; then |
5213506e RW |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5184 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5185 | else |
5213506e RW |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5187 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5188 | fi |
5189 | ||
5213506e | 5190 | |
1c710c3c | 5191 | fi |
55ffb5ed | 5192 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5193 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5194 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5195 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5197 | $as_echo_n "checking for $ac_word... " >&6; } | |
5198 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5199 | $as_echo_n "(cached) " >&6 | |
55ffb5ed | 5200 | else |
1c710c3c DJ |
5201 | if test -n "$ac_ct_GNATBIND"; then |
5202 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5203 | else |
1c710c3c DJ |
5204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5205 | for as_dir in $PATH | |
5206 | do | |
5207 | IFS=$as_save_IFS | |
5208 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5209 | for ac_exec_ext in '' $ac_executable_extensions; do |
5210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5211 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5213 | break 2 |
5214 | fi | |
5215 | done | |
5213506e RW |
5216 | done |
5217 | IFS=$as_save_IFS | |
1c710c3c | 5218 | |
55ffb5ed NN |
5219 | fi |
5220 | fi | |
1c710c3c DJ |
5221 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5222 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5224 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5225 | else |
5213506e RW |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5227 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5228 | fi |
5229 | ||
5213506e RW |
5230 | if test "x$ac_ct_GNATBIND" = x; then |
5231 | GNATBIND="no" | |
5232 | else | |
5233 | case $cross_compiling:$ac_tool_warned in | |
5234 | yes:) | |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5236 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5237 | ac_tool_warned=yes ;; | |
5238 | esac | |
5239 | GNATBIND=$ac_ct_GNATBIND | |
5240 | fi | |
55ffb5ed | 5241 | else |
1c710c3c | 5242 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5243 | fi |
5244 | ||
1c710c3c DJ |
5245 | if test -n "$ac_tool_prefix"; then |
5246 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5247 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5249 | $as_echo_n "checking for $ac_word... " >&6; } | |
5250 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5251 | $as_echo_n "(cached) " >&6 | |
5305be7e RG |
5252 | else |
5253 | if test -n "$GNATMAKE"; then | |
5254 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5255 | else | |
1c710c3c DJ |
5256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5257 | for as_dir in $PATH | |
5258 | do | |
5259 | IFS=$as_save_IFS | |
5260 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5261 | for ac_exec_ext in '' $ac_executable_extensions; do |
5262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5263 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5265 | break 2 |
5266 | fi | |
5267 | done | |
5213506e RW |
5268 | done |
5269 | IFS=$as_save_IFS | |
1c710c3c | 5270 | |
5305be7e RG |
5271 | fi |
5272 | fi | |
1c710c3c | 5273 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5274 | if test -n "$GNATMAKE"; then |
5213506e RW |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5276 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5277 | else |
5213506e RW |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5279 | $as_echo "no" >&6; } | |
5305be7e RG |
5280 | fi |
5281 | ||
5213506e | 5282 | |
1c710c3c | 5283 | fi |
5305be7e | 5284 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5285 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5286 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5287 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5289 | $as_echo_n "checking for $ac_word... " >&6; } | |
5290 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5291 | $as_echo_n "(cached) " >&6 | |
5305be7e | 5292 | else |
1c710c3c DJ |
5293 | if test -n "$ac_ct_GNATMAKE"; then |
5294 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5295 | else |
1c710c3c DJ |
5296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5297 | for as_dir in $PATH | |
5298 | do | |
5299 | IFS=$as_save_IFS | |
5300 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5301 | for ac_exec_ext in '' $ac_executable_extensions; do |
5302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5303 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5305 | break 2 |
5306 | fi | |
5307 | done | |
5213506e RW |
5308 | done |
5309 | IFS=$as_save_IFS | |
1c710c3c | 5310 | |
5305be7e RG |
5311 | fi |
5312 | fi | |
1c710c3c DJ |
5313 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5314 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5316 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5317 | else |
5213506e RW |
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5319 | $as_echo "no" >&6; } | |
5305be7e RG |
5320 | fi |
5321 | ||
5213506e RW |
5322 | if test "x$ac_ct_GNATMAKE" = x; then |
5323 | GNATMAKE="no" | |
5324 | else | |
5325 | case $cross_compiling:$ac_tool_warned in | |
5326 | yes:) | |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5329 | ac_tool_warned=yes ;; | |
5330 | esac | |
5331 | GNATMAKE=$ac_ct_GNATMAKE | |
5332 | fi | |
5305be7e | 5333 | else |
1c710c3c | 5334 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5335 | fi |
5336 | ||
5213506e RW |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5338 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5339 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5340 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5341 | else |
5342 | cat >conftest.adb <<EOF | |
5343 | procedure conftest is begin null; end conftest; | |
5344 | EOF | |
5345 | acx_cv_cc_gcc_supports_ada=no | |
5346 | # There is a bug in old released versions of GCC which causes the | |
5347 | # driver to exit successfully when the appropriate language module | |
5348 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5349 | # Therefore we must check for the error message as well as an | |
5350 | # unsuccessful exit. | |
1db673ca RO |
5351 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5352 | # given a .adb file, but produce no object file. So we must check | |
5353 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5354 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5355 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5356 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5357 | fi |
5358 | rm -f conftest.* | |
5359 | fi | |
5213506e RW |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5361 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5362 | |
7cb62ef1 | 5363 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5364 | have_gnat=yes |
5365 | else | |
5366 | have_gnat=no | |
5367 | fi | |
5368 | ||
5213506e RW |
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5370 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5371 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5372 | $as_echo_n "(cached) " >&6 | |
a76494aa PB |
5373 | else |
5374 | echo abfoo >t1 | |
5375 | echo cdfoo >t2 | |
5376 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
5377 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5378 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5379 | : | |
5380 | else | |
5381 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5382 | fi | |
5383 | fi | |
a76494aa PB |
5384 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5385 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5386 | : |
a76494aa PB |
5387 | else |
5388 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5389 | fi | |
5390 | fi | |
5391 | rm t1 t2 | |
5392 | ||
5393 | fi | |
5213506e RW |
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5395 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5396 | do_compare="$gcc_cv_prog_cmp_skip" |
5397 | ||
5398 | ||
55ffb5ed | 5399 | |
ff3ac0f4 ILT |
5400 | # Check whether --enable-bootstrap was given. |
5401 | if test "${enable_bootstrap+set}" = set; then : | |
5402 | enableval=$enable_bootstrap; | |
5403 | else | |
5404 | enable_bootstrap=default | |
5405 | fi | |
5406 | ||
5407 | ||
5408 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5409 | if test -r $srcdir/gcc/configure; then |
5410 | have_compiler=yes | |
5411 | else | |
5412 | have_compiler=no | |
5413 | fi | |
ff3ac0f4 ILT |
5414 | |
5415 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5416 | *:*:*:no) ;; | |
5417 | ||
5418 | # Default behavior. Enable bootstrap if we have a compiler | |
5419 | # and we are in a native configuration. | |
5420 | yes:$build:$build:default) | |
5421 | enable_bootstrap=yes ;; | |
5422 | ||
5423 | *:*:*:default) | |
5424 | enable_bootstrap=no ;; | |
5425 | ||
5426 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5427 | yes:$build:$build:yes) | |
5428 | ;; | |
5429 | ||
5430 | # Other configurations, but we have a compiler. Assume the user knows | |
5431 | # what he's doing. | |
5432 | yes:*:*:yes) | |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5434 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5435 | ;; | |
5436 | ||
5437 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5438 | no:*:*:yes) | |
5439 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5440 | ||
5441 | # Fail if wrong command line | |
5442 | *) | |
5443 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5444 | ;; | |
5445 | esac | |
5446 | ||
46070488 JM |
5447 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5448 | # C++98 compiler can still start the bootstrap. | |
5449 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
8ca528d9 | 5450 | CXX="$CXX -std=gnu++98" |
46070488 JM |
5451 | fi |
5452 | ||
592c90ff KG |
5453 | # Used for setting $lt_cv_objdir |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5455 | $as_echo_n "checking for objdir... " >&6; } | |
5456 | if test "${lt_cv_objdir+set}" = set; then : | |
5457 | $as_echo_n "(cached) " >&6 | |
5458 | else | |
5459 | rm -f .libs 2>/dev/null | |
5460 | mkdir .libs 2>/dev/null | |
5461 | if test -d .libs; then | |
5462 | lt_cv_objdir=.libs | |
5463 | else | |
5464 | # MS-DOS does not allow filenames that begin with a dot. | |
5465 | lt_cv_objdir=_libs | |
5466 | fi | |
5467 | rmdir .libs 2>/dev/null | |
5468 | fi | |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5470 | $as_echo "$lt_cv_objdir" >&6; } | |
5471 | objdir=$lt_cv_objdir | |
5472 | ||
5473 | ||
5474 | ||
5475 | ||
5476 | ||
5477 | cat >>confdefs.h <<_ACEOF | |
5478 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5479 | _ACEOF | |
5480 | ||
5481 | ||
5482 | ||
acd26225 | 5483 | # Check for GMP, MPFR and MPC |
3a5729ea | 5484 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5485 | gmpinc= |
e69bf64b | 5486 | have_gmp=no |
acd26225 KG |
5487 | |
5488 | # Specify a location for mpc | |
5489 | # check for this first so it ends up on the link line before mpfr. | |
5490 | ||
5213506e RW |
5491 | # Check whether --with-mpc was given. |
5492 | if test "${with_mpc+set}" = set; then : | |
5493 | withval=$with_mpc; | |
5494 | fi | |
acd26225 | 5495 | |
acd26225 | 5496 | |
9965e3cd | 5497 | # Check whether --with-mpc-include was given. |
5213506e RW |
5498 | if test "${with_mpc_include+set}" = set; then : |
5499 | withval=$with_mpc_include; | |
5500 | fi | |
acd26225 | 5501 | |
acd26225 | 5502 | |
9965e3cd | 5503 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5504 | if test "${with_mpc_lib+set}" = set; then : |
5505 | withval=$with_mpc_lib; | |
5506 | fi | |
acd26225 | 5507 | |
acd26225 KG |
5508 | |
5509 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5510 | gmplibs="-L$with_mpc/lib $gmplibs" |
5511 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5512 | fi |
5513 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5514 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5515 | fi |
5516 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5517 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5518 | fi |
5519 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5520 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5521 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5522 | # Do not test the mpc version. Assume that it is sufficient, since |
5523 | # it is in the source tree, and the library has not been built yet | |
5524 | # but it would be included on the link line in the version check below | |
5525 | # hence making the test fail. | |
3a5729ea | 5526 | have_gmp=yes |
acd26225 | 5527 | fi |
e69bf64b | 5528 | |
bebf829d PB |
5529 | # Specify a location for mpfr |
5530 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5531 | |
5213506e RW |
5532 | # Check whether --with-mpfr-dir was given. |
5533 | if test "${with_mpfr_dir+set}" = set; then : | |
5534 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5535 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5536 | fi | |
5537 | ||
bebf829d PB |
5538 | |
5539 | ||
5213506e RW |
5540 | # Check whether --with-mpfr was given. |
5541 | if test "${with_mpfr+set}" = set; then : | |
5542 | withval=$with_mpfr; | |
5543 | fi | |
1c710c3c | 5544 | |
bebf829d | 5545 | |
9965e3cd | 5546 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5547 | if test "${with_mpfr_include+set}" = set; then : |
5548 | withval=$with_mpfr_include; | |
5549 | fi | |
1c710c3c | 5550 | |
8a877c9c | 5551 | |
9965e3cd | 5552 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5553 | if test "${with_mpfr_lib+set}" = set; then : |
5554 | withval=$with_mpfr_lib; | |
5555 | fi | |
8a877c9c | 5556 | |
bebf829d PB |
5557 | |
5558 | if test "x$with_mpfr" != x; then | |
5559 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5560 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5561 | fi |
8a877c9c | 5562 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5563 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5564 | fi |
5565 | if test "x$with_mpfr_lib" != x; then | |
5566 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5567 | fi | |
e69bf64b | 5568 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
00f35794 BE |
5569 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5570 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5571 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
5572 | # Do not test the mpfr version. Assume that it is sufficient, since |
5573 | # it is in the source tree, and the library has not been built yet | |
5574 | # but it would be included on the link line in the version check below | |
5575 | # hence making the test fail. | |
5576 | have_gmp=yes | |
5577 | fi | |
bebf829d | 5578 | |
6de9cd9a | 5579 | # Specify a location for gmp |
1c710c3c | 5580 | |
5213506e RW |
5581 | # Check whether --with-gmp-dir was given. |
5582 | if test "${with_gmp_dir+set}" = set; then : | |
5583 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5584 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5585 | fi | |
5586 | ||
6de9cd9a | 5587 | |
6de9cd9a | 5588 | |
5213506e RW |
5589 | # Check whether --with-gmp was given. |
5590 | if test "${with_gmp+set}" = set; then : | |
5591 | withval=$with_gmp; | |
5592 | fi | |
1c710c3c | 5593 | |
6de9cd9a | 5594 | |
9965e3cd | 5595 | # Check whether --with-gmp-include was given. |
5213506e RW |
5596 | if test "${with_gmp_include+set}" = set; then : |
5597 | withval=$with_gmp_include; | |
5598 | fi | |
1c710c3c | 5599 | |
8a877c9c | 5600 | |
9965e3cd | 5601 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5602 | if test "${with_gmp_lib+set}" = set; then : |
5603 | withval=$with_gmp_lib; | |
5604 | fi | |
8a877c9c KG |
5605 | |
5606 | ||
6de9cd9a | 5607 | |
bebf829d PB |
5608 | if test "x$with_gmp" != x; then |
5609 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5610 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5611 | fi |
8a877c9c KG |
5612 | if test "x$with_gmp_include" != x; then |
5613 | gmpinc="-I$with_gmp_include $gmpinc" | |
5614 | fi | |
5615 | if test "x$with_gmp_lib" != x; then | |
5616 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5617 | fi | |
e69bf64b | 5618 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5619 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5620 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5621 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5622 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5623 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5624 | # Do not test the gmp version. Assume that it is sufficient, since |
5625 | # it is in the source tree, and the library has not been built yet | |
5626 | # but it would be included on the link line in the version check below | |
5627 | # hence making the test fail. | |
5628 | have_gmp=yes | |
5629 | fi | |
6de9cd9a | 5630 | |
d943d7c4 | 5631 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5632 | have_gmp=yes |
5633 | saved_CFLAGS="$CFLAGS" | |
5634 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5635 | # Check for the recommended and required versions of GMP. |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5637 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5638 | |
5639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5640 | /* end confdefs.h. */ |
5641 | #include "gmp.h" | |
5642 | int | |
5643 | main () | |
5644 | { | |
5645 | ||
5646 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5647 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5648 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5649 | choke me |
5650 | #endif | |
5651 | ||
5652 | ; | |
5653 | return 0; | |
5654 | } | |
5655 | _ACEOF | |
5656 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5658 | /* end confdefs.h. */ |
362c6d2f | 5659 | #include <gmp.h> |
1c710c3c DJ |
5660 | int |
5661 | main () | |
5662 | { | |
6de9cd9a | 5663 | |
362c6d2f KG |
5664 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5665 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5666 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5667 | choke me |
5668 | #endif | |
1c710c3c DJ |
5669 | |
5670 | ; | |
5671 | return 0; | |
5672 | } | |
5673 | _ACEOF | |
5213506e RW |
5674 | if ac_fn_c_try_compile "$LINENO"; then : |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5676 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5677 | else |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5679 | $as_echo "buggy but acceptable" >&6; } | |
5680 | fi | |
5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5682 | else |
5213506e RW |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5684 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5685 | fi |
5213506e | 5686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5687 | |
acd26225 | 5688 | # If we have GMP, check the MPFR version. |
e69bf64b | 5689 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5690 | # Check for the recommended and required versions of MPFR. |
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5692 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5694 | /* end confdefs.h. */ |
70ec446f | 5695 | #include <gmp.h> |
e69bf64b | 5696 | #include <mpfr.h> |
1c710c3c DJ |
5697 | int |
5698 | main () | |
5699 | { | |
e48d66a9 | 5700 | |
f7d6bc01 | 5701 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
e69bf64b PB |
5702 | choke me |
5703 | #endif | |
1c710c3c DJ |
5704 | |
5705 | ; | |
5706 | return 0; | |
5707 | } | |
5708 | _ACEOF | |
5213506e RW |
5709 | if ac_fn_c_try_compile "$LINENO"; then : |
5710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5711 | /* end confdefs.h. */ |
a3993f33 | 5712 | #include <gmp.h> |
e69bf64b | 5713 | #include <mpfr.h> |
1c710c3c DJ |
5714 | int |
5715 | main () | |
5716 | { | |
a3993f33 | 5717 | |
362c6d2f | 5718 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5719 | choke me |
5720 | #endif | |
acd26225 KG |
5721 | |
5722 | ; | |
5723 | return 0; | |
5724 | } | |
5725 | _ACEOF | |
5213506e RW |
5726 | if ac_fn_c_try_compile "$LINENO"; then : |
5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5728 | $as_echo "yes" >&6; } | |
acd26225 | 5729 | else |
5213506e RW |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5731 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5732 | fi |
5213506e | 5733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5734 | else |
5213506e RW |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5736 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5737 | fi |
5213506e | 5738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5739 | fi |
5740 | ||
5741 | # Check for the MPC header version. | |
3a5729ea | 5742 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5743 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5745 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5747 | /* end confdefs.h. */ |
5748 | #include <mpc.h> | |
5749 | int | |
5750 | main () | |
5751 | { | |
5752 | ||
362c6d2f KG |
5753 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5754 | choke me | |
5755 | #endif | |
5756 | ||
5757 | ; | |
5758 | return 0; | |
5759 | } | |
5760 | _ACEOF | |
5761 | if ac_fn_c_try_compile "$LINENO"; then : | |
5762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5763 | /* end confdefs.h. */ | |
5764 | #include <mpc.h> | |
5765 | int | |
5766 | main () | |
5767 | { | |
5768 | ||
5769 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5770 | choke me |
5771 | #endif | |
5772 | ||
5773 | ; | |
5774 | return 0; | |
5775 | } | |
5776 | _ACEOF | |
5213506e RW |
5777 | if ac_fn_c_try_compile "$LINENO"; then : |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5779 | $as_echo "yes" >&6; } |
362c6d2f KG |
5780 | else |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5782 | $as_echo "buggy but acceptable" >&6; } | |
5783 | fi | |
5784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5785 | else |
5213506e | 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5787 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5788 | fi |
5213506e | 5789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5790 | fi |
5791 | ||
5792 | # Now check the MPFR library. | |
5793 | if test x"$have_gmp" = xyes; then | |
5794 | saved_LIBS="$LIBS" | |
5795 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5797 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5799 | /* end confdefs.h. */ |
3a5729ea | 5800 | #include <mpc.h> |
acd26225 KG |
5801 | int |
5802 | main () | |
5803 | { | |
5804 | ||
5805 | mpfr_t n; | |
5806 | mpfr_t x; | |
3a5729ea | 5807 | mpc_t c; |
acd26225 KG |
5808 | int t; |
5809 | mpfr_init (n); | |
5810 | mpfr_init (x); | |
5811 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5812 | mpfr_erfc (n, x, GMP_RNDN); | |
5813 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5814 | mpfr_clear(n); |
5815 | mpfr_clear(x); | |
5816 | mpc_init2 (c, 53); | |
5817 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5818 | mpc_cosh (c, c, MPC_RNDNN); | |
5819 | mpc_pow (c, c, c, MPC_RNDNN); | |
5820 | mpc_acosh (c, c, MPC_RNDNN); | |
5821 | mpc_clear (c); | |
1c710c3c DJ |
5822 | |
5823 | ; | |
5824 | return 0; | |
5825 | } | |
5826 | _ACEOF | |
5213506e RW |
5827 | if ac_fn_c_try_link "$LINENO"; then : |
5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5829 | $as_echo "yes" >&6; } | |
1c710c3c | 5830 | else |
5213506e RW |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5832 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5833 | fi |
5213506e RW |
5834 | rm -f core conftest.err conftest.$ac_objext \ |
5835 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5836 | LIBS="$saved_LIBS" |
5837 | fi | |
5838 | ||
e69bf64b | 5839 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5840 | |
362c6d2f KG |
5841 | # The library versions listed in the error message below should match |
5842 | # the HARD-minimums enforced above. | |
e69bf64b | 5843 | if test x$have_gmp != xyes; then |
f7d6bc01 | 5844 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
3a5729ea KG |
5845 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5846 | their locations. Source code for these libraries can be found at | |
5847 | their respective hosting sites as well as at | |
5848 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5849 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5850 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5851 | make sure that you have installed both the libraries and the header | |
5852 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5853 | fi |
70ec446f KG |
5854 | fi |
5855 | ||
acd26225 KG |
5856 | # Flags needed for both GMP, MPFR and/or MPC. |
5857 | ||
5858 | ||
6de9cd9a DN |
5859 | |
5860 | ||
5861 | ||
9e3eba15 | 5862 | |
0ff2d841 | 5863 | |
0b21f5d3 | 5864 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5865 | |
0b21f5d3 EB |
5866 | # Check whether --with-stage1-libs was given. |
5867 | if test "${with_stage1_libs+set}" = set; then : | |
5868 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5869 | stage1_libs= | |
00020c16 | 5870 | else |
0b21f5d3 | 5871 | stage1_libs=$withval |
00020c16 ILT |
5872 | fi |
5873 | else | |
5dc85f7e | 5874 | stage1_libs= |
5213506e RW |
5875 | fi |
5876 | ||
00020c16 ILT |
5877 | |
5878 | ||
0b21f5d3 | 5879 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5880 | |
0b21f5d3 EB |
5881 | # Check whether --with-stage1-ldflags was given. |
5882 | if test "${with_stage1_ldflags+set}" = set; then : | |
5883 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5884 | stage1_ldflags= | |
00020c16 | 5885 | else |
0b21f5d3 | 5886 | stage1_ldflags=$withval |
00020c16 ILT |
5887 | fi |
5888 | else | |
0b21f5d3 EB |
5889 | stage1_ldflags= |
5890 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5891 | # if supported. But if the user explicitly specified the libraries to use, | |
5892 | # trust that they are doing what they want. | |
5893 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5894 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5895 | fi | |
5213506e RW |
5896 | fi |
5897 | ||
00020c16 ILT |
5898 | |
5899 | ||
5dc85f7e | 5900 | # Libraries to use for stage2 and later builds. |
00020c16 | 5901 | |
5213506e RW |
5902 | # Check whether --with-boot-libs was given. |
5903 | if test "${with_boot_libs+set}" = set; then : | |
5904 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5905 | poststage1_libs= |
5906 | else | |
5907 | poststage1_libs=$withval | |
5908 | fi | |
5909 | else | |
5dc85f7e | 5910 | poststage1_libs= |
5213506e RW |
5911 | fi |
5912 | ||
00020c16 ILT |
5913 | |
5914 | ||
ed2eaa9f ILT |
5915 | # Linker flags to use for stage2 and later builds. |
5916 | ||
5917 | # Check whether --with-boot-ldflags was given. | |
5918 | if test "${with_boot_ldflags+set}" = set; then : | |
5919 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5920 | poststage1_ldflags= | |
5921 | else | |
5922 | poststage1_ldflags=$withval | |
5923 | fi | |
5924 | else | |
5925 | poststage1_ldflags= | |
bec93d73 ILT |
5926 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5927 | # statically. But if the user explicitly specified the libraries to | |
5928 | # use, trust that they are doing what they want. | |
5929 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5930 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5931 | fi | |
5932 | fi | |
5933 | ||
5934 | ||
5935 | ||
e357a5e0 | 5936 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 5937 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
5938 | |
5939 | ||
33ad93b9 RG |
5940 | # Check whether --with-isl was given. |
5941 | if test "${with_isl+set}" = set; then : | |
5942 | withval=$with_isl; | |
5213506e | 5943 | fi |
f8bf9252 | 5944 | |
f8bf9252 | 5945 | |
eae1a5d4 | 5946 | # Treat --without-isl as a request to disable |
625afa23 | 5947 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 5948 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 5949 | # Check for isl |
625afa23 RG |
5950 | |
5951 | ||
33ad93b9 RG |
5952 | # Check whether --with-isl-include was given. |
5953 | if test "${with_isl_include+set}" = set; then : | |
5954 | withval=$with_isl_include; | |
5213506e RW |
5955 | fi |
5956 | ||
f8bf9252 | 5957 | |
33ad93b9 RG |
5958 | # Check whether --with-isl-lib was given. |
5959 | if test "${with_isl_lib+set}" = set; then : | |
5960 | withval=$with_isl_lib; | |
5213506e | 5961 | fi |
f8bf9252 | 5962 | |
f8bf9252 | 5963 | |
33ad93b9 RG |
5964 | # Check whether --enable-isl-version-check was given. |
5965 | if test "${enable_isl_version_check+set}" = set; then : | |
5966 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5967 | else | |
5968 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
5969 | fi |
5970 | ||
5971 | ||
33ad93b9 RG |
5972 | # Initialize isllibs and islinc. |
5973 | case $with_isl in | |
5974 | no) | |
5975 | isllibs= | |
5976 | islinc= | |
5977 | ;; | |
5978 | "" | yes) | |
5979 | ;; | |
5980 | *) | |
5981 | isllibs="-L$with_isl/lib" | |
5982 | islinc="-I$with_isl/include" | |
5983 | ;; | |
5984 | esac | |
5985 | if test "x${with_isl_include}" != x ; then | |
5986 | islinc="-I$with_isl_include" | |
5987 | fi | |
5988 | if test "x${with_isl_lib}" != x; then | |
5989 | isllibs="-L$with_isl_lib" | |
5990 | fi | |
5991 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5992 | && test -d ${srcdir}/isl; then | |
5993 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5994 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5995 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5997 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 5998 | fi |
7d32a440 | 5999 | |
eae1a5d4 RG |
6000 | isllibs="${isllibs} -lisl" |
6001 | ||
7d32a440 | 6002 | |
7d32a440 | 6003 | |
9847828b RB |
6004 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
6005 | _isl_saved_CFLAGS=$CFLAGS | |
6006 | _isl_saved_LDFLAGS=$LDFLAGS | |
6007 | _isl_saved_LIBS=$LIBS | |
6008 | ||
6009 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
6010 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6011 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 6012 | |
c661a43d SP |
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
6014 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
e0c0c325 | 6015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 6016 | /* end confdefs.h. */ |
560d18d3 | 6017 | #include <isl/ctx.h> |
622dbadf BC |
6018 | int |
6019 | main () | |
6020 | { | |
560d18d3 | 6021 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
622dbadf BC |
6022 | ; |
6023 | return 0; | |
6024 | } | |
6025 | _ACEOF | |
6026 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 6027 | gcc_cv_isl=yes |
622dbadf BC |
6028 | else |
6029 | gcc_cv_isl=no | |
6030 | fi | |
6031 | rm -f core conftest.err conftest.$ac_objext \ | |
6032 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6034 | $as_echo "$gcc_cv_isl" >&6; } | |
6035 | ||
560d18d3 | 6036 | if test "${gcc_cv_isl}" = no ; then |
c661a43d SP |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 |
6038 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
560d18d3 AK |
6039 | fi |
6040 | ||
c661a43d SP |
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 |
6042 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
1e050c90 AK |
6043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6044 | /* end confdefs.h. */ | |
6045 | #include <isl/schedule.h> | |
6046 | int | |
6047 | main () | |
6048 | { | |
6049 | isl_options_set_schedule_serialize_sccs (NULL, 0); | |
6050 | ; | |
6051 | return 0; | |
6052 | } | |
6053 | _ACEOF | |
6054 | if ac_fn_c_try_link "$LINENO"; then : | |
6055 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
6056 | else | |
6057 | ac_has_isl_options_set_schedule_serialize_sccs=no | |
6058 | fi | |
6059 | rm -f core conftest.err conftest.$ac_objext \ | |
6060 | conftest$ac_exeext conftest.$ac_ext | |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
6062 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
6063 | ||
6064 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
6065 | islver="0.15" | |
6066 | ||
6067 | fi | |
6068 | ||
9847828b RB |
6069 | CFLAGS=$_isl_saved_CFLAGS |
6070 | LDFLAGS=$_isl_saved_LDFLAGS | |
6071 | LIBS=$_isl_saved_LIBS | |
6072 | fi | |
6073 | ||
6074 | ||
f8bf9252 | 6075 | |
f8bf9252 | 6076 | |
33ad93b9 RG |
6077 | |
6078 | ||
33ad93b9 RG |
6079 | if test "x${with_isl}" = xno; then |
6080 | graphite_requested=no | |
6081 | elif test "x${with_isl}" != x \ | |
6082 | || test "x${with_isl_include}" != x \ | |
6083 | || test "x${with_isl_lib}" != x ; then | |
6084 | graphite_requested=yes | |
6085 | else | |
6086 | graphite_requested=no | |
7d32a440 | 6087 | fi |
d789184e | 6088 | |
d789184e SP |
6089 | |
6090 | ||
33ad93b9 RG |
6091 | if test "${gcc_cv_isl}" = no ; then |
6092 | isllibs= | |
6093 | islinc= | |
6094 | fi | |
6095 | ||
6096 | if test "${graphite_requested}" = yes \ | |
6097 | && test "x${isllibs}" = x \ | |
6098 | && test "x${islinc}" = x ; then | |
f8bf9252 | 6099 | |
e357a5e0 | 6100 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 6101 | fi |
f8bf9252 | 6102 | |
d32ef397 | 6103 | |
d32ef397 AS |
6104 | fi |
6105 | ||
e357a5e0 | 6106 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 6107 | if test "x$with_isl" = xno || |
625afa23 | 6108 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6109 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6110 | islinc= |
32d024bf RG |
6111 | fi |
6112 | ||
625afa23 RG |
6113 | |
6114 | ||
6115 | ||
d7f09764 DN |
6116 | # Check for LTO support. |
6117 | # Check whether --enable-lto was given. | |
6118 | if test "${enable_lto+set}" = set; then : | |
6119 | enableval=$enable_lto; enable_lto=$enableval | |
6120 | else | |
6121 | enable_lto=yes; default_enable_lto=yes | |
6122 | fi | |
6123 | ||
6124 | ||
7413962d | 6125 | |
9a02962b DK |
6126 | |
6127 | ||
6128 | target_elf=no | |
6129 | case $target in | |
6130 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6131 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
3e326935 | 6132 | alpha*-dec-osf* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 6133 | nvptx-*-none) |
9a02962b DK |
6134 | target_elf=no |
6135 | ;; | |
6136 | *) | |
6137 | target_elf=yes | |
6138 | ;; | |
6139 | esac | |
6140 | ||
6141 | if test $target_elf = yes; then : | |
48215350 DK |
6142 | # ELF platforms build the lto-plugin always. |
6143 | build_lto_plugin=yes | |
9a02962b | 6144 | |
9a02962b DK |
6145 | else |
6146 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6147 | case $target in |
9e530bcd | 6148 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 6149 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6150 | *) enable_lto=no ;; |
6151 | esac | |
9a02962b | 6152 | else |
db50fe7d IS |
6153 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6154 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6155 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6156 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6157 | # -flto it won't be needed until after installation anyway. | |
6158 | case $target in | |
9e530bcd | 6159 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b DK |
6160 | *) if test x"$enable_lto" = x"yes"; then |
6161 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6162 | fi | |
6163 | ;; | |
6164 | esac | |
6165 | fi | |
1cd0b716 | 6166 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6167 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6168 | case $target in |
48215350 | 6169 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6170 | *) ;; |
6171 | esac | |
48215350 | 6172 | |
9a02962b DK |
6173 | fi |
6174 | ||
d7f09764 | 6175 | |
45b3824d TS |
6176 | # Check whether --enable-linker-plugin-configure-flags was given. |
6177 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6178 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6179 | else | |
6180 | extra_linker_plugin_configure_flags= | |
6181 | fi | |
6182 | ||
6183 | ||
6184 | # Check whether --enable-linker-plugin-flags was given. | |
6185 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6186 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6187 | else | |
6188 | extra_linker_plugin_flags= | |
6189 | fi | |
6190 | ||
6191 | ||
6192 | ||
f8bf9252 | 6193 | |
0823efed | 6194 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6195 | stage1_languages=,c, |
2805b53a | 6196 | |
00020c16 | 6197 | # Target libraries that we bootstrap. |
ad1e5170 | 6198 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6199 | |
55ffb5ed NN |
6200 | # Figure out what language subdirectories are present. |
6201 | # Look if the user specified --enable-languages="..."; if not, use | |
6202 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6203 | # go away some day. | |
6204 | # NB: embedded tabs in this IF block -- do not untabify | |
6205 | if test -d ${srcdir}/gcc; then | |
6206 | if test x"${enable_languages+set}" != xset; then | |
6207 | if test x"${LANGUAGES+set}" = xset; then | |
6208 | enable_languages="${LANGUAGES}" | |
6b1786aa | 6209 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed NN |
6210 | else |
6211 | enable_languages=all | |
6212 | fi | |
6213 | else | |
6214 | if test x"${enable_languages}" = x || | |
6215 | test x"${enable_languages}" = xyes; | |
6216 | then | |
6b1786aa | 6217 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
6218 | exit 1 |
6219 | fi | |
6220 | fi | |
6221 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6222 | ||
7f26dfa3 FXC |
6223 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6224 | # and make the substitution. | |
6225 | case ,${enable_languages}, in | |
6226 | *,f95,*) | |
6b1786aa | 6227 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
6228 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6229 | ;; | |
6230 | esac | |
6231 | ||
0823efed DN |
6232 | # If bootstrapping, C++ must be enabled. |
6233 | case ",$enable_languages,:$enable_bootstrap" in | |
6234 | *,c++,*:*) ;; | |
6235 | *:yes) | |
ff3ac0f4 ILT |
6236 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6237 | enable_languages="${enable_languages},c++" | |
6238 | else | |
0823efed | 6239 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6240 | fi |
6241 | ;; | |
6242 | esac | |
6243 | ||
55ffb5ed NN |
6244 | # First scan to see if an enabled language requires some other language. |
6245 | # We assume that a given config-lang.in will list all the language | |
6246 | # front ends it requires, even if some are required indirectly. | |
6247 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6248 | case ${lang_frag} in | |
6249 | ..) ;; | |
6250 | # The odd quoting in the next line works around | |
6251 | # an apparent bug in bash 1.12 on linux. | |
6252 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6253 | *) | |
69ecd18f ILT |
6254 | # From the config-lang.in, get $language, $lang_requires, and |
6255 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6256 | language= |
6257 | lang_requires= | |
69ecd18f | 6258 | lang_requires_boot_languages= |
55ffb5ed | 6259 | . ${lang_frag} |
69ecd18f | 6260 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6261 | case ,${enable_languages}, in |
6262 | *,$other,*) ;; | |
6263 | *,all,*) ;; | |
6264 | *,$language,*) | |
6265 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6266 | enable_languages="${enable_languages},${other}" | |
6267 | ;; | |
6268 | esac | |
6269 | done | |
69ecd18f ILT |
6270 | for other in ${lang_requires_boot_languages} ; do |
6271 | if test "$other" != "c"; then | |
6272 | case ,${enable_stage1_languages}, in | |
6273 | *,$other,*) ;; | |
6274 | *,all,*) ;; | |
6275 | *) | |
6276 | case ,${enable_languages}, in | |
6277 | *,$language,*) | |
6278 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6279 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6280 | ;; | |
6281 | esac | |
6282 | ;; | |
6283 | esac | |
6284 | fi | |
6285 | done | |
55ffb5ed NN |
6286 | ;; |
6287 | esac | |
6288 | done | |
6289 | ||
e1888513 | 6290 | new_enable_languages=,c, |
d7f09764 DN |
6291 | |
6292 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6293 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6294 | case ,${enable_languages}, in |
6295 | *,lto,*) ;; | |
6296 | *) enable_languages="${enable_languages},lto" ;; | |
6297 | esac | |
1cd0b716 | 6298 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6299 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6300 | fi |
6301 | fi | |
6302 | ||
426c1eb0 TS |
6303 | # If we're building an offloading compiler, add the LTO front end. |
6304 | if test x"$enable_as_accelerator_for" != x ; then | |
6305 | case ,${enable_languages}, in | |
6306 | *,lto,*) ;; | |
6307 | *) enable_languages="${enable_languages},lto" ;; | |
6308 | esac | |
6309 | fi | |
6310 | ||
55ffb5ed | 6311 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6312 | potential_languages=,c, |
55ffb5ed | 6313 | |
4da3b0f8 ILT |
6314 | enabled_target_libs= |
6315 | disabled_target_libs= | |
6316 | ||
55ffb5ed NN |
6317 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6318 | case ${lang_frag} in | |
6319 | ..) ;; | |
6320 | # The odd quoting in the next line works around | |
6321 | # an apparent bug in bash 1.12 on linux. | |
6322 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6323 | *) | |
1c710c3c | 6324 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6325 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6326 | language= |
6327 | target_libs= | |
6328 | lang_dirs= | |
1546bb64 | 6329 | subdir_requires= |
e1888513 PB |
6330 | boot_language=no |
6331 | build_by_default=yes | |
55ffb5ed | 6332 | . ${lang_frag} |
e1888513 PB |
6333 | if test x${language} = x; then |
6334 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6335 | exit 1 | |
6336 | fi | |
6337 | ||
78767fd9 | 6338 | if test "$language" = "c++"; then |
0823efed | 6339 | boot_language=yes |
00020c16 ILT |
6340 | fi |
6341 | ||
178f875a | 6342 | add_this_lang=no |
e1888513 PB |
6343 | case ,${enable_languages}, in |
6344 | *,${language},*) | |
d4a10d0a SB |
6345 | # Language was explicitly selected; include it |
6346 | # unless it is C, which is enabled by default. | |
6347 | if test "$language" != "c"; then | |
6348 | add_this_lang=yes | |
6349 | fi | |
55ffb5ed | 6350 | ;; |
e1888513 PB |
6351 | *,all,*) |
6352 | # 'all' was selected, select it if it is a default language | |
178f875a JM |
6353 | if test "$language" != "c"; then |
6354 | add_this_lang=${build_by_default} | |
6355 | fi | |
55ffb5ed NN |
6356 | ;; |
6357 | esac | |
6de9cd9a | 6358 | |
1546bb64 | 6359 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6360 | for i in $subdir_requires; do |
b6348cb3 | 6361 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
6362 | case ,${enable_languages}, in |
6363 | *,${language},*) | |
6364 | # Specifically requested language; tell them. | |
5213506e | 6365 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 PB |
6366 | ;; |
6367 | *) | |
6368 | # Silently disable. | |
e1888513 | 6369 | add_this_lang=unsupported |
1546bb64 PB |
6370 | ;; |
6371 | esac | |
6372 | done | |
6373 | ||
e1888513 PB |
6374 | # Disable Ada if no preexisting GNAT is available. |
6375 | case ,${enable_languages},:${language}:${have_gnat} in | |
6376 | *,${language},*:ada:no) | |
6377 | # Specifically requested language; tell them. | |
5213506e | 6378 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
e1888513 PB |
6379 | ;; |
6380 | *:ada:no) | |
6381 | # Silently disable. | |
6382 | add_this_lang=unsupported | |
6383 | ;; | |
6384 | esac | |
6385 | ||
4fab7234 HPN |
6386 | # Disable a language that is unsupported by the target. |
6387 | case " $unsupported_languages " in | |
6388 | *" $language "*) | |
e1888513 | 6389 | add_this_lang=unsupported |
4fab7234 HPN |
6390 | ;; |
6391 | esac | |
6392 | ||
6de9cd9a | 6393 | case $add_this_lang in |
e1888513 | 6394 | unsupported) |
55ffb5ed | 6395 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6396 | disabled_target_libs="$disabled_target_libs $target_libs" |
6397 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6398 | ;; |
e1888513 PB |
6399 | no) |
6400 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6401 | disabled_target_libs="$disabled_target_libs $target_libs" |
6402 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6403 | potential_languages="${potential_languages}${language}," |
6404 | ;; | |
6405 | yes) | |
6406 | new_enable_languages="${new_enable_languages}${language}," | |
6407 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6408 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6409 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6410 | case "${boot_language}:,$enable_stage1_languages," in |
6411 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6412 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6413 | case ",$stage1_languages," in |
6414 | *,$language,* | ,yes, | ,all,) ;; | |
6415 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6416 | esac | |
00020c16 ILT |
6417 | # We need to bootstrap any supporting libraries. |
6418 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6419 | ;; |
6420 | esac | |
6421 | ;; | |
55ffb5ed NN |
6422 | esac |
6423 | ;; | |
6424 | esac | |
6425 | done | |
6426 | ||
4da3b0f8 ILT |
6427 | # Add target libraries which are only needed for disabled languages |
6428 | # to noconfigdirs. | |
6429 | if test -n "$disabled_target_libs"; then | |
6430 | for dir in $disabled_target_libs; do | |
6431 | case " $enabled_target_libs " in | |
6432 | *" ${dir} "*) ;; | |
6433 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6434 | esac | |
6435 | done | |
6436 | fi | |
6437 | ||
5213506e RW |
6438 | # Check whether --enable-stage1-languages was given. |
6439 | if test "${enable_stage1_languages+set}" = set; then : | |
6440 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6441 | ,no,|,,) |
6442 | # Set it to something that will have no effect in the loop below | |
6443 | enable_stage1_languages=c ;; | |
6444 | ,yes,) | |
6445 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6446 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6447 | *,all,*) | |
6448 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6449 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6450 | esac | |
6451 | ||
6452 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6453 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6454 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6455 | case $potential_languages in | |
6456 | *,$i,*) | |
6457 | case $stage1_languages in | |
6458 | *,$i,*) ;; | |
6459 | *) stage1_languages="$stage1_languages$i," ;; | |
6460 | esac ;; | |
6461 | *) | |
6462 | case $missing_languages in | |
6463 | *,$i,*) ;; | |
6464 | *) missing_languages="$missing_languages$i," ;; | |
6465 | esac ;; | |
6466 | esac | |
6467 | done | |
5213506e RW |
6468 | fi |
6469 | ||
e1888513 PB |
6470 | |
6471 | # Remove leading/trailing commas that were added for simplicity | |
6472 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6473 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6474 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6475 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6476 | ||
55ffb5ed | 6477 | if test "x$missing_languages" != x; then |
5213506e | 6478 | as_fn_error " |
0cf085e4 | 6479 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6480 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6481 | fi |
55ffb5ed NN |
6482 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6483 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6484 | enable_languages="$new_enable_languages" |
55ffb5ed | 6485 | fi |
e1888513 | 6486 | |
1c710c3c | 6487 | |
b2eaac4a | 6488 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6489 | fi |
6490 | ||
27079765 AH |
6491 | # Handle --disable-<component> generically. |
6492 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6493 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6494 | varname=`echo $dirname | sed -e s/+/_/g` |
6495 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6496 | noconfigdirs="$noconfigdirs $dir" |
6497 | fi | |
6498 | done | |
6499 | ||
7cd0cf9c | 6500 | # Check for Boehm's garbage collector |
5213506e RW |
6501 | # Check whether --enable-objc-gc was given. |
6502 | if test "${enable_objc_gc+set}" = set; then : | |
6503 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
7cd0cf9c | 6504 | *,objc,*:*:yes:*target-boehm-gc*) |
5213506e | 6505 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
7cd0cf9c DA |
6506 | ;; |
6507 | esac | |
5213506e RW |
6508 | fi |
6509 | ||
7cd0cf9c DA |
6510 | |
6511 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
6512 | case ,${enable_languages},:${enable_objc_gc} in |
6513 | *,objc,*:yes) | |
7cd0cf9c DA |
6514 | # Keep target-boehm-gc if requested for Objective-C. |
6515 | ;; | |
7cd0cf9c | 6516 | *) |
2a79fd67 DA |
6517 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6518 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6519 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6520 | fi | |
7cd0cf9c DA |
6521 | ;; |
6522 | esac | |
6523 | ||
5f520819 | 6524 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6525 | case ,${enable_languages}, in |
1007a55c JW |
6526 | *,c++,*) |
6527 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6528 | case "${noconfigdirs}" in | |
6529 | *target-libstdc++-v3*) | |
6530 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6531 | ;; | |
6532 | *) ;; | |
6533 | esac | |
6534 | ;; | |
99776ebd | 6535 | *) |
5f520819 | 6536 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6537 | ;; |
6538 | esac | |
6539 | ||
ee6a22df L |
6540 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6541 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6542 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6543 | ||
6544 | notsupp="" | |
6545 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6546 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6547 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6548 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6549 | if test -r $srcdir/$dirname/configure ; then | |
6550 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6551 | true | |
6552 | else | |
6553 | notsupp="$notsupp $dir" | |
6554 | fi | |
6555 | fi | |
6556 | fi | |
ee6a22df L |
6557 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6558 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6559 | if test -r $srcdir/$dirname/configure ; then | |
6560 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6561 | true | |
6562 | else | |
6563 | notsupp="$notsupp $dir" | |
6564 | fi | |
6565 | fi | |
6566 | fi | |
55ffb5ed NN |
6567 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6568 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6569 | if test -r $srcdir/$dirname/configure ; then | |
6570 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6571 | true | |
6572 | else | |
6573 | notsupp="$notsupp $dir" | |
6574 | fi | |
6575 | fi | |
6576 | fi | |
6577 | done | |
6578 | ||
55ffb5ed NN |
6579 | # Quietly strip out all directories which aren't configurable in this tree. |
6580 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6581 | # is now the case. | |
23f6b2f9 PB |
6582 | build_configdirs_all="$build_configdirs" |
6583 | build_configdirs= | |
6584 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6585 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6586 | if test -f ${srcdir}/$j/configure ; then |
6587 | build_configdirs="${build_configdirs} $i" | |
6588 | fi | |
6589 | done | |
6590 | ||
55ffb5ed NN |
6591 | configdirs_all="$configdirs" |
6592 | configdirs= | |
6593 | for i in ${configdirs_all} ; do | |
6594 | if test -f ${srcdir}/$i/configure ; then | |
6595 | configdirs="${configdirs} $i" | |
6596 | fi | |
6597 | done | |
23f6b2f9 | 6598 | |
55ffb5ed NN |
6599 | target_configdirs_all="$target_configdirs" |
6600 | target_configdirs= | |
6601 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6602 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6603 | if test -f ${srcdir}/$j/configure ; then |
6604 | target_configdirs="${target_configdirs} $i" | |
6605 | fi | |
6606 | done | |
6607 | ||
f1595603 L |
6608 | # Exclude target-zlib if target-libjava isn't built. |
6609 | case ${target_configdirs} in | |
6610 | *target-libjava*) | |
6611 | ;; | |
6612 | *) | |
6613 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6614 | ;; | |
6615 | esac | |
6616 | ||
45b3824d TS |
6617 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6618 | # so we have to add it after the preceding checks. | |
6619 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6620 | then | |
6621 | case " $configdirs " in | |
6622 | *" libiberty "*) | |
6623 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6624 | configdirs="$configdirs libiberty-linker-plugin" | |
6625 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6626 | --with-libiberty=../libiberty-linker-plugin";; | |
6627 | *) | |
6628 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6629 | esac | |
6630 | fi | |
6631 | ||
fca38047 TS |
6632 | # Sometimes we have special requirements for the host libiberty. |
6633 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 6634 | extra_host_zlib_configure_flags= |
fca38047 TS |
6635 | case " $configdirs " in |
6636 | *" lto-plugin "* | *" libcc1 "*) | |
6637 | # When these are to be built as shared libraries, the same applies to | |
6638 | # libiberty. | |
6639 | extra_host_libiberty_configure_flags=--enable-shared | |
6640 | ;; | |
1c01ebf6 L |
6641 | *" bfd "*) |
6642 | # When bfd is to be built as a shared library, the same applies to | |
6643 | # zlib. | |
6644 | if test "$enable_shared" = "yes"; then | |
6645 | extra_host_zlib_configure_flags=--enable-host-shared | |
6646 | fi | |
6647 | ;; | |
fca38047 TS |
6648 | esac |
6649 | ||
6650 | ||
1c01ebf6 | 6651 | |
55ffb5ed NN |
6652 | # Produce a warning message for the subdirs we can't configure. |
6653 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6654 | # FSF releases, it's important to let people know when their machine isn't | |
6655 | # supported by the one or two programs in a package. | |
6656 | ||
6657 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6658 | # If $appdirs is non-empty, at least one of those directories must still | |
6659 | # be configured, or we error out. (E.g., if the gas release supports a | |
6660 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6661 | # pretend that all is well.) | |
6662 | if test -n "$appdirs" ; then | |
6663 | for dir in $appdirs ; do | |
6664 | if test -r $dir/Makefile.in ; then | |
6665 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6666 | appdirs="" | |
6667 | break | |
6668 | fi | |
23f6b2f9 | 6669 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6670 | appdirs="" |
6671 | break | |
6672 | fi | |
6673 | fi | |
6674 | done | |
6675 | if test -n "$appdirs" ; then | |
6676 | echo "*** This configuration is not supported by this package." 1>&2 | |
6677 | exit 1 | |
6678 | fi | |
6679 | fi | |
6680 | # Okay, some application will build, or we don't care to check. Still | |
6681 | # notify of subdirs not getting built. | |
6682 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6683 | echo " ${notsupp}" 1>&2 | |
6684 | echo " (Any other directories should still work fine.)" 1>&2 | |
6685 | fi | |
6686 | ||
6687 | case "$host" in | |
6688 | *msdosdjgpp*) | |
6689 | enable_gdbtk=no ;; | |
6690 | esac | |
6691 | ||
c3a86da9 DJ |
6692 | # To find our prefix, in gcc_cv_tool_prefix. |
6693 | ||
6694 | # The user is always right. | |
6695 | if test "${PATH_SEPARATOR+set}" != set; then | |
6696 | echo "#! /bin/sh" >conf$$.sh | |
6697 | echo "exit 0" >>conf$$.sh | |
6698 | chmod +x conf$$.sh | |
6699 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6700 | PATH_SEPARATOR=';' | |
6701 | else | |
6702 | PATH_SEPARATOR=: | |
6703 | fi | |
6704 | rm -f conf$$.sh | |
6705 | fi | |
6706 | ||
6707 | ||
6708 | ||
6709 | if test "x$exec_prefix" = xNONE; then | |
6710 | if test "x$prefix" = xNONE; then | |
6711 | gcc_cv_tool_prefix=$ac_default_prefix | |
6712 | else | |
6713 | gcc_cv_tool_prefix=$prefix | |
6714 | fi | |
6715 | else | |
6716 | gcc_cv_tool_prefix=$exec_prefix | |
6717 | fi | |
6718 | ||
6719 | # If there is no compiler in the tree, use the PATH only. In any | |
6720 | # case, if there is no compiler in the tree nobody should use | |
6721 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6722 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6723 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6724 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6725 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6726 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6727 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6728 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6729 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6730 | else | |
6731 | gcc_cv_tool_dirs= | |
6732 | fi | |
6733 | ||
6734 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6735 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6736 | fi | |
6737 | ||
6738 | ||
6739 | ||
55ffb5ed NN |
6740 | copy_dirs= |
6741 | ||
1c710c3c | 6742 | |
5213506e RW |
6743 | # Check whether --with-build-sysroot was given. |
6744 | if test "${with_build_sysroot+set}" = set; then : | |
6745 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6746 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6747 | fi | |
6748 | else | |
6749 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6750 | fi |
526635cb MM |
6751 | |
6752 | ||
c8aea42c | 6753 | |
5213506e RW |
6754 | |
6755 | # Check whether --with-debug-prefix-map was given. | |
6756 | if test "${with_debug_prefix_map+set}" = set; then : | |
6757 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6758 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6759 | for debug_map in $withval; do | |
6760 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6761 | done | |
6762 | fi | |
6763 | else | |
6764 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6765 | fi |
6766 | ||
c8aea42c PB |
6767 | |
6768 | ||
1c8bd6a3 PB |
6769 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6770 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6771 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6772 | # We want to ensure that TARGET libraries (which we know are built with | |
6773 | # gcc) are built with "-O2 -g", so include those options when setting | |
6774 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6775 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6776 | if test "x${is_cross_compiler}" = xyes; then |
6777 | CFLAGS_FOR_TARGET="-g -O2" | |
6778 | else | |
6779 | CFLAGS_FOR_TARGET=$CFLAGS | |
6780 | case " $CFLAGS " in | |
6781 | *" -O2 "*) ;; | |
6782 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6783 | esac | |
6784 | case " $CFLAGS " in | |
6785 | *" -g "* | *" -g3 "*) ;; | |
6786 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6787 | esac | |
6788 | fi | |
1c8bd6a3 PB |
6789 | fi |
6790 | ||
6791 | ||
6792 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6793 | if test "x${is_cross_compiler}" = xyes; then |
6794 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6795 | else | |
6796 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6797 | case " $CXXFLAGS " in | |
6798 | *" -O2 "*) ;; | |
6799 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6800 | esac | |
6801 | case " $CXXFLAGS " in | |
6802 | *" -g "* | *" -g3 "*) ;; | |
6803 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6804 | esac | |
6805 | fi | |
1c8bd6a3 PB |
6806 | fi |
6807 | ||
6808 | ||
6f57bdf6 DK |
6809 | |
6810 | ||
55ffb5ed NN |
6811 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6812 | # the named directory are copied to $(tooldir)/sys-include. | |
6813 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6814 | if test x${is_cross_compiler} = xno ; then | |
6815 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6816 | exit 1 | |
6817 | fi | |
6818 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6819 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6820 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6821 | fi |
6822 | fi | |
6823 | ||
6824 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6825 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6826 | # are permitted. | |
6827 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6828 | if test x${is_cross_compiler} = xno ; then | |
6829 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6830 | exit 1 | |
6831 | fi | |
6832 | if test x"${with_libs}" != xyes ; then | |
6833 | # Copy the libraries in reverse order, so that files in the first named | |
6834 | # library override files in subsequent libraries. | |
c3a86da9 | 6835 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6836 | for l in ${with_libs}; do |
1c710c3c | 6837 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6838 | done |
6839 | fi | |
6840 | fi | |
6841 | ||
d7f09764 | 6842 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6843 | # |
6844 | # This is done by determining whether or not the appropriate directory | |
6845 | # is available, and by checking whether or not specific configurations | |
6846 | # have requested that this magic not happen. | |
1c710c3c DJ |
6847 | # |
6848 | # The command line options always override the explicit settings in | |
6b1786aa | 6849 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 6850 | # |
1c710c3c | 6851 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6852 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6853 | # --without-gnu-ld options for the configure script. Similarly, if |
6854 | # the default is to use the included zlib and you don't want to do that, | |
6855 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6856 | |
6857 | if test x${use_gnu_as} = x && | |
6858 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6859 | with_gnu_as=yes | |
6860 | extra_host_args="$extra_host_args --with-gnu-as" | |
6861 | fi | |
6862 | ||
6863 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6864 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6865 | with_gnu_ld=yes |
6866 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6867 | fi | |
6868 | ||
d7f09764 DN |
6869 | if test x${use_included_zlib} = x && |
6870 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6871 | : | |
6872 | else | |
6873 | with_system_zlib=yes | |
6874 | extra_host_args="$extra_host_args --with-system-zlib" | |
6875 | fi | |
6876 | ||
e8b05380 PB |
6877 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6878 | # can detect this case. | |
6879 | ||
6880 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6881 | with_newlib=yes | |
6882 | extra_host_args="$extra_host_args --with-newlib" | |
6883 | fi | |
6884 | ||
55ffb5ed NN |
6885 | # Handle ${copy_dirs} |
6886 | set fnord ${copy_dirs} | |
6887 | shift | |
6888 | while test $# != 0 ; do | |
6889 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6890 | : | |
6891 | else | |
6892 | echo Copying $1 to $2 | |
6893 | ||
6894 | # Use the install script to create the directory and all required | |
6895 | # parent directories. | |
6896 | if test -d $2 ; then | |
6897 | : | |
6898 | else | |
6899 | echo >config.temp | |
6900 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6901 | fi | |
6902 | ||
6903 | # Copy the directory, assuming we have tar. | |
6904 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6905 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6906 | ||
6907 | # It is the responsibility of the user to correctly adjust all | |
6908 | # symlinks. If somebody can figure out how to handle them correctly | |
6909 | # here, feel free to add the code. | |
6910 | ||
6911 | echo $1 > $2/COPIED | |
6912 | fi | |
6913 | shift; shift | |
6914 | done | |
6915 | ||
e8b05380 PB |
6916 | # Determine a target-dependent exec_prefix that the installed |
6917 | # gcc will search in. Keep this list sorted by triplet, with | |
6918 | # the *-*-osname triplets last. | |
6919 | md_exec_prefix= | |
6920 | case "${target}" in | |
30b74385 | 6921 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6922 | md_exec_prefix=/dev/env/DJDIR/bin |
6923 | ;; | |
e8b05380 | 6924 | *-*-hpux* | \ |
e8b05380 | 6925 | *-*-nto-qnx* | \ |
6de66370 | 6926 | *-*-solaris2*) |
e8b05380 PB |
6927 | md_exec_prefix=/usr/ccs/bin |
6928 | ;; | |
6929 | esac | |
6930 | ||
671aa708 NN |
6931 | extra_arflags_for_target= |
6932 | extra_nmflags_for_target= | |
6933 | extra_ranlibflags_for_target= | |
6934 | target_makefile_frag=/dev/null | |
6935 | case "${target}" in | |
58e24147 AM |
6936 | spu-*-*) |
6937 | target_makefile_frag="config/mt-spu" | |
6938 | ;; | |
d896cc4d | 6939 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
6940 | target_makefile_frag="config/mt-sde" |
6941 | ;; | |
1ec3b87b RS |
6942 | mipsisa*-*-elfoabi*) |
6943 | target_makefile_frag="config/mt-mips-elfoabi" | |
6944 | ;; | |
08d0963a RS |
6945 | mips*-*-*linux* | mips*-*-gnu*) |
6946 | target_makefile_frag="config/mt-mips-gnu" | |
6947 | ;; | |
707f1839 SL |
6948 | nios2-*-elf*) |
6949 | target_makefile_frag="config/mt-nios2-elf" | |
6950 | ;; | |
416ac4d4 | 6951 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 6952 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
6953 | ;; |
6954 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 6955 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
6956 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6957 | # harmless if we're using GNU nm or ar. | |
6958 | extra_arflags_for_target=" -X32_64" | |
6959 | extra_nmflags_for_target=" -B -X32_64" | |
6960 | ;; | |
671aa708 NN |
6961 | esac |
6962 | ||
6963 | alphaieee_frag=/dev/null | |
6964 | case $target in | |
6965 | alpha*-*-*) | |
6966 | # This just makes sure to use the -mieee option to build target libs. | |
6967 | # This should probably be set individually by each library. | |
6968 | alphaieee_frag="config/mt-alphaieee" | |
6969 | ;; | |
6970 | esac | |
6971 | ||
6972 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6973 | # the target libraries, similarly if it is not specified, use -Os | |
6974 | # on selected platforms. | |
6975 | ospace_frag=/dev/null | |
6976 | case "${enable_target_optspace}:${target}" in | |
6977 | yes:*) | |
6978 | ospace_frag="config/mt-ospace" | |
6979 | ;; | |
6980 | :d30v-*) | |
6981 | ospace_frag="config/mt-d30v" | |
6982 | ;; | |
d9063947 | 6983 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
6984 | ospace_frag="config/mt-ospace" |
6985 | ;; | |
6986 | no:* | :*) | |
6987 | ;; | |
6988 | *) | |
6989 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6990 | ;; | |
6991 | esac | |
6992 | ||
671aa708 NN |
6993 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6994 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 6995 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
6996 | build_tooldir=${tooldir} |
6997 | ||
671aa708 NN |
6998 | # Create a .gdbinit file which runs the one in srcdir |
6999 | # and tells GDB to look there for source files. | |
7000 | ||
7001 | if test -r ${srcdir}/.gdbinit ; then | |
7002 | case ${srcdir} in | |
7003 | .) ;; | |
7004 | *) cat > ./.gdbinit <<EOF | |
7005 | # ${NO_EDIT} | |
7006 | dir ${srcdir} | |
7007 | dir . | |
7008 | source ${srcdir}/.gdbinit | |
7009 | EOF | |
7010 | ;; | |
7011 | esac | |
7012 | fi | |
7013 | ||
671aa708 NN |
7014 | # Make sure that the compiler is able to generate an executable. If it |
7015 | # can't, we are probably in trouble. We don't care whether we can run the | |
7016 | # executable--we might be using a cross compiler--we only care whether it | |
7017 | # can be created. At this point the main configure script has set CC. | |
7018 | we_are_ok=no | |
7019 | echo "int main () { return 0; }" > conftest.c | |
7020 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7021 | if test $? = 0 ; then | |
7022 | if test -s conftest || test -s conftest.exe ; then | |
7023 | we_are_ok=yes | |
7024 | fi | |
1c710c3c | 7025 | fi |
671aa708 NN |
7026 | case $we_are_ok in |
7027 | no) | |
7028 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7029 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7030 | rm -f conftest* | |
7031 | exit 1 | |
7032 | ;; | |
7033 | esac | |
7034 | rm -f conftest* | |
7035 | ||
d89f0ad6 | 7036 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
7037 | case "${host}" in |
7038 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 7039 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 7040 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
7041 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7042 | esac | |
7043 | ||
d89f0ad6 AL |
7044 | # On systems where the dynamic library environment variable is PATH, |
7045 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7046 | # built executables to PATH. | |
7047 | if test "$RPATH_ENVVAR" = PATH; then | |
7048 | GCC_SHLIB_SUBDIR=/shlib | |
7049 | else | |
7050 | GCC_SHLIB_SUBDIR= | |
7051 | fi | |
7052 | ||
beeda1d9 JJ |
7053 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7054 | case $enable_bootstrap in | |
7055 | yes) | |
7056 | bootstrap_suffix=bootstrap | |
7057 | BUILD_CONFIG=bootstrap-debug | |
7058 | ;; | |
7059 | no) | |
7060 | bootstrap_suffix=no-bootstrap | |
7061 | BUILD_CONFIG= | |
7062 | ;; | |
7063 | esac | |
7064 | ||
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7066 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7067 | ||
7068 | ||
7069 | # Check whether --with-build-config was given. | |
7070 | if test "${with_build_config+set}" = set; then : | |
7071 | withval=$with_build_config; case $with_build_config in | |
7072 | yes) with_build_config= ;; | |
7073 | no) with_build_config= BUILD_CONFIG= ;; | |
7074 | esac | |
7075 | fi | |
7076 | ||
7077 | ||
7078 | if test "x${with_build_config}" != x; then | |
7079 | BUILD_CONFIG=$with_build_config | |
7080 | else | |
7081 | case $BUILD_CONFIG in | |
7082 | bootstrap-debug) | |
7083 | if echo "int f (void) { return 0; }" > conftest.c && | |
7084 | ${CC} -c conftest.c && | |
7085 | mv conftest.o conftest.o.g0 && | |
7086 | ${CC} -c -g conftest.c && | |
7087 | mv conftest.o conftest.o.g && | |
7088 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7089 | : | |
7090 | else | |
7091 | BUILD_CONFIG= | |
7092 | fi | |
7093 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7094 | ;; | |
7095 | esac | |
7096 | fi | |
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7098 | $as_echo "$BUILD_CONFIG" >&6; } | |
7099 | ||
7100 | ||
7101 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7103 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7104 | # Check whether --enable-vtable-verify was given. | |
7105 | if test "${enable_vtable_verify+set}" = set; then : | |
7106 | enableval=$enable_vtable_verify; case "$enableval" in | |
7107 | yes) enable_vtable_verify=yes ;; | |
7108 | no) enable_vtable_verify=no ;; | |
7109 | *) enable_vtable_verify=no;; | |
7110 | esac | |
7111 | else | |
7112 | enable_vtable_verify=no | |
7113 | fi | |
7114 | ||
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7116 | $as_echo "$enable_vtable_verify" >&6; } | |
7117 | ||
671aa708 NN |
7118 | # Record target_configdirs and the configure arguments for target and |
7119 | # build configuration in Makefile. | |
7120 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 7121 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 7122 | bootstrap_fixincludes=no |
671aa708 | 7123 | |
ad1e5170 JR |
7124 | # If we are building libgomp, bootstrap it. |
7125 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7126 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7127 | fi | |
7128 | ||
beeda1d9 JJ |
7129 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7130 | # or bootstrap-ubsan, bootstrap it. | |
7131 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7132 | case "$BUILD_CONFIG" in | |
7133 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7134 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7135 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7136 | ;; |
7137 | esac | |
ac8701fe L |
7138 | fi |
7139 | ||
beeda1d9 JJ |
7140 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7141 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7142 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7143 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7144 | fi | |
7145 | ||
5373cd33 IE |
7146 | # If we are building libmpx, bootstrap it. |
7147 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7148 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7149 | fi | |
7150 | ||
671aa708 NN |
7151 | # Determine whether gdb needs tk/tcl or not. |
7152 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7153 | # and in that case we want gdb to be built without tk. Ugh! | |
7154 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7155 | # so we should be able to put the 'maybe's in unconditionally and | |
7156 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7157 | # 100% sure that that's safe though. | |
e914a571 | 7158 | |
b4f96efe | 7159 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7160 | case "$enable_gdbtk" in |
7161 | no) | |
7162 | GDB_TK="" ;; | |
e914a571 AC |
7163 | yes) |
7164 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7165 | *) |
e914a571 AC |
7166 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7167 | # distro. Eventually someone will fix this and move Insight, nee | |
7168 | # gdbtk to a separate directory. | |
7169 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7170 | GDB_TK="${gdb_tk}" | |
7171 | else | |
7172 | GDB_TK="" | |
7173 | fi | |
7174 | ;; | |
671aa708 | 7175 | esac |
ef9db8d5 DJ |
7176 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7177 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7178 | |
60975492 | 7179 | # Strip out unwanted targets. |
8b87bb96 NN |
7180 | |
7181 | # While at that, we remove Makefiles if we were started for recursive | |
7182 | # configuration, so that the top-level Makefile reconfigures them, | |
7183 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7184 | |
3e54529c RW |
7185 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7186 | # but now we're fixing up the Makefile ourselves with the additional | |
7187 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7188 | # extrasub-{build,host,target} not because there is any reason to split | |
7189 | # the substitutions up that way, but only to remain below the limit of | |
7190 | # 99 commands in a script, for HP-UX sed. | |
7191 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 7192 | |
79cd2b23 RW |
7193 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7194 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7195 | yes:yes:*\ gold\ *:*) | |
7196 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7197 | ;; | |
7198 | esac | |
7199 | ||
3e54529c | 7200 | extrasub_build= |
23f6b2f9 | 7201 | for module in ${build_configdirs} ; do |
5607edfd PB |
7202 | if test -z "${no_recursion}" \ |
7203 | && test -f ${build_subdir}/${module}/Makefile; then | |
7204 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7205 | rm -f ${build_subdir}/${module}/Makefile | |
7206 | fi | |
3e54529c | 7207 | extrasub_build="$extrasub_build |
5607edfd PB |
7208 | /^@if build-$module\$/d |
7209 | /^@endif build-$module\$/d | |
7210 | /^@if build-$module-$bootstrap_suffix\$/d | |
7211 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7212 | done | |
3e54529c | 7213 | extrasub_host= |
5607edfd | 7214 | for module in ${configdirs} ; do |
a6fbc1e2 | 7215 | if test -z "${no_recursion}"; then |
f063a9ed | 7216 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7217 | if test -f ${file}; then |
7218 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7219 | rm -f ${file} | |
7220 | fi | |
7221 | done | |
5607edfd | 7222 | fi |
9e1c8fc1 JJ |
7223 | case ${module},${bootstrap_fixincludes} in |
7224 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7225 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7226 | esac | |
3e54529c | 7227 | extrasub_host="$extrasub_host |
5607edfd PB |
7228 | /^@if $module\$/d |
7229 | /^@endif $module\$/d | |
9e1c8fc1 JJ |
7230 | /^@if $module-$host_bootstrap_suffix\$/d |
7231 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7232 | done |
3e54529c | 7233 | extrasub_target= |
5607edfd PB |
7234 | for module in ${target_configdirs} ; do |
7235 | if test -z "${no_recursion}" \ | |
7236 | && test -f ${target_subdir}/${module}/Makefile; then | |
7237 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7238 | rm -f ${target_subdir}/${module}/Makefile | |
7239 | fi | |
00020c16 ILT |
7240 | |
7241 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7242 | case $bootstrap_target_libs in | |
7243 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7244 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7245 | esac | |
7246 | ||
3e54529c | 7247 | extrasub_target="$extrasub_target |
5607edfd PB |
7248 | /^@if target-$module\$/d |
7249 | /^@endif target-$module\$/d | |
00020c16 ILT |
7250 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7251 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7252 | done |
7253 | ||
3e54529c RW |
7254 | # Do the final fixup along with target modules. |
7255 | extrasub_target="$extrasub_target | |
60975492 | 7256 | /^@if /,/^@endif /d" |
671aa708 NN |
7257 | |
7258 | # Create the serialization dependencies. This uses a temporary file. | |
7259 | ||
5213506e RW |
7260 | # Check whether --enable-serial-configure was given. |
7261 | if test "${enable_serial_configure+set}" = set; then : | |
7262 | enableval=$enable_serial_configure; | |
7263 | fi | |
ade82b16 AO |
7264 | |
7265 | ||
bf1d3e81 NN |
7266 | case ${enable_serial_configure} in |
7267 | yes) | |
7268 | enable_serial_build_configure=yes | |
7269 | enable_serial_host_configure=yes | |
7270 | enable_serial_target_configure=yes | |
7271 | ;; | |
7272 | esac | |
7273 | ||
671aa708 NN |
7274 | # These force 'configure's to be done one at a time, to avoid problems |
7275 | # with contention over a shared config.cache. | |
7276 | rm -f serdep.tmp | |
ade82b16 | 7277 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7278 | olditem= |
bf1d3e81 | 7279 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7280 | for item in ${build_configdirs} ; do |
7281 | case ${olditem} in | |
7282 | "") ;; | |
ade82b16 | 7283 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7284 | esac |
7285 | olditem=${item} | |
7286 | done | |
7287 | olditem= | |
bf1d3e81 | 7288 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7289 | for item in ${configdirs} ; do |
7290 | case ${olditem} in | |
7291 | "") ;; | |
ade82b16 | 7292 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7293 | esac |
7294 | olditem=${item} | |
7295 | done | |
7296 | olditem= | |
bf1d3e81 | 7297 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7298 | for item in ${target_configdirs} ; do |
7299 | case ${olditem} in | |
7300 | "") ;; | |
ade82b16 | 7301 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7302 | esac |
7303 | olditem=${item} | |
7304 | done | |
7305 | serialization_dependencies=serdep.tmp | |
7306 | ||
7307 | ||
ade82b16 | 7308 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7309 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7310 | # might not want to pass down to subconfigures. The exception being |
7311 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7312 | # files altogether, and which should be passed on to subconfigures. | |
7313 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7314 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7315 | baseargs= |
29a63921 | 7316 | tbaseargs= |
1c710c3c DJ |
7317 | keep_next=no |
7318 | skip_next=no | |
7319 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7320 | for ac_arg |
7321 | do | |
1c710c3c DJ |
7322 | if test X"$skip_next" = X"yes"; then |
7323 | skip_next=no | |
7324 | continue | |
7325 | fi | |
7326 | if test X"$keep_next" = X"yes"; then | |
7327 | case $ac_arg in | |
7328 | *\'*) | |
7329 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7330 | esac | |
7331 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7332 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7333 | keep_next=no |
7334 | continue | |
7335 | fi | |
7336 | ||
7337 | # Handle separated arguments. Based on the logic generated by | |
7338 | # autoconf 2.59. | |
7339 | case $ac_arg in | |
7340 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7341 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7342 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7343 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7344 | separate_arg=no | |
7345 | ;; | |
7346 | -*) | |
7347 | separate_arg=yes | |
7348 | ;; | |
7349 | *) | |
7350 | separate_arg=no | |
7351 | ;; | |
7352 | esac | |
7353 | ||
29a63921 AO |
7354 | skip_targ=no |
7355 | case $ac_arg in | |
7356 | ||
7357 | --with-* | --without-*) | |
7358 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7359 | ||
7360 | case $libopt in | |
7361 | *[-_]include) | |
7362 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7363 | ;; | |
7364 | *[-_]lib) | |
7365 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7366 | ;; | |
7367 | *) | |
7368 | lib=$libopt | |
7369 | ;; | |
7370 | esac | |
7371 | ||
7372 | ||
7373 | case $lib in | |
4a9bb2aa | 7374 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7375 | # If we're processing --with-$lib, --with-$lib-include or |
7376 | # --with-$lib-lib, for one of the libs above, and target is | |
7377 | # different from host, don't pass the current argument to any | |
7378 | # target library's configure. | |
7379 | if test x$is_cross_compiler = xyes; then | |
7380 | skip_targ=yes | |
7381 | fi | |
7382 | ;; | |
7383 | esac | |
7384 | ;; | |
7385 | esac | |
7386 | ||
1c710c3c | 7387 | case "$ac_arg" in |
f1a036e4 NC |
7388 | --cache-file=/dev/null | \ |
7389 | -cache-file=/dev/null ) | |
7390 | # Handled here to avoid the test to skip args below. | |
7391 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7392 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7393 | # Assert: $separate_arg should always be no. |
7394 | keep_next=$separate_arg | |
7395 | ;; | |
1c710c3c DJ |
7396 | --no*) |
7397 | continue | |
7398 | ;; | |
7399 | --c* | \ | |
7400 | --sr* | \ | |
7401 | --ho* | \ | |
7402 | --bu* | \ | |
7403 | --t* | \ | |
7404 | --program-* | \ | |
7405 | -cache_file* | \ | |
7406 | -srcdir* | \ | |
7407 | -host* | \ | |
7408 | -build* | \ | |
7409 | -target* | \ | |
7410 | -program-prefix* | \ | |
7411 | -program-suffix* | \ | |
7412 | -program-transform-name* ) | |
7413 | skip_next=$separate_arg | |
7414 | continue | |
7415 | ;; | |
7416 | -*) | |
7417 | # An option. Add it. | |
7418 | case $ac_arg in | |
7419 | *\'*) | |
7420 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7421 | esac | |
7422 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7423 | if test X"$skip_targ" = Xno; then |
7424 | tbaseargs="$tbaseargs '$ac_arg'" | |
7425 | fi | |
1c710c3c DJ |
7426 | keep_next=$separate_arg |
7427 | ;; | |
7428 | *) | |
7429 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7430 | # pass it down; let the Makefile handle this. | |
7431 | continue | |
7432 | ;; | |
7433 | esac | |
7434 | done | |
7435 | # Remove the initial space we just introduced and, as these will be | |
7436 | # expanded by make, quote '$'. | |
7437 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7438 | |
43bb47c2 DJ |
7439 | # Add in --program-transform-name, after --program-prefix and |
7440 | # --program-suffix have been applied to it. Autoconf has already | |
7441 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7442 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7443 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7444 | # Also, because we want to override the logic in subdir configure scripts to |
7445 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7446 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7447 | ${program_transform_name} | |
7448 | EOF_SED | |
7449 | gcc_transform_name=`cat conftestsed.out` | |
7450 | rm -f conftestsed.out | |
7451 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7452 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7453 | if test "$silent" = yes; then |
7454 | baseargs="$baseargs --silent" | |
29a63921 | 7455 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7456 | fi |
0115d4a3 | 7457 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7458 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7459 | |
ffedf511 RW |
7460 | # Record and document user additions to sub configure arguments. |
7461 | ||
7462 | ||
7463 | ||
7464 | ||
671aa708 NN |
7465 | # For the build-side libraries, we just need to pretend we're native, |
7466 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7467 | # desired. We can't even use the same cache file for all build-side |
7468 | # libraries, as they're compiled differently; some with C, some with | |
7469 | # C++ or with different feature-enabling options. | |
7470 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7471 | |
7472 | # For host modules, accept cache file option, or specification as blank. | |
7473 | case "${cache_file}" in | |
7474 | "") # empty | |
7475 | cache_file_option="" ;; | |
7476 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7477 | cache_file_option="--cache-file=${cache_file}" ;; | |
7478 | *) # relative path | |
7479 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7480 | esac | |
7481 | ||
09438bde NN |
7482 | # Host dirs don't like to share a cache file either, horribly enough. |
7483 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7484 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7485 | |
29a63921 | 7486 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7487 | |
7488 | # Passing a --with-cross-host argument lets the target libraries know | |
7489 | # whether they are being built with a cross-compiler or being built | |
7490 | # native. However, it would be better to use other mechanisms to make the | |
7491 | # sorts of decisions they want to make on this basis. Please consider | |
7492 | # this option to be deprecated. FIXME. | |
7493 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7494 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7495 | fi |
7496 | ||
79e0604d FXC |
7497 | # Special user-friendly check for native x86_64-linux build, if |
7498 | # multilib is not explicitly enabled. | |
7499 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7500 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 7501 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
7502 | dev64=no |
7503 | echo "int main () { return 0; }" > conftest.c | |
7504 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7505 | if test $? = 0 ; then | |
7506 | if test -s conftest || test -s conftest.exe ; then | |
7507 | dev64=yes | |
7508 | fi | |
7509 | fi | |
7510 | rm -f conftest* | |
7511 | if test x${dev64} != xyes ; then | |
e640447c | 7512 | as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
79e0604d FXC |
7513 | fi |
7514 | ;; | |
7515 | esac | |
7516 | ||
dc683a3f RW |
7517 | # Default to --enable-multilib. |
7518 | if test x${enable_multilib} = x ; then | |
671aa708 | 7519 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7520 | fi |
671aa708 NN |
7521 | |
7522 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7523 | # changed from the earlier setting of with_newlib. | |
7524 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7525 | target_configargs="--with-newlib ${target_configargs}" | |
7526 | fi | |
7527 | ||
6b9eb62c NN |
7528 | # Different target subdirs use different values of certain variables |
7529 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7530 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7531 | # it doesn't automatically accept command-line overrides of them. | |
7532 | # This means it's not safe for target subdirs to share a cache file, | |
7533 | # which is disgusting, but there you have it. Hopefully this can be | |
7534 | # fixed in future. It's still worthwhile to use a cache file for each | |
7535 | # directory. I think. | |
7536 | ||
bebcd931 MS |
7537 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7538 | # We need to pass --target, as newer autoconf's requires consistency | |
7539 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7540 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7541 | |
671aa708 NN |
7542 | FLAGS_FOR_TARGET= |
7543 | case " $target_configdirs " in | |
7544 | *" newlib "*) | |
7545 | case " $target_configargs " in | |
7546 | *" --with-newlib "*) | |
7547 | case "$target" in | |
5d571eaa | 7548 | *-cygwin*) |
443e6238 | 7549 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7550 | ;; |
671aa708 NN |
7551 | esac |
7552 | ||
7553 | # If we're not building GCC, don't discard standard headers. | |
7554 | if test -d ${srcdir}/gcc; then | |
7555 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7556 | ||
7557 | if test "${build}" != "${host}"; then | |
7558 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7559 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7560 | # to it. This is right: we don't want to search that directory | |
7561 | # for binaries, but we want the header files in there, so add | |
7562 | # them explicitly. | |
0463992b | 7563 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7564 | |
7565 | # Someone might think of using the pre-installed headers on | |
7566 | # Canadian crosses, in case the installed compiler is not fully | |
7567 | # compatible with the compiler being built. In this case, it | |
7568 | # would be better to flag an error than risking having | |
7569 | # incompatible object files being constructed. We can't | |
7570 | # guarantee that an error will be flagged, but let's hope the | |
7571 | # compiler will do it, when presented with incompatible header | |
7572 | # files. | |
7573 | fi | |
7574 | fi | |
7575 | ||
7576 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7577 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7578 | # Here host == target, so we don't need to build gcc, |
7579 | # so we don't want to discard standard headers. | |
7580 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7581 | ;; | |
7582 | *) | |
7583 | # If we're building newlib, use its generic headers last, but search | |
7584 | # for any libc-related directories first (so make it the last -B | |
7585 | # switch). | |
7586 | 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 |
7587 | |
7588 | # If we're building libgloss, find the startup file, simulator library | |
7589 | # and linker script. | |
7590 | case " $target_configdirs " in | |
7591 | *" libgloss "*) | |
7592 | # Look for startup file, simulator library and maybe linker script. | |
7593 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7594 | # Look for libnosys.a in case the target needs it. | |
7595 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7596 | # Most targets have the linker script in the source directory. | |
7597 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7598 | ;; | |
7599 | esac | |
671aa708 NN |
7600 | ;; |
7601 | esac | |
7602 | ;; | |
7603 | esac | |
7604 | ;; | |
7605 | esac | |
5d571eaa | 7606 | |
b91f0a41 | 7607 | case "$target" in |
5d571eaa OS |
7608 | x86_64-*mingw* | *-w64-mingw*) |
7609 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7610 | # however, use a symlink named 'mingw' in ${prefix} . | |
7611 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7612 | ;; | |
7613 | *-mingw*) | |
7614 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7615 | 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' | |
7616 | ;; | |
b91f0a41 | 7617 | esac |
671aa708 | 7618 | |
6691a79e ME |
7619 | # Allow the user to override the flags for |
7620 | # our build compiler if desired. | |
f019adc1 MF |
7621 | if test x"${build}" = x"${host}" ; then |
7622 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7623 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7624 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7625 | fi | |
6691a79e | 7626 | |
671aa708 NN |
7627 | # On Canadian crosses, we'll be searching the right directories for |
7628 | # the previously-installed cross compiler, so don't bother to add | |
7629 | # flags for directories within the install tree of the compiler | |
7630 | # being built; programs in there won't even run. | |
7631 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7632 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7633 | 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 |
7634 | fi |
7635 | ||
7636 | if test "x${use_gnu_ld}" = x && | |
7637 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7638 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7639 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7640 | fi |
7641 | ||
e88a2c09 DD |
7642 | # Search for other target-specific linker scripts and such. |
7643 | case "${target}" in | |
3e19841a PB |
7644 | mep*) |
7645 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7646 | ;; | |
e88a2c09 DD |
7647 | esac |
7648 | ||
671aa708 | 7649 | # Makefile fragments. |
7b61653a PE |
7650 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7651 | do | |
7652 | eval fragval=\$$frag | |
7653 | if test $fragval != /dev/null; then | |
7654 | eval $frag=${srcdir}/$fragval | |
7655 | fi | |
7656 | done | |
671aa708 NN |
7657 | |
7658 | ||
7659 | ||
7660 | ||
7661 | ||
7662 | # Miscellanea: directories, flags, etc. | |
7663 | ||
7664 | ||
7665 | ||
7666 | ||
7667 | ||
7668 | ||
7669 | ||
d89f0ad6 | 7670 | |
23f6b2f9 | 7671 | # Build module lists & subconfigure args. |
671aa708 NN |
7672 | |
7673 | ||
7674 | ||
2abefe3d PB |
7675 | # Host module lists & subconfigure args. |
7676 | ||
7677 | ||
7678 | ||
aae29963 | 7679 | |
2abefe3d PB |
7680 | # Target module lists & subconfigure args. |
7681 | ||
7682 | ||
7683 | ||
7684 | # Build tools. | |
7685 | ||
7686 | ||
7687 | ||
0999159b PB |
7688 | |
7689 | ||
7690 | ||
7691 | ||
7692 | ||
7693 | ||
7694 | ||
7695 | ||
7696 | ||
7697 | ||
7698 | ||
7699 | ||
7700 | ||
7701 | ||
2abefe3d PB |
7702 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7703 | # on the build machine. These are used if the Makefile can't locate these | |
7704 | # programs in objdir. | |
7705 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7706 | ||
7707 | for ac_prog in 'bison -y' byacc yacc | |
7708 | do | |
1c710c3c | 7709 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7710 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7712 | $as_echo_n "checking for $ac_word... " >&6; } | |
7713 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7714 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7715 | else |
7716 | if test -n "$YACC"; then | |
7717 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7718 | else | |
1c710c3c DJ |
7719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7720 | for as_dir in $PATH | |
7721 | do | |
7722 | IFS=$as_save_IFS | |
7723 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7724 | for ac_exec_ext in '' $ac_executable_extensions; do |
7725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7726 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7728 | break 2 |
7729 | fi | |
7730 | done | |
5213506e RW |
7731 | done |
7732 | IFS=$as_save_IFS | |
1c710c3c | 7733 | |
2abefe3d PB |
7734 | fi |
7735 | fi | |
1c710c3c | 7736 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7737 | if test -n "$YACC"; then |
5213506e RW |
7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7739 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7740 | else |
5213506e RW |
7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7742 | $as_echo "no" >&6; } | |
2abefe3d PB |
7743 | fi |
7744 | ||
5213506e | 7745 | |
1c710c3c | 7746 | test -n "$YACC" && break |
2abefe3d PB |
7747 | done |
7748 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7749 | ||
7750 | case " $build_configdirs " in | |
7751 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7752 | esac |
7753 | ||
7754 | for ac_prog in bison | |
7755 | do | |
1c710c3c | 7756 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7757 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7759 | $as_echo_n "checking for $ac_word... " >&6; } | |
7760 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7761 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7762 | else |
7763 | if test -n "$BISON"; then | |
7764 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7765 | else | |
1c710c3c DJ |
7766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7767 | for as_dir in $PATH | |
7768 | do | |
7769 | IFS=$as_save_IFS | |
7770 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7771 | for ac_exec_ext in '' $ac_executable_extensions; do |
7772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7773 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7775 | break 2 |
7776 | fi | |
7777 | done | |
5213506e RW |
7778 | done |
7779 | IFS=$as_save_IFS | |
1c710c3c | 7780 | |
2abefe3d PB |
7781 | fi |
7782 | fi | |
1c710c3c | 7783 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7784 | if test -n "$BISON"; then |
5213506e RW |
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7786 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7787 | else |
5213506e RW |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7789 | $as_echo "no" >&6; } | |
2abefe3d PB |
7790 | fi |
7791 | ||
5213506e | 7792 | |
1c710c3c | 7793 | test -n "$BISON" && break |
2abefe3d PB |
7794 | done |
7795 | test -n "$BISON" || BISON="$MISSING bison" | |
7796 | ||
7797 | case " $build_configdirs " in | |
7798 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7799 | esac | |
7800 | ||
7801 | for ac_prog in gm4 gnum4 m4 | |
7802 | do | |
1c710c3c | 7803 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7804 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7806 | $as_echo_n "checking for $ac_word... " >&6; } | |
7807 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7808 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7809 | else |
7810 | if test -n "$M4"; then | |
7811 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7812 | else | |
1c710c3c DJ |
7813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7814 | for as_dir in $PATH | |
7815 | do | |
7816 | IFS=$as_save_IFS | |
7817 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7818 | for ac_exec_ext in '' $ac_executable_extensions; do |
7819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7820 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7822 | break 2 |
7823 | fi | |
7824 | done | |
5213506e RW |
7825 | done |
7826 | IFS=$as_save_IFS | |
1c710c3c | 7827 | |
2abefe3d PB |
7828 | fi |
7829 | fi | |
1c710c3c | 7830 | M4=$ac_cv_prog_M4 |
2abefe3d | 7831 | if test -n "$M4"; then |
5213506e RW |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7833 | $as_echo "$M4" >&6; } | |
2abefe3d | 7834 | else |
5213506e RW |
7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7836 | $as_echo "no" >&6; } | |
2abefe3d PB |
7837 | fi |
7838 | ||
5213506e | 7839 | |
1c710c3c | 7840 | test -n "$M4" && break |
2abefe3d PB |
7841 | done |
7842 | test -n "$M4" || M4="$MISSING m4" | |
7843 | ||
7844 | case " $build_configdirs " in | |
7845 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7846 | esac | |
7847 | ||
7848 | for ac_prog in flex lex | |
7849 | do | |
1c710c3c | 7850 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7851 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7853 | $as_echo_n "checking for $ac_word... " >&6; } | |
7854 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7855 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7856 | else |
7857 | if test -n "$LEX"; then | |
7858 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7859 | else | |
1c710c3c DJ |
7860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7861 | for as_dir in $PATH | |
7862 | do | |
7863 | IFS=$as_save_IFS | |
7864 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7865 | for ac_exec_ext in '' $ac_executable_extensions; do |
7866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7867 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7869 | break 2 |
7870 | fi | |
7871 | done | |
5213506e RW |
7872 | done |
7873 | IFS=$as_save_IFS | |
1c710c3c | 7874 | |
2abefe3d PB |
7875 | fi |
7876 | fi | |
1c710c3c | 7877 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7878 | if test -n "$LEX"; then |
5213506e RW |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7880 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7881 | else |
5213506e RW |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7883 | $as_echo "no" >&6; } | |
2abefe3d PB |
7884 | fi |
7885 | ||
5213506e | 7886 | |
1c710c3c | 7887 | test -n "$LEX" && break |
2abefe3d PB |
7888 | done |
7889 | test -n "$LEX" || LEX="$MISSING flex" | |
7890 | ||
7891 | case " $build_configdirs " in | |
7892 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7893 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7894 | esac | |
7895 | ||
7896 | for ac_prog in flex | |
7897 | do | |
1c710c3c | 7898 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7899 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7901 | $as_echo_n "checking for $ac_word... " >&6; } | |
7902 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7903 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7904 | else |
7905 | if test -n "$FLEX"; then | |
7906 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7907 | else | |
1c710c3c DJ |
7908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7909 | for as_dir in $PATH | |
7910 | do | |
7911 | IFS=$as_save_IFS | |
7912 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7913 | for ac_exec_ext in '' $ac_executable_extensions; do |
7914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7915 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7917 | break 2 |
7918 | fi | |
7919 | done | |
5213506e RW |
7920 | done |
7921 | IFS=$as_save_IFS | |
1c710c3c | 7922 | |
2abefe3d PB |
7923 | fi |
7924 | fi | |
1c710c3c | 7925 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7926 | if test -n "$FLEX"; then |
5213506e RW |
7927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7928 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7929 | else |
5213506e RW |
7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7931 | $as_echo "no" >&6; } | |
2abefe3d PB |
7932 | fi |
7933 | ||
5213506e | 7934 | |
1c710c3c | 7935 | test -n "$FLEX" && break |
2abefe3d PB |
7936 | done |
7937 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7938 | ||
7939 | case " $build_configdirs " in | |
7940 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7941 | esac | |
7942 | ||
7943 | for ac_prog in makeinfo | |
7944 | do | |
1c710c3c | 7945 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7946 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7948 | $as_echo_n "checking for $ac_word... " >&6; } | |
7949 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7950 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7951 | else |
7952 | if test -n "$MAKEINFO"; then | |
7953 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7954 | else | |
1c710c3c DJ |
7955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7956 | for as_dir in $PATH | |
7957 | do | |
7958 | IFS=$as_save_IFS | |
7959 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7960 | for ac_exec_ext in '' $ac_executable_extensions; do |
7961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7962 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 7963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7964 | break 2 |
7965 | fi | |
7966 | done | |
5213506e RW |
7967 | done |
7968 | IFS=$as_save_IFS | |
1c710c3c | 7969 | |
2abefe3d PB |
7970 | fi |
7971 | fi | |
1c710c3c | 7972 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 7973 | if test -n "$MAKEINFO"; then |
5213506e RW |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7975 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 7976 | else |
5213506e RW |
7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7978 | $as_echo "no" >&6; } | |
2abefe3d PB |
7979 | fi |
7980 | ||
5213506e | 7981 | |
1c710c3c | 7982 | test -n "$MAKEINFO" && break |
2abefe3d PB |
7983 | done |
7984 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7985 | ||
7986 | case " $build_configdirs " in | |
7987 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7988 | *) | |
7989 | ||
d18ff35a | 7990 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
7991 | # higher, else we use the "missing" dummy. |
7992 | if ${MAKEINFO} --version \ | |
d18ff35a | 7993 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
7994 | : |
7995 | else | |
7996 | MAKEINFO="$MISSING makeinfo" | |
7997 | fi | |
7998 | ;; | |
7999 | ||
8000 | esac | |
671aa708 | 8001 | |
2abefe3d | 8002 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 8003 | |
2abefe3d PB |
8004 | for ac_prog in expect |
8005 | do | |
1c710c3c | 8006 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8007 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8009 | $as_echo_n "checking for $ac_word... " >&6; } | |
8010 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
8011 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8012 | else |
8013 | if test -n "$EXPECT"; then | |
8014 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8015 | else | |
1c710c3c DJ |
8016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8017 | for as_dir in $PATH | |
8018 | do | |
8019 | IFS=$as_save_IFS | |
8020 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8021 | for ac_exec_ext in '' $ac_executable_extensions; do |
8022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8023 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 8024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8025 | break 2 |
8026 | fi | |
8027 | done | |
5213506e RW |
8028 | done |
8029 | IFS=$as_save_IFS | |
1c710c3c | 8030 | |
2abefe3d PB |
8031 | fi |
8032 | fi | |
1c710c3c | 8033 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 8034 | if test -n "$EXPECT"; then |
5213506e RW |
8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8036 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 8037 | else |
5213506e RW |
8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8039 | $as_echo "no" >&6; } | |
2abefe3d | 8040 | fi |
671aa708 | 8041 | |
5213506e | 8042 | |
1c710c3c | 8043 | test -n "$EXPECT" && break |
2abefe3d PB |
8044 | done |
8045 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 8046 | |
2abefe3d PB |
8047 | case " $configdirs " in |
8048 | *" expect "*) | |
8049 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8050 | ;; | |
8051 | esac | |
671aa708 | 8052 | |
2abefe3d PB |
8053 | for ac_prog in runtest |
8054 | do | |
1c710c3c | 8055 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8056 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8058 | $as_echo_n "checking for $ac_word... " >&6; } | |
8059 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8060 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8061 | else |
8062 | if test -n "$RUNTEST"; then | |
8063 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 8064 | else |
1c710c3c DJ |
8065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8066 | for as_dir in $PATH | |
8067 | do | |
8068 | IFS=$as_save_IFS | |
8069 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8070 | for ac_exec_ext in '' $ac_executable_extensions; do |
8071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8072 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 8073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8074 | break 2 |
8075 | fi | |
8076 | done | |
5213506e RW |
8077 | done |
8078 | IFS=$as_save_IFS | |
1c710c3c | 8079 | |
2abefe3d PB |
8080 | fi |
8081 | fi | |
1c710c3c | 8082 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 8083 | if test -n "$RUNTEST"; then |
5213506e RW |
8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8085 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 8086 | else |
5213506e RW |
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8088 | $as_echo "no" >&6; } | |
2abefe3d | 8089 | fi |
671aa708 | 8090 | |
5213506e | 8091 | |
1c710c3c | 8092 | test -n "$RUNTEST" && break |
2abefe3d PB |
8093 | done |
8094 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 8095 | |
2abefe3d PB |
8096 | case " $configdirs " in |
8097 | *" dejagnu "*) | |
c394e891 | 8098 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
8099 | ;; |
8100 | esac | |
671aa708 NN |
8101 | |
8102 | ||
671aa708 | 8103 | # Host tools. |
ca9f4b81 AO |
8104 | ncn_tool_prefix= |
8105 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8106 | ncn_target_tool_prefix= | |
8107 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8108 | ||
278a7a38 AO |
8109 | |
8110 | ||
8111 | if test -n "$AR"; then | |
8112 | ac_cv_prog_AR=$AR | |
8113 | elif test -n "$ac_cv_prog_AR"; then | |
8114 | AR=$ac_cv_prog_AR | |
8115 | fi | |
8116 | ||
8117 | if test -n "$ac_cv_prog_AR"; then | |
8118 | for ncn_progname in ar; do | |
8119 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8120 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8122 | $as_echo_n "checking for $ac_word... " >&6; } | |
8123 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8124 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8125 | else |
8126 | if test -n "$AR"; then | |
8127 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8128 | else | |
8129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8130 | for as_dir in $PATH | |
8131 | do | |
8132 | IFS=$as_save_IFS | |
8133 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8134 | for ac_exec_ext in '' $ac_executable_extensions; do |
8135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8136 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8138 | break 2 |
8139 | fi | |
8140 | done | |
5213506e RW |
8141 | done |
8142 | IFS=$as_save_IFS | |
278a7a38 AO |
8143 | |
8144 | fi | |
8145 | fi | |
8146 | AR=$ac_cv_prog_AR | |
8147 | if test -n "$AR"; then | |
5213506e RW |
8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8149 | $as_echo "$AR" >&6; } | |
278a7a38 | 8150 | else |
5213506e RW |
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8152 | $as_echo "no" >&6; } | |
278a7a38 AO |
8153 | fi |
8154 | ||
5213506e | 8155 | |
278a7a38 AO |
8156 | done |
8157 | fi | |
8158 | ||
8159 | for ncn_progname in ar; do | |
2693c0b0 PB |
8160 | if test -n "$ncn_tool_prefix"; then |
8161 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8162 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8164 | $as_echo_n "checking for $ac_word... " >&6; } | |
8165 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8166 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8167 | else |
8168 | if test -n "$AR"; then | |
8169 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8170 | else | |
1c710c3c DJ |
8171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8172 | for as_dir in $PATH | |
8173 | do | |
8174 | IFS=$as_save_IFS | |
8175 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8176 | for ac_exec_ext in '' $ac_executable_extensions; do |
8177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8178 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8180 | break 2 |
8181 | fi | |
8182 | done | |
5213506e RW |
8183 | done |
8184 | IFS=$as_save_IFS | |
1c710c3c | 8185 | |
ca9f4b81 AO |
8186 | fi |
8187 | fi | |
1c710c3c | 8188 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8189 | if test -n "$AR"; then |
5213506e RW |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8191 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8192 | else |
5213506e RW |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8194 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8195 | fi |
8196 | ||
5213506e | 8197 | |
2693c0b0 PB |
8198 | fi |
8199 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8200 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8201 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8203 | $as_echo_n "checking for $ac_word... " >&6; } | |
8204 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8205 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8206 | else |
2693c0b0 | 8207 | if test -n "$AR"; then |
af71363e AS |
8208 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8209 | else | |
1c710c3c DJ |
8210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8211 | for as_dir in $PATH | |
8212 | do | |
8213 | IFS=$as_save_IFS | |
8214 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8215 | for ac_exec_ext in '' $ac_executable_extensions; do |
8216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8217 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8219 | break 2 |
8220 | fi | |
8221 | done | |
5213506e RW |
8222 | done |
8223 | IFS=$as_save_IFS | |
1c710c3c | 8224 | |
ca9f4b81 AO |
8225 | fi |
8226 | fi | |
1c710c3c | 8227 | AR=$ac_cv_prog_AR |
2693c0b0 | 8228 | if test -n "$AR"; then |
5213506e RW |
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8230 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8231 | else |
5213506e RW |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8233 | $as_echo "no" >&6; } | |
ca9f4b81 | 8234 | fi |
1c710c3c | 8235 | |
5213506e | 8236 | |
2693c0b0 PB |
8237 | fi |
8238 | test -n "$ac_cv_prog_AR" && break | |
8239 | done | |
8240 | ||
8241 | if test -z "$ac_cv_prog_AR" ; then | |
8242 | set dummy ar | |
8243 | if test $build = $host ; then | |
8244 | AR="$2" | |
ca9f4b81 | 8245 | else |
2693c0b0 | 8246 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8247 | fi |
ca9f4b81 AO |
8248 | fi |
8249 | ||
278a7a38 AO |
8250 | |
8251 | ||
8252 | if test -n "$AS"; then | |
8253 | ac_cv_prog_AS=$AS | |
8254 | elif test -n "$ac_cv_prog_AS"; then | |
8255 | AS=$ac_cv_prog_AS | |
8256 | fi | |
8257 | ||
8258 | if test -n "$ac_cv_prog_AS"; then | |
8259 | for ncn_progname in as; do | |
8260 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8261 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8263 | $as_echo_n "checking for $ac_word... " >&6; } | |
8264 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8265 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8266 | else |
8267 | if test -n "$AS"; then | |
8268 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8269 | else | |
8270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8271 | for as_dir in $PATH | |
8272 | do | |
8273 | IFS=$as_save_IFS | |
8274 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8275 | for ac_exec_ext in '' $ac_executable_extensions; do |
8276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8277 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8279 | break 2 |
8280 | fi | |
8281 | done | |
5213506e RW |
8282 | done |
8283 | IFS=$as_save_IFS | |
278a7a38 AO |
8284 | |
8285 | fi | |
8286 | fi | |
8287 | AS=$ac_cv_prog_AS | |
8288 | if test -n "$AS"; then | |
5213506e RW |
8289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8290 | $as_echo "$AS" >&6; } | |
278a7a38 | 8291 | else |
5213506e RW |
8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8293 | $as_echo "no" >&6; } | |
278a7a38 AO |
8294 | fi |
8295 | ||
5213506e | 8296 | |
278a7a38 AO |
8297 | done |
8298 | fi | |
8299 | ||
8300 | for ncn_progname in as; do | |
2693c0b0 PB |
8301 | if test -n "$ncn_tool_prefix"; then |
8302 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8303 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8305 | $as_echo_n "checking for $ac_word... " >&6; } | |
8306 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8307 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8308 | else |
8309 | if test -n "$AS"; then | |
8310 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8311 | else |
1c710c3c DJ |
8312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8313 | for as_dir in $PATH | |
8314 | do | |
8315 | IFS=$as_save_IFS | |
8316 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8317 | for ac_exec_ext in '' $ac_executable_extensions; do |
8318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8319 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8321 | break 2 |
8322 | fi | |
8323 | done | |
5213506e RW |
8324 | done |
8325 | IFS=$as_save_IFS | |
1c710c3c | 8326 | |
ca9f4b81 AO |
8327 | fi |
8328 | fi | |
1c710c3c | 8329 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8330 | if test -n "$AS"; then |
5213506e RW |
8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8332 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8333 | else |
5213506e RW |
8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8335 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8336 | fi |
8337 | ||
5213506e | 8338 | |
2693c0b0 PB |
8339 | fi |
8340 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8341 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8342 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8344 | $as_echo_n "checking for $ac_word... " >&6; } | |
8345 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8346 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8347 | else |
2693c0b0 PB |
8348 | if test -n "$AS"; then |
8349 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8350 | else |
1c710c3c DJ |
8351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8352 | for as_dir in $PATH | |
8353 | do | |
8354 | IFS=$as_save_IFS | |
8355 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8356 | for ac_exec_ext in '' $ac_executable_extensions; do |
8357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8358 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8360 | break 2 |
8361 | fi | |
8362 | done | |
5213506e RW |
8363 | done |
8364 | IFS=$as_save_IFS | |
1c710c3c | 8365 | |
ca9f4b81 AO |
8366 | fi |
8367 | fi | |
1c710c3c | 8368 | AS=$ac_cv_prog_AS |
2693c0b0 | 8369 | if test -n "$AS"; then |
5213506e RW |
8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8371 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8372 | else |
5213506e RW |
8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8374 | $as_echo "no" >&6; } | |
ca9f4b81 | 8375 | fi |
1c710c3c | 8376 | |
5213506e | 8377 | |
2693c0b0 PB |
8378 | fi |
8379 | test -n "$ac_cv_prog_AS" && break | |
8380 | done | |
8381 | ||
8382 | if test -z "$ac_cv_prog_AS" ; then | |
8383 | set dummy as | |
8384 | if test $build = $host ; then | |
8385 | AS="$2" | |
ca9f4b81 | 8386 | else |
2693c0b0 | 8387 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8388 | fi |
ca9f4b81 AO |
8389 | fi |
8390 | ||
278a7a38 AO |
8391 | |
8392 | ||
8393 | if test -n "$DLLTOOL"; then | |
8394 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8395 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8396 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8397 | fi | |
8398 | ||
8399 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8400 | for ncn_progname in dlltool; do | |
8401 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8402 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8404 | $as_echo_n "checking for $ac_word... " >&6; } | |
8405 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8406 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8407 | else |
8408 | if test -n "$DLLTOOL"; then | |
8409 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8410 | else | |
8411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8412 | for as_dir in $PATH | |
8413 | do | |
8414 | IFS=$as_save_IFS | |
8415 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8416 | for ac_exec_ext in '' $ac_executable_extensions; do |
8417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8418 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8420 | break 2 |
8421 | fi | |
8422 | done | |
5213506e RW |
8423 | done |
8424 | IFS=$as_save_IFS | |
278a7a38 AO |
8425 | |
8426 | fi | |
8427 | fi | |
8428 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8429 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8431 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8432 | else |
5213506e RW |
8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8434 | $as_echo "no" >&6; } | |
278a7a38 AO |
8435 | fi |
8436 | ||
5213506e | 8437 | |
278a7a38 AO |
8438 | done |
8439 | fi | |
8440 | ||
8441 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8442 | if test -n "$ncn_tool_prefix"; then |
8443 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8444 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8446 | $as_echo_n "checking for $ac_word... " >&6; } | |
8447 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8448 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8449 | else |
8450 | if test -n "$DLLTOOL"; then | |
8451 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8452 | else | |
1c710c3c DJ |
8453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8454 | for as_dir in $PATH | |
8455 | do | |
8456 | IFS=$as_save_IFS | |
8457 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8458 | for ac_exec_ext in '' $ac_executable_extensions; do |
8459 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8460 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8462 | break 2 |
8463 | fi | |
8464 | done | |
5213506e RW |
8465 | done |
8466 | IFS=$as_save_IFS | |
1c710c3c | 8467 | |
ca9f4b81 AO |
8468 | fi |
8469 | fi | |
1c710c3c | 8470 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8471 | if test -n "$DLLTOOL"; then |
5213506e RW |
8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8473 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8474 | else |
5213506e RW |
8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8476 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8477 | fi |
8478 | ||
5213506e | 8479 | |
2693c0b0 PB |
8480 | fi |
8481 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8482 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8483 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8485 | $as_echo_n "checking for $ac_word... " >&6; } | |
8486 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8487 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8488 | else |
2693c0b0 PB |
8489 | if test -n "$DLLTOOL"; then |
8490 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8491 | else |
1c710c3c DJ |
8492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8493 | for as_dir in $PATH | |
8494 | do | |
8495 | IFS=$as_save_IFS | |
8496 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8497 | for ac_exec_ext in '' $ac_executable_extensions; do |
8498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8499 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8501 | break 2 |
8502 | fi | |
8503 | done | |
5213506e RW |
8504 | done |
8505 | IFS=$as_save_IFS | |
1c710c3c | 8506 | |
ca9f4b81 AO |
8507 | fi |
8508 | fi | |
1c710c3c | 8509 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8510 | if test -n "$DLLTOOL"; then |
5213506e RW |
8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8512 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8513 | else |
5213506e RW |
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8515 | $as_echo "no" >&6; } | |
ca9f4b81 | 8516 | fi |
1c710c3c | 8517 | |
5213506e | 8518 | |
2693c0b0 PB |
8519 | fi |
8520 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8521 | done | |
8522 | ||
8523 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8524 | set dummy dlltool | |
8525 | if test $build = $host ; then | |
8526 | DLLTOOL="$2" | |
ca9f4b81 | 8527 | else |
2693c0b0 | 8528 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8529 | fi |
ca9f4b81 AO |
8530 | fi |
8531 | ||
278a7a38 AO |
8532 | |
8533 | ||
8534 | if test -n "$LD"; then | |
8535 | ac_cv_prog_LD=$LD | |
8536 | elif test -n "$ac_cv_prog_LD"; then | |
8537 | LD=$ac_cv_prog_LD | |
8538 | fi | |
8539 | ||
8540 | if test -n "$ac_cv_prog_LD"; then | |
8541 | for ncn_progname in ld; do | |
8542 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8543 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8545 | $as_echo_n "checking for $ac_word... " >&6; } | |
8546 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8547 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8548 | else |
8549 | if test -n "$LD"; then | |
8550 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8551 | else | |
8552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8553 | for as_dir in $PATH | |
8554 | do | |
8555 | IFS=$as_save_IFS | |
8556 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8557 | for ac_exec_ext in '' $ac_executable_extensions; do |
8558 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8559 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8561 | break 2 |
8562 | fi | |
8563 | done | |
5213506e RW |
8564 | done |
8565 | IFS=$as_save_IFS | |
278a7a38 AO |
8566 | |
8567 | fi | |
8568 | fi | |
8569 | LD=$ac_cv_prog_LD | |
8570 | if test -n "$LD"; then | |
5213506e RW |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8572 | $as_echo "$LD" >&6; } | |
278a7a38 | 8573 | else |
5213506e RW |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8575 | $as_echo "no" >&6; } | |
278a7a38 AO |
8576 | fi |
8577 | ||
5213506e | 8578 | |
278a7a38 AO |
8579 | done |
8580 | fi | |
8581 | ||
8582 | for ncn_progname in ld; do | |
2693c0b0 PB |
8583 | if test -n "$ncn_tool_prefix"; then |
8584 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8585 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8587 | $as_echo_n "checking for $ac_word... " >&6; } | |
8588 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8589 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8590 | else |
8591 | if test -n "$LD"; then | |
8592 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8593 | else | |
1c710c3c DJ |
8594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8595 | for as_dir in $PATH | |
8596 | do | |
8597 | IFS=$as_save_IFS | |
8598 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8599 | for ac_exec_ext in '' $ac_executable_extensions; do |
8600 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8601 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8603 | break 2 |
8604 | fi | |
8605 | done | |
5213506e RW |
8606 | done |
8607 | IFS=$as_save_IFS | |
1c710c3c | 8608 | |
ca9f4b81 AO |
8609 | fi |
8610 | fi | |
1c710c3c | 8611 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8612 | if test -n "$LD"; then |
5213506e RW |
8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8614 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8615 | else |
5213506e RW |
8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8617 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8618 | fi |
8619 | ||
5213506e | 8620 | |
2693c0b0 PB |
8621 | fi |
8622 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8623 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8624 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8626 | $as_echo_n "checking for $ac_word... " >&6; } | |
8627 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8628 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8629 | else |
2693c0b0 PB |
8630 | if test -n "$LD"; then |
8631 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8632 | else |
1c710c3c DJ |
8633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8634 | for as_dir in $PATH | |
8635 | do | |
8636 | IFS=$as_save_IFS | |
8637 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8638 | for ac_exec_ext in '' $ac_executable_extensions; do |
8639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8640 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8642 | break 2 |
8643 | fi | |
8644 | done | |
5213506e RW |
8645 | done |
8646 | IFS=$as_save_IFS | |
1c710c3c | 8647 | |
ca9f4b81 AO |
8648 | fi |
8649 | fi | |
1c710c3c | 8650 | LD=$ac_cv_prog_LD |
2693c0b0 | 8651 | if test -n "$LD"; then |
5213506e RW |
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8653 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8654 | else |
5213506e RW |
8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8656 | $as_echo "no" >&6; } | |
ca9f4b81 | 8657 | fi |
1c710c3c | 8658 | |
5213506e | 8659 | |
2693c0b0 PB |
8660 | fi |
8661 | test -n "$ac_cv_prog_LD" && break | |
8662 | done | |
8663 | ||
8664 | if test -z "$ac_cv_prog_LD" ; then | |
8665 | set dummy ld | |
8666 | if test $build = $host ; then | |
8667 | LD="$2" | |
ca9f4b81 | 8668 | else |
2693c0b0 | 8669 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8670 | fi |
ca9f4b81 AO |
8671 | fi |
8672 | ||
278a7a38 AO |
8673 | |
8674 | ||
8675 | if test -n "$LIPO"; then | |
8676 | ac_cv_prog_LIPO=$LIPO | |
8677 | elif test -n "$ac_cv_prog_LIPO"; then | |
8678 | LIPO=$ac_cv_prog_LIPO | |
8679 | fi | |
8680 | ||
8681 | if test -n "$ac_cv_prog_LIPO"; then | |
8682 | for ncn_progname in lipo; do | |
8683 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8684 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8686 | $as_echo_n "checking for $ac_word... " >&6; } | |
8687 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8688 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8689 | else |
8690 | if test -n "$LIPO"; then | |
8691 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8692 | else | |
8693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8694 | for as_dir in $PATH | |
8695 | do | |
8696 | IFS=$as_save_IFS | |
8697 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8698 | for ac_exec_ext in '' $ac_executable_extensions; do |
8699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8700 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8702 | break 2 |
8703 | fi | |
8704 | done | |
5213506e RW |
8705 | done |
8706 | IFS=$as_save_IFS | |
278a7a38 AO |
8707 | |
8708 | fi | |
8709 | fi | |
8710 | LIPO=$ac_cv_prog_LIPO | |
8711 | if test -n "$LIPO"; then | |
5213506e RW |
8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8713 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8714 | else |
5213506e RW |
8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8716 | $as_echo "no" >&6; } | |
278a7a38 AO |
8717 | fi |
8718 | ||
5213506e | 8719 | |
278a7a38 AO |
8720 | done |
8721 | fi | |
8722 | ||
8723 | for ncn_progname in lipo; do | |
2abefe3d PB |
8724 | if test -n "$ncn_tool_prefix"; then |
8725 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8726 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8728 | $as_echo_n "checking for $ac_word... " >&6; } | |
8729 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8730 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8731 | else |
8732 | if test -n "$LIPO"; then | |
8733 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8734 | else | |
1c710c3c DJ |
8735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8736 | for as_dir in $PATH | |
8737 | do | |
8738 | IFS=$as_save_IFS | |
8739 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8740 | for ac_exec_ext in '' $ac_executable_extensions; do |
8741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8742 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8744 | break 2 |
8745 | fi | |
8746 | done | |
5213506e RW |
8747 | done |
8748 | IFS=$as_save_IFS | |
1c710c3c | 8749 | |
2abefe3d PB |
8750 | fi |
8751 | fi | |
1c710c3c | 8752 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8753 | if test -n "$LIPO"; then |
5213506e RW |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8755 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8756 | else |
5213506e RW |
8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8758 | $as_echo "no" >&6; } | |
2abefe3d PB |
8759 | fi |
8760 | ||
5213506e | 8761 | |
2abefe3d PB |
8762 | fi |
8763 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8764 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8765 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8767 | $as_echo_n "checking for $ac_word... " >&6; } | |
8768 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8769 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8770 | else |
8771 | if test -n "$LIPO"; then | |
8772 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8773 | else | |
1c710c3c DJ |
8774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8775 | for as_dir in $PATH | |
8776 | do | |
8777 | IFS=$as_save_IFS | |
8778 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8779 | for ac_exec_ext in '' $ac_executable_extensions; do |
8780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8781 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8783 | break 2 |
8784 | fi | |
8785 | done | |
5213506e RW |
8786 | done |
8787 | IFS=$as_save_IFS | |
1c710c3c | 8788 | |
2abefe3d PB |
8789 | fi |
8790 | fi | |
1c710c3c | 8791 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8792 | if test -n "$LIPO"; then |
5213506e RW |
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8794 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8795 | else |
5213506e RW |
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8797 | $as_echo "no" >&6; } | |
2abefe3d | 8798 | fi |
1c710c3c | 8799 | |
5213506e | 8800 | |
2abefe3d PB |
8801 | fi |
8802 | test -n "$ac_cv_prog_LIPO" && break | |
8803 | done | |
8804 | ||
8805 | if test -z "$ac_cv_prog_LIPO" ; then | |
8806 | set dummy lipo | |
8807 | if test $build = $host ; then | |
8808 | LIPO="$2" | |
8809 | else | |
8810 | LIPO="${ncn_tool_prefix}$2" | |
8811 | fi | |
8812 | fi | |
8813 | ||
278a7a38 AO |
8814 | |
8815 | ||
8816 | if test -n "$NM"; then | |
8817 | ac_cv_prog_NM=$NM | |
8818 | elif test -n "$ac_cv_prog_NM"; then | |
8819 | NM=$ac_cv_prog_NM | |
8820 | fi | |
8821 | ||
8822 | if test -n "$ac_cv_prog_NM"; then | |
8823 | for ncn_progname in nm; do | |
8824 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8825 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8827 | $as_echo_n "checking for $ac_word... " >&6; } | |
8828 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8829 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8830 | else |
8831 | if test -n "$NM"; then | |
8832 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8833 | else | |
1c710c3c DJ |
8834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8835 | for as_dir in $PATH | |
8836 | do | |
8837 | IFS=$as_save_IFS | |
8838 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8839 | for ac_exec_ext in '' $ac_executable_extensions; do |
8840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8841 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8843 | break 2 |
8844 | fi | |
8845 | done | |
5213506e RW |
8846 | done |
8847 | IFS=$as_save_IFS | |
1c710c3c | 8848 | |
ca9f4b81 AO |
8849 | fi |
8850 | fi | |
1c710c3c | 8851 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8852 | if test -n "$NM"; then |
5213506e RW |
8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8854 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8855 | else |
5213506e RW |
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8857 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8858 | fi |
8859 | ||
5213506e | 8860 | |
278a7a38 AO |
8861 | done |
8862 | fi | |
8863 | ||
8864 | for ncn_progname in nm; do | |
8865 | if test -n "$ncn_tool_prefix"; then | |
8866 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8867 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8869 | $as_echo_n "checking for $ac_word... " >&6; } | |
8870 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8871 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8872 | else |
2693c0b0 PB |
8873 | if test -n "$NM"; then |
8874 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8875 | else |
1c710c3c DJ |
8876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8877 | for as_dir in $PATH | |
8878 | do | |
8879 | IFS=$as_save_IFS | |
8880 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8881 | for ac_exec_ext in '' $ac_executable_extensions; do |
8882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8883 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8885 | break 2 |
8886 | fi | |
8887 | done | |
5213506e RW |
8888 | done |
8889 | IFS=$as_save_IFS | |
1c710c3c | 8890 | |
ca9f4b81 AO |
8891 | fi |
8892 | fi | |
1c710c3c | 8893 | NM=$ac_cv_prog_NM |
2693c0b0 | 8894 | if test -n "$NM"; then |
5213506e RW |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8896 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8897 | else |
5213506e RW |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8899 | $as_echo "no" >&6; } | |
ca9f4b81 | 8900 | fi |
1c710c3c | 8901 | |
5213506e | 8902 | |
2693c0b0 | 8903 | fi |
278a7a38 AO |
8904 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8905 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8906 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8908 | $as_echo_n "checking for $ac_word... " >&6; } | |
8909 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8910 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8911 | else |
8912 | if test -n "$NM"; then | |
8913 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8914 | else | |
8915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8916 | for as_dir in $PATH | |
8917 | do | |
8918 | IFS=$as_save_IFS | |
8919 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8920 | for ac_exec_ext in '' $ac_executable_extensions; do |
8921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8922 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8924 | break 2 |
8925 | fi | |
8926 | done | |
5213506e RW |
8927 | done |
8928 | IFS=$as_save_IFS | |
278a7a38 AO |
8929 | |
8930 | fi | |
8931 | fi | |
8932 | NM=$ac_cv_prog_NM | |
8933 | if test -n "$NM"; then | |
5213506e RW |
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8935 | $as_echo "$NM" >&6; } | |
278a7a38 | 8936 | else |
5213506e RW |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8938 | $as_echo "no" >&6; } | |
278a7a38 AO |
8939 | fi |
8940 | ||
5213506e | 8941 | |
278a7a38 AO |
8942 | fi |
8943 | test -n "$ac_cv_prog_NM" && break | |
8944 | done | |
8945 | ||
8946 | if test -z "$ac_cv_prog_NM" ; then | |
8947 | set dummy nm | |
8948 | if test $build = $host ; then | |
8949 | NM="$2" | |
8950 | else | |
8951 | NM="${ncn_tool_prefix}$2" | |
8952 | fi | |
8953 | fi | |
8954 | ||
8955 | ||
8956 | ||
8957 | if test -n "$RANLIB"; then | |
8958 | ac_cv_prog_RANLIB=$RANLIB | |
8959 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8960 | RANLIB=$ac_cv_prog_RANLIB | |
8961 | fi | |
8962 | ||
8963 | if test -n "$ac_cv_prog_RANLIB"; then | |
8964 | for ncn_progname in ranlib; do | |
8965 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8966 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8968 | $as_echo_n "checking for $ac_word... " >&6; } | |
8969 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8970 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8971 | else |
8972 | if test -n "$RANLIB"; then | |
8973 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8974 | else | |
8975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8976 | for as_dir in $PATH | |
8977 | do | |
8978 | IFS=$as_save_IFS | |
8979 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8980 | for ac_exec_ext in '' $ac_executable_extensions; do |
8981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8982 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8984 | break 2 |
8985 | fi | |
8986 | done | |
5213506e RW |
8987 | done |
8988 | IFS=$as_save_IFS | |
278a7a38 AO |
8989 | |
8990 | fi | |
8991 | fi | |
8992 | RANLIB=$ac_cv_prog_RANLIB | |
8993 | if test -n "$RANLIB"; then | |
5213506e RW |
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8995 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 8996 | else |
5213506e RW |
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8998 | $as_echo "no" >&6; } | |
278a7a38 AO |
8999 | fi |
9000 | ||
5213506e | 9001 | |
278a7a38 AO |
9002 | done |
9003 | fi | |
ca9f4b81 | 9004 | |
278a7a38 | 9005 | for ncn_progname in ranlib; do |
2693c0b0 PB |
9006 | if test -n "$ncn_tool_prefix"; then |
9007 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9008 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9010 | $as_echo_n "checking for $ac_word... " >&6; } | |
9011 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9012 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9013 | else |
9014 | if test -n "$RANLIB"; then | |
9015 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9016 | else | |
1c710c3c DJ |
9017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9018 | for as_dir in $PATH | |
9019 | do | |
9020 | IFS=$as_save_IFS | |
9021 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9022 | for ac_exec_ext in '' $ac_executable_extensions; do |
9023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9024 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9026 | break 2 |
9027 | fi | |
9028 | done | |
5213506e RW |
9029 | done |
9030 | IFS=$as_save_IFS | |
1c710c3c | 9031 | |
ca9f4b81 AO |
9032 | fi |
9033 | fi | |
1c710c3c | 9034 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 9035 | if test -n "$RANLIB"; then |
5213506e RW |
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9037 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9038 | else |
5213506e RW |
9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9040 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9041 | fi |
9042 | ||
5213506e | 9043 | |
2693c0b0 PB |
9044 | fi |
9045 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9046 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9047 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9049 | $as_echo_n "checking for $ac_word... " >&6; } | |
9050 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9051 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9052 | else |
2693c0b0 PB |
9053 | if test -n "$RANLIB"; then |
9054 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 9055 | else |
1c710c3c DJ |
9056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9057 | for as_dir in $PATH | |
9058 | do | |
9059 | IFS=$as_save_IFS | |
9060 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9061 | for ac_exec_ext in '' $ac_executable_extensions; do |
9062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9063 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9065 | break 2 |
9066 | fi | |
9067 | done | |
5213506e RW |
9068 | done |
9069 | IFS=$as_save_IFS | |
1c710c3c | 9070 | |
ca9f4b81 AO |
9071 | fi |
9072 | fi | |
1c710c3c | 9073 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 9074 | if test -n "$RANLIB"; then |
5213506e RW |
9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9076 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9077 | else |
5213506e RW |
9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9079 | $as_echo "no" >&6; } | |
ca9f4b81 | 9080 | fi |
1c710c3c | 9081 | |
5213506e | 9082 | |
ca9f4b81 | 9083 | fi |
2693c0b0 PB |
9084 | test -n "$ac_cv_prog_RANLIB" && break |
9085 | done | |
9086 | ||
9087 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 9088 | RANLIB="true" |
ca9f4b81 AO |
9089 | fi |
9090 | ||
278a7a38 AO |
9091 | |
9092 | ||
9093 | if test -n "$STRIP"; then | |
9094 | ac_cv_prog_STRIP=$STRIP | |
9095 | elif test -n "$ac_cv_prog_STRIP"; then | |
9096 | STRIP=$ac_cv_prog_STRIP | |
9097 | fi | |
9098 | ||
9099 | if test -n "$ac_cv_prog_STRIP"; then | |
9100 | for ncn_progname in strip; do | |
9101 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9102 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9104 | $as_echo_n "checking for $ac_word... " >&6; } | |
9105 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9106 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9107 | else |
9108 | if test -n "$STRIP"; then | |
9109 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9110 | else | |
9111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9112 | for as_dir in $PATH | |
9113 | do | |
9114 | IFS=$as_save_IFS | |
9115 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9116 | for ac_exec_ext in '' $ac_executable_extensions; do |
9117 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9118 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9120 | break 2 |
9121 | fi | |
9122 | done | |
5213506e RW |
9123 | done |
9124 | IFS=$as_save_IFS | |
278a7a38 AO |
9125 | |
9126 | fi | |
9127 | fi | |
9128 | STRIP=$ac_cv_prog_STRIP | |
9129 | if test -n "$STRIP"; then | |
5213506e RW |
9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9131 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 9132 | else |
5213506e RW |
9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9134 | $as_echo "no" >&6; } | |
278a7a38 AO |
9135 | fi |
9136 | ||
5213506e | 9137 | |
278a7a38 AO |
9138 | done |
9139 | fi | |
9140 | ||
9141 | for ncn_progname in strip; do | |
2abefe3d PB |
9142 | if test -n "$ncn_tool_prefix"; then |
9143 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9144 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9146 | $as_echo_n "checking for $ac_word... " >&6; } | |
9147 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9148 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9149 | else |
9150 | if test -n "$STRIP"; then | |
9151 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9152 | else | |
1c710c3c DJ |
9153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9154 | for as_dir in $PATH | |
9155 | do | |
9156 | IFS=$as_save_IFS | |
9157 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9158 | for ac_exec_ext in '' $ac_executable_extensions; do |
9159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9160 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9162 | break 2 |
9163 | fi | |
9164 | done | |
5213506e RW |
9165 | done |
9166 | IFS=$as_save_IFS | |
1c710c3c | 9167 | |
2abefe3d PB |
9168 | fi |
9169 | fi | |
1c710c3c | 9170 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9171 | if test -n "$STRIP"; then |
5213506e RW |
9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9173 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9174 | else |
5213506e RW |
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9176 | $as_echo "no" >&6; } | |
2abefe3d PB |
9177 | fi |
9178 | ||
5213506e | 9179 | |
2abefe3d PB |
9180 | fi |
9181 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9182 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9183 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9185 | $as_echo_n "checking for $ac_word... " >&6; } | |
9186 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9187 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9188 | else |
9189 | if test -n "$STRIP"; then | |
9190 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9191 | else | |
1c710c3c DJ |
9192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9193 | for as_dir in $PATH | |
9194 | do | |
9195 | IFS=$as_save_IFS | |
9196 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9197 | for ac_exec_ext in '' $ac_executable_extensions; do |
9198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9199 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9201 | break 2 |
9202 | fi | |
9203 | done | |
5213506e RW |
9204 | done |
9205 | IFS=$as_save_IFS | |
1c710c3c | 9206 | |
2abefe3d PB |
9207 | fi |
9208 | fi | |
1c710c3c | 9209 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9210 | if test -n "$STRIP"; then |
5213506e RW |
9211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9212 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9213 | else |
5213506e RW |
9214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9215 | $as_echo "no" >&6; } | |
2abefe3d | 9216 | fi |
1c710c3c | 9217 | |
5213506e | 9218 | |
2abefe3d PB |
9219 | fi |
9220 | test -n "$ac_cv_prog_STRIP" && break | |
9221 | done | |
9222 | ||
9223 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9224 | STRIP="true" |
2abefe3d PB |
9225 | fi |
9226 | ||
278a7a38 AO |
9227 | |
9228 | ||
9229 | if test -n "$WINDRES"; then | |
9230 | ac_cv_prog_WINDRES=$WINDRES | |
9231 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9232 | WINDRES=$ac_cv_prog_WINDRES | |
9233 | fi | |
9234 | ||
9235 | if test -n "$ac_cv_prog_WINDRES"; then | |
9236 | for ncn_progname in windres; do | |
9237 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9238 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9240 | $as_echo_n "checking for $ac_word... " >&6; } | |
9241 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9242 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9243 | else |
9244 | if test -n "$WINDRES"; then | |
9245 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9246 | else | |
9247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9248 | for as_dir in $PATH | |
9249 | do | |
9250 | IFS=$as_save_IFS | |
9251 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9252 | for ac_exec_ext in '' $ac_executable_extensions; do |
9253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9254 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9256 | break 2 |
9257 | fi | |
9258 | done | |
5213506e RW |
9259 | done |
9260 | IFS=$as_save_IFS | |
278a7a38 AO |
9261 | |
9262 | fi | |
9263 | fi | |
9264 | WINDRES=$ac_cv_prog_WINDRES | |
9265 | if test -n "$WINDRES"; then | |
5213506e RW |
9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9267 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9268 | else |
5213506e RW |
9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9270 | $as_echo "no" >&6; } | |
278a7a38 AO |
9271 | fi |
9272 | ||
5213506e | 9273 | |
278a7a38 AO |
9274 | done |
9275 | fi | |
9276 | ||
9277 | for ncn_progname in windres; do | |
2693c0b0 PB |
9278 | if test -n "$ncn_tool_prefix"; then |
9279 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9280 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9282 | $as_echo_n "checking for $ac_word... " >&6; } | |
9283 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9284 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9285 | else |
9286 | if test -n "$WINDRES"; then | |
9287 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9288 | else | |
1c710c3c DJ |
9289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9290 | for as_dir in $PATH | |
9291 | do | |
9292 | IFS=$as_save_IFS | |
9293 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9294 | for ac_exec_ext in '' $ac_executable_extensions; do |
9295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9296 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9298 | break 2 |
9299 | fi | |
9300 | done | |
5213506e RW |
9301 | done |
9302 | IFS=$as_save_IFS | |
1c710c3c | 9303 | |
ca9f4b81 AO |
9304 | fi |
9305 | fi | |
1c710c3c | 9306 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9307 | if test -n "$WINDRES"; then |
5213506e RW |
9308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9309 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9310 | else |
5213506e RW |
9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9312 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9313 | fi |
9314 | ||
5213506e | 9315 | |
2693c0b0 PB |
9316 | fi |
9317 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9318 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9319 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9321 | $as_echo_n "checking for $ac_word... " >&6; } | |
9322 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9323 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9324 | else |
2693c0b0 PB |
9325 | if test -n "$WINDRES"; then |
9326 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9327 | else |
1c710c3c DJ |
9328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9329 | for as_dir in $PATH | |
9330 | do | |
9331 | IFS=$as_save_IFS | |
9332 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9333 | for ac_exec_ext in '' $ac_executable_extensions; do |
9334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9335 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9337 | break 2 |
9338 | fi | |
9339 | done | |
5213506e RW |
9340 | done |
9341 | IFS=$as_save_IFS | |
1c710c3c | 9342 | |
ca9f4b81 AO |
9343 | fi |
9344 | fi | |
1c710c3c | 9345 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9346 | if test -n "$WINDRES"; then |
5213506e RW |
9347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9348 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9349 | else |
5213506e RW |
9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9351 | $as_echo "no" >&6; } | |
ca9f4b81 | 9352 | fi |
1c710c3c | 9353 | |
5213506e | 9354 | |
2693c0b0 PB |
9355 | fi |
9356 | test -n "$ac_cv_prog_WINDRES" && break | |
9357 | done | |
9358 | ||
9359 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9360 | set dummy windres | |
9361 | if test $build = $host ; then | |
9362 | WINDRES="$2" | |
ca9f4b81 | 9363 | else |
2693c0b0 | 9364 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9365 | fi |
ca9f4b81 AO |
9366 | fi |
9367 | ||
278a7a38 AO |
9368 | |
9369 | ||
901119ae KT |
9370 | if test -n "$WINDMC"; then |
9371 | ac_cv_prog_WINDMC=$WINDMC | |
9372 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9373 | WINDMC=$ac_cv_prog_WINDMC | |
9374 | fi | |
9375 | ||
9376 | if test -n "$ac_cv_prog_WINDMC"; then | |
9377 | for ncn_progname in windmc; do | |
9378 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9379 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9381 | $as_echo_n "checking for $ac_word... " >&6; } | |
9382 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9383 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9384 | else |
9385 | if test -n "$WINDMC"; then | |
9386 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9387 | else | |
9388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9389 | for as_dir in $PATH | |
9390 | do | |
9391 | IFS=$as_save_IFS | |
9392 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9393 | for ac_exec_ext in '' $ac_executable_extensions; do |
9394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9395 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9397 | break 2 |
9398 | fi | |
9399 | done | |
5213506e RW |
9400 | done |
9401 | IFS=$as_save_IFS | |
901119ae KT |
9402 | |
9403 | fi | |
9404 | fi | |
9405 | WINDMC=$ac_cv_prog_WINDMC | |
9406 | if test -n "$WINDMC"; then | |
5213506e RW |
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9408 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9409 | else |
5213506e RW |
9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9411 | $as_echo "no" >&6; } | |
901119ae KT |
9412 | fi |
9413 | ||
5213506e | 9414 | |
901119ae KT |
9415 | done |
9416 | fi | |
9417 | ||
9418 | for ncn_progname in windmc; do | |
9419 | if test -n "$ncn_tool_prefix"; then | |
9420 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9421 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9423 | $as_echo_n "checking for $ac_word... " >&6; } | |
9424 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9425 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9426 | else |
9427 | if test -n "$WINDMC"; then | |
9428 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9429 | else | |
9430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9431 | for as_dir in $PATH | |
9432 | do | |
9433 | IFS=$as_save_IFS | |
9434 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9435 | for ac_exec_ext in '' $ac_executable_extensions; do |
9436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9437 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9439 | break 2 |
9440 | fi | |
9441 | done | |
5213506e RW |
9442 | done |
9443 | IFS=$as_save_IFS | |
901119ae KT |
9444 | |
9445 | fi | |
9446 | fi | |
9447 | WINDMC=$ac_cv_prog_WINDMC | |
9448 | if test -n "$WINDMC"; then | |
5213506e RW |
9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9450 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9451 | else |
5213506e RW |
9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9453 | $as_echo "no" >&6; } | |
901119ae KT |
9454 | fi |
9455 | ||
5213506e | 9456 | |
901119ae KT |
9457 | fi |
9458 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9459 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9460 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9462 | $as_echo_n "checking for $ac_word... " >&6; } | |
9463 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9464 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9465 | else |
9466 | if test -n "$WINDMC"; then | |
9467 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9468 | else | |
9469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9470 | for as_dir in $PATH | |
9471 | do | |
9472 | IFS=$as_save_IFS | |
9473 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9474 | for ac_exec_ext in '' $ac_executable_extensions; do |
9475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9476 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9478 | break 2 |
9479 | fi | |
9480 | done | |
5213506e RW |
9481 | done |
9482 | IFS=$as_save_IFS | |
901119ae KT |
9483 | |
9484 | fi | |
9485 | fi | |
9486 | WINDMC=$ac_cv_prog_WINDMC | |
9487 | if test -n "$WINDMC"; then | |
5213506e RW |
9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9489 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9490 | else |
5213506e RW |
9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9492 | $as_echo "no" >&6; } | |
901119ae KT |
9493 | fi |
9494 | ||
5213506e | 9495 | |
901119ae KT |
9496 | fi |
9497 | test -n "$ac_cv_prog_WINDMC" && break | |
9498 | done | |
9499 | ||
9500 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9501 | set dummy windmc | |
9502 | if test $build = $host ; then | |
9503 | WINDMC="$2" | |
9504 | else | |
9505 | WINDMC="${ncn_tool_prefix}$2" | |
9506 | fi | |
9507 | fi | |
9508 | ||
9509 | ||
9510 | ||
278a7a38 AO |
9511 | if test -n "$OBJCOPY"; then |
9512 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9513 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9514 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9515 | fi | |
9516 | ||
9517 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9518 | for ncn_progname in objcopy; do | |
9519 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9520 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9522 | $as_echo_n "checking for $ac_word... " >&6; } | |
9523 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9524 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9525 | else |
9526 | if test -n "$OBJCOPY"; then | |
9527 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9528 | else | |
9529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9530 | for as_dir in $PATH | |
9531 | do | |
9532 | IFS=$as_save_IFS | |
9533 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9534 | for ac_exec_ext in '' $ac_executable_extensions; do |
9535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9536 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9538 | break 2 |
9539 | fi | |
9540 | done | |
5213506e RW |
9541 | done |
9542 | IFS=$as_save_IFS | |
278a7a38 AO |
9543 | |
9544 | fi | |
9545 | fi | |
9546 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9547 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9549 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9550 | else |
5213506e RW |
9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9552 | $as_echo "no" >&6; } | |
278a7a38 AO |
9553 | fi |
9554 | ||
5213506e | 9555 | |
278a7a38 AO |
9556 | done |
9557 | fi | |
9558 | ||
9559 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9560 | if test -n "$ncn_tool_prefix"; then |
9561 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9562 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9564 | $as_echo_n "checking for $ac_word... " >&6; } | |
9565 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9566 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9567 | else |
9568 | if test -n "$OBJCOPY"; then | |
9569 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9570 | else | |
1c710c3c DJ |
9571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9572 | for as_dir in $PATH | |
9573 | do | |
9574 | IFS=$as_save_IFS | |
9575 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9576 | for ac_exec_ext in '' $ac_executable_extensions; do |
9577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9578 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9580 | break 2 |
9581 | fi | |
9582 | done | |
5213506e RW |
9583 | done |
9584 | IFS=$as_save_IFS | |
1c710c3c | 9585 | |
ca9f4b81 AO |
9586 | fi |
9587 | fi | |
1c710c3c | 9588 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9589 | if test -n "$OBJCOPY"; then |
5213506e RW |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9591 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9592 | else |
5213506e RW |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9594 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9595 | fi |
9596 | ||
5213506e | 9597 | |
2693c0b0 PB |
9598 | fi |
9599 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9600 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9601 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9603 | $as_echo_n "checking for $ac_word... " >&6; } | |
9604 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9605 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9606 | else |
2693c0b0 PB |
9607 | if test -n "$OBJCOPY"; then |
9608 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9609 | else |
1c710c3c DJ |
9610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9611 | for as_dir in $PATH | |
9612 | do | |
9613 | IFS=$as_save_IFS | |
9614 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9615 | for ac_exec_ext in '' $ac_executable_extensions; do |
9616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9617 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9619 | break 2 |
9620 | fi | |
9621 | done | |
5213506e RW |
9622 | done |
9623 | IFS=$as_save_IFS | |
1c710c3c | 9624 | |
ca9f4b81 AO |
9625 | fi |
9626 | fi | |
1c710c3c | 9627 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9628 | if test -n "$OBJCOPY"; then |
5213506e RW |
9629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9630 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9631 | else |
5213506e RW |
9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9633 | $as_echo "no" >&6; } | |
ca9f4b81 | 9634 | fi |
1c710c3c | 9635 | |
5213506e | 9636 | |
2693c0b0 PB |
9637 | fi |
9638 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9639 | done | |
9640 | ||
9641 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9642 | set dummy objcopy | |
9643 | if test $build = $host ; then | |
9644 | OBJCOPY="$2" | |
ca9f4b81 | 9645 | else |
2693c0b0 | 9646 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9647 | fi |
ca9f4b81 AO |
9648 | fi |
9649 | ||
278a7a38 AO |
9650 | |
9651 | ||
9652 | if test -n "$OBJDUMP"; then | |
9653 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9654 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9655 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9656 | fi | |
9657 | ||
9658 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9659 | for ncn_progname in objdump; do | |
9660 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9661 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9663 | $as_echo_n "checking for $ac_word... " >&6; } | |
9664 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9665 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9666 | else |
9667 | if test -n "$OBJDUMP"; then | |
9668 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9669 | else | |
9670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9671 | for as_dir in $PATH | |
9672 | do | |
9673 | IFS=$as_save_IFS | |
9674 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9675 | for ac_exec_ext in '' $ac_executable_extensions; do |
9676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9677 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9679 | break 2 |
9680 | fi | |
9681 | done | |
5213506e RW |
9682 | done |
9683 | IFS=$as_save_IFS | |
278a7a38 AO |
9684 | |
9685 | fi | |
9686 | fi | |
9687 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9688 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9690 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9691 | else |
5213506e RW |
9692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9693 | $as_echo "no" >&6; } | |
278a7a38 AO |
9694 | fi |
9695 | ||
5213506e | 9696 | |
278a7a38 AO |
9697 | done |
9698 | fi | |
9699 | ||
9700 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9701 | if test -n "$ncn_tool_prefix"; then |
9702 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9703 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9705 | $as_echo_n "checking for $ac_word... " >&6; } | |
9706 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9707 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9708 | else |
9709 | if test -n "$OBJDUMP"; then | |
9710 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9711 | else | |
1c710c3c DJ |
9712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9713 | for as_dir in $PATH | |
9714 | do | |
9715 | IFS=$as_save_IFS | |
9716 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9717 | for ac_exec_ext in '' $ac_executable_extensions; do |
9718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9719 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9721 | break 2 |
9722 | fi | |
9723 | done | |
5213506e RW |
9724 | done |
9725 | IFS=$as_save_IFS | |
1c710c3c | 9726 | |
ca9f4b81 AO |
9727 | fi |
9728 | fi | |
1c710c3c | 9729 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9730 | if test -n "$OBJDUMP"; then |
5213506e RW |
9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9732 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9733 | else |
5213506e RW |
9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9735 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9736 | fi |
9737 | ||
5213506e | 9738 | |
2693c0b0 PB |
9739 | fi |
9740 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9741 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9742 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9744 | $as_echo_n "checking for $ac_word... " >&6; } | |
9745 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9746 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9747 | else |
2693c0b0 PB |
9748 | if test -n "$OBJDUMP"; then |
9749 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9750 | else |
1c710c3c DJ |
9751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9752 | for as_dir in $PATH | |
9753 | do | |
9754 | IFS=$as_save_IFS | |
9755 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9756 | for ac_exec_ext in '' $ac_executable_extensions; do |
9757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9758 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9760 | break 2 |
9761 | fi | |
9762 | done | |
5213506e RW |
9763 | done |
9764 | IFS=$as_save_IFS | |
1c710c3c | 9765 | |
ca9f4b81 AO |
9766 | fi |
9767 | fi | |
1c710c3c | 9768 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9769 | if test -n "$OBJDUMP"; then |
5213506e RW |
9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9771 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9772 | else |
5213506e RW |
9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9774 | $as_echo "no" >&6; } | |
ca9f4b81 | 9775 | fi |
1c710c3c | 9776 | |
5213506e | 9777 | |
2693c0b0 PB |
9778 | fi |
9779 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9780 | done | |
9781 | ||
9782 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9783 | set dummy objdump | |
9784 | if test $build = $host ; then | |
9785 | OBJDUMP="$2" | |
ca9f4b81 | 9786 | else |
2693c0b0 | 9787 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9788 | fi |
ca9f4b81 AO |
9789 | fi |
9790 | ||
671aa708 NN |
9791 | |
9792 | ||
e7a82751 RM |
9793 | if test -n "$READELF"; then |
9794 | ac_cv_prog_READELF=$READELF | |
9795 | elif test -n "$ac_cv_prog_READELF"; then | |
9796 | READELF=$ac_cv_prog_READELF | |
9797 | fi | |
9798 | ||
9799 | if test -n "$ac_cv_prog_READELF"; then | |
9800 | for ncn_progname in readelf; do | |
9801 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9802 | set dummy ${ncn_progname}; ac_word=$2 | |
9803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9804 | $as_echo_n "checking for $ac_word... " >&6; } | |
9805 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9806 | $as_echo_n "(cached) " >&6 | |
9807 | else | |
9808 | if test -n "$READELF"; then | |
9809 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9810 | else | |
9811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9812 | for as_dir in $PATH | |
9813 | do | |
9814 | IFS=$as_save_IFS | |
9815 | test -z "$as_dir" && as_dir=. | |
9816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9818 | ac_cv_prog_READELF="${ncn_progname}" | |
9819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9820 | break 2 | |
9821 | fi | |
9822 | done | |
9823 | done | |
9824 | IFS=$as_save_IFS | |
9825 | ||
9826 | fi | |
9827 | fi | |
9828 | READELF=$ac_cv_prog_READELF | |
9829 | if test -n "$READELF"; then | |
9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9831 | $as_echo "$READELF" >&6; } | |
9832 | else | |
9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9834 | $as_echo "no" >&6; } | |
9835 | fi | |
9836 | ||
9837 | ||
9838 | done | |
9839 | fi | |
9840 | ||
9841 | for ncn_progname in readelf; do | |
9842 | if test -n "$ncn_tool_prefix"; then | |
9843 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9844 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9846 | $as_echo_n "checking for $ac_word... " >&6; } | |
9847 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9848 | $as_echo_n "(cached) " >&6 | |
9849 | else | |
9850 | if test -n "$READELF"; then | |
9851 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9852 | else | |
9853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9854 | for as_dir in $PATH | |
9855 | do | |
9856 | IFS=$as_save_IFS | |
9857 | test -z "$as_dir" && as_dir=. | |
9858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9860 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9862 | break 2 | |
9863 | fi | |
9864 | done | |
9865 | done | |
9866 | IFS=$as_save_IFS | |
9867 | ||
9868 | fi | |
9869 | fi | |
9870 | READELF=$ac_cv_prog_READELF | |
9871 | if test -n "$READELF"; then | |
9872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9873 | $as_echo "$READELF" >&6; } | |
9874 | else | |
9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9876 | $as_echo "no" >&6; } | |
9877 | fi | |
9878 | ||
9879 | ||
9880 | fi | |
9881 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9882 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9883 | set dummy ${ncn_progname}; ac_word=$2 | |
9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9885 | $as_echo_n "checking for $ac_word... " >&6; } | |
9886 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9887 | $as_echo_n "(cached) " >&6 | |
9888 | else | |
9889 | if test -n "$READELF"; then | |
9890 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9891 | else | |
9892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9893 | for as_dir in $PATH | |
9894 | do | |
9895 | IFS=$as_save_IFS | |
9896 | test -z "$as_dir" && as_dir=. | |
9897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9899 | ac_cv_prog_READELF="${ncn_progname}" | |
9900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9901 | break 2 | |
9902 | fi | |
9903 | done | |
9904 | done | |
9905 | IFS=$as_save_IFS | |
9906 | ||
9907 | fi | |
9908 | fi | |
9909 | READELF=$ac_cv_prog_READELF | |
9910 | if test -n "$READELF"; then | |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9912 | $as_echo "$READELF" >&6; } | |
9913 | else | |
9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9915 | $as_echo "no" >&6; } | |
9916 | fi | |
9917 | ||
9918 | ||
9919 | fi | |
9920 | test -n "$ac_cv_prog_READELF" && break | |
9921 | done | |
9922 | ||
9923 | if test -z "$ac_cv_prog_READELF" ; then | |
9924 | set dummy readelf | |
9925 | if test $build = $host ; then | |
9926 | READELF="$2" | |
9927 | else | |
9928 | READELF="${ncn_tool_prefix}$2" | |
9929 | fi | |
9930 | fi | |
9931 | ||
9932 | ||
9933 | ||
671aa708 NN |
9934 | |
9935 | ||
9936 | ||
2abefe3d | 9937 | # Target tools. |
1c710c3c | 9938 | |
5213506e RW |
9939 | # Check whether --with-build-time-tools was given. |
9940 | if test "${with_build_time_tools+set}" = set; then : | |
9941 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
9942 | x/*) ;; |
9943 | *) | |
9944 | with_build_time_tools= | |
5213506e RW |
9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9946 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
9947 | ;; |
9948 | esac | |
ca9f4b81 | 9949 | else |
e8b05380 | 9950 | with_build_time_tools= |
5213506e RW |
9951 | fi |
9952 | ||
ca9f4b81 | 9953 | |
278a7a38 AO |
9954 | |
9955 | ||
9956 | if test -n "$CC_FOR_TARGET"; then | |
9957 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9958 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9959 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9960 | fi | |
9961 | ||
9962 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9963 | for ncn_progname in cc gcc; do | |
9964 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9965 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9967 | $as_echo_n "checking for $ac_word... " >&6; } | |
9968 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9969 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9970 | else |
9971 | if test -n "$CC_FOR_TARGET"; then | |
9972 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9973 | else | |
9974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9975 | for as_dir in $PATH | |
9976 | do | |
9977 | IFS=$as_save_IFS | |
9978 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9979 | for ac_exec_ext in '' $ac_executable_extensions; do |
9980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9981 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9983 | break 2 |
9984 | fi | |
9985 | done | |
5213506e RW |
9986 | done |
9987 | IFS=$as_save_IFS | |
278a7a38 AO |
9988 | |
9989 | fi | |
9990 | fi | |
9991 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9992 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9994 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 9995 | else |
5213506e RW |
9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9997 | $as_echo "no" >&6; } | |
278a7a38 AO |
9998 | fi |
9999 | ||
5213506e | 10000 | |
278a7a38 AO |
10001 | done |
10002 | fi | |
10003 | ||
10004 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10005 | for ncn_progname in cc gcc; do |
5213506e RW |
10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10007 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10008 | if test -x $with_build_time_tools/${ncn_progname}; then |
10009 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10011 | $as_echo "yes" >&6; } | |
72a7ab82 | 10012 | break |
e8b05380 | 10013 | else |
5213506e RW |
10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10015 | $as_echo "no" >&6; } | |
72a7ab82 AP |
10016 | fi |
10017 | done | |
4de997d1 PB |
10018 | fi |
10019 | ||
e8b05380 PB |
10020 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10021 | for ncn_progname in cc gcc; do | |
10022 | if test -n "$ncn_target_tool_prefix"; then | |
10023 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10024 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10026 | $as_echo_n "checking for $ac_word... " >&6; } | |
10027 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10028 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
10029 | else |
10030 | if test -n "$CC_FOR_TARGET"; then | |
10031 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10032 | else | |
1c710c3c DJ |
10033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10034 | for as_dir in $PATH | |
10035 | do | |
10036 | IFS=$as_save_IFS | |
10037 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10038 | for ac_exec_ext in '' $ac_executable_extensions; do |
10039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10040 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10042 | break 2 |
10043 | fi | |
10044 | done | |
5213506e RW |
10045 | done |
10046 | IFS=$as_save_IFS | |
1c710c3c | 10047 | |
4de997d1 PB |
10048 | fi |
10049 | fi | |
1c710c3c | 10050 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 10051 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10053 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10054 | else |
5213506e RW |
10055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10056 | $as_echo "no" >&6; } | |
4de997d1 PB |
10057 | fi |
10058 | ||
5213506e | 10059 | |
e8b05380 PB |
10060 | fi |
10061 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10062 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10063 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10065 | $as_echo_n "checking for $ac_word... " >&6; } | |
10066 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10067 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10068 | else |
2693c0b0 PB |
10069 | if test -n "$CC_FOR_TARGET"; then |
10070 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10071 | else |
1c710c3c DJ |
10072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10073 | for as_dir in $PATH | |
10074 | do | |
10075 | IFS=$as_save_IFS | |
10076 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10077 | for ac_exec_ext in '' $ac_executable_extensions; do |
10078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10079 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10081 | break 2 |
10082 | fi | |
10083 | done | |
5213506e RW |
10084 | done |
10085 | IFS=$as_save_IFS | |
1c710c3c | 10086 | |
4de997d1 PB |
10087 | fi |
10088 | fi | |
1c710c3c | 10089 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 10090 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10092 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10093 | else |
5213506e RW |
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10095 | $as_echo "no" >&6; } | |
4de997d1 | 10096 | fi |
1c710c3c | 10097 | |
5213506e | 10098 | |
e8b05380 PB |
10099 | fi |
10100 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10101 | done | |
10102 | fi | |
1c710c3c | 10103 | |
2693c0b0 PB |
10104 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10105 | set dummy cc gcc | |
10106 | if test $build = $target ; then | |
10107 | CC_FOR_TARGET="$2" | |
4de997d1 | 10108 | else |
2693c0b0 | 10109 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10110 | fi |
1c00b503 PB |
10111 | else |
10112 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
10113 | fi |
10114 | ||
278a7a38 AO |
10115 | |
10116 | ||
10117 | if test -n "$CXX_FOR_TARGET"; then | |
10118 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10119 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10120 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10121 | fi | |
10122 | ||
10123 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10124 | for ncn_progname in c++ g++ cxx gxx; do | |
10125 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10126 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10128 | $as_echo_n "checking for $ac_word... " >&6; } | |
10129 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10130 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10131 | else |
10132 | if test -n "$CXX_FOR_TARGET"; then | |
10133 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10134 | else | |
10135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10136 | for as_dir in $PATH | |
10137 | do | |
10138 | IFS=$as_save_IFS | |
10139 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10140 | for ac_exec_ext in '' $ac_executable_extensions; do |
10141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10142 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10144 | break 2 |
10145 | fi | |
10146 | done | |
5213506e RW |
10147 | done |
10148 | IFS=$as_save_IFS | |
278a7a38 AO |
10149 | |
10150 | fi | |
10151 | fi | |
10152 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10153 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10155 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 10156 | else |
5213506e RW |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10158 | $as_echo "no" >&6; } | |
278a7a38 AO |
10159 | fi |
10160 | ||
5213506e | 10161 | |
278a7a38 AO |
10162 | done |
10163 | fi | |
10164 | ||
10165 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10166 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10168 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10169 | if test -x $with_build_time_tools/${ncn_progname}; then |
10170 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10172 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10173 | break |
10174 | else | |
5213506e RW |
10175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10176 | $as_echo "no" >&6; } | |
e8b05380 PB |
10177 | fi |
10178 | done | |
10179 | fi | |
10180 | ||
10181 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10182 | for ncn_progname in c++ g++ cxx gxx; do | |
10183 | if test -n "$ncn_target_tool_prefix"; then | |
10184 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10185 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10187 | $as_echo_n "checking for $ac_word... " >&6; } | |
10188 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10189 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
10190 | else |
10191 | if test -n "$CXX_FOR_TARGET"; then | |
10192 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10193 | else | |
1c710c3c DJ |
10194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10195 | for as_dir in $PATH | |
10196 | do | |
10197 | IFS=$as_save_IFS | |
10198 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10199 | for ac_exec_ext in '' $ac_executable_extensions; do |
10200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10201 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10203 | break 2 |
10204 | fi | |
10205 | done | |
5213506e RW |
10206 | done |
10207 | IFS=$as_save_IFS | |
1c710c3c | 10208 | |
4de997d1 PB |
10209 | fi |
10210 | fi | |
1c710c3c | 10211 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10212 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10214 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10215 | else |
5213506e RW |
10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10217 | $as_echo "no" >&6; } | |
4de997d1 PB |
10218 | fi |
10219 | ||
5213506e | 10220 | |
e8b05380 PB |
10221 | fi |
10222 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10223 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10224 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10226 | $as_echo_n "checking for $ac_word... " >&6; } | |
10227 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10228 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10229 | else |
2693c0b0 PB |
10230 | if test -n "$CXX_FOR_TARGET"; then |
10231 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10232 | else |
1c710c3c DJ |
10233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10234 | for as_dir in $PATH | |
10235 | do | |
10236 | IFS=$as_save_IFS | |
10237 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10238 | for ac_exec_ext in '' $ac_executable_extensions; do |
10239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10240 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10242 | break 2 |
10243 | fi | |
10244 | done | |
5213506e RW |
10245 | done |
10246 | IFS=$as_save_IFS | |
1c710c3c | 10247 | |
4de997d1 PB |
10248 | fi |
10249 | fi | |
1c710c3c | 10250 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10251 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10253 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10254 | else |
5213506e RW |
10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10256 | $as_echo "no" >&6; } | |
4de997d1 | 10257 | fi |
1c710c3c | 10258 | |
5213506e | 10259 | |
e8b05380 PB |
10260 | fi |
10261 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10262 | done | |
10263 | fi | |
1c710c3c | 10264 | |
2693c0b0 PB |
10265 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10266 | set dummy c++ g++ cxx gxx | |
10267 | if test $build = $target ; then | |
10268 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10269 | else |
2693c0b0 | 10270 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10271 | fi |
1c00b503 PB |
10272 | else |
10273 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10274 | fi |
10275 | ||
278a7a38 AO |
10276 | |
10277 | ||
10278 | if test -n "$GCC_FOR_TARGET"; then | |
10279 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10280 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10281 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10282 | fi | |
10283 | ||
10284 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10285 | for ncn_progname in gcc; do | |
10286 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10287 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10289 | $as_echo_n "checking for $ac_word... " >&6; } | |
10290 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10291 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10292 | else |
10293 | if test -n "$GCC_FOR_TARGET"; then | |
10294 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10295 | else | |
10296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10297 | for as_dir in $PATH | |
10298 | do | |
10299 | IFS=$as_save_IFS | |
10300 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10301 | for ac_exec_ext in '' $ac_executable_extensions; do |
10302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10303 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10305 | break 2 |
10306 | fi | |
10307 | done | |
5213506e RW |
10308 | done |
10309 | IFS=$as_save_IFS | |
278a7a38 AO |
10310 | |
10311 | fi | |
10312 | fi | |
10313 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10314 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10316 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 10317 | else |
5213506e RW |
10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10319 | $as_echo "no" >&6; } | |
278a7a38 AO |
10320 | fi |
10321 | ||
5213506e | 10322 | |
278a7a38 AO |
10323 | done |
10324 | fi | |
10325 | ||
10326 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10327 | for ncn_progname in gcc; do |
5213506e RW |
10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10329 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10330 | if test -x $with_build_time_tools/${ncn_progname}; then |
10331 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10333 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10334 | break |
10335 | else | |
5213506e RW |
10336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10337 | $as_echo "no" >&6; } | |
e8b05380 PB |
10338 | fi |
10339 | done | |
10340 | fi | |
10341 | ||
10342 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10343 | for ncn_progname in gcc; do | |
10344 | if test -n "$ncn_target_tool_prefix"; then | |
10345 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10346 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10348 | $as_echo_n "checking for $ac_word... " >&6; } | |
10349 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10350 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10351 | else |
e8b05380 PB |
10352 | if test -n "$GCC_FOR_TARGET"; then |
10353 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10354 | else |
1c710c3c DJ |
10355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10356 | for as_dir in $PATH | |
10357 | do | |
10358 | IFS=$as_save_IFS | |
10359 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10360 | for ac_exec_ext in '' $ac_executable_extensions; do |
10361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10362 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10364 | break 2 |
10365 | fi | |
10366 | done | |
5213506e RW |
10367 | done |
10368 | IFS=$as_save_IFS | |
1c710c3c | 10369 | |
ca9f4b81 AO |
10370 | fi |
10371 | fi | |
1c710c3c | 10372 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10373 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10375 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10376 | else |
5213506e RW |
10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10378 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10379 | fi |
10380 | ||
5213506e | 10381 | |
e8b05380 PB |
10382 | fi |
10383 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10384 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10385 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10387 | $as_echo_n "checking for $ac_word... " >&6; } | |
10388 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10389 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10390 | else |
e8b05380 PB |
10391 | if test -n "$GCC_FOR_TARGET"; then |
10392 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10393 | else |
1c710c3c DJ |
10394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10395 | for as_dir in $PATH | |
10396 | do | |
10397 | IFS=$as_save_IFS | |
10398 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10399 | for ac_exec_ext in '' $ac_executable_extensions; do |
10400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10401 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10403 | break 2 |
10404 | fi | |
10405 | done | |
5213506e RW |
10406 | done |
10407 | IFS=$as_save_IFS | |
1c710c3c | 10408 | |
ca9f4b81 AO |
10409 | fi |
10410 | fi | |
1c710c3c | 10411 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10412 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10414 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10415 | else |
5213506e RW |
10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10417 | $as_echo "no" >&6; } | |
ca9f4b81 | 10418 | fi |
1c710c3c | 10419 | |
5213506e | 10420 | |
e8b05380 PB |
10421 | fi |
10422 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10423 | done | |
10424 | fi | |
1c710c3c | 10425 | |
e8b05380 PB |
10426 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10427 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10428 | else |
10429 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10430 | fi |
10431 | ||
278a7a38 AO |
10432 | |
10433 | ||
10434 | if test -n "$GCJ_FOR_TARGET"; then | |
10435 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10436 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10437 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10438 | fi | |
10439 | ||
10440 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10441 | for ncn_progname in gcj; do | |
10442 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10443 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10445 | $as_echo_n "checking for $ac_word... " >&6; } | |
10446 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10447 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10448 | else |
10449 | if test -n "$GCJ_FOR_TARGET"; then | |
10450 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10451 | else | |
10452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10453 | for as_dir in $PATH | |
10454 | do | |
10455 | IFS=$as_save_IFS | |
10456 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10457 | for ac_exec_ext in '' $ac_executable_extensions; do |
10458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10459 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10461 | break 2 |
10462 | fi | |
10463 | done | |
5213506e RW |
10464 | done |
10465 | IFS=$as_save_IFS | |
278a7a38 AO |
10466 | |
10467 | fi | |
10468 | fi | |
10469 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10470 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10472 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10473 | else |
5213506e RW |
10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10475 | $as_echo "no" >&6; } | |
278a7a38 AO |
10476 | fi |
10477 | ||
5213506e | 10478 | |
278a7a38 AO |
10479 | done |
10480 | fi | |
10481 | ||
10482 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10483 | for ncn_progname in gcj; do |
5213506e RW |
10484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10485 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10486 | if test -x $with_build_time_tools/${ncn_progname}; then |
10487 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10489 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10490 | break |
10491 | else | |
5213506e RW |
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10493 | $as_echo "no" >&6; } | |
e8b05380 PB |
10494 | fi |
10495 | done | |
10496 | fi | |
10497 | ||
10498 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10499 | for ncn_progname in gcj; do | |
10500 | if test -n "$ncn_target_tool_prefix"; then | |
10501 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10502 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10504 | $as_echo_n "checking for $ac_word... " >&6; } | |
10505 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10506 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10507 | else |
fb0103e5 RG |
10508 | if test -n "$GCJ_FOR_TARGET"; then |
10509 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10510 | else | |
1c710c3c DJ |
10511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10512 | for as_dir in $PATH | |
10513 | do | |
10514 | IFS=$as_save_IFS | |
10515 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10516 | for ac_exec_ext in '' $ac_executable_extensions; do |
10517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10518 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10520 | break 2 |
10521 | fi | |
10522 | done | |
5213506e RW |
10523 | done |
10524 | IFS=$as_save_IFS | |
1c710c3c | 10525 | |
e8b05380 PB |
10526 | fi |
10527 | fi | |
278a7a38 AO |
10528 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10529 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10531 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10532 | else |
5213506e RW |
10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10534 | $as_echo "no" >&6; } | |
278a7a38 AO |
10535 | fi |
10536 | ||
5213506e | 10537 | |
278a7a38 AO |
10538 | fi |
10539 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10540 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10541 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10543 | $as_echo_n "checking for $ac_word... " >&6; } | |
10544 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10545 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10546 | else |
10547 | if test -n "$GCJ_FOR_TARGET"; then | |
10548 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10549 | else | |
10550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10551 | for as_dir in $PATH | |
10552 | do | |
10553 | IFS=$as_save_IFS | |
10554 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10555 | for ac_exec_ext in '' $ac_executable_extensions; do |
10556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10557 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10559 | break 2 |
10560 | fi | |
10561 | done | |
5213506e RW |
10562 | done |
10563 | IFS=$as_save_IFS | |
278a7a38 AO |
10564 | |
10565 | fi | |
10566 | fi | |
10567 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10568 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10570 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10571 | else |
5213506e RW |
10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10573 | $as_echo "no" >&6; } | |
278a7a38 AO |
10574 | fi |
10575 | ||
5213506e | 10576 | |
278a7a38 AO |
10577 | fi |
10578 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10579 | done | |
10580 | fi | |
10581 | ||
10582 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10583 | set dummy gcj | |
10584 | if test $build = $target ; then | |
10585 | GCJ_FOR_TARGET="$2" | |
10586 | else | |
10587 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10588 | fi | |
1c00b503 PB |
10589 | else |
10590 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
278a7a38 AO |
10591 | fi |
10592 | ||
10593 | ||
10594 | ||
10595 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10596 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10597 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10598 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10599 | fi |
10600 | ||
278a7a38 AO |
10601 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10602 | for ncn_progname in gfortran; do | |
10603 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10604 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10606 | $as_echo_n "checking for $ac_word... " >&6; } | |
10607 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10608 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10609 | else |
278a7a38 AO |
10610 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10611 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10612 | else |
1c710c3c DJ |
10613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10614 | for as_dir in $PATH | |
10615 | do | |
10616 | IFS=$as_save_IFS | |
10617 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10618 | for ac_exec_ext in '' $ac_executable_extensions; do |
10619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10620 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10622 | break 2 |
10623 | fi | |
10624 | done | |
5213506e RW |
10625 | done |
10626 | IFS=$as_save_IFS | |
1c710c3c | 10627 | |
e8b05380 PB |
10628 | fi |
10629 | fi | |
278a7a38 AO |
10630 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10631 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10633 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10634 | else |
5213506e RW |
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10636 | $as_echo "no" >&6; } | |
e8b05380 | 10637 | fi |
1c710c3c | 10638 | |
5213506e | 10639 | |
e8b05380 PB |
10640 | done |
10641 | fi | |
1c710c3c | 10642 | |
278a7a38 | 10643 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10644 | for ncn_progname in gfortran; do |
5213506e RW |
10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10646 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10647 | if test -x $with_build_time_tools/${ncn_progname}; then |
10648 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10650 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10651 | break |
10652 | else | |
5213506e RW |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10654 | $as_echo "no" >&6; } | |
e8b05380 PB |
10655 | fi |
10656 | done | |
10657 | fi | |
10658 | ||
10659 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10660 | for ncn_progname in gfortran; do | |
10661 | if test -n "$ncn_target_tool_prefix"; then | |
10662 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10663 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10665 | $as_echo_n "checking for $ac_word... " >&6; } | |
10666 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10667 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10668 | else |
10669 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10670 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10671 | else | |
10672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10673 | for as_dir in $PATH | |
10674 | do | |
10675 | IFS=$as_save_IFS | |
10676 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10677 | for ac_exec_ext in '' $ac_executable_extensions; do |
10678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10679 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10681 | break 2 |
10682 | fi | |
10683 | done | |
5213506e RW |
10684 | done |
10685 | IFS=$as_save_IFS | |
1c710c3c | 10686 | |
e8b05380 PB |
10687 | fi |
10688 | fi | |
1c710c3c | 10689 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10690 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10692 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10693 | else |
5213506e RW |
10694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10695 | $as_echo "no" >&6; } | |
e8b05380 PB |
10696 | fi |
10697 | ||
5213506e | 10698 | |
e8b05380 PB |
10699 | fi |
10700 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10701 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10702 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10704 | $as_echo_n "checking for $ac_word... " >&6; } | |
10705 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10706 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10707 | else |
10708 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10709 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10710 | else | |
1c710c3c DJ |
10711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10712 | for as_dir in $PATH | |
10713 | do | |
10714 | IFS=$as_save_IFS | |
10715 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10716 | for ac_exec_ext in '' $ac_executable_extensions; do |
10717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10718 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10720 | break 2 |
10721 | fi | |
10722 | done | |
5213506e RW |
10723 | done |
10724 | IFS=$as_save_IFS | |
1c710c3c | 10725 | |
e8b05380 PB |
10726 | fi |
10727 | fi | |
1c710c3c | 10728 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10729 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10731 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10732 | else |
5213506e RW |
10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10734 | $as_echo "no" >&6; } | |
e8b05380 | 10735 | fi |
1c710c3c | 10736 | |
5213506e | 10737 | |
e8b05380 PB |
10738 | fi |
10739 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10740 | done | |
10741 | fi | |
1c710c3c | 10742 | |
e8b05380 PB |
10743 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10744 | set dummy gfortran | |
2693c0b0 | 10745 | if test $build = $target ; then |
e8b05380 | 10746 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10747 | else |
e8b05380 PB |
10748 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10749 | fi | |
1c00b503 PB |
10750 | else |
10751 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10752 | fi |
10753 | ||
10754 | ||
10755 | ||
632e2a07 ILT |
10756 | if test -n "$GOC_FOR_TARGET"; then |
10757 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10758 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10759 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10760 | fi | |
10761 | ||
10762 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10763 | for ncn_progname in gccgo; do | |
10764 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10765 | set dummy ${ncn_progname}; ac_word=$2 | |
10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10767 | $as_echo_n "checking for $ac_word... " >&6; } | |
10768 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10769 | $as_echo_n "(cached) " >&6 | |
10770 | else | |
10771 | if test -n "$GOC_FOR_TARGET"; then | |
10772 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10773 | else | |
10774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10775 | for as_dir in $PATH | |
10776 | do | |
10777 | IFS=$as_save_IFS | |
10778 | test -z "$as_dir" && as_dir=. | |
10779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10781 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10783 | break 2 | |
10784 | fi | |
10785 | done | |
10786 | done | |
10787 | IFS=$as_save_IFS | |
10788 | ||
10789 | fi | |
10790 | fi | |
10791 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10792 | if test -n "$GOC_FOR_TARGET"; then | |
10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10794 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10795 | else | |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10797 | $as_echo "no" >&6; } | |
10798 | fi | |
10799 | ||
10800 | ||
10801 | done | |
10802 | fi | |
10803 | ||
10804 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10805 | for ncn_progname in gccgo; do | |
10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10807 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10808 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10809 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10811 | $as_echo "yes" >&6; } | |
10812 | break | |
10813 | else | |
10814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10815 | $as_echo "no" >&6; } | |
10816 | fi | |
10817 | done | |
10818 | fi | |
10819 | ||
10820 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10821 | for ncn_progname in gccgo; do | |
10822 | if test -n "$ncn_target_tool_prefix"; then | |
10823 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10824 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10826 | $as_echo_n "checking for $ac_word... " >&6; } | |
10827 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10828 | $as_echo_n "(cached) " >&6 | |
10829 | else | |
10830 | if test -n "$GOC_FOR_TARGET"; then | |
10831 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10832 | else | |
10833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10834 | for as_dir in $PATH | |
10835 | do | |
10836 | IFS=$as_save_IFS | |
10837 | test -z "$as_dir" && as_dir=. | |
10838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10840 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10842 | break 2 | |
10843 | fi | |
10844 | done | |
10845 | done | |
10846 | IFS=$as_save_IFS | |
10847 | ||
10848 | fi | |
10849 | fi | |
10850 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10851 | if test -n "$GOC_FOR_TARGET"; then | |
10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10853 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10854 | else | |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10856 | $as_echo "no" >&6; } | |
10857 | fi | |
10858 | ||
10859 | ||
10860 | fi | |
10861 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10862 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10863 | set dummy ${ncn_progname}; ac_word=$2 | |
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10865 | $as_echo_n "checking for $ac_word... " >&6; } | |
10866 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10867 | $as_echo_n "(cached) " >&6 | |
10868 | else | |
10869 | if test -n "$GOC_FOR_TARGET"; then | |
10870 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10871 | else | |
10872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10873 | for as_dir in $PATH | |
10874 | do | |
10875 | IFS=$as_save_IFS | |
10876 | test -z "$as_dir" && as_dir=. | |
10877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10879 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10881 | break 2 | |
10882 | fi | |
10883 | done | |
10884 | done | |
10885 | IFS=$as_save_IFS | |
10886 | ||
10887 | fi | |
10888 | fi | |
10889 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10890 | if test -n "$GOC_FOR_TARGET"; then | |
10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10892 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10893 | else | |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10895 | $as_echo "no" >&6; } | |
10896 | fi | |
10897 | ||
10898 | ||
10899 | fi | |
10900 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10901 | done | |
10902 | fi | |
10903 | ||
10904 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10905 | set dummy gccgo | |
10906 | if test $build = $target ; then | |
10907 | GOC_FOR_TARGET="$2" | |
10908 | else | |
10909 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10910 | fi | |
10911 | else | |
10912 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10913 | fi | |
10914 | ||
10915 | ||
10916 | ||
e8b05380 PB |
10917 | cat > conftest.c << \EOF |
10918 | #ifdef __GNUC__ | |
10919 | gcc_yay; | |
10920 | #endif | |
10921 | EOF | |
10922 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10923 | have_gcc_for_target=yes | |
10924 | else | |
10925 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10926 | have_gcc_for_target=no | |
10927 | fi | |
10928 | rm conftest.c | |
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10934 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10936 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10937 | if test -x $with_build_time_tools/ar; then |
10938 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10939 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10941 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 10942 | else |
5213506e RW |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10944 | $as_echo "no" >&6; } | |
d1f8db0c | 10945 | fi |
e8b05380 PB |
10946 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10947 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
10948 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10949 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
10950 | fi |
10951 | fi | |
3e19841a | 10952 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10953 | # Extract the first word of "ar", so it can be a program name with args. |
10954 | set dummy ar; ac_word=$2 | |
5213506e RW |
10955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10956 | $as_echo_n "checking for $ac_word... " >&6; } | |
10957 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10958 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10959 | else |
1c710c3c DJ |
10960 | case $AR_FOR_TARGET in |
10961 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10962 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10963 | ;; | |
e8b05380 | 10964 | *) |
1c710c3c DJ |
10965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10966 | for as_dir in $gcc_cv_tool_dirs | |
10967 | do | |
10968 | IFS=$as_save_IFS | |
10969 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10970 | for ac_exec_ext in '' $ac_executable_extensions; do |
10971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10972 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10974 | break 2 |
10975 | fi | |
10976 | done | |
5213506e RW |
10977 | done |
10978 | IFS=$as_save_IFS | |
1c710c3c | 10979 | |
e8b05380 PB |
10980 | ;; |
10981 | esac | |
10982 | fi | |
1c710c3c | 10983 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 10984 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10986 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10987 | else |
5213506e RW |
10988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10989 | $as_echo "no" >&6; } | |
4de997d1 PB |
10990 | fi |
10991 | ||
5213506e | 10992 | |
e8b05380 PB |
10993 | fi |
10994 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
10995 | |
10996 | ||
10997 | if test -n "$AR_FOR_TARGET"; then | |
10998 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10999 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11000 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11001 | fi | |
11002 | ||
11003 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11004 | for ncn_progname in ar; do | |
11005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11006 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11008 | $as_echo_n "checking for $ac_word... " >&6; } | |
11009 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11010 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11011 | else |
11012 | if test -n "$AR_FOR_TARGET"; then | |
11013 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11014 | else | |
11015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11016 | for as_dir in $PATH | |
11017 | do | |
11018 | IFS=$as_save_IFS | |
11019 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11020 | for ac_exec_ext in '' $ac_executable_extensions; do |
11021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11022 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11024 | break 2 |
11025 | fi | |
11026 | done | |
5213506e RW |
11027 | done |
11028 | IFS=$as_save_IFS | |
278a7a38 AO |
11029 | |
11030 | fi | |
11031 | fi | |
11032 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11033 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11035 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 11036 | else |
5213506e RW |
11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11038 | $as_echo "no" >&6; } | |
278a7a38 AO |
11039 | fi |
11040 | ||
5213506e | 11041 | |
278a7a38 AO |
11042 | done |
11043 | fi | |
11044 | ||
11045 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11046 | for ncn_progname in ar; do |
5213506e RW |
11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11048 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11049 | if test -x $with_build_time_tools/${ncn_progname}; then |
11050 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11052 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11053 | break |
11054 | else | |
5213506e RW |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11056 | $as_echo "no" >&6; } | |
e8b05380 PB |
11057 | fi |
11058 | done | |
11059 | fi | |
11060 | ||
11061 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11062 | for ncn_progname in ar; do | |
11063 | if test -n "$ncn_target_tool_prefix"; then | |
11064 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11065 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11067 | $as_echo_n "checking for $ac_word... " >&6; } | |
11068 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11069 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11070 | else |
e8b05380 PB |
11071 | if test -n "$AR_FOR_TARGET"; then |
11072 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11073 | else |
1c710c3c DJ |
11074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11075 | for as_dir in $PATH | |
11076 | do | |
11077 | IFS=$as_save_IFS | |
11078 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11079 | for ac_exec_ext in '' $ac_executable_extensions; do |
11080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11081 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11083 | break 2 |
11084 | fi | |
11085 | done | |
5213506e RW |
11086 | done |
11087 | IFS=$as_save_IFS | |
1c710c3c | 11088 | |
4de997d1 PB |
11089 | fi |
11090 | fi | |
1c710c3c | 11091 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11092 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11094 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 11095 | else |
5213506e RW |
11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11097 | $as_echo "no" >&6; } | |
4de997d1 PB |
11098 | fi |
11099 | ||
5213506e | 11100 | |
e8b05380 PB |
11101 | fi |
11102 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11103 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11104 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11106 | $as_echo_n "checking for $ac_word... " >&6; } | |
11107 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11108 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
11109 | else |
11110 | if test -n "$AR_FOR_TARGET"; then | |
11111 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11112 | else | |
1c710c3c DJ |
11113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11114 | for as_dir in $PATH | |
11115 | do | |
11116 | IFS=$as_save_IFS | |
11117 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11118 | for ac_exec_ext in '' $ac_executable_extensions; do |
11119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11120 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11122 | break 2 |
11123 | fi | |
11124 | done | |
5213506e RW |
11125 | done |
11126 | IFS=$as_save_IFS | |
1c710c3c | 11127 | |
e8b05380 PB |
11128 | fi |
11129 | fi | |
1c710c3c | 11130 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11131 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11133 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11134 | else |
5213506e RW |
11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11136 | $as_echo "no" >&6; } | |
e8b05380 | 11137 | fi |
1c710c3c | 11138 | |
5213506e | 11139 | |
e8b05380 PB |
11140 | fi |
11141 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11142 | done | |
11143 | fi | |
1c710c3c | 11144 | |
e8b05380 PB |
11145 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11146 | set dummy ar | |
11147 | if test $build = $target ; then | |
11148 | AR_FOR_TARGET="$2" | |
11149 | else | |
11150 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 11151 | fi |
1c00b503 PB |
11152 | else |
11153 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
11154 | fi |
11155 | ||
d1f8db0c PB |
11156 | else |
11157 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
11158 | fi |
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11164 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11166 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11167 | if test -x $with_build_time_tools/as; then |
11168 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11169 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11171 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 11172 | else |
5213506e RW |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11174 | $as_echo "no" >&6; } | |
d1f8db0c | 11175 | fi |
e8b05380 PB |
11176 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11177 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
11178 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11179 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
11180 | fi |
11181 | fi | |
3e19841a | 11182 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11183 | # Extract the first word of "as", so it can be a program name with args. |
11184 | set dummy as; ac_word=$2 | |
5213506e RW |
11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11186 | $as_echo_n "checking for $ac_word... " >&6; } | |
11187 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11188 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11189 | else |
1c710c3c DJ |
11190 | case $AS_FOR_TARGET in |
11191 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11192 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11193 | ;; | |
e8b05380 | 11194 | *) |
1c710c3c DJ |
11195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11196 | for as_dir in $gcc_cv_tool_dirs | |
11197 | do | |
11198 | IFS=$as_save_IFS | |
11199 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11200 | for ac_exec_ext in '' $ac_executable_extensions; do |
11201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11202 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11204 | break 2 |
11205 | fi | |
11206 | done | |
5213506e RW |
11207 | done |
11208 | IFS=$as_save_IFS | |
1c710c3c | 11209 | |
e8b05380 PB |
11210 | ;; |
11211 | esac | |
11212 | fi | |
1c710c3c | 11213 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 11214 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11216 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11217 | else |
5213506e RW |
11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11219 | $as_echo "no" >&6; } | |
e8b05380 PB |
11220 | fi |
11221 | ||
5213506e | 11222 | |
e8b05380 PB |
11223 | fi |
11224 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11225 | |
11226 | ||
11227 | if test -n "$AS_FOR_TARGET"; then | |
11228 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11229 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11230 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11231 | fi | |
11232 | ||
11233 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11234 | for ncn_progname in as; do | |
11235 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11236 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11238 | $as_echo_n "checking for $ac_word... " >&6; } | |
11239 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11240 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11241 | else |
11242 | if test -n "$AS_FOR_TARGET"; then | |
11243 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11244 | else | |
11245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11246 | for as_dir in $PATH | |
11247 | do | |
11248 | IFS=$as_save_IFS | |
11249 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11250 | for ac_exec_ext in '' $ac_executable_extensions; do |
11251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11252 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11254 | break 2 |
11255 | fi | |
11256 | done | |
5213506e RW |
11257 | done |
11258 | IFS=$as_save_IFS | |
278a7a38 AO |
11259 | |
11260 | fi | |
11261 | fi | |
11262 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11263 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11265 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 11266 | else |
5213506e RW |
11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11268 | $as_echo "no" >&6; } | |
278a7a38 AO |
11269 | fi |
11270 | ||
5213506e | 11271 | |
278a7a38 AO |
11272 | done |
11273 | fi | |
11274 | ||
11275 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11276 | for ncn_progname in as; do |
5213506e RW |
11277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11278 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11279 | if test -x $with_build_time_tools/${ncn_progname}; then |
11280 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11282 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11283 | break |
11284 | else | |
5213506e RW |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11286 | $as_echo "no" >&6; } | |
e8b05380 PB |
11287 | fi |
11288 | done | |
11289 | fi | |
11290 | ||
11291 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11292 | for ncn_progname in as; do | |
11293 | if test -n "$ncn_target_tool_prefix"; then | |
11294 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11295 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11297 | $as_echo_n "checking for $ac_word... " >&6; } | |
11298 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11299 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
11300 | else |
11301 | if test -n "$AS_FOR_TARGET"; then | |
11302 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11303 | else | |
1c710c3c DJ |
11304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11305 | for as_dir in $PATH | |
11306 | do | |
11307 | IFS=$as_save_IFS | |
11308 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11309 | for ac_exec_ext in '' $ac_executable_extensions; do |
11310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11311 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11313 | break 2 |
11314 | fi | |
11315 | done | |
5213506e RW |
11316 | done |
11317 | IFS=$as_save_IFS | |
1c710c3c | 11318 | |
e8b05380 PB |
11319 | fi |
11320 | fi | |
1c710c3c | 11321 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11322 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11324 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11325 | else |
5213506e RW |
11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11327 | $as_echo "no" >&6; } | |
e8b05380 PB |
11328 | fi |
11329 | ||
5213506e | 11330 | |
e8b05380 PB |
11331 | fi |
11332 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11334 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11336 | $as_echo_n "checking for $ac_word... " >&6; } | |
11337 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11338 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11339 | else |
e8b05380 PB |
11340 | if test -n "$AS_FOR_TARGET"; then |
11341 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11342 | else |
1c710c3c DJ |
11343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11344 | for as_dir in $PATH | |
11345 | do | |
11346 | IFS=$as_save_IFS | |
11347 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11348 | for ac_exec_ext in '' $ac_executable_extensions; do |
11349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11350 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11352 | break 2 |
11353 | fi | |
11354 | done | |
5213506e RW |
11355 | done |
11356 | IFS=$as_save_IFS | |
1c710c3c | 11357 | |
4de997d1 PB |
11358 | fi |
11359 | fi | |
1c710c3c | 11360 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11361 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11363 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11364 | else |
5213506e RW |
11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11366 | $as_echo "no" >&6; } | |
4de997d1 | 11367 | fi |
1c710c3c | 11368 | |
5213506e | 11369 | |
e8b05380 PB |
11370 | fi |
11371 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11372 | done | |
11373 | fi | |
1c710c3c | 11374 | |
e8b05380 PB |
11375 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11376 | set dummy as | |
11377 | if test $build = $target ; then | |
11378 | AS_FOR_TARGET="$2" | |
11379 | else | |
11380 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11381 | fi |
1c00b503 PB |
11382 | else |
11383 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11384 | fi |
2693c0b0 | 11385 | |
d1f8db0c PB |
11386 | else |
11387 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11388 | fi |
11389 | ||
e8b05380 PB |
11390 | |
11391 | ||
11392 | ||
11393 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11394 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11396 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11397 | if test -x $with_build_time_tools/dlltool; then |
11398 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11399 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11401 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11402 | else |
5213506e RW |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11404 | $as_echo "no" >&6; } | |
d1f8db0c | 11405 | fi |
e8b05380 PB |
11406 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11407 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11408 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11409 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11410 | fi |
11411 | fi | |
3e19841a | 11412 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11413 | # Extract the first word of "dlltool", so it can be a program name with args. |
11414 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11416 | $as_echo_n "checking for $ac_word... " >&6; } | |
11417 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11418 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11419 | else |
1c710c3c DJ |
11420 | case $DLLTOOL_FOR_TARGET in |
11421 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11422 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11423 | ;; | |
e8b05380 | 11424 | *) |
1c710c3c DJ |
11425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11426 | for as_dir in $gcc_cv_tool_dirs | |
11427 | do | |
11428 | IFS=$as_save_IFS | |
11429 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11430 | for ac_exec_ext in '' $ac_executable_extensions; do |
11431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11432 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11434 | break 2 |
11435 | fi | |
11436 | done | |
5213506e RW |
11437 | done |
11438 | IFS=$as_save_IFS | |
1c710c3c | 11439 | |
e8b05380 PB |
11440 | ;; |
11441 | esac | |
4de997d1 | 11442 | fi |
1c710c3c | 11443 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11444 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11446 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11447 | else |
5213506e RW |
11448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11449 | $as_echo "no" >&6; } | |
4de997d1 PB |
11450 | fi |
11451 | ||
5213506e | 11452 | |
e8b05380 PB |
11453 | fi |
11454 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11455 | |
11456 | ||
11457 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11458 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11459 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11460 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11461 | fi | |
11462 | ||
11463 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11464 | for ncn_progname in dlltool; do | |
11465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11466 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11468 | $as_echo_n "checking for $ac_word... " >&6; } | |
11469 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11470 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11471 | else |
11472 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11473 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11474 | else | |
11475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11476 | for as_dir in $PATH | |
11477 | do | |
11478 | IFS=$as_save_IFS | |
11479 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11480 | for ac_exec_ext in '' $ac_executable_extensions; do |
11481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11482 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11484 | break 2 |
11485 | fi | |
11486 | done | |
5213506e RW |
11487 | done |
11488 | IFS=$as_save_IFS | |
278a7a38 AO |
11489 | |
11490 | fi | |
11491 | fi | |
11492 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11493 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11495 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11496 | else |
5213506e RW |
11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11498 | $as_echo "no" >&6; } | |
278a7a38 AO |
11499 | fi |
11500 | ||
5213506e | 11501 | |
278a7a38 AO |
11502 | done |
11503 | fi | |
11504 | ||
11505 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11506 | for ncn_progname in dlltool; do |
5213506e RW |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11508 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11509 | if test -x $with_build_time_tools/${ncn_progname}; then |
11510 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11512 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11513 | break |
11514 | else | |
5213506e RW |
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11516 | $as_echo "no" >&6; } | |
e8b05380 PB |
11517 | fi |
11518 | done | |
11519 | fi | |
11520 | ||
11521 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11522 | for ncn_progname in dlltool; do | |
11523 | if test -n "$ncn_target_tool_prefix"; then | |
11524 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11525 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11527 | $as_echo_n "checking for $ac_word... " >&6; } | |
11528 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11529 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11530 | else |
e8b05380 PB |
11531 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11532 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11533 | else |
1c710c3c DJ |
11534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11535 | for as_dir in $PATH | |
11536 | do | |
11537 | IFS=$as_save_IFS | |
11538 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11539 | for ac_exec_ext in '' $ac_executable_extensions; do |
11540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11541 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11543 | break 2 |
11544 | fi | |
11545 | done | |
5213506e RW |
11546 | done |
11547 | IFS=$as_save_IFS | |
1c710c3c | 11548 | |
4de997d1 PB |
11549 | fi |
11550 | fi | |
1c710c3c | 11551 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11552 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11554 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11555 | else |
5213506e RW |
11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11557 | $as_echo "no" >&6; } | |
4de997d1 | 11558 | fi |
4de997d1 | 11559 | |
5213506e | 11560 | |
e8b05380 PB |
11561 | fi |
11562 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11563 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11564 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11566 | $as_echo_n "checking for $ac_word... " >&6; } | |
11567 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11568 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11569 | else |
e8b05380 PB |
11570 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11571 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11572 | else |
1c710c3c DJ |
11573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11574 | for as_dir in $PATH | |
11575 | do | |
11576 | IFS=$as_save_IFS | |
11577 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11578 | for ac_exec_ext in '' $ac_executable_extensions; do |
11579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11580 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11582 | break 2 |
11583 | fi | |
11584 | done | |
5213506e RW |
11585 | done |
11586 | IFS=$as_save_IFS | |
1c710c3c | 11587 | |
4de997d1 PB |
11588 | fi |
11589 | fi | |
1c710c3c | 11590 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11591 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11593 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11594 | else |
5213506e RW |
11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11596 | $as_echo "no" >&6; } | |
4de997d1 | 11597 | fi |
1c710c3c | 11598 | |
5213506e | 11599 | |
e8b05380 PB |
11600 | fi |
11601 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11602 | done | |
11603 | fi | |
1c710c3c | 11604 | |
e8b05380 PB |
11605 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11606 | set dummy dlltool | |
11607 | if test $build = $target ; then | |
11608 | DLLTOOL_FOR_TARGET="$2" | |
11609 | else | |
11610 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11611 | fi | |
1c00b503 PB |
11612 | else |
11613 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11614 | fi |
11615 | ||
d1f8db0c PB |
11616 | else |
11617 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11618 | fi |
11619 | ||
4de997d1 | 11620 | |
e8b05380 PB |
11621 | |
11622 | ||
11623 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11624 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11626 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11627 | if test -x $with_build_time_tools/ld; then |
11628 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11629 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11631 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11632 | else |
5213506e RW |
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11634 | $as_echo "no" >&6; } | |
d1f8db0c | 11635 | fi |
e8b05380 PB |
11636 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11637 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11638 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11639 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11640 | fi |
e8b05380 | 11641 | fi |
3e19841a | 11642 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11643 | # Extract the first word of "ld", so it can be a program name with args. |
11644 | set dummy ld; ac_word=$2 | |
5213506e RW |
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11646 | $as_echo_n "checking for $ac_word... " >&6; } | |
11647 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11648 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11649 | else |
1c710c3c DJ |
11650 | case $LD_FOR_TARGET in |
11651 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11652 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11653 | ;; | |
e8b05380 | 11654 | *) |
1c710c3c DJ |
11655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11656 | for as_dir in $gcc_cv_tool_dirs | |
11657 | do | |
11658 | IFS=$as_save_IFS | |
11659 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11660 | for ac_exec_ext in '' $ac_executable_extensions; do |
11661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11662 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11664 | break 2 |
11665 | fi | |
11666 | done | |
5213506e RW |
11667 | done |
11668 | IFS=$as_save_IFS | |
1c710c3c | 11669 | |
e8b05380 PB |
11670 | ;; |
11671 | esac | |
4de997d1 | 11672 | fi |
1c710c3c | 11673 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11674 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11676 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11677 | else |
5213506e RW |
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11679 | $as_echo "no" >&6; } | |
4de997d1 | 11680 | fi |
2693c0b0 | 11681 | |
5213506e | 11682 | |
e8b05380 PB |
11683 | fi |
11684 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11685 | |
11686 | ||
11687 | if test -n "$LD_FOR_TARGET"; then | |
11688 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11689 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11690 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11691 | fi | |
11692 | ||
11693 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11694 | for ncn_progname in ld; do | |
11695 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11696 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11698 | $as_echo_n "checking for $ac_word... " >&6; } | |
11699 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11700 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11701 | else |
11702 | if test -n "$LD_FOR_TARGET"; then | |
11703 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11704 | else | |
11705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11706 | for as_dir in $PATH | |
11707 | do | |
11708 | IFS=$as_save_IFS | |
11709 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11710 | for ac_exec_ext in '' $ac_executable_extensions; do |
11711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11712 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11714 | break 2 |
11715 | fi | |
11716 | done | |
5213506e RW |
11717 | done |
11718 | IFS=$as_save_IFS | |
278a7a38 AO |
11719 | |
11720 | fi | |
11721 | fi | |
11722 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11723 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11725 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 11726 | else |
5213506e RW |
11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11728 | $as_echo "no" >&6; } | |
278a7a38 AO |
11729 | fi |
11730 | ||
5213506e | 11731 | |
278a7a38 AO |
11732 | done |
11733 | fi | |
11734 | ||
11735 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11736 | for ncn_progname in ld; do |
5213506e RW |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11738 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11739 | if test -x $with_build_time_tools/${ncn_progname}; then |
11740 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11742 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11743 | break |
11744 | else | |
5213506e RW |
11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11746 | $as_echo "no" >&6; } | |
e8b05380 PB |
11747 | fi |
11748 | done | |
ca9f4b81 AO |
11749 | fi |
11750 | ||
e8b05380 PB |
11751 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11752 | for ncn_progname in ld; do | |
11753 | if test -n "$ncn_target_tool_prefix"; then | |
11754 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11755 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11757 | $as_echo_n "checking for $ac_word... " >&6; } | |
11758 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11759 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11760 | else |
4de997d1 PB |
11761 | if test -n "$LD_FOR_TARGET"; then |
11762 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11763 | else |
1c710c3c DJ |
11764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11765 | for as_dir in $PATH | |
11766 | do | |
11767 | IFS=$as_save_IFS | |
11768 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11769 | for ac_exec_ext in '' $ac_executable_extensions; do |
11770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11771 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11773 | break 2 |
11774 | fi | |
11775 | done | |
5213506e RW |
11776 | done |
11777 | IFS=$as_save_IFS | |
1c710c3c | 11778 | |
ca9f4b81 AO |
11779 | fi |
11780 | fi | |
1c710c3c | 11781 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11782 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11784 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11785 | else |
5213506e RW |
11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11787 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11788 | fi |
11789 | ||
5213506e | 11790 | |
e8b05380 PB |
11791 | fi |
11792 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11793 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11794 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11796 | $as_echo_n "checking for $ac_word... " >&6; } | |
11797 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11798 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11799 | else |
2693c0b0 PB |
11800 | if test -n "$LD_FOR_TARGET"; then |
11801 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11802 | else |
1c710c3c DJ |
11803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11804 | for as_dir in $PATH | |
11805 | do | |
11806 | IFS=$as_save_IFS | |
11807 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11808 | for ac_exec_ext in '' $ac_executable_extensions; do |
11809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11810 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11812 | break 2 |
11813 | fi | |
11814 | done | |
5213506e RW |
11815 | done |
11816 | IFS=$as_save_IFS | |
1c710c3c | 11817 | |
ca9f4b81 AO |
11818 | fi |
11819 | fi | |
1c710c3c | 11820 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 11821 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11823 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11824 | else |
5213506e RW |
11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11826 | $as_echo "no" >&6; } | |
ca9f4b81 | 11827 | fi |
1c710c3c | 11828 | |
5213506e | 11829 | |
e8b05380 PB |
11830 | fi |
11831 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11832 | done | |
11833 | fi | |
1c710c3c | 11834 | |
2693c0b0 PB |
11835 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11836 | set dummy ld | |
11837 | if test $build = $target ; then | |
11838 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 11839 | else |
2693c0b0 | 11840 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11841 | fi |
1c00b503 PB |
11842 | else |
11843 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
11844 | fi |
11845 | ||
d1f8db0c PB |
11846 | else |
11847 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
11848 | fi |
11849 | ||
11850 | ||
11851 | ||
11852 | ||
11853 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11854 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11856 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11857 | if test -x $with_build_time_tools/lipo; then |
11858 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11859 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11861 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 11862 | else |
5213506e RW |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11864 | $as_echo "no" >&6; } | |
d1f8db0c | 11865 | fi |
e8b05380 PB |
11866 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11867 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
11868 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11869 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
11870 | fi |
11871 | fi | |
278a7a38 AO |
11872 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11873 | # Extract the first word of "lipo", so it can be a program name with args. | |
11874 | set dummy lipo; ac_word=$2 | |
5213506e RW |
11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11876 | $as_echo_n "checking for $ac_word... " >&6; } | |
11877 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11878 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11879 | else |
11880 | case $LIPO_FOR_TARGET in | |
11881 | [\\/]* | ?:[\\/]*) | |
11882 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11883 | ;; | |
11884 | *) | |
11885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11886 | for as_dir in $gcc_cv_tool_dirs | |
11887 | do | |
11888 | IFS=$as_save_IFS | |
11889 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11890 | for ac_exec_ext in '' $ac_executable_extensions; do |
11891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11892 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11894 | break 2 |
11895 | fi | |
11896 | done | |
5213506e RW |
11897 | done |
11898 | IFS=$as_save_IFS | |
278a7a38 AO |
11899 | |
11900 | ;; | |
11901 | esac | |
11902 | fi | |
11903 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 11904 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11906 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 11907 | else |
5213506e RW |
11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11909 | $as_echo "no" >&6; } | |
278a7a38 AO |
11910 | fi |
11911 | ||
5213506e | 11912 | |
278a7a38 AO |
11913 | fi |
11914 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11915 | ||
11916 | ||
11917 | if test -n "$LIPO_FOR_TARGET"; then | |
11918 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11919 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11920 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11921 | fi | |
11922 | ||
11923 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11924 | for ncn_progname in lipo; do | |
11925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11926 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11928 | $as_echo_n "checking for $ac_word... " >&6; } | |
11929 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11930 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11931 | else |
278a7a38 AO |
11932 | if test -n "$LIPO_FOR_TARGET"; then |
11933 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11934 | else | |
11935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11936 | for as_dir in $PATH | |
1c710c3c DJ |
11937 | do |
11938 | IFS=$as_save_IFS | |
11939 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11940 | for ac_exec_ext in '' $ac_executable_extensions; do |
11941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11942 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11944 | break 2 |
11945 | fi | |
11946 | done | |
5213506e RW |
11947 | done |
11948 | IFS=$as_save_IFS | |
1c710c3c | 11949 | |
e8b05380 | 11950 | fi |
278a7a38 AO |
11951 | fi |
11952 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 11953 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11955 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 11956 | else |
5213506e RW |
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11958 | $as_echo "no" >&6; } | |
e8b05380 PB |
11959 | fi |
11960 | ||
5213506e | 11961 | |
278a7a38 | 11962 | done |
e8b05380 | 11963 | fi |
278a7a38 AO |
11964 | |
11965 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11966 | for ncn_progname in lipo; do |
5213506e RW |
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11968 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11969 | if test -x $with_build_time_tools/${ncn_progname}; then |
11970 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11972 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11973 | break |
11974 | else | |
5213506e RW |
11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11976 | $as_echo "no" >&6; } | |
e8b05380 PB |
11977 | fi |
11978 | done | |
11979 | fi | |
11980 | ||
11981 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11982 | for ncn_progname in lipo; do | |
11983 | if test -n "$ncn_target_tool_prefix"; then | |
11984 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11985 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11987 | $as_echo_n "checking for $ac_word... " >&6; } | |
11988 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11989 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11990 | else |
11991 | if test -n "$LIPO_FOR_TARGET"; then | |
11992 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11993 | else | |
1c710c3c DJ |
11994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11995 | for as_dir in $PATH | |
11996 | do | |
11997 | IFS=$as_save_IFS | |
11998 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11999 | for ac_exec_ext in '' $ac_executable_extensions; do |
12000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12001 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12003 | break 2 |
12004 | fi | |
12005 | done | |
5213506e RW |
12006 | done |
12007 | IFS=$as_save_IFS | |
1c710c3c | 12008 | |
040b1c5a GK |
12009 | fi |
12010 | fi | |
1c710c3c | 12011 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12012 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12014 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12015 | else |
5213506e RW |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12017 | $as_echo "no" >&6; } | |
040b1c5a GK |
12018 | fi |
12019 | ||
5213506e | 12020 | |
e8b05380 PB |
12021 | fi |
12022 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12023 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12024 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12026 | $as_echo_n "checking for $ac_word... " >&6; } | |
12027 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12028 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
12029 | else |
12030 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
12031 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12032 | else | |
1c710c3c DJ |
12033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12034 | for as_dir in $PATH | |
12035 | do | |
12036 | IFS=$as_save_IFS | |
12037 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12038 | for ac_exec_ext in '' $ac_executable_extensions; do |
12039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12040 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 12041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12042 | break 2 |
12043 | fi | |
12044 | done | |
5213506e RW |
12045 | done |
12046 | IFS=$as_save_IFS | |
1c710c3c | 12047 | |
040b1c5a GK |
12048 | fi |
12049 | fi | |
1c710c3c | 12050 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12051 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12053 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12054 | else |
5213506e RW |
12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12056 | $as_echo "no" >&6; } | |
040b1c5a | 12057 | fi |
1c710c3c | 12058 | |
5213506e | 12059 | |
e8b05380 PB |
12060 | fi |
12061 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12062 | done | |
12063 | fi | |
1c710c3c | 12064 | |
040b1c5a GK |
12065 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12066 | set dummy lipo | |
12067 | if test $build = $target ; then | |
12068 | LIPO_FOR_TARGET="$2" | |
12069 | else | |
12070 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12071 | fi | |
1c00b503 PB |
12072 | else |
12073 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
12074 | fi |
12075 | ||
d1f8db0c PB |
12076 | else |
12077 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
12078 | fi |
12079 | ||
12080 | ||
12081 | ||
12082 | ||
12083 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12084 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12086 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12087 | if test -x $with_build_time_tools/nm; then |
12088 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12089 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12091 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 12092 | else |
5213506e RW |
12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12094 | $as_echo "no" >&6; } | |
d1f8db0c | 12095 | fi |
e8b05380 PB |
12096 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12097 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
12098 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12099 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
12100 | fi |
12101 | fi | |
3e19841a | 12102 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12103 | # Extract the first word of "nm", so it can be a program name with args. |
12104 | set dummy nm; ac_word=$2 | |
5213506e RW |
12105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12106 | $as_echo_n "checking for $ac_word... " >&6; } | |
12107 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12108 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12109 | else |
1c710c3c DJ |
12110 | case $NM_FOR_TARGET in |
12111 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12112 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12113 | ;; | |
e8b05380 | 12114 | *) |
1c710c3c DJ |
12115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12116 | for as_dir in $gcc_cv_tool_dirs | |
12117 | do | |
12118 | IFS=$as_save_IFS | |
12119 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12120 | for ac_exec_ext in '' $ac_executable_extensions; do |
12121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12122 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12124 | break 2 |
12125 | fi | |
12126 | done | |
5213506e RW |
12127 | done |
12128 | IFS=$as_save_IFS | |
1c710c3c | 12129 | |
e8b05380 PB |
12130 | ;; |
12131 | esac | |
12132 | fi | |
1c710c3c | 12133 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 12134 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12136 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 12137 | else |
5213506e RW |
12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12139 | $as_echo "no" >&6; } | |
e8b05380 PB |
12140 | fi |
12141 | ||
5213506e | 12142 | |
e8b05380 PB |
12143 | fi |
12144 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
12145 | |
12146 | ||
12147 | if test -n "$NM_FOR_TARGET"; then | |
12148 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12149 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12150 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12151 | fi | |
12152 | ||
12153 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12154 | for ncn_progname in nm; do | |
12155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12156 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12158 | $as_echo_n "checking for $ac_word... " >&6; } | |
12159 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12160 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12161 | else |
12162 | if test -n "$NM_FOR_TARGET"; then | |
12163 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12164 | else | |
12165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12166 | for as_dir in $PATH | |
12167 | do | |
12168 | IFS=$as_save_IFS | |
12169 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12170 | for ac_exec_ext in '' $ac_executable_extensions; do |
12171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12172 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12174 | break 2 |
12175 | fi | |
12176 | done | |
5213506e RW |
12177 | done |
12178 | IFS=$as_save_IFS | |
278a7a38 AO |
12179 | |
12180 | fi | |
12181 | fi | |
12182 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12183 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12185 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 12186 | else |
5213506e RW |
12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12188 | $as_echo "no" >&6; } | |
278a7a38 AO |
12189 | fi |
12190 | ||
5213506e | 12191 | |
278a7a38 AO |
12192 | done |
12193 | fi | |
12194 | ||
12195 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12196 | for ncn_progname in nm; do |
5213506e RW |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12198 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12199 | if test -x $with_build_time_tools/${ncn_progname}; then |
12200 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12202 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12203 | break |
12204 | else | |
5213506e RW |
12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12206 | $as_echo "no" >&6; } | |
e8b05380 PB |
12207 | fi |
12208 | done | |
12209 | fi | |
12210 | ||
12211 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12212 | for ncn_progname in nm; do | |
12213 | if test -n "$ncn_target_tool_prefix"; then | |
12214 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12215 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12217 | $as_echo_n "checking for $ac_word... " >&6; } | |
12218 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12219 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12220 | else |
4de997d1 PB |
12221 | if test -n "$NM_FOR_TARGET"; then |
12222 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12223 | else |
1c710c3c DJ |
12224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12225 | for as_dir in $PATH | |
12226 | do | |
12227 | IFS=$as_save_IFS | |
12228 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12229 | for ac_exec_ext in '' $ac_executable_extensions; do |
12230 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12231 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12233 | break 2 |
12234 | fi | |
12235 | done | |
5213506e RW |
12236 | done |
12237 | IFS=$as_save_IFS | |
1c710c3c | 12238 | |
ca9f4b81 AO |
12239 | fi |
12240 | fi | |
1c710c3c | 12241 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12242 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12244 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12245 | else |
5213506e RW |
12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12247 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12248 | fi |
12249 | ||
5213506e | 12250 | |
e8b05380 PB |
12251 | fi |
12252 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12253 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12254 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12256 | $as_echo_n "checking for $ac_word... " >&6; } | |
12257 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12258 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12259 | else |
2693c0b0 PB |
12260 | if test -n "$NM_FOR_TARGET"; then |
12261 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12262 | else |
1c710c3c DJ |
12263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12264 | for as_dir in $PATH | |
12265 | do | |
12266 | IFS=$as_save_IFS | |
12267 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12268 | for ac_exec_ext in '' $ac_executable_extensions; do |
12269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12270 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12272 | break 2 |
12273 | fi | |
12274 | done | |
5213506e RW |
12275 | done |
12276 | IFS=$as_save_IFS | |
1c710c3c | 12277 | |
ca9f4b81 AO |
12278 | fi |
12279 | fi | |
1c710c3c | 12280 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12281 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12283 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12284 | else |
5213506e RW |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12286 | $as_echo "no" >&6; } | |
ca9f4b81 | 12287 | fi |
1c710c3c | 12288 | |
5213506e | 12289 | |
e8b05380 PB |
12290 | fi |
12291 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12292 | done | |
12293 | fi | |
1c710c3c | 12294 | |
2693c0b0 PB |
12295 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12296 | set dummy nm | |
12297 | if test $build = $target ; then | |
12298 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 12299 | else |
2693c0b0 | 12300 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12301 | fi |
1c00b503 PB |
12302 | else |
12303 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
12304 | fi |
12305 | ||
d1f8db0c PB |
12306 | else |
12307 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
12308 | fi |
12309 | ||
12310 | ||
12311 | ||
12312 | ||
9bccfdf5 AP |
12313 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12314 | if test -n "$with_build_time_tools"; then | |
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12316 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12317 | if test -x $with_build_time_tools/objcopy; then | |
12318 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12319 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12321 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12322 | else | |
12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12324 | $as_echo "no" >&6; } | |
12325 | fi | |
12326 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12327 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12328 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12329 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12330 | fi | |
12331 | fi | |
12332 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12333 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12334 | set dummy objcopy; ac_word=$2 | |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12336 | $as_echo_n "checking for $ac_word... " >&6; } | |
12337 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12338 | $as_echo_n "(cached) " >&6 | |
12339 | else | |
12340 | case $OBJCOPY_FOR_TARGET in | |
12341 | [\\/]* | ?:[\\/]*) | |
12342 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12343 | ;; | |
12344 | *) | |
12345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12346 | for as_dir in $gcc_cv_tool_dirs | |
12347 | do | |
12348 | IFS=$as_save_IFS | |
12349 | test -z "$as_dir" && as_dir=. | |
12350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12352 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12354 | break 2 | |
12355 | fi | |
12356 | done | |
12357 | done | |
12358 | IFS=$as_save_IFS | |
12359 | ||
12360 | ;; | |
12361 | esac | |
12362 | fi | |
12363 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12364 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12366 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12367 | else | |
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12369 | $as_echo "no" >&6; } | |
12370 | fi | |
12371 | ||
12372 | ||
12373 | fi | |
12374 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12375 | ||
12376 | ||
12377 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12378 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12379 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12380 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12381 | fi | |
12382 | ||
12383 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12384 | for ncn_progname in objcopy; do | |
12385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12386 | set dummy ${ncn_progname}; ac_word=$2 | |
12387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12388 | $as_echo_n "checking for $ac_word... " >&6; } | |
12389 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12390 | $as_echo_n "(cached) " >&6 | |
12391 | else | |
12392 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12393 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12394 | else | |
12395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12396 | for as_dir in $PATH | |
12397 | do | |
12398 | IFS=$as_save_IFS | |
12399 | test -z "$as_dir" && as_dir=. | |
12400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12402 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12404 | break 2 | |
12405 | fi | |
12406 | done | |
12407 | done | |
12408 | IFS=$as_save_IFS | |
12409 | ||
12410 | fi | |
12411 | fi | |
12412 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12413 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12415 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12416 | else | |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12418 | $as_echo "no" >&6; } | |
12419 | fi | |
12420 | ||
12421 | ||
12422 | done | |
12423 | fi | |
12424 | ||
12425 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12426 | for ncn_progname in objcopy; do | |
12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12428 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12429 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12430 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12432 | $as_echo "yes" >&6; } | |
12433 | break | |
12434 | else | |
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12436 | $as_echo "no" >&6; } | |
12437 | fi | |
12438 | done | |
12439 | fi | |
12440 | ||
12441 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12442 | for ncn_progname in objcopy; do | |
12443 | if test -n "$ncn_target_tool_prefix"; then | |
12444 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12445 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12447 | $as_echo_n "checking for $ac_word... " >&6; } | |
12448 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12449 | $as_echo_n "(cached) " >&6 | |
12450 | else | |
12451 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12452 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12453 | else | |
12454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12455 | for as_dir in $PATH | |
12456 | do | |
12457 | IFS=$as_save_IFS | |
12458 | test -z "$as_dir" && as_dir=. | |
12459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12461 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12463 | break 2 | |
12464 | fi | |
12465 | done | |
12466 | done | |
12467 | IFS=$as_save_IFS | |
12468 | ||
12469 | fi | |
12470 | fi | |
12471 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12472 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12474 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12475 | else | |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12477 | $as_echo "no" >&6; } | |
12478 | fi | |
12479 | ||
12480 | ||
12481 | fi | |
12482 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12483 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12484 | set dummy ${ncn_progname}; ac_word=$2 | |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12486 | $as_echo_n "checking for $ac_word... " >&6; } | |
12487 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12488 | $as_echo_n "(cached) " >&6 | |
12489 | else | |
12490 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12491 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12492 | else | |
12493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12494 | for as_dir in $PATH | |
12495 | do | |
12496 | IFS=$as_save_IFS | |
12497 | test -z "$as_dir" && as_dir=. | |
12498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12500 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12502 | break 2 | |
12503 | fi | |
12504 | done | |
12505 | done | |
12506 | IFS=$as_save_IFS | |
12507 | ||
12508 | fi | |
12509 | fi | |
12510 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12511 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12513 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12514 | else | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12516 | $as_echo "no" >&6; } | |
12517 | fi | |
12518 | ||
12519 | ||
12520 | fi | |
12521 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12522 | done | |
12523 | fi | |
12524 | ||
12525 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12526 | set dummy objcopy | |
12527 | if test $build = $target ; then | |
12528 | OBJCOPY_FOR_TARGET="$2" | |
12529 | else | |
12530 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12531 | fi | |
12532 | else | |
12533 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12534 | fi | |
12535 | ||
12536 | else | |
12537 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12538 | fi | |
12539 | ||
12540 | ||
12541 | ||
12542 | ||
e8b05380 PB |
12543 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12544 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12546 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12547 | if test -x $with_build_time_tools/objdump; then |
12548 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12549 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12551 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 12552 | else |
5213506e RW |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12554 | $as_echo "no" >&6; } | |
d1f8db0c | 12555 | fi |
e8b05380 PB |
12556 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12557 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
12558 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12559 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12560 | fi |
12561 | fi | |
3e19841a | 12562 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12563 | # Extract the first word of "objdump", so it can be a program name with args. |
12564 | set dummy objdump; ac_word=$2 | |
5213506e RW |
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12566 | $as_echo_n "checking for $ac_word... " >&6; } | |
12567 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12568 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12569 | else |
1c710c3c DJ |
12570 | case $OBJDUMP_FOR_TARGET in |
12571 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12572 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12573 | ;; | |
e8b05380 | 12574 | *) |
1c710c3c DJ |
12575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12576 | for as_dir in $gcc_cv_tool_dirs | |
12577 | do | |
12578 | IFS=$as_save_IFS | |
12579 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12580 | for ac_exec_ext in '' $ac_executable_extensions; do |
12581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12582 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12584 | break 2 |
12585 | fi | |
12586 | done | |
5213506e RW |
12587 | done |
12588 | IFS=$as_save_IFS | |
1c710c3c | 12589 | |
e8b05380 PB |
12590 | ;; |
12591 | esac | |
12592 | fi | |
1c710c3c | 12593 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12594 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12596 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12597 | else |
5213506e RW |
12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12599 | $as_echo "no" >&6; } | |
e8b05380 PB |
12600 | fi |
12601 | ||
5213506e | 12602 | |
e8b05380 PB |
12603 | fi |
12604 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12605 | |
12606 | ||
12607 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12608 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12609 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12610 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12611 | fi | |
12612 | ||
12613 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12614 | for ncn_progname in objdump; do | |
12615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12616 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12618 | $as_echo_n "checking for $ac_word... " >&6; } | |
12619 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12620 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12621 | else |
12622 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12623 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12624 | else | |
12625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12626 | for as_dir in $PATH | |
12627 | do | |
12628 | IFS=$as_save_IFS | |
12629 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12630 | for ac_exec_ext in '' $ac_executable_extensions; do |
12631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12632 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12634 | break 2 |
12635 | fi | |
12636 | done | |
5213506e RW |
12637 | done |
12638 | IFS=$as_save_IFS | |
278a7a38 AO |
12639 | |
12640 | fi | |
12641 | fi | |
12642 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12643 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12645 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12646 | else |
5213506e RW |
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12648 | $as_echo "no" >&6; } | |
278a7a38 AO |
12649 | fi |
12650 | ||
5213506e | 12651 | |
278a7a38 AO |
12652 | done |
12653 | fi | |
12654 | ||
12655 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12656 | for ncn_progname in objdump; do |
5213506e RW |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12658 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12659 | if test -x $with_build_time_tools/${ncn_progname}; then |
12660 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12662 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12663 | break |
12664 | else | |
5213506e RW |
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12666 | $as_echo "no" >&6; } | |
e8b05380 PB |
12667 | fi |
12668 | done | |
12669 | fi | |
12670 | ||
12671 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12672 | for ncn_progname in objdump; do | |
12673 | if test -n "$ncn_target_tool_prefix"; then | |
12674 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12675 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12677 | $as_echo_n "checking for $ac_word... " >&6; } | |
12678 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12679 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12680 | else |
12681 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12682 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12683 | else | |
1c710c3c DJ |
12684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12685 | for as_dir in $PATH | |
12686 | do | |
12687 | IFS=$as_save_IFS | |
12688 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12689 | for ac_exec_ext in '' $ac_executable_extensions; do |
12690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12691 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12693 | break 2 |
12694 | fi | |
12695 | done | |
5213506e RW |
12696 | done |
12697 | IFS=$as_save_IFS | |
1c710c3c | 12698 | |
d739199a DJ |
12699 | fi |
12700 | fi | |
1c710c3c | 12701 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12702 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12704 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12705 | else |
5213506e RW |
12706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12707 | $as_echo "no" >&6; } | |
d739199a DJ |
12708 | fi |
12709 | ||
5213506e | 12710 | |
e8b05380 PB |
12711 | fi |
12712 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12713 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12714 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12716 | $as_echo_n "checking for $ac_word... " >&6; } | |
12717 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12718 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12719 | else |
12720 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12721 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12722 | else | |
1c710c3c DJ |
12723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12724 | for as_dir in $PATH | |
12725 | do | |
12726 | IFS=$as_save_IFS | |
12727 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12728 | for ac_exec_ext in '' $ac_executable_extensions; do |
12729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12730 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12732 | break 2 |
12733 | fi | |
12734 | done | |
5213506e RW |
12735 | done |
12736 | IFS=$as_save_IFS | |
1c710c3c | 12737 | |
d739199a DJ |
12738 | fi |
12739 | fi | |
1c710c3c | 12740 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12741 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12743 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12744 | else |
5213506e RW |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12746 | $as_echo "no" >&6; } | |
d739199a | 12747 | fi |
1c710c3c | 12748 | |
5213506e | 12749 | |
e8b05380 PB |
12750 | fi |
12751 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12752 | done | |
12753 | fi | |
1c710c3c | 12754 | |
d739199a DJ |
12755 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12756 | set dummy objdump | |
12757 | if test $build = $target ; then | |
12758 | OBJDUMP_FOR_TARGET="$2" | |
12759 | else | |
12760 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12761 | fi | |
1c00b503 PB |
12762 | else |
12763 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12764 | fi |
12765 | ||
d1f8db0c PB |
12766 | else |
12767 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12768 | fi |
12769 | ||
12770 | ||
12771 | ||
12772 | ||
12773 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12774 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12776 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12777 | if test -x $with_build_time_tools/ranlib; then |
12778 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12779 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12781 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 12782 | else |
5213506e RW |
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12784 | $as_echo "no" >&6; } | |
d1f8db0c | 12785 | fi |
e8b05380 PB |
12786 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12787 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
12788 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12789 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
12790 | fi |
12791 | fi | |
3e19841a | 12792 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12793 | # Extract the first word of "ranlib", so it can be a program name with args. |
12794 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12796 | $as_echo_n "checking for $ac_word... " >&6; } | |
12797 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12798 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12799 | else |
1c710c3c DJ |
12800 | case $RANLIB_FOR_TARGET in |
12801 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12802 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12803 | ;; | |
e8b05380 | 12804 | *) |
1c710c3c DJ |
12805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12806 | for as_dir in $gcc_cv_tool_dirs | |
12807 | do | |
12808 | IFS=$as_save_IFS | |
12809 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12810 | for ac_exec_ext in '' $ac_executable_extensions; do |
12811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12812 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12814 | break 2 |
12815 | fi | |
12816 | done | |
5213506e RW |
12817 | done |
12818 | IFS=$as_save_IFS | |
1c710c3c | 12819 | |
e8b05380 PB |
12820 | ;; |
12821 | esac | |
12822 | fi | |
1c710c3c | 12823 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 12824 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12826 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 12827 | else |
5213506e RW |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12829 | $as_echo "no" >&6; } | |
e8b05380 PB |
12830 | fi |
12831 | ||
5213506e | 12832 | |
e8b05380 PB |
12833 | fi |
12834 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
12835 | |
12836 | ||
12837 | if test -n "$RANLIB_FOR_TARGET"; then | |
12838 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12839 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12840 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12841 | fi | |
12842 | ||
12843 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12844 | for ncn_progname in ranlib; do | |
12845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12846 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12848 | $as_echo_n "checking for $ac_word... " >&6; } | |
12849 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12850 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12851 | else |
12852 | if test -n "$RANLIB_FOR_TARGET"; then | |
12853 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12854 | else | |
12855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12856 | for as_dir in $PATH | |
12857 | do | |
12858 | IFS=$as_save_IFS | |
12859 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12860 | for ac_exec_ext in '' $ac_executable_extensions; do |
12861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12862 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12864 | break 2 |
12865 | fi | |
12866 | done | |
5213506e RW |
12867 | done |
12868 | IFS=$as_save_IFS | |
278a7a38 AO |
12869 | |
12870 | fi | |
12871 | fi | |
12872 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12873 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12875 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 12876 | else |
5213506e RW |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12878 | $as_echo "no" >&6; } | |
278a7a38 AO |
12879 | fi |
12880 | ||
5213506e | 12881 | |
278a7a38 AO |
12882 | done |
12883 | fi | |
12884 | ||
12885 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12886 | for ncn_progname in ranlib; do |
5213506e RW |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12888 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12889 | if test -x $with_build_time_tools/${ncn_progname}; then |
12890 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12892 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12893 | break |
12894 | else | |
5213506e RW |
12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12896 | $as_echo "no" >&6; } | |
e8b05380 PB |
12897 | fi |
12898 | done | |
12899 | fi | |
12900 | ||
12901 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12902 | for ncn_progname in ranlib; do | |
12903 | if test -n "$ncn_target_tool_prefix"; then | |
12904 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 12905 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12907 | $as_echo_n "checking for $ac_word... " >&6; } | |
12908 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12909 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12910 | else |
4de997d1 PB |
12911 | if test -n "$RANLIB_FOR_TARGET"; then |
12912 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12913 | else |
1c710c3c DJ |
12914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12915 | for as_dir in $PATH | |
12916 | do | |
12917 | IFS=$as_save_IFS | |
12918 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12919 | for ac_exec_ext in '' $ac_executable_extensions; do |
12920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12921 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12923 | break 2 |
12924 | fi | |
12925 | done | |
5213506e RW |
12926 | done |
12927 | IFS=$as_save_IFS | |
1c710c3c | 12928 | |
ca9f4b81 AO |
12929 | fi |
12930 | fi | |
1c710c3c | 12931 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 12932 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12934 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12935 | else |
5213506e RW |
12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12937 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12938 | fi |
12939 | ||
5213506e | 12940 | |
e8b05380 PB |
12941 | fi |
12942 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12943 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12944 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12946 | $as_echo_n "checking for $ac_word... " >&6; } | |
12947 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12948 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12949 | else |
2693c0b0 PB |
12950 | if test -n "$RANLIB_FOR_TARGET"; then |
12951 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12952 | else |
1c710c3c DJ |
12953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12954 | for as_dir in $PATH | |
12955 | do | |
12956 | IFS=$as_save_IFS | |
12957 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12958 | for ac_exec_ext in '' $ac_executable_extensions; do |
12959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12960 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12962 | break 2 |
12963 | fi | |
12964 | done | |
5213506e RW |
12965 | done |
12966 | IFS=$as_save_IFS | |
1c710c3c | 12967 | |
ca9f4b81 AO |
12968 | fi |
12969 | fi | |
1c710c3c | 12970 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 12971 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12973 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12974 | else |
5213506e RW |
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12976 | $as_echo "no" >&6; } | |
ca9f4b81 | 12977 | fi |
1c710c3c | 12978 | |
5213506e | 12979 | |
e8b05380 PB |
12980 | fi |
12981 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12982 | done | |
12983 | fi | |
1c710c3c | 12984 | |
e8b05380 PB |
12985 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12986 | set dummy ranlib | |
12987 | if test $build = $target ; then | |
12988 | RANLIB_FOR_TARGET="$2" | |
12989 | else | |
12990 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 12991 | fi |
1c00b503 PB |
12992 | else |
12993 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 12994 | fi |
2693c0b0 | 12995 | |
d1f8db0c PB |
12996 | else |
12997 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
12998 | fi |
12999 | ||
e8b05380 PB |
13000 | |
13001 | ||
13002 | ||
e7a82751 RM |
13003 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13004 | if test -n "$with_build_time_tools"; then | |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13006 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13007 | if test -x $with_build_time_tools/readelf; then | |
13008 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13009 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13011 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13012 | else | |
13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13014 | $as_echo "no" >&6; } | |
13015 | fi | |
13016 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13017 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13018 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13019 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13020 | fi | |
13021 | fi | |
13022 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13023 | # Extract the first word of "readelf", so it can be a program name with args. | |
13024 | set dummy readelf; ac_word=$2 | |
13025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13026 | $as_echo_n "checking for $ac_word... " >&6; } | |
13027 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
13028 | $as_echo_n "(cached) " >&6 | |
13029 | else | |
13030 | case $READELF_FOR_TARGET in | |
13031 | [\\/]* | ?:[\\/]*) | |
13032 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13033 | ;; | |
13034 | *) | |
13035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13036 | for as_dir in $gcc_cv_tool_dirs | |
13037 | do | |
13038 | IFS=$as_save_IFS | |
13039 | test -z "$as_dir" && as_dir=. | |
13040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13042 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13044 | break 2 | |
13045 | fi | |
13046 | done | |
13047 | done | |
13048 | IFS=$as_save_IFS | |
13049 | ||
13050 | ;; | |
13051 | esac | |
13052 | fi | |
13053 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13054 | if test -n "$READELF_FOR_TARGET"; then | |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13056 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13057 | else | |
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13059 | $as_echo "no" >&6; } | |
13060 | fi | |
13061 | ||
13062 | ||
13063 | fi | |
13064 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13065 | ||
13066 | ||
13067 | if test -n "$READELF_FOR_TARGET"; then | |
13068 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13069 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13070 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13071 | fi | |
13072 | ||
13073 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13074 | for ncn_progname in readelf; do | |
13075 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13076 | set dummy ${ncn_progname}; ac_word=$2 | |
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13078 | $as_echo_n "checking for $ac_word... " >&6; } | |
13079 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13080 | $as_echo_n "(cached) " >&6 | |
13081 | else | |
13082 | if test -n "$READELF_FOR_TARGET"; then | |
13083 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13084 | else | |
13085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13086 | for as_dir in $PATH | |
13087 | do | |
13088 | IFS=$as_save_IFS | |
13089 | test -z "$as_dir" && as_dir=. | |
13090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13092 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13094 | break 2 | |
13095 | fi | |
13096 | done | |
13097 | done | |
13098 | IFS=$as_save_IFS | |
13099 | ||
13100 | fi | |
13101 | fi | |
13102 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13103 | if test -n "$READELF_FOR_TARGET"; then | |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13105 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13106 | else | |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13108 | $as_echo "no" >&6; } | |
13109 | fi | |
13110 | ||
13111 | ||
13112 | done | |
13113 | fi | |
13114 | ||
13115 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13116 | for ncn_progname in readelf; do | |
13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13118 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13119 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13120 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13122 | $as_echo "yes" >&6; } | |
13123 | break | |
13124 | else | |
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13126 | $as_echo "no" >&6; } | |
13127 | fi | |
13128 | done | |
13129 | fi | |
13130 | ||
13131 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13132 | for ncn_progname in readelf; do | |
13133 | if test -n "$ncn_target_tool_prefix"; then | |
13134 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13135 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13137 | $as_echo_n "checking for $ac_word... " >&6; } | |
13138 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13139 | $as_echo_n "(cached) " >&6 | |
13140 | else | |
13141 | if test -n "$READELF_FOR_TARGET"; then | |
13142 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13143 | else | |
13144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13145 | for as_dir in $PATH | |
13146 | do | |
13147 | IFS=$as_save_IFS | |
13148 | test -z "$as_dir" && as_dir=. | |
13149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13151 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13153 | break 2 | |
13154 | fi | |
13155 | done | |
13156 | done | |
13157 | IFS=$as_save_IFS | |
13158 | ||
13159 | fi | |
13160 | fi | |
13161 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13162 | if test -n "$READELF_FOR_TARGET"; then | |
13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13164 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13165 | else | |
13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13167 | $as_echo "no" >&6; } | |
13168 | fi | |
13169 | ||
13170 | ||
13171 | fi | |
13172 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13174 | set dummy ${ncn_progname}; ac_word=$2 | |
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13176 | $as_echo_n "checking for $ac_word... " >&6; } | |
13177 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13178 | $as_echo_n "(cached) " >&6 | |
13179 | else | |
13180 | if test -n "$READELF_FOR_TARGET"; then | |
13181 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13182 | else | |
13183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13184 | for as_dir in $PATH | |
13185 | do | |
13186 | IFS=$as_save_IFS | |
13187 | test -z "$as_dir" && as_dir=. | |
13188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13190 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13192 | break 2 | |
13193 | fi | |
13194 | done | |
13195 | done | |
13196 | IFS=$as_save_IFS | |
13197 | ||
13198 | fi | |
13199 | fi | |
13200 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13201 | if test -n "$READELF_FOR_TARGET"; then | |
13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13203 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13204 | else | |
13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13206 | $as_echo "no" >&6; } | |
13207 | fi | |
13208 | ||
13209 | ||
13210 | fi | |
13211 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13212 | done | |
13213 | fi | |
13214 | ||
13215 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13216 | set dummy readelf | |
13217 | if test $build = $target ; then | |
13218 | READELF_FOR_TARGET="$2" | |
13219 | else | |
13220 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13221 | fi | |
13222 | else | |
13223 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13224 | fi | |
13225 | ||
13226 | else | |
13227 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13228 | fi | |
13229 | ||
13230 | ||
13231 | ||
13232 | ||
e8b05380 PB |
13233 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13234 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13236 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13237 | if test -x $with_build_time_tools/strip; then |
13238 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13239 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13241 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 13242 | else |
5213506e RW |
13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13244 | $as_echo "no" >&6; } | |
d1f8db0c | 13245 | fi |
e8b05380 PB |
13246 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13247 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
13248 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13249 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
13250 | fi |
13251 | fi | |
3e19841a | 13252 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13253 | # Extract the first word of "strip", so it can be a program name with args. |
13254 | set dummy strip; ac_word=$2 | |
5213506e RW |
13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13256 | $as_echo_n "checking for $ac_word... " >&6; } | |
13257 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13258 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13259 | else |
1c710c3c DJ |
13260 | case $STRIP_FOR_TARGET in |
13261 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13262 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13263 | ;; | |
e8b05380 | 13264 | *) |
1c710c3c DJ |
13265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13266 | for as_dir in $gcc_cv_tool_dirs | |
13267 | do | |
13268 | IFS=$as_save_IFS | |
13269 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13270 | for ac_exec_ext in '' $ac_executable_extensions; do |
13271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13272 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13274 | break 2 |
13275 | fi | |
13276 | done | |
5213506e RW |
13277 | done |
13278 | IFS=$as_save_IFS | |
1c710c3c | 13279 | |
e8b05380 PB |
13280 | ;; |
13281 | esac | |
13282 | fi | |
1c710c3c | 13283 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 13284 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13286 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 13287 | else |
5213506e RW |
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13289 | $as_echo "no" >&6; } | |
e8b05380 PB |
13290 | fi |
13291 | ||
5213506e | 13292 | |
e8b05380 PB |
13293 | fi |
13294 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
13295 | |
13296 | ||
13297 | if test -n "$STRIP_FOR_TARGET"; then | |
13298 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13299 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13300 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13301 | fi | |
13302 | ||
13303 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13304 | for ncn_progname in strip; do | |
13305 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13306 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13308 | $as_echo_n "checking for $ac_word... " >&6; } | |
13309 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13310 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
13311 | else |
13312 | if test -n "$STRIP_FOR_TARGET"; then | |
13313 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13314 | else | |
13315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13316 | for as_dir in $PATH | |
13317 | do | |
13318 | IFS=$as_save_IFS | |
13319 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13320 | for ac_exec_ext in '' $ac_executable_extensions; do |
13321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 13322 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13324 | break 2 |
13325 | fi | |
13326 | done | |
5213506e RW |
13327 | done |
13328 | IFS=$as_save_IFS | |
278a7a38 AO |
13329 | |
13330 | fi | |
13331 | fi | |
13332 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13333 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13335 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 13336 | else |
5213506e RW |
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13338 | $as_echo "no" >&6; } | |
278a7a38 AO |
13339 | fi |
13340 | ||
5213506e | 13341 | |
278a7a38 AO |
13342 | done |
13343 | fi | |
13344 | ||
13345 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13346 | for ncn_progname in strip; do |
5213506e RW |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13348 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13349 | if test -x $with_build_time_tools/${ncn_progname}; then |
13350 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13352 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13353 | break |
13354 | else | |
5213506e RW |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13356 | $as_echo "no" >&6; } | |
e8b05380 PB |
13357 | fi |
13358 | done | |
13359 | fi | |
13360 | ||
13361 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13362 | for ncn_progname in strip; do | |
13363 | if test -n "$ncn_target_tool_prefix"; then | |
13364 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13365 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13367 | $as_echo_n "checking for $ac_word... " >&6; } | |
13368 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13369 | $as_echo_n "(cached) " >&6 | |
af71363e AS |
13370 | else |
13371 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
13372 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13373 | else | |
13374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13375 | for as_dir in $PATH | |
13376 | do | |
13377 | IFS=$as_save_IFS | |
13378 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13379 | for ac_exec_ext in '' $ac_executable_extensions; do |
13380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13381 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13383 | break 2 |
13384 | fi | |
13385 | done | |
5213506e RW |
13386 | done |
13387 | IFS=$as_save_IFS | |
1c710c3c | 13388 | |
040b1c5a GK |
13389 | fi |
13390 | fi | |
1c710c3c | 13391 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13392 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13394 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13395 | else |
5213506e RW |
13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13397 | $as_echo "no" >&6; } | |
040b1c5a GK |
13398 | fi |
13399 | ||
5213506e | 13400 | |
e8b05380 PB |
13401 | fi |
13402 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13403 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13404 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13406 | $as_echo_n "checking for $ac_word... " >&6; } | |
13407 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13408 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
13409 | else |
13410 | if test -n "$STRIP_FOR_TARGET"; then | |
13411 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13412 | else | |
1c710c3c DJ |
13413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13414 | for as_dir in $PATH | |
13415 | do | |
13416 | IFS=$as_save_IFS | |
13417 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13418 | for ac_exec_ext in '' $ac_executable_extensions; do |
13419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13420 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13422 | break 2 |
13423 | fi | |
13424 | done | |
5213506e RW |
13425 | done |
13426 | IFS=$as_save_IFS | |
1c710c3c | 13427 | |
040b1c5a GK |
13428 | fi |
13429 | fi | |
1c710c3c | 13430 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13431 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13433 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13434 | else |
5213506e RW |
13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13436 | $as_echo "no" >&6; } | |
040b1c5a | 13437 | fi |
1c710c3c | 13438 | |
5213506e | 13439 | |
e8b05380 PB |
13440 | fi |
13441 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13442 | done | |
13443 | fi | |
1c710c3c | 13444 | |
040b1c5a GK |
13445 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13446 | set dummy strip | |
13447 | if test $build = $target ; then | |
13448 | STRIP_FOR_TARGET="$2" | |
13449 | else | |
13450 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13451 | fi | |
1c00b503 PB |
13452 | else |
13453 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
13454 | fi |
13455 | ||
d1f8db0c PB |
13456 | else |
13457 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
13458 | fi |
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13464 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13466 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13467 | if test -x $with_build_time_tools/windres; then |
13468 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13469 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13471 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 13472 | else |
5213506e RW |
13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13474 | $as_echo "no" >&6; } | |
d1f8db0c | 13475 | fi |
e8b05380 PB |
13476 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13477 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
13478 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13479 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
13480 | fi |
13481 | fi | |
3e19841a | 13482 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13483 | # Extract the first word of "windres", so it can be a program name with args. |
13484 | set dummy windres; ac_word=$2 | |
5213506e RW |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13486 | $as_echo_n "checking for $ac_word... " >&6; } | |
13487 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13488 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13489 | else |
1c710c3c DJ |
13490 | case $WINDRES_FOR_TARGET in |
13491 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13492 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13493 | ;; | |
e8b05380 | 13494 | *) |
1c710c3c DJ |
13495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13496 | for as_dir in $gcc_cv_tool_dirs | |
13497 | do | |
13498 | IFS=$as_save_IFS | |
13499 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13500 | for ac_exec_ext in '' $ac_executable_extensions; do |
13501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13502 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13504 | break 2 |
13505 | fi | |
13506 | done | |
5213506e RW |
13507 | done |
13508 | IFS=$as_save_IFS | |
1c710c3c | 13509 | |
e8b05380 PB |
13510 | ;; |
13511 | esac | |
13512 | fi | |
1c710c3c | 13513 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 13514 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13516 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 13517 | else |
5213506e RW |
13518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13519 | $as_echo "no" >&6; } | |
e8b05380 PB |
13520 | fi |
13521 | ||
5213506e | 13522 | |
e8b05380 PB |
13523 | fi |
13524 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
13525 | |
13526 | ||
13527 | if test -n "$WINDRES_FOR_TARGET"; then | |
13528 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13529 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13530 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13531 | fi | |
13532 | ||
13533 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13534 | for ncn_progname in windres; do | |
13535 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13536 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13538 | $as_echo_n "checking for $ac_word... " >&6; } | |
13539 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13540 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
13541 | else |
13542 | if test -n "$WINDRES_FOR_TARGET"; then | |
13543 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13544 | else | |
13545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13546 | for as_dir in $PATH | |
13547 | do | |
13548 | IFS=$as_save_IFS | |
13549 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13550 | for ac_exec_ext in '' $ac_executable_extensions; do |
13551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 13552 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13554 | break 2 |
13555 | fi | |
13556 | done | |
5213506e RW |
13557 | done |
13558 | IFS=$as_save_IFS | |
278a7a38 AO |
13559 | |
13560 | fi | |
13561 | fi | |
13562 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13563 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13565 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 13566 | else |
5213506e RW |
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13568 | $as_echo "no" >&6; } | |
278a7a38 AO |
13569 | fi |
13570 | ||
5213506e | 13571 | |
278a7a38 AO |
13572 | done |
13573 | fi | |
13574 | ||
13575 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13576 | for ncn_progname in windres; do |
5213506e RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13578 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13579 | if test -x $with_build_time_tools/${ncn_progname}; then |
13580 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13582 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13583 | break |
13584 | else | |
5213506e RW |
13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13586 | $as_echo "no" >&6; } | |
e8b05380 PB |
13587 | fi |
13588 | done | |
13589 | fi | |
13590 | ||
13591 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13592 | for ncn_progname in windres; do | |
13593 | if test -n "$ncn_target_tool_prefix"; then | |
13594 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13595 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13597 | $as_echo_n "checking for $ac_word... " >&6; } | |
13598 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13599 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13600 | else |
4de997d1 PB |
13601 | if test -n "$WINDRES_FOR_TARGET"; then |
13602 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13603 | else |
1c710c3c DJ |
13604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13605 | for as_dir in $PATH | |
13606 | do | |
13607 | IFS=$as_save_IFS | |
13608 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13609 | for ac_exec_ext in '' $ac_executable_extensions; do |
13610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13611 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13613 | break 2 |
13614 | fi | |
13615 | done | |
5213506e RW |
13616 | done |
13617 | IFS=$as_save_IFS | |
1c710c3c | 13618 | |
ca9f4b81 AO |
13619 | fi |
13620 | fi | |
1c710c3c | 13621 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 13622 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13624 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13625 | else |
5213506e RW |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13627 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13628 | fi |
13629 | ||
5213506e | 13630 | |
e8b05380 PB |
13631 | fi |
13632 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13633 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13634 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13636 | $as_echo_n "checking for $ac_word... " >&6; } | |
13637 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13638 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13639 | else |
2693c0b0 PB |
13640 | if test -n "$WINDRES_FOR_TARGET"; then |
13641 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13642 | else |
1c710c3c DJ |
13643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13644 | for as_dir in $PATH | |
13645 | do | |
13646 | IFS=$as_save_IFS | |
13647 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13648 | for ac_exec_ext in '' $ac_executable_extensions; do |
13649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13650 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13652 | break 2 |
13653 | fi | |
13654 | done | |
5213506e RW |
13655 | done |
13656 | IFS=$as_save_IFS | |
1c710c3c | 13657 | |
ca9f4b81 AO |
13658 | fi |
13659 | fi | |
1c710c3c | 13660 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 13661 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13663 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13664 | else |
5213506e RW |
13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13666 | $as_echo "no" >&6; } | |
ca9f4b81 | 13667 | fi |
1c710c3c | 13668 | |
5213506e | 13669 | |
e8b05380 PB |
13670 | fi |
13671 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13672 | done | |
13673 | fi | |
1c710c3c | 13674 | |
2693c0b0 PB |
13675 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13676 | set dummy windres | |
13677 | if test $build = $target ; then | |
13678 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 13679 | else |
2693c0b0 | 13680 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13681 | fi |
1c00b503 PB |
13682 | else |
13683 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
13684 | fi |
13685 | ||
d1f8db0c PB |
13686 | else |
13687 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
13688 | fi |
13689 | ||
4977bab6 | 13690 | |
901119ae KT |
13691 | |
13692 | ||
13693 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13694 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13696 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
13697 | if test -x $with_build_time_tools/windmc; then |
13698 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13699 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13701 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13702 | else |
5213506e RW |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13704 | $as_echo "no" >&6; } | |
901119ae KT |
13705 | fi |
13706 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13707 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
13708 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13709 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
13710 | fi |
13711 | fi | |
13712 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13713 | # Extract the first word of "windmc", so it can be a program name with args. | |
13714 | set dummy windmc; ac_word=$2 | |
5213506e RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13716 | $as_echo_n "checking for $ac_word... " >&6; } | |
13717 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13718 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13719 | else |
13720 | case $WINDMC_FOR_TARGET in | |
13721 | [\\/]* | ?:[\\/]*) | |
13722 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13723 | ;; | |
13724 | *) | |
13725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13726 | for as_dir in $gcc_cv_tool_dirs | |
13727 | do | |
13728 | IFS=$as_save_IFS | |
13729 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13730 | for ac_exec_ext in '' $ac_executable_extensions; do |
13731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13732 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13734 | break 2 |
13735 | fi | |
13736 | done | |
5213506e RW |
13737 | done |
13738 | IFS=$as_save_IFS | |
901119ae KT |
13739 | |
13740 | ;; | |
13741 | esac | |
13742 | fi | |
13743 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 13744 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13746 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13747 | else |
5213506e RW |
13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13749 | $as_echo "no" >&6; } | |
901119ae KT |
13750 | fi |
13751 | ||
5213506e | 13752 | |
901119ae KT |
13753 | fi |
13754 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13755 | ||
13756 | ||
13757 | if test -n "$WINDMC_FOR_TARGET"; then | |
13758 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13759 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13760 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13761 | fi | |
13762 | ||
13763 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13764 | for ncn_progname in windmc; do | |
13765 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13766 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13768 | $as_echo_n "checking for $ac_word... " >&6; } | |
13769 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13770 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13771 | else |
13772 | if test -n "$WINDMC_FOR_TARGET"; then | |
13773 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13774 | else | |
13775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13776 | for as_dir in $PATH | |
13777 | do | |
13778 | IFS=$as_save_IFS | |
13779 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13780 | for ac_exec_ext in '' $ac_executable_extensions; do |
13781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13782 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13784 | break 2 |
13785 | fi | |
13786 | done | |
5213506e RW |
13787 | done |
13788 | IFS=$as_save_IFS | |
901119ae KT |
13789 | |
13790 | fi | |
13791 | fi | |
13792 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13793 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13795 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13796 | else |
5213506e RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13798 | $as_echo "no" >&6; } | |
901119ae KT |
13799 | fi |
13800 | ||
5213506e | 13801 | |
901119ae KT |
13802 | done |
13803 | fi | |
13804 | ||
13805 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13806 | for ncn_progname in windmc; do | |
5213506e RW |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13808 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
13809 | if test -x $with_build_time_tools/${ncn_progname}; then |
13810 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13812 | $as_echo "yes" >&6; } | |
901119ae KT |
13813 | break |
13814 | else | |
5213506e RW |
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13816 | $as_echo "no" >&6; } | |
901119ae KT |
13817 | fi |
13818 | done | |
13819 | fi | |
13820 | ||
13821 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13822 | for ncn_progname in windmc; do | |
13823 | if test -n "$ncn_target_tool_prefix"; then | |
13824 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13825 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13827 | $as_echo_n "checking for $ac_word... " >&6; } | |
13828 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13829 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13830 | else |
13831 | if test -n "$WINDMC_FOR_TARGET"; then | |
13832 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13833 | else | |
13834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13835 | for as_dir in $PATH | |
13836 | do | |
13837 | IFS=$as_save_IFS | |
13838 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13839 | for ac_exec_ext in '' $ac_executable_extensions; do |
13840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13841 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13843 | break 2 |
13844 | fi | |
13845 | done | |
5213506e RW |
13846 | done |
13847 | IFS=$as_save_IFS | |
901119ae KT |
13848 | |
13849 | fi | |
13850 | fi | |
13851 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13852 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13854 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13855 | else |
5213506e RW |
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13857 | $as_echo "no" >&6; } | |
901119ae KT |
13858 | fi |
13859 | ||
5213506e | 13860 | |
901119ae KT |
13861 | fi |
13862 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13863 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13864 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13866 | $as_echo_n "checking for $ac_word... " >&6; } | |
13867 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13868 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13869 | else |
13870 | if test -n "$WINDMC_FOR_TARGET"; then | |
13871 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13872 | else | |
13873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13874 | for as_dir in $PATH | |
13875 | do | |
13876 | IFS=$as_save_IFS | |
13877 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13878 | for ac_exec_ext in '' $ac_executable_extensions; do |
13879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13880 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13882 | break 2 |
13883 | fi | |
13884 | done | |
5213506e RW |
13885 | done |
13886 | IFS=$as_save_IFS | |
901119ae KT |
13887 | |
13888 | fi | |
13889 | fi | |
13890 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13891 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13893 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13894 | else |
5213506e RW |
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13896 | $as_echo "no" >&6; } | |
901119ae KT |
13897 | fi |
13898 | ||
5213506e | 13899 | |
901119ae KT |
13900 | fi |
13901 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13902 | done | |
13903 | fi | |
13904 | ||
13905 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13906 | set dummy windmc | |
13907 | if test $build = $target ; then | |
13908 | WINDMC_FOR_TARGET="$2" | |
13909 | else | |
13910 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13911 | fi | |
1c00b503 PB |
13912 | else |
13913 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
13914 | fi |
13915 | ||
13916 | else | |
13917 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13918 | fi | |
13919 | ||
13920 | ||
2abefe3d PB |
13921 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13922 | ||
5213506e RW |
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13924 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 13925 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13926 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13927 | # We already found the complete path | |
172e41aa | 13928 | ac_dir=`dirname $AR_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; } | |
e8b05380 PB |
13931 | else |
13932 | # Canadian cross, just use what we found | |
5213506e RW |
13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13934 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13935 | fi |
2abefe3d PB |
13936 | else |
13937 | ok=yes | |
13938 | case " ${configdirs} " in | |
13939 | *" binutils "*) ;; | |
13940 | *) ok=no ;; | |
13941 | esac | |
1c710c3c | 13942 | |
2abefe3d PB |
13943 | if test $ok = yes; then |
13944 | # An in-tree tool is available and we can use it | |
13945 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13947 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13948 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13949 | # We already found the complete path | |
172e41aa | 13950 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13952 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13953 | elif test "x$target" = "x$host"; then |
13954 | # We can use an host tool | |
13955 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13957 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13958 | else |
13959 | # We need a cross tool | |
5213506e RW |
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13961 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13962 | fi |
13963 | fi | |
0b0dc272 | 13964 | |
5213506e RW |
13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13966 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 13967 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13968 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13969 | # We already found the complete path | |
172e41aa | 13970 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13972 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13973 | else |
13974 | # Canadian cross, just use what we found | |
5213506e RW |
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13976 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13977 | fi |
2abefe3d PB |
13978 | else |
13979 | ok=yes | |
13980 | case " ${configdirs} " in | |
13981 | *" gas "*) ;; | |
13982 | *) ok=no ;; | |
13983 | esac | |
1c710c3c | 13984 | |
2abefe3d PB |
13985 | if test $ok = yes; then |
13986 | # An in-tree tool is available and we can use it | |
13987 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13989 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13990 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13991 | # We already found the complete path | |
172e41aa | 13992 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13994 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13995 | elif test "x$target" = "x$host"; then |
13996 | # We can use an host tool | |
13997 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13999 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14000 | else |
14001 | # We need a cross tool | |
5213506e RW |
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14003 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14004 | fi |
14005 | fi | |
0b0dc272 | 14006 | |
5213506e RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14008 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 14009 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14010 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14011 | # We already found the complete path | |
172e41aa | 14012 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14014 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14015 | else |
14016 | # Canadian cross, just use what we found | |
5213506e RW |
14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14018 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14019 | fi |
2abefe3d PB |
14020 | else |
14021 | ok=yes | |
14022 | case " ${configdirs} " in | |
14023 | *" gcc "*) ;; | |
14024 | *) ok=no ;; | |
14025 | esac | |
1c710c3c | 14026 | |
2abefe3d PB |
14027 | if test $ok = yes; then |
14028 | # An in-tree tool is available and we can use it | |
14029 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14031 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14032 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14033 | # We already found the complete path | |
172e41aa | 14034 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14036 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14037 | elif test "x$target" = "x$host"; then |
14038 | # We can use an host tool | |
14039 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14041 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14042 | else |
14043 | # We need a cross tool | |
5213506e RW |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14045 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14046 | fi |
14047 | fi | |
0b0dc272 | 14048 | |
5213506e RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14050 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 14051 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14052 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14053 | # We already found the complete path | |
172e41aa | 14054 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14056 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14057 | else |
14058 | # Canadian cross, just use what we found | |
5213506e RW |
14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14060 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14061 | fi |
2abefe3d PB |
14062 | else |
14063 | ok=yes | |
14064 | case " ${configdirs} " in | |
14065 | *" gcc "*) ;; | |
14066 | *) ok=no ;; | |
14067 | esac | |
14068 | case ,${enable_languages}, in | |
14069 | *,c++,*) ;; | |
14070 | *) ok=no ;; | |
14071 | esac | |
14072 | if test $ok = yes; then | |
14073 | # An in-tree tool is available and we can use it | |
2077db1b | 14074 | 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 |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14076 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14077 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14078 | # We already found the complete path | |
172e41aa | 14079 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14081 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14082 | elif test "x$target" = "x$host"; then |
14083 | # We can use an host tool | |
14084 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14086 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14087 | else |
14088 | # We need a cross tool | |
5213506e RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14090 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14091 | fi |
14092 | fi | |
0b0dc272 | 14093 | |
5213506e RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14095 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 14096 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14097 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14098 | # We already found the complete path | |
172e41aa | 14099 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14101 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14102 | else |
14103 | # Canadian cross, just use what we found | |
5213506e RW |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14105 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14106 | fi |
2abefe3d PB |
14107 | else |
14108 | ok=yes | |
14109 | case " ${configdirs} " in | |
14110 | *" gcc "*) ;; | |
14111 | *) ok=no ;; | |
14112 | esac | |
14113 | case ,${enable_languages}, in | |
14114 | *,c++,*) ;; | |
14115 | *) ok=no ;; | |
14116 | esac | |
14117 | if test $ok = yes; then | |
14118 | # An in-tree tool is available and we can use it | |
2077db1b | 14119 | 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 |
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14121 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14122 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14123 | # We already found the complete path | |
172e41aa | 14124 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14126 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14127 | elif test "x$target" = "x$host"; then |
14128 | # We can use an host tool | |
14129 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14131 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14132 | else |
14133 | # We need a cross tool | |
5213506e RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14135 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14136 | fi |
14137 | fi | |
0b0dc272 | 14138 | |
5213506e RW |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14140 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 14141 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14142 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14143 | # We already found the complete path | |
172e41aa | 14144 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14146 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14147 | else |
14148 | # Canadian cross, just use what we found | |
5213506e RW |
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14150 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14151 | fi |
2abefe3d PB |
14152 | else |
14153 | ok=yes | |
14154 | case " ${configdirs} " in | |
14155 | *" binutils "*) ;; | |
14156 | *) ok=no ;; | |
14157 | esac | |
1c710c3c | 14158 | |
2abefe3d PB |
14159 | if test $ok = yes; then |
14160 | # An in-tree tool is available and we can use it | |
14161 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14163 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14164 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14165 | # We already found the complete path | |
172e41aa | 14166 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14168 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14169 | elif test "x$target" = "x$host"; then |
14170 | # We can use an host tool | |
14171 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14173 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14174 | else |
14175 | # We need a cross tool | |
5213506e RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14177 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14178 | fi |
14179 | fi | |
0b0dc272 | 14180 | |
5213506e RW |
14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14182 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 14183 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14184 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14185 | # We already found the complete path | |
172e41aa | 14186 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14188 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14189 | else |
14190 | # Canadian cross, just use what we found | |
5213506e RW |
14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14192 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14193 | fi |
2abefe3d PB |
14194 | else |
14195 | ok=yes | |
14196 | case " ${configdirs} " in | |
14197 | *" gcc "*) ;; | |
14198 | *) ok=no ;; | |
14199 | esac | |
1c710c3c | 14200 | |
2abefe3d PB |
14201 | if test $ok = yes; then |
14202 | # An in-tree tool is available and we can use it | |
14203 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14205 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14206 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14207 | # We already found the complete path | |
172e41aa | 14208 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14210 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14211 | elif test "x$target" = "x$host"; then |
14212 | # We can use an host tool | |
14213 | GCC_FOR_TARGET='$()' | |
5213506e RW |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14215 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14216 | else |
14217 | # We need a cross tool | |
5213506e RW |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14219 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14220 | fi |
14221 | fi | |
0b0dc272 | 14222 | |
5213506e RW |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14224 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
2abefe3d | 14225 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14226 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14227 | # We already found the complete path | |
172e41aa | 14228 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14230 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14231 | else |
14232 | # Canadian cross, just use what we found | |
5213506e RW |
14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14234 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14235 | fi |
2abefe3d PB |
14236 | else |
14237 | ok=yes | |
14238 | case " ${configdirs} " in | |
14239 | *" gcc "*) ;; | |
14240 | *) ok=no ;; | |
14241 | esac | |
14242 | case ,${enable_languages}, in | |
14243 | *,java,*) ;; | |
14244 | *) ok=no ;; | |
14245 | esac | |
14246 | if test $ok = yes; then | |
14247 | # An in-tree tool is available and we can use it | |
14248 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14250 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14251 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14252 | # We already found the complete path | |
172e41aa | 14253 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14255 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14256 | elif test "x$target" = "x$host"; then |
14257 | # We can use an host tool | |
14258 | GCJ_FOR_TARGET='$(GCJ)' | |
5213506e RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14260 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14261 | else |
14262 | # We need a cross tool | |
5213506e RW |
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14264 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14265 | fi |
14266 | fi | |
0b0dc272 | 14267 | |
5213506e RW |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14269 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 14270 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14271 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14272 | # We already found the complete path | |
172e41aa | 14273 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14275 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14276 | else |
14277 | # Canadian cross, just use what we found | |
5213506e RW |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14279 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14280 | fi |
2abefe3d PB |
14281 | else |
14282 | ok=yes | |
14283 | case " ${configdirs} " in | |
14284 | *" gcc "*) ;; | |
14285 | *) ok=no ;; | |
14286 | esac | |
14287 | case ,${enable_languages}, in | |
14288 | *,fortran,*) ;; | |
14289 | *) ok=no ;; | |
14290 | esac | |
14291 | if test $ok = yes; then | |
14292 | # An in-tree tool is available and we can use it | |
14293 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
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$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14297 | # We already found the complete path | |
172e41aa | 14298 | ac_dir=`dirname $GFORTRAN_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 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
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 PB |
14310 | fi |
14311 | fi | |
0b0dc272 | 14312 | |
632e2a07 ILT |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14314 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14315 | if test "x${build}" != "x${host}" ; then | |
14316 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14317 | # We already found the complete path | |
14318 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14320 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14321 | else | |
14322 | # Canadian cross, just use what we found | |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14324 | $as_echo "pre-installed" >&6; } | |
14325 | fi | |
14326 | else | |
14327 | ok=yes | |
14328 | case " ${configdirs} " in | |
14329 | *" gcc "*) ;; | |
14330 | *) ok=no ;; | |
14331 | esac | |
14332 | case ,${enable_languages}, in | |
14333 | *,go,*) ;; | |
14334 | *) ok=no ;; | |
14335 | esac | |
14336 | if test $ok = yes; then | |
14337 | # An in-tree tool is available and we can use it | |
14338 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14340 | $as_echo "just compiled" >&6; } | |
14341 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14342 | # We already found the complete path | |
14343 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14345 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14346 | elif test "x$target" = "x$host"; then | |
14347 | # We can use an host tool | |
14348 | GOC_FOR_TARGET='$(GOC)' | |
14349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14350 | $as_echo "host tool" >&6; } | |
14351 | else | |
14352 | # We need a cross tool | |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14354 | $as_echo "pre-installed" >&6; } | |
14355 | fi | |
14356 | fi | |
14357 | ||
5213506e RW |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14359 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 14360 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14361 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14362 | # We already found the complete path | |
172e41aa | 14363 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14365 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14366 | else |
14367 | # Canadian cross, just use what we found | |
5213506e RW |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14369 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14370 | fi |
2abefe3d PB |
14371 | else |
14372 | ok=yes | |
14373 | case " ${configdirs} " in | |
14374 | *" ld "*) ;; | |
14375 | *) ok=no ;; | |
14376 | esac | |
1c710c3c | 14377 | |
2abefe3d PB |
14378 | if test $ok = yes; then |
14379 | # An in-tree tool is available and we can use it | |
14380 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14382 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14383 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14384 | # We already found the complete path | |
172e41aa | 14385 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14387 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14388 | elif test "x$target" = "x$host"; then |
14389 | # We can use an host tool | |
14390 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
14391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14392 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14393 | else |
14394 | # We need a cross tool | |
5213506e RW |
14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14396 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14397 | fi |
14398 | fi | |
0b0dc272 | 14399 | |
5213506e RW |
14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14401 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 14402 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14403 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14404 | # We already found the complete path | |
172e41aa | 14405 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14407 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14408 | else |
14409 | # Canadian cross, just use what we found | |
5213506e RW |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14411 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14412 | fi |
2abefe3d | 14413 | else |
e8b05380 PB |
14414 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14415 | # We already found the complete path | |
172e41aa | 14416 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14418 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 14419 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
14420 | # We can use an host tool |
14421 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14423 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14424 | else |
14425 | # We need a cross tool | |
5213506e RW |
14426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14427 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14428 | fi |
14429 | fi | |
0b0dc272 | 14430 | |
5213506e RW |
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14432 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 14433 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14434 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14435 | # We already found the complete path | |
172e41aa | 14436 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14438 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14439 | else |
14440 | # Canadian cross, just use what we found | |
5213506e RW |
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14442 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14443 | fi |
2abefe3d PB |
14444 | else |
14445 | ok=yes | |
14446 | case " ${configdirs} " in | |
14447 | *" binutils "*) ;; | |
14448 | *) ok=no ;; | |
14449 | esac | |
1c710c3c | 14450 | |
2abefe3d PB |
14451 | if test $ok = yes; then |
14452 | # An in-tree tool is available and we can use it | |
14453 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14455 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14456 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14457 | # We already found the complete path | |
172e41aa | 14458 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14460 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14461 | elif test "x$target" = "x$host"; then |
14462 | # We can use an host tool | |
14463 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14465 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14466 | else |
14467 | # We need a cross tool | |
5213506e RW |
14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14469 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14470 | fi |
14471 | fi | |
0b0dc272 | 14472 | |
9bccfdf5 AP |
14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14474 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14475 | if test "x${build}" != "x${host}" ; then | |
14476 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14477 | # We already found the complete path | |
14478 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14480 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14481 | else | |
14482 | # Canadian cross, just use what we found | |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14484 | $as_echo "pre-installed" >&6; } | |
14485 | fi | |
14486 | else | |
14487 | ok=yes | |
14488 | case " ${configdirs} " in | |
14489 | *" binutils "*) ;; | |
14490 | *) ok=no ;; | |
14491 | esac | |
14492 | ||
14493 | if test $ok = yes; then | |
14494 | # An in-tree tool is available and we can use it | |
14495 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14497 | $as_echo "just compiled" >&6; } | |
14498 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14499 | # We already found the complete path | |
14500 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14502 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14503 | elif test "x$target" = "x$host"; then | |
14504 | # We can use an host tool | |
ec8fd1c0 | 14505 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14507 | $as_echo "host tool" >&6; } | |
14508 | else | |
14509 | # We need a cross tool | |
14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14511 | $as_echo "pre-installed" >&6; } | |
14512 | fi | |
14513 | fi | |
14514 | ||
5213506e RW |
14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14516 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 14517 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14518 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14519 | # We already found the complete path | |
172e41aa | 14520 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14522 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14523 | else |
14524 | # Canadian cross, just use what we found | |
5213506e RW |
14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14526 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14527 | fi |
2abefe3d PB |
14528 | else |
14529 | ok=yes | |
14530 | case " ${configdirs} " in | |
14531 | *" binutils "*) ;; | |
14532 | *) ok=no ;; | |
14533 | esac | |
1c710c3c | 14534 | |
2abefe3d PB |
14535 | if test $ok = yes; then |
14536 | # An in-tree tool is available and we can use it | |
14537 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14539 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14540 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14541 | # We already found the complete path | |
172e41aa | 14542 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14544 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14545 | elif test "x$target" = "x$host"; then |
14546 | # We can use an host tool | |
14547 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14549 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14550 | else |
14551 | # We need a cross tool | |
5213506e RW |
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14553 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14554 | fi |
14555 | fi | |
0b0dc272 | 14556 | |
5213506e RW |
14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14558 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 14559 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14560 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14561 | # We already found the complete path | |
172e41aa | 14562 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14564 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14565 | else |
14566 | # Canadian cross, just use what we found | |
5213506e RW |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14568 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14569 | fi |
2abefe3d PB |
14570 | else |
14571 | ok=yes | |
14572 | case " ${configdirs} " in | |
14573 | *" binutils "*) ;; | |
14574 | *) ok=no ;; | |
14575 | esac | |
1c710c3c | 14576 | |
2abefe3d PB |
14577 | if test $ok = yes; then |
14578 | # An in-tree tool is available and we can use it | |
14579 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14581 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14582 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14583 | # We already found the complete path | |
172e41aa | 14584 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14586 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14587 | elif test "x$target" = "x$host"; then |
14588 | # We can use an host tool | |
14589 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
14590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14591 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14592 | else |
14593 | # We need a cross tool | |
5213506e RW |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14595 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14596 | fi |
14597 | fi | |
0b0dc272 | 14598 | |
e7a82751 RM |
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14600 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14601 | if test "x${build}" != "x${host}" ; then | |
14602 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14603 | # We already found the complete path | |
14604 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14606 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14607 | else | |
14608 | # Canadian cross, just use what we found | |
14609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14610 | $as_echo "pre-installed" >&6; } | |
14611 | fi | |
14612 | else | |
14613 | ok=yes | |
14614 | case " ${configdirs} " in | |
14615 | *" binutils "*) ;; | |
14616 | *) ok=no ;; | |
14617 | esac | |
14618 | ||
14619 | if test $ok = yes; then | |
14620 | # An in-tree tool is available and we can use it | |
14621 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14623 | $as_echo "just compiled" >&6; } | |
14624 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14625 | # We already found the complete path | |
14626 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14628 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14629 | elif test "x$target" = "x$host"; then | |
14630 | # We can use an host tool | |
14631 | READELF_FOR_TARGET='$(READELF)' | |
14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14633 | $as_echo "host tool" >&6; } | |
14634 | else | |
14635 | # We need a cross tool | |
14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14637 | $as_echo "pre-installed" >&6; } | |
14638 | fi | |
14639 | fi | |
14640 | ||
5213506e RW |
14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14642 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 14643 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14644 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14645 | # We already found the complete path | |
172e41aa | 14646 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14648 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14649 | else |
14650 | # Canadian cross, just use what we found | |
5213506e RW |
14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14652 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14653 | fi |
2abefe3d PB |
14654 | else |
14655 | ok=yes | |
14656 | case " ${configdirs} " in | |
14657 | *" binutils "*) ;; | |
14658 | *) ok=no ;; | |
14659 | esac | |
1c710c3c | 14660 | |
2abefe3d PB |
14661 | if test $ok = yes; then |
14662 | # An in-tree tool is available and we can use it | |
455c8f48 | 14663 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14665 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14666 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14667 | # We already found the complete path | |
172e41aa | 14668 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14670 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14671 | elif test "x$target" = "x$host"; then |
14672 | # We can use an host tool | |
14673 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
14674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14675 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14676 | else |
14677 | # We need a cross tool | |
5213506e RW |
14678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14679 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14680 | fi |
14681 | fi | |
0b0dc272 | 14682 | |
5213506e RW |
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14684 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 14685 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14686 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14687 | # We already found the complete path | |
172e41aa | 14688 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14690 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14691 | else |
14692 | # Canadian cross, just use what we found | |
5213506e RW |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14694 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14695 | fi |
2abefe3d PB |
14696 | else |
14697 | ok=yes | |
14698 | case " ${configdirs} " in | |
14699 | *" binutils "*) ;; | |
14700 | *) ok=no ;; | |
14701 | esac | |
1c710c3c | 14702 | |
2abefe3d PB |
14703 | if test $ok = yes; then |
14704 | # An in-tree tool is available and we can use it | |
14705 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14707 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14708 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14709 | # We already found the complete path | |
172e41aa | 14710 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14712 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14713 | elif test "x$target" = "x$host"; then |
14714 | # We can use an host tool | |
14715 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14717 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14718 | else |
14719 | # We need a cross tool | |
5213506e RW |
14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14721 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 14722 | fi |
671aa708 | 14723 | fi |
be912515 | 14724 | |
5213506e RW |
14725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14726 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
14727 | if test "x${build}" != "x${host}" ; then |
14728 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14729 | # We already found the complete path | |
14730 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14732 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14733 | else |
14734 | # Canadian cross, just use what we found | |
5213506e RW |
14735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14736 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14737 | fi |
14738 | else | |
14739 | ok=yes | |
14740 | case " ${configdirs} " in | |
14741 | *" binutils "*) ;; | |
14742 | *) ok=no ;; | |
14743 | esac | |
14744 | ||
14745 | if test $ok = yes; then | |
14746 | # An in-tree tool is available and we can use it | |
14747 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14749 | $as_echo "just compiled" >&6; } | |
901119ae KT |
14750 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14751 | # We already found the complete path | |
14752 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14754 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14755 | elif test "x$target" = "x$host"; then |
14756 | # We can use an host tool | |
14757 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14759 | $as_echo "host tool" >&6; } | |
901119ae KT |
14760 | else |
14761 | # We need a cross tool | |
5213506e RW |
14762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14763 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14764 | fi |
14765 | fi | |
14766 | ||
be912515 NN |
14767 | |
14768 | ||
2abefe3d | 14769 | |
0b0dc272 | 14770 | |
671aa708 NN |
14771 | # Certain tools may need extra flags. |
14772 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14773 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14774 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14775 | ||
2abefe3d PB |
14776 | # When building target libraries, except in a Canadian cross, we use |
14777 | # the same toolchain as the compiler we just built. | |
14778 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14779 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14780 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14781 | if test $host = $build; then | |
14782 | case " $configdirs " in | |
14783 | *" gcc "*) | |
14784 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14785 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14786 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14787 | ;; | |
14788 | esac | |
14789 | fi | |
14790 | ||
14791 | ||
14792 | ||
14793 | ||
14794 | ||
5213506e RW |
14795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14796 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14797 | # Check whether --enable-maintainer-mode was given. | |
14798 | if test "${enable_maintainer_mode+set}" = set; then : | |
14799 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
14800 | else |
14801 | USE_MAINTAINER_MODE=no | |
5213506e RW |
14802 | fi |
14803 | ||
14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14805 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
14806 | |
14807 | ||
14808 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14809 | MAINTAINER_MODE_TRUE= | |
14810 | MAINTAINER_MODE_FALSE='#' | |
14811 | else | |
14812 | MAINTAINER_MODE_TRUE='#' | |
14813 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 14814 | fi |
ee03dc5e AO |
14815 | MAINT=$MAINTAINER_MODE_TRUE |
14816 | ||
2805b53a NN |
14817 | # --------------------- |
14818 | # GCC bootstrap support | |
14819 | # --------------------- | |
14820 | ||
14821 | # Stage specific cflags for build. | |
14822 | stage1_cflags="-g" | |
14823 | case $build in | |
14824 | vax-*-*) | |
14825 | case ${GCC} in | |
14826 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14827 | *) stage1_cflags="-g -J" ;; | |
14828 | esac ;; | |
2805b53a NN |
14829 | esac |
14830 | ||
0b50988a | 14831 | |
2805b53a | 14832 | |
8efea775 | 14833 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
14834 | # Check whether --enable-stage1-checking was given. |
14835 | if test "${enable_stage1_checking+set}" = set; then : | |
14836 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 14837 | else |
e643dc23 | 14838 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
14839 | # For --disable-checking or implicit --enable-checking=release, avoid |
14840 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14841 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
14842 | case $BUILD_CONFIG in |
14843 | *lto*) | |
7db11a5a JJ |
14844 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14845 | *) | |
14846 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 14847 | esac |
7db11a5a JJ |
14848 | if test "x$enable_checking" = x && \ |
14849 | test -d ${srcdir}/gcc && \ | |
14850 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 14851 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 14852 | fi |
8efea775 | 14853 | else |
e643dc23 | 14854 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 14855 | fi |
5213506e | 14856 | fi |
8efea775 PB |
14857 | |
14858 | ||
2aeb72e9 | 14859 | |
5213506e RW |
14860 | # Enable -Werror in bootstrap stage2 and later. |
14861 | # Check whether --enable-werror was given. | |
14862 | if test "${enable_werror+set}" = set; then : | |
14863 | enableval=$enable_werror; | |
2805b53a | 14864 | else |
416cfb5e | 14865 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 14866 | enable_werror=yes |
88fceb68 PB |
14867 | else |
14868 | enable_werror=no | |
14869 | fi | |
5213506e RW |
14870 | fi |
14871 | ||
09a9c095 NN |
14872 | case ${enable_werror} in |
14873 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14874 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
14875 | esac |
14876 | ||
14877 | ||
459260ec DM |
14878 | # Enable --enable-host-shared. |
14879 | # Check whether --enable-host-shared was given. | |
14880 | if test "${enable_host_shared+set}" = set; then : | |
14881 | enableval=$enable_host_shared; host_shared=$enableval | |
14882 | else | |
14883 | host_shared=no | |
14884 | fi | |
14885 | ||
14886 | ||
14887 | ||
231d020b DM |
14888 | # PR jit/64780: Require the user to explicitly specify |
14889 | # --enable-host-shared if the jit is enabled, hinting | |
14890 | # that they might want to do a separate configure/build of | |
14891 | # the jit, to avoid users from slowing down the rest of the | |
14892 | # compiler by enabling the jit. | |
14893 | if test ${host_shared} = "no" ; then | |
14894 | case "${enable_languages}" in | |
14895 | *jit*) | |
14896 | as_fn_error " | |
14897 | Enabling language \"jit\" requires --enable-host-shared. | |
14898 | ||
14899 | --enable-host-shared typically slows the rest of the compiler down by | |
14900 | a few %, so you must explicitly enable it. | |
14901 | ||
14902 | If you want to build both the jit and the regular compiler, it is often | |
14903 | best to do this via two separate configure/builds, in separate | |
14904 | directories, to avoid imposing the performance cost of | |
14905 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14906 | ;; | |
14907 | *) | |
14908 | ;; | |
14909 | esac | |
14910 | fi | |
14911 | ||
f2689b09 SE |
14912 | # Specify what files to not compare during bootstrap. |
14913 | ||
14914 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14915 | case "$target" in | |
14916 | hppa*64*-*-hpux*) ;; | |
14917 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
d91491e5 | 14918 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
f2689b09 SE |
14919 | esac |
14920 | ||
14921 | ||
5213506e RW |
14922 | ac_config_files="$ac_config_files Makefile" |
14923 | ||
1c710c3c | 14924 | cat >confcache <<\_ACEOF |
671aa708 NN |
14925 | # This file is a shell script that caches the results of configure |
14926 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
14927 | # scripts and configure runs, see configure's option --config-cache. |
14928 | # It is not useful on other systems. If it contains results you don't | |
14929 | # want to keep, you may remove or edit it. | |
671aa708 | 14930 | # |
1c710c3c DJ |
14931 | # config.status only pays attention to the cache file if you give it |
14932 | # the --recheck option to rerun configure. | |
671aa708 | 14933 | # |
1c710c3c DJ |
14934 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14935 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14936 | # following values. | |
14937 | ||
14938 | _ACEOF | |
14939 | ||
671aa708 NN |
14940 | # The following way of writing the cache mishandles newlines in values, |
14941 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 14942 | # So, we kill variables containing newlines. |
671aa708 NN |
14943 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14944 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
14945 | ( |
14946 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14947 | eval ac_val=\$$ac_var | |
14948 | case $ac_val in #( | |
14949 | *${as_nl}*) | |
14950 | case $ac_var in #( | |
14951 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14952 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14953 | esac | |
14954 | case $ac_var in #( | |
14955 | _ | IFS | as_nl) ;; #( | |
14956 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14957 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14958 | esac ;; | |
14959 | esac | |
14960 | done | |
14961 | ||
1c710c3c | 14962 | (set) 2>&1 | |
5213506e RW |
14963 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14964 | *${as_nl}ac_space=\ *) | |
14965 | # `set' does not quote correctly, so add quotes: double-quote | |
14966 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
14967 | sed -n \ |
14968 | "s/'/'\\\\''/g; | |
14969 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 14970 | ;; #( |
1c710c3c DJ |
14971 | *) |
14972 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 14973 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 14974 | ;; |
5213506e RW |
14975 | esac | |
14976 | sort | |
14977 | ) | | |
1c710c3c | 14978 | sed ' |
5213506e | 14979 | /^ac_cv_env_/b end |
1c710c3c | 14980 | t clear |
5213506e | 14981 | :clear |
1c710c3c DJ |
14982 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14983 | t end | |
5213506e RW |
14984 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14985 | :end' >>confcache | |
14986 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14987 | if test -w "$cache_file"; then | |
14988 | test "x$cache_file" != "x/dev/null" && | |
14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14990 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 14991 | cat confcache >$cache_file |
671aa708 | 14992 | else |
5213506e RW |
14993 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14994 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 14995 | fi |
4977bab6 | 14996 | fi |
671aa708 | 14997 | rm -f confcache |
79c06341 | 14998 | |
671aa708 NN |
14999 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15000 | # Let make expand exec_prefix. | |
15001 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 15002 | |
671aa708 NN |
15003 | # Transform confdefs.h into DEFS. |
15004 | # Protect against shell expansion while executing Makefile rules. | |
15005 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
15006 | # |
15007 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 15008 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 15009 | # look for a macro that doesn't take arguments. |
5213506e RW |
15010 | ac_script=' |
15011 | :mline | |
15012 | /\\$/{ | |
15013 | N | |
15014 | s,\\\n,, | |
15015 | b mline | |
15016 | } | |
1c710c3c | 15017 | t clear |
5213506e RW |
15018 | :clear |
15019 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 15020 | t quote |
5213506e | 15021 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 15022 | t quote |
5213506e RW |
15023 | b any |
15024 | :quote | |
15025 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15026 | s/\[/\\&/g | |
15027 | s/\]/\\&/g | |
15028 | s/\$/$$/g | |
15029 | H | |
15030 | :any | |
15031 | ${ | |
15032 | g | |
15033 | s/^\n// | |
15034 | s/\n/ /g | |
15035 | p | |
15036 | } | |
15037 | ' | |
15038 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
15039 | |
15040 | ||
15041 | ac_libobjs= | |
15042 | ac_ltlibobjs= | |
15043 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15044 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
15045 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15046 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15047 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15048 | # will be set to the directory where LIBOBJS objects are built. | |
15049 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15050 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
15051 | done |
15052 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 15053 | |
1c710c3c | 15054 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 15055 | |
af71363e | 15056 | |
1c710c3c DJ |
15057 | |
15058 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 15059 | ac_write_fail=0 |
1c710c3c DJ |
15060 | ac_clean_files_save=$ac_clean_files |
15061 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15063 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15064 | as_write_fail=0 | |
15065 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
15066 | #! $SHELL |
15067 | # Generated by $as_me. | |
671aa708 | 15068 | # Run this file to recreate the current configuration. |
671aa708 | 15069 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 15070 | # configure, is in config.log if it exists. |
0b0dc272 | 15071 | |
1c710c3c DJ |
15072 | debug=false |
15073 | ac_cs_recheck=false | |
15074 | ac_cs_silent=false | |
1c710c3c | 15075 | |
5213506e RW |
15076 | SHELL=\${CONFIG_SHELL-$SHELL} |
15077 | export SHELL | |
15078 | _ASEOF | |
15079 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15080 | ## -------------------- ## | |
15081 | ## M4sh Initialization. ## | |
15082 | ## -------------------- ## | |
15083 | ||
15084 | # Be more Bourne compatible | |
15085 | DUALCASE=1; export DUALCASE # for MKS sh | |
15086 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
15087 | emulate sh |
15088 | NULLCMD=: | |
5213506e | 15089 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
15090 | # is contrary to our usage. Disable this feature. |
15091 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
15092 | setopt NO_GLOB_SUBST |
15093 | else | |
15094 | case `(set -o) 2>/dev/null` in #( | |
15095 | *posix*) : | |
15096 | set -o posix ;; #( | |
15097 | *) : | |
15098 | ;; | |
15099 | esac | |
1c710c3c | 15100 | fi |
1c710c3c | 15101 | |
5213506e RW |
15102 | |
15103 | as_nl=' | |
15104 | ' | |
15105 | export as_nl | |
15106 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15107 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15108 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15109 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15110 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15111 | # but without wasting forks for bash or zsh. | |
15112 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15113 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15114 | as_echo='print -r --' | |
15115 | as_echo_n='print -rn --' | |
15116 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15117 | as_echo='printf %s\n' | |
15118 | as_echo_n='printf %s' | |
15119 | else | |
15120 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15121 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15122 | as_echo_n='/usr/ucb/echo -n' | |
15123 | else | |
15124 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15125 | as_echo_n_body='eval | |
15126 | arg=$1; | |
15127 | case $arg in #( | |
15128 | *"$as_nl"*) | |
15129 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15130 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15131 | esac; | |
15132 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15133 | ' | |
15134 | export as_echo_n_body | |
15135 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15136 | fi | |
15137 | export as_echo_body | |
15138 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
15139 | fi |
15140 | ||
5213506e RW |
15141 | # The user is always right. |
15142 | if test "${PATH_SEPARATOR+set}" != set; then | |
15143 | PATH_SEPARATOR=: | |
15144 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15145 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15146 | PATH_SEPARATOR=';' | |
15147 | } | |
15148 | fi | |
15149 | ||
15150 | ||
15151 | # IFS | |
15152 | # We need space, tab and new line, in precisely that order. Quoting is | |
15153 | # there to prevent editors from complaining about space-tab. | |
15154 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15155 | # splitting by setting IFS to empty value.) | |
15156 | IFS=" "" $as_nl" | |
15157 | ||
15158 | # Find who we are. Look in the path if we contain no directory separator. | |
15159 | case $0 in #(( | |
15160 | *[\\/]* ) as_myself=$0 ;; | |
15161 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15162 | for as_dir in $PATH | |
15163 | do | |
15164 | IFS=$as_save_IFS | |
15165 | test -z "$as_dir" && as_dir=. | |
15166 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15167 | done | |
15168 | IFS=$as_save_IFS | |
15169 | ||
15170 | ;; | |
15171 | esac | |
15172 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15173 | # in which case we are not to be found in the path. | |
15174 | if test "x$as_myself" = x; then | |
15175 | as_myself=$0 | |
15176 | fi | |
15177 | if test ! -f "$as_myself"; then | |
15178 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15179 | exit 1 | |
15180 | fi | |
1c710c3c | 15181 | |
5213506e RW |
15182 | # Unset variables that we do not need and which cause bugs (e.g. in |
15183 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15184 | # suppresses any "Segmentation fault" message there. '((' could | |
15185 | # trigger a bug in pdksh 5.2.14. | |
15186 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15187 | do eval test x\${$as_var+set} = xset \ | |
15188 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15189 | done | |
1c710c3c DJ |
15190 | PS1='$ ' |
15191 | PS2='> ' | |
15192 | PS4='+ ' | |
15193 | ||
15194 | # NLS nuisances. | |
5213506e RW |
15195 | LC_ALL=C |
15196 | export LC_ALL | |
15197 | LANGUAGE=C | |
15198 | export LANGUAGE | |
15199 | ||
15200 | # CDPATH. | |
15201 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15202 | ||
15203 | ||
15204 | # as_fn_error ERROR [LINENO LOG_FD] | |
15205 | # --------------------------------- | |
15206 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15207 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15208 | # script with status $?, using 1 if that was 0. | |
15209 | as_fn_error () | |
15210 | { | |
15211 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15212 | if test "$3"; then | |
15213 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15214 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1c710c3c | 15215 | fi |
5213506e RW |
15216 | $as_echo "$as_me: error: $1" >&2 |
15217 | as_fn_exit $as_status | |
15218 | } # as_fn_error | |
15219 | ||
15220 | ||
15221 | # as_fn_set_status STATUS | |
15222 | # ----------------------- | |
15223 | # Set $? to STATUS, without forking. | |
15224 | as_fn_set_status () | |
15225 | { | |
15226 | return $1 | |
15227 | } # as_fn_set_status | |
15228 | ||
15229 | # as_fn_exit STATUS | |
15230 | # ----------------- | |
15231 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15232 | as_fn_exit () | |
15233 | { | |
15234 | set +e | |
15235 | as_fn_set_status $1 | |
15236 | exit $1 | |
15237 | } # as_fn_exit | |
15238 | ||
15239 | # as_fn_unset VAR | |
15240 | # --------------- | |
15241 | # Portably unset VAR. | |
15242 | as_fn_unset () | |
15243 | { | |
15244 | { eval $1=; unset $1;} | |
15245 | } | |
15246 | as_unset=as_fn_unset | |
15247 | # as_fn_append VAR VALUE | |
15248 | # ---------------------- | |
15249 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15250 | # advantage of any shell optimizations that allow amortized linear growth over | |
15251 | # repeated appends, instead of the typical quadratic growth present in naive | |
15252 | # implementations. | |
15253 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15254 | eval 'as_fn_append () | |
15255 | { | |
15256 | eval $1+=\$2 | |
15257 | }' | |
15258 | else | |
15259 | as_fn_append () | |
15260 | { | |
15261 | eval $1=\$$1\$2 | |
15262 | } | |
15263 | fi # as_fn_append | |
15264 | ||
15265 | # as_fn_arith ARG... | |
15266 | # ------------------ | |
15267 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15268 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15269 | # must be portable across $(()) and expr. | |
15270 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15271 | eval 'as_fn_arith () | |
15272 | { | |
15273 | as_val=$(( $* )) | |
15274 | }' | |
15275 | else | |
15276 | as_fn_arith () | |
15277 | { | |
15278 | as_val=`expr "$@" || test $? -eq 1` | |
15279 | } | |
15280 | fi # as_fn_arith | |
15281 | ||
1c710c3c | 15282 | |
5213506e RW |
15283 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15284 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
15285 | as_expr=expr |
15286 | else | |
15287 | as_expr=false | |
15288 | fi | |
15289 | ||
5213506e | 15290 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
15291 | as_basename=basename |
15292 | else | |
15293 | as_basename=false | |
15294 | fi | |
15295 | ||
5213506e RW |
15296 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15297 | as_dirname=dirname | |
15298 | else | |
15299 | as_dirname=false | |
15300 | fi | |
1c710c3c | 15301 | |
5213506e | 15302 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
15303 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15304 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
15305 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15306 | $as_echo X/"$0" | | |
15307 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15308 | s//\1/ | |
15309 | q | |
15310 | } | |
15311 | /^X\/\(\/\/\)$/{ | |
15312 | s//\1/ | |
15313 | q | |
15314 | } | |
15315 | /^X\/\(\/\).*/{ | |
15316 | s//\1/ | |
15317 | q | |
15318 | } | |
15319 | s/.*/./; q'` | |
2aeb72e9 | 15320 | |
2aeb72e9 DD |
15321 | # Avoid depending upon Character Ranges. |
15322 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15323 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15324 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15325 | as_cr_digits='0123456789' | |
15326 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15327 | ||
5213506e RW |
15328 | ECHO_C= ECHO_N= ECHO_T= |
15329 | case `echo -n x` in #((((( | |
15330 | -n*) | |
15331 | case `echo 'xy\c'` in | |
15332 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15333 | xy) ECHO_C='\c';; | |
15334 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15335 | ECHO_T=' ';; | |
15336 | esac;; | |
15337 | *) | |
15338 | ECHO_N='-n';; | |
1c710c3c DJ |
15339 | esac |
15340 | ||
5213506e RW |
15341 | rm -f conf$$ conf$$.exe conf$$.file |
15342 | if test -d conf$$.dir; then | |
15343 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 15344 | else |
5213506e RW |
15345 | rm -f conf$$.dir |
15346 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 15347 | fi |
5213506e RW |
15348 | if (echo >conf$$.file) 2>/dev/null; then |
15349 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 15350 | as_ln_s='ln -s' |
5213506e RW |
15351 | # ... but there are two gotchas: |
15352 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15353 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15354 | # In both cases, we have to default to `cp -p'. | |
15355 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15356 | as_ln_s='cp -p' | |
15357 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15358 | as_ln_s=ln | |
15359 | else | |
15360 | as_ln_s='cp -p' | |
2aeb72e9 | 15361 | fi |
1c710c3c DJ |
15362 | else |
15363 | as_ln_s='cp -p' | |
15364 | fi | |
5213506e RW |
15365 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15366 | rmdir conf$$.dir 2>/dev/null | |
15367 | ||
15368 | ||
15369 | # as_fn_mkdir_p | |
15370 | # ------------- | |
15371 | # Create "$as_dir" as a directory, including parents if necessary. | |
15372 | as_fn_mkdir_p () | |
15373 | { | |
15374 | ||
15375 | case $as_dir in #( | |
15376 | -*) as_dir=./$as_dir;; | |
15377 | esac | |
15378 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15379 | as_dirs= | |
15380 | while :; do | |
15381 | case $as_dir in #( | |
15382 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15383 | *) as_qdir=$as_dir;; | |
15384 | esac | |
15385 | as_dirs="'$as_qdir' $as_dirs" | |
15386 | as_dir=`$as_dirname -- "$as_dir" || | |
15387 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15388 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15389 | X"$as_dir" : 'X\(//\)$' \| \ | |
15390 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15391 | $as_echo X"$as_dir" | | |
15392 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15393 | s//\1/ | |
15394 | q | |
15395 | } | |
15396 | /^X\(\/\/\)[^/].*/{ | |
15397 | s//\1/ | |
15398 | q | |
15399 | } | |
15400 | /^X\(\/\/\)$/{ | |
15401 | s//\1/ | |
15402 | q | |
15403 | } | |
15404 | /^X\(\/\).*/{ | |
15405 | s//\1/ | |
15406 | q | |
15407 | } | |
15408 | s/.*/./; q'` | |
15409 | test -d "$as_dir" && break | |
15410 | done | |
15411 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15412 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15413 | ||
1c710c3c | 15414 | |
5213506e | 15415 | } # as_fn_mkdir_p |
1c710c3c | 15416 | if mkdir -p . 2>/dev/null; then |
5213506e | 15417 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
15418 | else |
15419 | test -d ./-p && rmdir ./-p | |
15420 | as_mkdir_p=false | |
15421 | fi | |
15422 | ||
5213506e RW |
15423 | if test -x / >/dev/null 2>&1; then |
15424 | as_test_x='test -x' | |
15425 | else | |
15426 | if ls -dL / >/dev/null 2>&1; then | |
15427 | as_ls_L_option=L | |
15428 | else | |
15429 | as_ls_L_option= | |
15430 | fi | |
15431 | as_test_x=' | |
15432 | eval sh -c '\'' | |
15433 | if test -d "$1"; then | |
15434 | test -d "$1/."; | |
15435 | else | |
15436 | case $1 in #( | |
15437 | -*)set "./$1";; | |
15438 | esac; | |
15439 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15440 | ???[sx]*):;;*)false;;esac;fi | |
15441 | '\'' sh | |
15442 | ' | |
15443 | fi | |
15444 | as_executable_p=$as_test_x | |
1c710c3c DJ |
15445 | |
15446 | # Sed expression to map a string onto a valid CPP name. | |
15447 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15448 | ||
15449 | # Sed expression to map a string onto a valid variable name. | |
15450 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15451 | ||
15452 | ||
1c710c3c | 15453 | exec 6>&1 |
5213506e RW |
15454 | ## ----------------------------------- ## |
15455 | ## Main body of $CONFIG_STATUS script. ## | |
15456 | ## ----------------------------------- ## | |
15457 | _ASEOF | |
15458 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15459 | ||
15460 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15461 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 15462 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
15463 | # values after options handling. |
15464 | ac_log=" | |
1c710c3c | 15465 | This file was extended by $as_me, which was |
5213506e | 15466 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
15467 | |
15468 | CONFIG_FILES = $CONFIG_FILES | |
15469 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15470 | CONFIG_LINKS = $CONFIG_LINKS | |
15471 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15472 | $ $0 $@ | |
15473 | ||
5213506e RW |
15474 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15475 | " | |
15476 | ||
1c710c3c DJ |
15477 | _ACEOF |
15478 | ||
5213506e RW |
15479 | case $ac_config_files in *" |
15480 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15481 | esac | |
1c710c3c | 15482 | |
2aeb72e9 | 15483 | |
2aeb72e9 | 15484 | |
5213506e RW |
15485 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15486 | # Files that config.status was made for. | |
15487 | config_files="$ac_config_files" | |
1c710c3c | 15488 | |
5213506e | 15489 | _ACEOF |
2aeb72e9 | 15490 | |
5213506e | 15491 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 15492 | ac_cs_usage="\ |
5213506e RW |
15493 | \`$as_me' instantiates files and other configuration actions |
15494 | from templates according to the current configuration. Unless the files | |
15495 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 15496 | |
5213506e | 15497 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
15498 | |
15499 | -h, --help print this help, then exit | |
5213506e RW |
15500 | -V, --version print version number and configuration settings, then exit |
15501 | -q, --quiet, --silent | |
15502 | do not print progress messages | |
1c710c3c DJ |
15503 | -d, --debug don't remove temporary files |
15504 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
15505 | --file=FILE[:TEMPLATE] |
15506 | instantiate the configuration file FILE | |
1c710c3c DJ |
15507 | |
15508 | Configuration files: | |
15509 | $config_files | |
15510 | ||
5213506e | 15511 | Report bugs to the package provider." |
2aeb72e9 | 15512 | |
5213506e RW |
15513 | _ACEOF |
15514 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1c710c3c DJ |
15515 | ac_cs_version="\\ |
15516 | config.status | |
5213506e RW |
15517 | configured by $0, generated by GNU Autoconf 2.64, |
15518 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 15519 | |
5213506e | 15520 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
15521 | This config.status script is free software; the Free Software Foundation |
15522 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
15523 | |
15524 | ac_pwd='$ac_pwd' | |
15525 | srcdir='$srcdir' | |
15526 | INSTALL='$INSTALL' | |
87264276 | 15527 | AWK='$AWK' |
5213506e | 15528 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
15529 | _ACEOF |
15530 | ||
5213506e RW |
15531 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15532 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
15533 | ac_need_defaults=: |
15534 | while test $# != 0 | |
a4b9e93e | 15535 | do |
1c710c3c DJ |
15536 | case $1 in |
15537 | --*=*) | |
5213506e RW |
15538 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15539 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
15540 | ac_shift=: |
15541 | ;; | |
5213506e | 15542 | *) |
1c710c3c DJ |
15543 | ac_option=$1 |
15544 | ac_optarg=$2 | |
15545 | ac_shift=shift | |
15546 | ;; | |
1c710c3c DJ |
15547 | esac |
15548 | ||
15549 | case $ac_option in | |
15550 | # Handling of the options. | |
671aa708 | 15551 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 15552 | ac_cs_recheck=: ;; |
5213506e RW |
15553 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15554 | $as_echo "$ac_cs_version"; exit ;; | |
15555 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
15556 | debug=: ;; |
15557 | --file | --fil | --fi | --f ) | |
15558 | $ac_shift | |
5213506e RW |
15559 | case $ac_optarg in |
15560 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15561 | esac | |
15562 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 15563 | ac_need_defaults=false;; |
5213506e RW |
15564 | --he | --h | --help | --hel | -h ) |
15565 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
15566 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15567 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15568 | ac_cs_silent=: ;; | |
15569 | ||
15570 | # This is an error. | |
5213506e RW |
15571 | -*) as_fn_error "unrecognized option: \`$1' |
15572 | Try \`$0 --help' for more information." ;; | |
1c710c3c | 15573 | |
5213506e RW |
15574 | *) as_fn_append ac_config_targets " $1" |
15575 | ac_need_defaults=false ;; | |
1c710c3c | 15576 | |
0b0dc272 | 15577 | esac |
1c710c3c | 15578 | shift |
0b0dc272 AM |
15579 | done |
15580 | ||
1c710c3c | 15581 | ac_configure_extra_args= |
0b0dc272 | 15582 | |
1c710c3c DJ |
15583 | if $ac_cs_silent; then |
15584 | exec 6>/dev/null | |
15585 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15586 | fi | |
0b0dc272 | 15587 | |
1c710c3c | 15588 | _ACEOF |
5213506e | 15589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 15590 | if \$ac_cs_recheck; then |
5213506e RW |
15591 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15592 | shift | |
15593 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15594 | CONFIG_SHELL='$SHELL' | |
15595 | export CONFIG_SHELL | |
15596 | exec "\$@" | |
1c710c3c DJ |
15597 | fi |
15598 | ||
15599 | _ACEOF | |
5213506e RW |
15600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15601 | exec 5>>config.log | |
15602 | { | |
15603 | echo | |
15604 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15605 | ## Running $as_me. ## | |
15606 | _ASBOX | |
15607 | $as_echo "$ac_log" | |
15608 | } >&5 | |
1c710c3c | 15609 | |
5213506e RW |
15610 | _ACEOF |
15611 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
15612 | # |
15613 | # INIT-COMMANDS | |
15614 | # | |
15615 | extrasub_build="$extrasub_build" | |
15616 | extrasub_host="$extrasub_host" | |
15617 | extrasub_target="$extrasub_target" | |
15618 | ||
5213506e | 15619 | _ACEOF |
1c710c3c | 15620 | |
5213506e | 15621 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 15622 | |
5213506e | 15623 | # Handling of arguments. |
1c710c3c DJ |
15624 | for ac_config_target in $ac_config_targets |
15625 | do | |
5213506e RW |
15626 | case $ac_config_target in |
15627 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15628 | ||
15629 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1c710c3c DJ |
15630 | esac |
15631 | done | |
15632 | ||
5213506e | 15633 | |
1c710c3c DJ |
15634 | # If the user did not use the arguments to specify the items to instantiate, |
15635 | # then the envvar interface is used. Set only those that are not. | |
15636 | # We use the long form for the default assignment because of an extremely | |
15637 | # bizarre bug on SunOS 4.1.3. | |
15638 | if $ac_need_defaults; then | |
15639 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15640 | fi | |
15641 | ||
15642 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 15643 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 15644 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
15645 | # Hook for its removal unless debugging. |
15646 | # Note that there is a small window in which the directory will not be cleaned: | |
15647 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
15648 | $debug || |
15649 | { | |
5213506e RW |
15650 | tmp= |
15651 | trap 'exit_status=$? | |
15652 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15653 | ' 0 | |
15654 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 15655 | } |
1c710c3c DJ |
15656 | # Create a (secure) tmp directory for tmp files. |
15657 | ||
15658 | { | |
5213506e | 15659 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
15660 | test -n "$tmp" && test -d "$tmp" |
15661 | } || | |
15662 | { | |
5213506e RW |
15663 | tmp=./conf$$-$RANDOM |
15664 | (umask 077 && mkdir "$tmp") | |
15665 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15666 | ||
15667 | # Set up the scripts for CONFIG_FILES section. | |
15668 | # No need to generate them if there are no CONFIG_FILES. | |
15669 | # This happens for instance with `./config.status config.h'. | |
15670 | if test -n "$CONFIG_FILES"; then | |
15671 | ||
15672 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15673 | ac_cs_awk_getline=: | |
15674 | ac_cs_awk_pipe_init= | |
15675 | ac_cs_awk_read_file=' | |
15676 | while ((getline aline < (F[key])) > 0) | |
15677 | print(aline) | |
15678 | close(F[key])' | |
15679 | ac_cs_awk_pipe_fini= | |
15680 | else | |
15681 | ac_cs_awk_getline=false | |
15682 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15683 | ac_cs_awk_read_file=' | |
15684 | print "|#_!!_#|" | |
15685 | print "cat " F[key] " &&" | |
15686 | '$ac_cs_awk_pipe_init | |
15687 | # The final `:' finishes the AND list. | |
15688 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15689 | fi | |
15690 | ac_cr=`echo X | tr X '\015'` | |
15691 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15692 | # But we know of no other shell where ac_cr would be empty at this | |
15693 | # point, so we can use a bashism as a fallback. | |
15694 | if test "x$ac_cr" = x; then | |
15695 | eval ac_cr=\$\'\\r\' | |
15696 | fi | |
15697 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15698 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15699 | ac_cs_awk_cr='\r' | |
15700 | else | |
15701 | ac_cs_awk_cr=$ac_cr | |
15702 | fi | |
15703 | ||
15704 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15705 | _ACEOF | |
15706 | ||
15707 | # Create commands to substitute file output variables. | |
1c710c3c | 15708 | { |
5213506e RW |
15709 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15710 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15711 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15712 | echo "_ACAWK" && | |
15713 | echo "_ACEOF" | |
15714 | } >conf$$files.sh && | |
15715 | . ./conf$$files.sh || | |
15716 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15717 | rm -f conf$$files.sh | |
1c710c3c | 15718 | |
5213506e RW |
15719 | { |
15720 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15721 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15722 | echo "_ACEOF" | |
15723 | } >conf$$subs.sh || | |
15724 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15725 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15726 | ac_delim='%!_!# ' | |
15727 | for ac_last_try in false false false false false :; do | |
15728 | . ./conf$$subs.sh || | |
15729 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15730 | ||
15731 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15732 | if test $ac_delim_n = $ac_delim_num; then | |
15733 | break | |
15734 | elif $ac_last_try; then | |
15735 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15736 | else | |
15737 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15738 | fi | |
15739 | done | |
15740 | rm -f conf$$subs.sh | |
15741 | ||
15742 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15743 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
2aeb72e9 | 15744 | _ACEOF |
5213506e RW |
15745 | sed -n ' |
15746 | h | |
15747 | s/^/S["/; s/!.*/"]=/ | |
15748 | p | |
15749 | g | |
15750 | s/^[^!]*!// | |
15751 | :repl | |
15752 | t repl | |
15753 | s/'"$ac_delim"'$// | |
15754 | t delim | |
15755 | :nl | |
15756 | h | |
15757 | s/\(.\{148\}\).*/\1/ | |
15758 | t more1 | |
15759 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15760 | p | |
15761 | n | |
15762 | b repl | |
15763 | :more1 | |
15764 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15765 | p | |
15766 | g | |
15767 | s/.\{148\}// | |
15768 | t nl | |
15769 | :delim | |
15770 | h | |
15771 | s/\(.\{148\}\).*/\1/ | |
15772 | t more2 | |
15773 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15774 | p | |
15775 | b | |
15776 | :more2 | |
15777 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15778 | p | |
15779 | g | |
15780 | s/.\{148\}// | |
15781 | t delim | |
15782 | ' <conf$$subs.awk | sed ' | |
15783 | /^[^""]/{ | |
15784 | N | |
15785 | s/\n// | |
15786 | } | |
15787 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15788 | rm -f conf$$subs.awk | |
15789 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15790 | _ACAWK | |
15791 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15792 | for (key in S) S_is_set[key] = 1 | |
15793 | FS = "\a" | |
15794 | \$ac_cs_awk_pipe_init | |
15795 | } | |
15796 | { | |
15797 | line = $ 0 | |
15798 | nfields = split(line, field, "@") | |
15799 | substed = 0 | |
15800 | len = length(field[1]) | |
15801 | for (i = 2; i < nfields; i++) { | |
15802 | key = field[i] | |
15803 | keylen = length(key) | |
15804 | if (S_is_set[key]) { | |
15805 | value = S[key] | |
15806 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15807 | len += length(value) + length(field[++i]) | |
15808 | substed = 1 | |
15809 | } else | |
15810 | len += 1 + keylen | |
15811 | } | |
15812 | if (nfields == 3 && !substed) { | |
15813 | key = field[2] | |
15814 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15815 | \$ac_cs_awk_read_file | |
15816 | next | |
15817 | } | |
15818 | } | |
15819 | print line | |
15820 | } | |
15821 | \$ac_cs_awk_pipe_fini | |
15822 | _ACAWK | |
15823 | _ACEOF | |
15824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15825 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15826 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15827 | else | |
15828 | cat | |
15829 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15830 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15831 | _ACEOF | |
15832 | ||
15833 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15834 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15835 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15836 | # (actually we leave an empty line to preserve line numbers). | |
15837 | if test "x$srcdir" = x.; then | |
15838 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15839 | s/:*\$(srcdir):*/:/ | |
15840 | s/:*\${srcdir}:*/:/ | |
15841 | s/:*@srcdir@:*/:/ | |
15842 | s/^\([^=]*=[ ]*\):*/\1/ | |
15843 | s/:*$// | |
15844 | s/^[^=]*=[ ]*$// | |
15845 | }' | |
15846 | fi | |
2aeb72e9 | 15847 | |
5213506e RW |
15848 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15849 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 15850 | |
1c710c3c | 15851 | |
5213506e RW |
15852 | eval set X " :F $CONFIG_FILES " |
15853 | shift | |
15854 | for ac_tag | |
15855 | do | |
15856 | case $ac_tag in | |
15857 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15858 | esac | |
15859 | case $ac_mode$ac_tag in | |
15860 | :[FHL]*:*);; | |
15861 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15862 | :[FH]-) ac_tag=-:-;; | |
15863 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15864 | esac | |
15865 | ac_save_IFS=$IFS | |
15866 | IFS=: | |
15867 | set x $ac_tag | |
15868 | IFS=$ac_save_IFS | |
15869 | shift | |
15870 | ac_file=$1 | |
15871 | shift | |
79c06341 | 15872 | |
5213506e RW |
15873 | case $ac_mode in |
15874 | :L) ac_source=$1;; | |
15875 | :[FH]) | |
15876 | ac_file_inputs= | |
15877 | for ac_f | |
15878 | do | |
15879 | case $ac_f in | |
15880 | -) ac_f="$tmp/stdin";; | |
15881 | *) # Look for the file first in the build tree, then in the source tree | |
15882 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15883 | # because $ac_f cannot contain `:'. | |
15884 | test -f "$ac_f" || | |
15885 | case $ac_f in | |
15886 | [\\/$]*) false;; | |
15887 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15888 | esac || | |
15889 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15890 | esac | |
15891 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15892 | as_fn_append ac_file_inputs " '$ac_f'" | |
15893 | done | |
1c710c3c | 15894 | |
5213506e RW |
15895 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15896 | # use $as_me), people would be surprised to read: | |
15897 | # /* config.h. Generated by config.status. */ | |
15898 | configure_input='Generated from '` | |
15899 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15900 | `' by configure.' | |
15901 | if test x"$ac_file" != x-; then | |
15902 | configure_input="$ac_file. $configure_input" | |
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15904 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 15905 | fi |
5213506e RW |
15906 | # Neutralize special characters interpreted by sed in replacement strings. |
15907 | case $configure_input in #( | |
15908 | *\&* | *\|* | *\\* ) | |
15909 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15910 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15911 | *) ac_sed_conf_input=$configure_input;; | |
15912 | esac | |
11a67599 | 15913 | |
5213506e RW |
15914 | case $ac_tag in |
15915 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15916 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15917 | esac | |
15918 | ;; | |
11a67599 ZW |
15919 | esac |
15920 | ||
5213506e | 15921 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
15922 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15923 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15924 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
15925 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15926 | $as_echo X"$ac_file" | | |
15927 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15928 | s//\1/ | |
15929 | q | |
15930 | } | |
15931 | /^X\(\/\/\)[^/].*/{ | |
15932 | s//\1/ | |
15933 | q | |
15934 | } | |
15935 | /^X\(\/\/\)$/{ | |
15936 | s//\1/ | |
15937 | q | |
15938 | } | |
15939 | /^X\(\/\).*/{ | |
15940 | s//\1/ | |
15941 | q | |
15942 | } | |
15943 | s/.*/./; q'` | |
15944 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 15945 | ac_builddir=. |
0b0dc272 | 15946 | |
5213506e RW |
15947 | case "$ac_dir" in |
15948 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15949 | *) | |
15950 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15951 | # A ".." for each directory in $ac_dir_suffix. | |
15952 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15953 | case $ac_top_builddir_sub in | |
15954 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15955 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15956 | esac ;; | |
15957 | esac | |
15958 | ac_abs_top_builddir=$ac_pwd | |
15959 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15960 | # for backward compatibility: | |
15961 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
15962 | |
15963 | case $srcdir in | |
5213506e | 15964 | .) # We are building in place. |
1c710c3c | 15965 | ac_srcdir=. |
5213506e RW |
15966 | ac_top_srcdir=$ac_top_builddir_sub |
15967 | ac_abs_top_srcdir=$ac_pwd ;; | |
15968 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 15969 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
15970 | ac_top_srcdir=$srcdir |
15971 | ac_abs_top_srcdir=$srcdir ;; | |
15972 | *) # Relative name. | |
15973 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15974 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15975 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 15976 | esac |
5213506e | 15977 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 15978 | |
0b0dc272 | 15979 | |
5213506e RW |
15980 | case $ac_mode in |
15981 | :F) | |
15982 | # | |
15983 | # CONFIG_FILE | |
15984 | # | |
1c710c3c DJ |
15985 | |
15986 | case $INSTALL in | |
15987 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 15988 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 15989 | esac |
5213506e | 15990 | _ACEOF |
11a67599 | 15991 | |
5213506e RW |
15992 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15993 | # If the template does not know about datarootdir, expand it. | |
15994 | # FIXME: This hack should be removed a few years after 2.60. | |
15995 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15996 | ac_sed_dataroot=' | |
15997 | /datarootdir/ { | |
15998 | p | |
15999 | q | |
16000 | } | |
16001 | /@datadir@/p | |
16002 | /@docdir@/p | |
16003 | /@infodir@/p | |
16004 | /@localedir@/p | |
16005 | /@mandir@/p' | |
16006 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16007 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16008 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16010 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 16011 | _ACEOF |
5213506e RW |
16012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16013 | ac_datarootdir_hack=' | |
16014 | s&@datadir@&$datadir&g | |
16015 | s&@docdir@&$docdir&g | |
16016 | s&@infodir@&$infodir&g | |
16017 | s&@localedir@&$localedir&g | |
16018 | s&@mandir@&$mandir&g | |
16019 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16020 | esac | |
16021 | _ACEOF | |
16022 | ||
16023 | # Neutralize VPATH when `$srcdir' = `.'. | |
16024 | # Shell code in configure.ac might set extrasub. | |
16025 | # FIXME: do we really want to maintain this feature? | |
16026 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16027 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
16028 | $extrasub |
16029 | _ACEOF | |
5213506e | 16030 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
16031 | :t |
16032 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
16033 | s|@configure_input@|$ac_sed_conf_input|;t t |
16034 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16035 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16036 | s&@srcdir@&$ac_srcdir&;t t | |
16037 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16038 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16039 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16040 | s&@builddir@&$ac_builddir&;t t | |
16041 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16042 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16043 | s&@INSTALL@&$ac_INSTALL&;t t | |
16044 | $ac_datarootdir_hack | |
16045 | " | |
16046 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16047 | if $ac_cs_awk_getline; then | |
16048 | $AWK -f "$tmp/subs.awk" | |
16049 | else | |
16050 | $AWK -f "$tmp/subs.awk" | $SHELL | |
16051 | fi >$tmp/out \ | |
16052 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16053 | ||
16054 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16055 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16056 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16058 | which seems to be undefined. Please make sure it is defined." >&5 | |
16059 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16060 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16061 | ||
16062 | rm -f "$tmp/stdin" | |
16063 | case $ac_file in | |
16064 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
16065 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16066 | esac \ | |
16067 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16068 | ;; | |
11a67599 | 16069 | |
11a67599 | 16070 | |
79c06341 | 16071 | |
5213506e RW |
16072 | esac |
16073 | ||
3e54529c RW |
16074 | |
16075 | case $ac_file$ac_mode in | |
16076 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16077 | sed "$extrasub_host" | | |
16078 | sed "$extrasub_target" > mf$$ | |
16079 | mv -f mf$$ Makefile ;; | |
16080 | ||
16081 | esac | |
5213506e RW |
16082 | done # for ac_tag |
16083 | ||
16084 | ||
16085 | as_fn_exit 0 | |
1c710c3c | 16086 | _ACEOF |
1c710c3c DJ |
16087 | ac_clean_files=$ac_clean_files_save |
16088 | ||
5213506e RW |
16089 | test $ac_write_fail = 0 || |
16090 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16091 | ||
1c710c3c DJ |
16092 | |
16093 | # configure is writing to config.log, and then calls config.status. | |
16094 | # config.status does its own redirection, appending to config.log. | |
16095 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16096 | # by configure, so config.status won't be able to write to it; its | |
16097 | # output is simply discarded. So we exec the FD to /dev/null, | |
16098 | # effectively closing config.log, so it can be properly (re)opened and | |
16099 | # appended to by config.status. When coming back to configure, we | |
16100 | # need to make the FD available again. | |
16101 | if test "$no_create" != yes; then | |
16102 | ac_cs_success=: | |
16103 | ac_config_status_args= | |
16104 | test "$silent" = yes && | |
16105 | ac_config_status_args="$ac_config_status_args --quiet" | |
16106 | exec 5>/dev/null | |
16107 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16108 | exec 5>>config.log | |
16109 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16110 | # would make configure fail if this is the last instruction. | |
5213506e RW |
16111 | $ac_cs_success || as_fn_exit $? |
16112 | fi | |
16113 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16115 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 16116 | fi |
79c06341 | 16117 |