]>
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 | |
5f520819 | 677 | extra_liboffloadmic_configure_flags |
5213506e RW |
678 | target_subdir |
679 | host_subdir | |
680 | build_subdir | |
681 | build_libsubdir | |
87264276 PB |
682 | AWK |
683 | SED | |
5213506e RW |
684 | LN_S |
685 | LN | |
686 | INSTALL_DATA | |
687 | INSTALL_SCRIPT | |
688 | INSTALL_PROGRAM | |
689 | target_os | |
690 | target_vendor | |
691 | target_cpu | |
692 | target | |
693 | host_os | |
694 | host_vendor | |
695 | host_cpu | |
696 | host | |
697 | target_noncanonical | |
698 | host_noncanonical | |
699 | build_noncanonical | |
700 | build_os | |
701 | build_vendor | |
702 | build_cpu | |
703 | build | |
704 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
705 | target_alias | |
706 | host_alias | |
707 | build_alias | |
708 | LIBS | |
709 | ECHO_T | |
710 | ECHO_N | |
711 | ECHO_C | |
712 | DEFS | |
713 | mandir | |
714 | localedir | |
715 | libdir | |
716 | psdir | |
717 | pdfdir | |
718 | dvidir | |
719 | htmldir | |
720 | infodir | |
721 | docdir | |
722 | oldincludedir | |
723 | includedir | |
724 | localstatedir | |
725 | sharedstatedir | |
726 | sysconfdir | |
727 | datadir | |
728 | datarootdir | |
729 | libexecdir | |
730 | sbindir | |
731 | bindir | |
732 | program_transform_name | |
733 | prefix | |
734 | exec_prefix | |
735 | PACKAGE_URL | |
736 | PACKAGE_BUGREPORT | |
737 | PACKAGE_STRING | |
738 | PACKAGE_VERSION | |
739 | PACKAGE_TARNAME | |
740 | PACKAGE_NAME | |
741 | PATH_SEPARATOR | |
742 | SHELL' | |
743 | ac_subst_files='serialization_dependencies | |
744 | host_makefile_frag | |
745 | target_makefile_frag | |
746 | alphaieee_frag | |
747 | ospace_frag' | |
748 | ac_user_opts=' | |
749 | enable_option_checking | |
750 | with_build_libsubdir | |
a05c2c75 | 751 | with_system_zlib |
85c64bbe BS |
752 | enable_as_accelerator_for |
753 | enable_offload_targets | |
5213506e | 754 | enable_gold |
21539e2e | 755 | enable_ld |
78edb32f | 756 | enable_compressed_debug_sections |
87e6d9dc TB |
757 | enable_libquadmath |
758 | enable_libquadmath_support | |
5213506e RW |
759 | enable_libada |
760 | enable_libssp | |
1873ec0c | 761 | enable_libstdcxx |
5f520819 | 762 | enable_liboffloadmic |
ff3ac0f4 | 763 | enable_bootstrap |
5213506e RW |
764 | with_mpc |
765 | with_mpc_include | |
766 | with_mpc_lib | |
767 | with_mpfr_dir | |
768 | with_mpfr | |
769 | with_mpfr_include | |
770 | with_mpfr_lib | |
771 | with_gmp_dir | |
772 | with_gmp | |
773 | with_gmp_include | |
774 | with_gmp_lib | |
5213506e | 775 | with_stage1_libs |
0b21f5d3 | 776 | with_stage1_ldflags |
5213506e | 777 | with_boot_libs |
ed2eaa9f | 778 | with_boot_ldflags |
33ad93b9 RG |
779 | with_isl |
780 | with_isl_include | |
781 | with_isl_lib | |
782 | enable_isl_version_check | |
d7f09764 | 783 | enable_lto |
45b3824d TS |
784 | enable_linker_plugin_configure_flags |
785 | enable_linker_plugin_flags | |
5213506e | 786 | enable_stage1_languages |
43c40f3e | 787 | enable_objc_gc |
5213506e RW |
788 | with_build_sysroot |
789 | with_debug_prefix_map | |
5646b7b9 | 790 | with_build_config |
beeda1d9 | 791 | enable_vtable_verify |
5213506e RW |
792 | enable_serial_configure |
793 | with_build_time_tools | |
794 | enable_maintainer_mode | |
795 | enable_stage1_checking | |
796 | enable_werror | |
459260ec | 797 | enable_host_shared |
5213506e RW |
798 | ' |
799 | ac_precious_vars='build_alias | |
800 | host_alias | |
801 | target_alias | |
802 | CC | |
803 | CFLAGS | |
804 | LDFLAGS | |
805 | LIBS | |
806 | CPPFLAGS | |
807 | CXX | |
808 | CXXFLAGS | |
809 | CCC | |
ffedf511 RW |
810 | build_configargs |
811 | host_configargs | |
812 | target_configargs | |
5213506e RW |
813 | AR |
814 | AS | |
815 | DLLTOOL | |
816 | LD | |
817 | LIPO | |
818 | NM | |
819 | RANLIB | |
820 | STRIP | |
821 | WINDRES | |
822 | WINDMC | |
823 | OBJCOPY | |
824 | OBJDUMP | |
e7a82751 | 825 | READELF |
5213506e RW |
826 | CC_FOR_TARGET |
827 | CXX_FOR_TARGET | |
828 | GCC_FOR_TARGET | |
829 | GCJ_FOR_TARGET | |
830 | GFORTRAN_FOR_TARGET | |
632e2a07 | 831 | GOC_FOR_TARGET |
5213506e RW |
832 | AR_FOR_TARGET |
833 | AS_FOR_TARGET | |
834 | DLLTOOL_FOR_TARGET | |
835 | LD_FOR_TARGET | |
836 | LIPO_FOR_TARGET | |
837 | NM_FOR_TARGET | |
9bccfdf5 | 838 | OBJCOPY_FOR_TARGET |
5213506e RW |
839 | OBJDUMP_FOR_TARGET |
840 | RANLIB_FOR_TARGET | |
e7a82751 | 841 | READELF_FOR_TARGET |
5213506e RW |
842 | STRIP_FOR_TARGET |
843 | WINDRES_FOR_TARGET | |
844 | WINDMC_FOR_TARGET' | |
845 | ||
671aa708 NN |
846 | |
847 | # Initialize some variables set by options. | |
1c710c3c DJ |
848 | ac_init_help= |
849 | ac_init_version=false | |
5213506e RW |
850 | ac_unrecognized_opts= |
851 | ac_unrecognized_sep= | |
671aa708 NN |
852 | # The variables have the same names as the options, with |
853 | # dashes changed to underlines. | |
1c710c3c | 854 | cache_file=/dev/null |
671aa708 | 855 | exec_prefix=NONE |
671aa708 | 856 | no_create= |
671aa708 NN |
857 | no_recursion= |
858 | prefix=NONE | |
859 | program_prefix=NONE | |
860 | program_suffix=NONE | |
861 | program_transform_name=s,x,x, | |
862 | silent= | |
863 | site= | |
864 | srcdir= | |
671aa708 NN |
865 | verbose= |
866 | x_includes=NONE | |
867 | x_libraries=NONE | |
1c710c3c DJ |
868 | |
869 | # Installation directory options. | |
870 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
871 | # and all the variables that are supposed to be based on exec_prefix | |
872 | # by default will actually change. | |
873 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 874 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
875 | bindir='${exec_prefix}/bin' |
876 | sbindir='${exec_prefix}/sbin' | |
877 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
878 | datarootdir='${prefix}/share' |
879 | datadir='${datarootdir}' | |
671aa708 NN |
880 | sysconfdir='${prefix}/etc' |
881 | sharedstatedir='${prefix}/com' | |
882 | localstatedir='${prefix}/var' | |
671aa708 NN |
883 | includedir='${prefix}/include' |
884 | oldincludedir='/usr/include' | |
5213506e RW |
885 | docdir='${datarootdir}/doc/${PACKAGE}' |
886 | infodir='${datarootdir}/info' | |
887 | htmldir='${docdir}' | |
888 | dvidir='${docdir}' | |
889 | pdfdir='${docdir}' | |
890 | psdir='${docdir}' | |
891 | libdir='${exec_prefix}/lib' | |
892 | localedir='${datarootdir}/locale' | |
893 | mandir='${datarootdir}/man' | |
79c06341 | 894 | |
671aa708 | 895 | ac_prev= |
5213506e | 896 | ac_dashdash= |
671aa708 NN |
897 | for ac_option |
898 | do | |
671aa708 NN |
899 | # If the previous option needs an argument, assign it. |
900 | if test -n "$ac_prev"; then | |
5213506e | 901 | eval $ac_prev=\$ac_option |
671aa708 NN |
902 | ac_prev= |
903 | continue | |
904 | fi | |
79c06341 | 905 | |
5213506e RW |
906 | case $ac_option in |
907 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
908 | *) ac_optarg=yes ;; | |
909 | esac | |
671aa708 NN |
910 | |
911 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
912 | ||
5213506e RW |
913 | case $ac_dashdash$ac_option in |
914 | --) | |
915 | ac_dashdash=yes ;; | |
671aa708 NN |
916 | |
917 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
918 | ac_prev=bindir ;; | |
919 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 920 | bindir=$ac_optarg ;; |
671aa708 NN |
921 | |
922 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 923 | ac_prev=build_alias ;; |
671aa708 | 924 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 925 | build_alias=$ac_optarg ;; |
671aa708 NN |
926 | |
927 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
928 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
929 | ac_prev=cache_file ;; | |
930 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
931 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
932 | cache_file=$ac_optarg ;; |
933 | ||
934 | --config-cache | -C) | |
935 | cache_file=config.cache ;; | |
671aa708 | 936 | |
5213506e | 937 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 938 | ac_prev=datadir ;; |
5213506e | 939 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 940 | datadir=$ac_optarg ;; |
671aa708 | 941 | |
5213506e RW |
942 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
943 | | --dataroo | --dataro | --datar) | |
944 | ac_prev=datarootdir ;; | |
945 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
946 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
947 | datarootdir=$ac_optarg ;; | |
948 | ||
671aa708 | 949 | -disable-* | --disable-*) |
5213506e | 950 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 951 | # Reject names that are not valid shell variable names. |
5213506e RW |
952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
953 | as_fn_error "invalid feature name: $ac_useropt" | |
954 | ac_useropt_orig=$ac_useropt | |
955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
956 | case $ac_user_opts in | |
957 | *" | |
958 | "enable_$ac_useropt" | |
959 | "*) ;; | |
960 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
961 | ac_unrecognized_sep=', ';; | |
962 | esac | |
963 | eval enable_$ac_useropt=no ;; | |
964 | ||
965 | -docdir | --docdir | --docdi | --doc | --do) | |
966 | ac_prev=docdir ;; | |
967 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
968 | docdir=$ac_optarg ;; | |
969 | ||
970 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
971 | ac_prev=dvidir ;; | |
972 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
973 | dvidir=$ac_optarg ;; | |
671aa708 NN |
974 | |
975 | -enable-* | --enable-*) | |
5213506e | 976 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 977 | # Reject names that are not valid shell variable names. |
5213506e RW |
978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
979 | as_fn_error "invalid feature name: $ac_useropt" | |
980 | ac_useropt_orig=$ac_useropt | |
981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
982 | case $ac_user_opts in | |
983 | *" | |
984 | "enable_$ac_useropt" | |
985 | "*) ;; | |
986 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
987 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 988 | esac |
5213506e | 989 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
990 | |
991 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
992 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
993 | | --exec | --exe | --ex) | |
994 | ac_prev=exec_prefix ;; | |
995 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
996 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
997 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 998 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
999 | |
1000 | -gas | --gas | --ga | --g) | |
1001 | # Obsolete; use --with-gas. | |
1002 | with_gas=yes ;; | |
1003 | ||
1c710c3c DJ |
1004 | -help | --help | --hel | --he | -h) |
1005 | ac_init_help=long ;; | |
1006 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1007 | ac_init_help=recursive ;; | |
1008 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1009 | ac_init_help=short ;; | |
671aa708 NN |
1010 | |
1011 | -host | --host | --hos | --ho) | |
1c710c3c | 1012 | ac_prev=host_alias ;; |
671aa708 | 1013 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1014 | host_alias=$ac_optarg ;; |
671aa708 | 1015 | |
5213506e RW |
1016 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1017 | ac_prev=htmldir ;; | |
1018 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1019 | | --ht=*) | |
1020 | htmldir=$ac_optarg ;; | |
1021 | ||
671aa708 NN |
1022 | -includedir | --includedir | --includedi | --included | --include \ |
1023 | | --includ | --inclu | --incl | --inc) | |
1024 | ac_prev=includedir ;; | |
1025 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1026 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1027 | includedir=$ac_optarg ;; |
671aa708 NN |
1028 | |
1029 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1030 | ac_prev=infodir ;; | |
1031 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1032 | infodir=$ac_optarg ;; |
671aa708 NN |
1033 | |
1034 | -libdir | --libdir | --libdi | --libd) | |
1035 | ac_prev=libdir ;; | |
1036 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1037 | libdir=$ac_optarg ;; |
671aa708 NN |
1038 | |
1039 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1040 | | --libexe | --libex | --libe) | |
1041 | ac_prev=libexecdir ;; | |
1042 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1043 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1044 | libexecdir=$ac_optarg ;; |
671aa708 | 1045 | |
5213506e RW |
1046 | -localedir | --localedir | --localedi | --localed | --locale) |
1047 | ac_prev=localedir ;; | |
1048 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1049 | localedir=$ac_optarg ;; | |
1050 | ||
671aa708 | 1051 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1052 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1053 | ac_prev=localstatedir ;; |
1054 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1055 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1056 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1057 | |
1058 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1059 | ac_prev=mandir ;; | |
1060 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1061 | mandir=$ac_optarg ;; |
671aa708 NN |
1062 | |
1063 | -nfp | --nfp | --nf) | |
1064 | # Obsolete; use --without-fp. | |
1065 | with_fp=no ;; | |
1066 | ||
1067 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1068 | | --no-cr | --no-c | -n) |
671aa708 NN |
1069 | no_create=yes ;; |
1070 | ||
1071 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1072 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1073 | no_recursion=yes ;; | |
1074 | ||
1075 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1076 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1077 | | --oldin | --oldi | --old | --ol | --o) | |
1078 | ac_prev=oldincludedir ;; | |
1079 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1080 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1081 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1082 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1083 | |
1084 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1085 | ac_prev=prefix ;; | |
1086 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1087 | prefix=$ac_optarg ;; |
671aa708 NN |
1088 | |
1089 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1090 | | --program-pre | --program-pr | --program-p) | |
1091 | ac_prev=program_prefix ;; | |
1092 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1093 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1094 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1095 | |
1096 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1097 | | --program-suf | --program-su | --program-s) | |
1098 | ac_prev=program_suffix ;; | |
1099 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1100 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1101 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1102 | |
1103 | -program-transform-name | --program-transform-name \ | |
1104 | | --program-transform-nam | --program-transform-na \ | |
1105 | | --program-transform-n | --program-transform- \ | |
1106 | | --program-transform | --program-transfor \ | |
1107 | | --program-transfo | --program-transf \ | |
1108 | | --program-trans | --program-tran \ | |
1109 | | --progr-tra | --program-tr | --program-t) | |
1110 | ac_prev=program_transform_name ;; | |
1111 | -program-transform-name=* | --program-transform-name=* \ | |
1112 | | --program-transform-nam=* | --program-transform-na=* \ | |
1113 | | --program-transform-n=* | --program-transform-=* \ | |
1114 | | --program-transform=* | --program-transfor=* \ | |
1115 | | --program-transfo=* | --program-transf=* \ | |
1116 | | --program-trans=* | --program-tran=* \ | |
1117 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1118 | program_transform_name=$ac_optarg ;; |
671aa708 | 1119 | |
5213506e RW |
1120 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1121 | ac_prev=pdfdir ;; | |
1122 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1123 | pdfdir=$ac_optarg ;; | |
1124 | ||
1125 | -psdir | --psdir | --psdi | --psd | --ps) | |
1126 | ac_prev=psdir ;; | |
1127 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1128 | psdir=$ac_optarg ;; | |
1129 | ||
671aa708 NN |
1130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1131 | | -silent | --silent | --silen | --sile | --sil) | |
1132 | silent=yes ;; | |
1133 | ||
1134 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1135 | ac_prev=sbindir ;; | |
1136 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1137 | | --sbi=* | --sb=*) | |
1c710c3c | 1138 | sbindir=$ac_optarg ;; |
671aa708 NN |
1139 | |
1140 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1141 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1142 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1143 | | --sha | --sh) | |
1144 | ac_prev=sharedstatedir ;; | |
1145 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1146 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1147 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1148 | | --sha=* | --sh=*) | |
1c710c3c | 1149 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1150 | |
1151 | -site | --site | --sit) | |
1152 | ac_prev=site ;; | |
1153 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1154 | site=$ac_optarg ;; |
671aa708 NN |
1155 | |
1156 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1157 | ac_prev=srcdir ;; | |
1158 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1159 | srcdir=$ac_optarg ;; |
671aa708 NN |
1160 | |
1161 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1162 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1163 | ac_prev=sysconfdir ;; | |
1164 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1165 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1166 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1167 | |
1168 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1169 | ac_prev=target_alias ;; |
671aa708 | 1170 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1171 | target_alias=$ac_optarg ;; |
671aa708 NN |
1172 | |
1173 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1174 | verbose=yes ;; | |
1175 | ||
1c710c3c DJ |
1176 | -version | --version | --versio | --versi | --vers | -V) |
1177 | ac_init_version=: ;; | |
671aa708 NN |
1178 | |
1179 | -with-* | --with-*) | |
5213506e | 1180 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1181 | # Reject names that are not valid shell variable names. |
5213506e RW |
1182 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1183 | as_fn_error "invalid package name: $ac_useropt" | |
1184 | ac_useropt_orig=$ac_useropt | |
1185 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1186 | case $ac_user_opts in | |
1187 | *" | |
1188 | "with_$ac_useropt" | |
1189 | "*) ;; | |
1190 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1191 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1192 | esac |
5213506e | 1193 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1194 | |
1195 | -without-* | --without-*) | |
5213506e | 1196 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1197 | # Reject names that are not valid shell variable names. |
5213506e RW |
1198 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1199 | as_fn_error "invalid package name: $ac_useropt" | |
1200 | ac_useropt_orig=$ac_useropt | |
1201 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1202 | case $ac_user_opts in | |
1203 | *" | |
1204 | "with_$ac_useropt" | |
1205 | "*) ;; | |
1206 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1207 | ac_unrecognized_sep=', ';; | |
1208 | esac | |
1209 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1210 | |
1211 | --x) | |
1212 | # Obsolete; use --with-x. | |
1213 | with_x=yes ;; | |
1214 | ||
1215 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1216 | | --x-incl | --x-inc | --x-in | --x-i) | |
1217 | ac_prev=x_includes ;; | |
1218 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1219 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1220 | x_includes=$ac_optarg ;; |
671aa708 NN |
1221 | |
1222 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1223 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1224 | ac_prev=x_libraries ;; | |
1225 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1226 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1227 | x_libraries=$ac_optarg ;; |
671aa708 | 1228 | |
5213506e RW |
1229 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1230 | Try \`$0 --help' for more information." | |
671aa708 NN |
1231 | ;; |
1232 | ||
1c710c3c DJ |
1233 | *=*) |
1234 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1235 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1236 | case $ac_envvar in #( |
1237 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1238 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1239 | esac | |
1240 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1241 | export $ac_envvar ;; |
1242 | ||
671aa708 | 1243 | *) |
1c710c3c | 1244 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1245 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1246 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1247 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1c710c3c | 1248 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
671aa708 NN |
1249 | ;; |
1250 | ||
1251 | esac | |
1252 | done | |
1253 | ||
1254 | if test -n "$ac_prev"; then | |
1c710c3c | 1255 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5213506e | 1256 | as_fn_error "missing argument to $ac_option" |
af71363e | 1257 | fi |
af71363e | 1258 | |
5213506e RW |
1259 | if test -n "$ac_unrecognized_opts"; then |
1260 | case $enable_option_checking in | |
1261 | no) ;; | |
1262 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1263 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
2aeb72e9 | 1264 | esac |
5213506e | 1265 | fi |
2aeb72e9 | 1266 | |
5213506e RW |
1267 | # Check all directory arguments for consistency. |
1268 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1269 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1270 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1271 | libdir localedir mandir | |
2aeb72e9 | 1272 | do |
5213506e RW |
1273 | eval ac_val=\$$ac_var |
1274 | # Remove trailing slashes. | |
1275 | case $ac_val in | |
1276 | */ ) | |
1277 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1278 | eval $ac_var=\$ac_val;; | |
1279 | esac | |
1280 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1281 | case $ac_val in |
5213506e RW |
1282 | [\\/$]* | ?:[\\/]* ) continue;; |
1283 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1284 | esac |
5213506e | 1285 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1286 | done |
1287 | ||
1c710c3c DJ |
1288 | # There might be people who depend on the old broken behavior: `$host' |
1289 | # used to hold the argument of --host etc. | |
1290 | # FIXME: To remove some day. | |
1291 | build=$build_alias | |
1292 | host=$host_alias | |
1293 | target=$target_alias | |
0b0dc272 | 1294 | |
1c710c3c DJ |
1295 | # FIXME: To remove some day. |
1296 | if test "x$host_alias" != x; then | |
1297 | if test "x$build_alias" = x; then | |
1298 | cross_compiling=maybe | |
5213506e | 1299 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1c710c3c DJ |
1300 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1301 | elif test "x$build_alias" != "x$host_alias"; then | |
1302 | cross_compiling=yes | |
1303 | fi | |
1304 | fi | |
1305 | ||
1306 | ac_tool_prefix= | |
1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1308 | ||
1309 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1310 | |
671aa708 | 1311 | |
5213506e RW |
1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1313 | ac_ls_di=`ls -di .` && | |
1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1315 | as_fn_error "working directory cannot be determined" | |
1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1317 | as_fn_error "pwd does not report name of working directory" | |
1318 | ||
1319 | ||
671aa708 NN |
1320 | # Find the source files, if location was not specified. |
1321 | if test -z "$srcdir"; then | |
1322 | ac_srcdir_defaulted=yes | |
5213506e RW |
1323 | # Try the directory containing this script, then the parent directory. |
1324 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1327 | X"$as_myself" : 'X\(//\)$' \| \ | |
1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1329 | $as_echo X"$as_myself" | | |
1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1331 | s//\1/ | |
1332 | q | |
1333 | } | |
1334 | /^X\(\/\/\)[^/].*/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)$/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\).*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | s/.*/./; q'` | |
671aa708 | 1347 | srcdir=$ac_confdir |
5213506e | 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1349 | srcdir=.. |
1350 | fi | |
1351 | else | |
1352 | ac_srcdir_defaulted=no | |
1353 | fi | |
5213506e RW |
1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1356 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1357 | fi | |
1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1359 | ac_abs_confdir=`( | |
1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1361 | pwd)` | |
1362 | # When building in place, set srcdir=. | |
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 | srcdir=. | |
1365 | fi | |
1366 | # Remove unnecessary trailing slashes from srcdir. | |
1367 | # Double slashes in file names in object file debugging info | |
1368 | # mess up M-x gdb in Emacs. | |
1369 | case $srcdir in | |
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 | esac | |
87841584 AM |
1372 | case $srcdir in |
1373 | *" "*) | |
1374 | as_fn_error "path to source, $srcdir, contains spaces" | |
1375 | ;; | |
1376 | esac | |
ac9e6043 RW |
1377 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1378 | ||
5213506e RW |
1379 | for ac_var in $ac_precious_vars; do |
1380 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1381 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1382 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1384 | done | |
1c710c3c DJ |
1385 | |
1386 | # | |
1387 | # Report the --help message. | |
1388 | # | |
1389 | if test "$ac_init_help" = "long"; then | |
1390 | # Omit some internal or obsolete options to make the list less imposing. | |
1391 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1392 | cat <<_ACEOF | |
1393 | \`configure' configures this package to adapt to many kinds of systems. | |
1394 | ||
1395 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1396 | ||
1397 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1398 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1399 | ||
1400 | Defaults for the options are specified in brackets. | |
1401 | ||
1402 | Configuration: | |
1403 | -h, --help display this help and exit | |
1404 | --help=short display options specific to this package | |
1405 | --help=recursive display the short help of all the included packages | |
1406 | -V, --version display version information and exit | |
1407 | -q, --quiet, --silent do not print \`checking...' messages | |
1408 | --cache-file=FILE cache test results in FILE [disabled] | |
1409 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1410 | -n, --no-create do not create output files | |
1411 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1412 | ||
1c710c3c DJ |
1413 | Installation directories: |
1414 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1415 | [$ac_default_prefix] |
1c710c3c | 1416 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1417 | [PREFIX] |
1c710c3c DJ |
1418 | |
1419 | By default, \`make install' will install all the files in | |
1420 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1421 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1422 | for instance \`--prefix=\$HOME'. | |
1423 | ||
1424 | For better control, use the options below. | |
1425 | ||
1426 | Fine tuning of the installation directories: | |
5213506e RW |
1427 | --bindir=DIR user executables [EPREFIX/bin] |
1428 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1429 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1430 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1431 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1432 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1433 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1434 | --includedir=DIR C header files [PREFIX/include] | |
1435 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1436 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1437 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1438 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1439 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1440 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1441 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1442 | --htmldir=DIR html documentation [DOCDIR] | |
1443 | --dvidir=DIR dvi documentation [DOCDIR] | |
1444 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1445 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1446 | _ACEOF |
1447 | ||
1448 | cat <<\_ACEOF | |
1449 | ||
1450 | Program names: | |
1451 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1452 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1453 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1454 | ||
1455 | System types: | |
1456 | --build=BUILD configure for building on BUILD [guessed] | |
1457 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1458 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1459 | _ACEOF | |
1460 | fi | |
1461 | ||
1462 | if test -n "$ac_init_help"; then | |
1463 | ||
1464 | cat <<\_ACEOF | |
1465 | ||
1466 | Optional Features: | |
5213506e | 1467 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1468 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1469 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1470 | --enable-as-accelerator-for=ARG |
1471 | build as offload target compiler. Specify offload | |
1472 | host triple by ARG | |
1473 | --enable-offload-targets=LIST | |
1474 | enable offloading to devices from comma-separated | |
1475 | LIST of TARGET[=DIR]. Use optional path to find | |
1476 | offload target compiler during the build | |
21539e2e | 1477 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1478 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1479 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1480 | Enable compressed debug sections for gas, gold or ld |
1481 | by default | |
87e6d9dc TB |
1482 | --disable-libquadmath do not build libquadmath directory |
1483 | --disable-libquadmath-support | |
1484 | disable libquadmath support for Fortran | |
30b74385 RW |
1485 | --enable-libada build libada directory |
1486 | --enable-libssp build libssp directory | |
1873ec0c | 1487 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1488 | --enable-liboffloadmic=ARG |
1489 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1490 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1491 | --disable-isl-version-check |
560d18d3 | 1492 | disable check for isl version |
d7f09764 | 1493 | --enable-lto enable link time optimization support |
45b3824d TS |
1494 | --enable-linker-plugin-configure-flags=FLAGS |
1495 | additional flags for configuring linker plugins | |
1496 | [none] | |
1497 | --enable-linker-plugin-flags=FLAGS | |
1498 | additional flags for configuring and building linker | |
1499 | plugins [none] | |
33e39b66 AS |
1500 | --enable-stage1-languages[=all] |
1501 | choose additional languages to build during stage1. | |
1502 | Mostly useful for compiler development | |
43c40f3e RO |
1503 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1504 | Objective-C runtime | |
318a4e6d | 1505 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1506 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1507 | force sequential configuration of sub-packages for |
1508 | the host, target or build machine, or all | |
1509 | sub-packages | |
1510 | --enable-maintainer-mode | |
1511 | enable make rules and dependencies not useful (and | |
1512 | sometimes confusing) to the casual installer | |
1513 | --enable-stage1-checking[=all] | |
1514 | choose additional checking for stage1 of the | |
1515 | compiler | |
1c710c3c | 1516 | --enable-werror enable -Werror in bootstrap stage2 and later |
459260ec | 1517 | --enable-host-shared build host code as shared libraries |
1c710c3c DJ |
1518 | |
1519 | Optional Packages: | |
1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1522 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1523 | --with-system-zlib use installed libz |
33e39b66 AS |
1524 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1525 | Equivalent to --with-mpc-include=PATH/include plus | |
1526 | --with-mpc-lib=PATH/lib | |
1527 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1528 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1529 | --with-mpfr-dir=PATH this option has been REMOVED |
1530 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1531 | Equivalent to --with-mpfr-include=PATH/include plus |
1532 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1533 | --with-mpfr-include=PATH |
30b74385 RW |
1534 | specify directory for installed MPFR include files |
1535 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1536 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1537 | --with-gmp=PATH specify prefix directory for the installed GMP |
1538 | package. Equivalent to | |
1539 | --with-gmp-include=PATH/include plus | |
1540 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1541 | --with-gmp-include=PATH specify directory for installed GMP include files |
1542 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1543 | --with-stage1-libs=LIBS libraries for stage1 |
33e39b66 AS |
1544 | --with-stage1-ldflags=FLAGS |
1545 | linker flags for stage1 | |
33e39b66 AS |
1546 | --with-boot-libs=LIBS libraries for stage2 and later |
1547 | --with-boot-ldflags=FLAGS | |
1548 | linker flags for stage2 and later | |
e357a5e0 | 1549 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1550 | package. Equivalent to |
33ad93b9 RG |
1551 | --with-isl-include=PATH/include plus |
1552 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1553 | --with-isl-include=PATH Specify directory for installed isl include files |
1554 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
30b74385 | 1555 | --with-build-sysroot=SYSROOT |
1c710c3c | 1556 | use sysroot as the system root during the build |
c8aea42c | 1557 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1558 | map A to B, C to D ... in debug information |
1559 | --with-build-config='NAME NAME2...' | |
1560 | use config/NAME.mk build configuration | |
30b74385 | 1561 | --with-build-time-tools=PATH |
1c710c3c | 1562 | use given path to find target tools during the build |
1c710c3c DJ |
1563 | |
1564 | Some influential environment variables: | |
1565 | CC C compiler command | |
1566 | CFLAGS C compiler flags | |
1567 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1568 | nonstandard directory <lib dir> | |
5213506e RW |
1569 | LIBS libraries to pass to the linker, e.g. -l<library> |
1570 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1571 | you have headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
1572 | CXX C++ compiler command |
1573 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1574 | build_configargs |
1575 | additional configure arguments for build directories | |
1576 | host_configargs | |
1577 | additional configure arguments for host directories | |
1578 | target_configargs | |
1579 | additional configure arguments for target directories | |
278a7a38 AO |
1580 | AR AR for the host |
1581 | AS AS for the host | |
1582 | DLLTOOL DLLTOOL for the host | |
1583 | LD LD for the host | |
1584 | LIPO LIPO for the host | |
1585 | NM NM for the host | |
1586 | RANLIB RANLIB for the host | |
1587 | STRIP STRIP for the host | |
1588 | WINDRES WINDRES for the host | |
901119ae | 1589 | WINDMC WINDMC for the host |
278a7a38 AO |
1590 | OBJCOPY OBJCOPY for the host |
1591 | OBJDUMP OBJDUMP for the host | |
e7a82751 | 1592 | READELF READELF for the host |
278a7a38 AO |
1593 | CC_FOR_TARGET |
1594 | CC for the target | |
1595 | CXX_FOR_TARGET | |
1596 | CXX for the target | |
1597 | GCC_FOR_TARGET | |
1598 | GCC for the target | |
1599 | GCJ_FOR_TARGET | |
1600 | GCJ for the target | |
1601 | GFORTRAN_FOR_TARGET | |
1602 | GFORTRAN for the target | |
632e2a07 ILT |
1603 | GOC_FOR_TARGET |
1604 | GOC for the target | |
278a7a38 AO |
1605 | AR_FOR_TARGET |
1606 | AR for the target | |
1607 | AS_FOR_TARGET | |
1608 | AS for the target | |
1609 | DLLTOOL_FOR_TARGET | |
1610 | DLLTOOL for the target | |
1611 | LD_FOR_TARGET | |
1612 | LD for the target | |
1613 | LIPO_FOR_TARGET | |
1614 | LIPO for the target | |
1615 | NM_FOR_TARGET | |
1616 | NM for the target | |
9bccfdf5 AP |
1617 | OBJCOPY_FOR_TARGET |
1618 | OBJCOPY for the target | |
278a7a38 AO |
1619 | OBJDUMP_FOR_TARGET |
1620 | OBJDUMP for the target | |
1621 | RANLIB_FOR_TARGET | |
1622 | RANLIB for the target | |
e7a82751 RM |
1623 | READELF_FOR_TARGET |
1624 | READELF for the target | |
278a7a38 AO |
1625 | STRIP_FOR_TARGET |
1626 | STRIP for the target | |
1627 | WINDRES_FOR_TARGET | |
1628 | WINDRES for the target | |
901119ae KT |
1629 | WINDMC_FOR_TARGET |
1630 | WINDMC for the target | |
1c710c3c DJ |
1631 | |
1632 | Use these variables to override the choices made by `configure' or to help | |
1633 | it to find libraries and programs with nonstandard names/locations. | |
1634 | ||
5213506e | 1635 | Report bugs to the package provider. |
1c710c3c | 1636 | _ACEOF |
5213506e | 1637 | ac_status=$? |
1c710c3c DJ |
1638 | fi |
1639 | ||
1640 | if test "$ac_init_help" = "recursive"; then | |
1641 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1642 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1643 | test -d "$ac_dir" || |
1644 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1645 | continue | |
1c710c3c DJ |
1646 | ac_builddir=. |
1647 | ||
5213506e RW |
1648 | case "$ac_dir" in |
1649 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1650 | *) | |
1651 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1652 | # A ".." for each directory in $ac_dir_suffix. | |
1653 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1654 | case $ac_top_builddir_sub in | |
1655 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1656 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1657 | esac ;; | |
1658 | esac | |
1659 | ac_abs_top_builddir=$ac_pwd | |
1660 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1661 | # for backward compatibility: | |
1662 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1663 | |
1664 | case $srcdir in | |
5213506e | 1665 | .) # We are building in place. |
1c710c3c | 1666 | ac_srcdir=. |
5213506e RW |
1667 | ac_top_srcdir=$ac_top_builddir_sub |
1668 | ac_abs_top_srcdir=$ac_pwd ;; | |
1669 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1670 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1671 | ac_top_srcdir=$srcdir |
1672 | ac_abs_top_srcdir=$srcdir ;; | |
1673 | *) # Relative name. | |
1674 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1675 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1676 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1677 | esac |
5213506e RW |
1678 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1679 | ||
1680 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1681 | # Check for guested configure. | |
1682 | if test -f "$ac_srcdir/configure.gnu"; then | |
1683 | echo && | |
1684 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1685 | elif test -f "$ac_srcdir/configure"; then | |
1686 | echo && | |
1687 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1688 | else |
5213506e RW |
1689 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1690 | fi || ac_status=$? | |
1691 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1692 | done |
1693 | fi | |
1694 | ||
5213506e | 1695 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1696 | if $ac_init_version; then |
1697 | cat <<\_ACEOF | |
5213506e RW |
1698 | configure |
1699 | generated by GNU Autoconf 2.64 | |
1c710c3c | 1700 | |
5213506e | 1701 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
1702 | This configure script is free software; the Free Software Foundation |
1703 | gives unlimited permission to copy, distribute and modify it. | |
1704 | _ACEOF | |
5213506e | 1705 | exit |
0b0dc272 | 1706 | fi |
5213506e RW |
1707 | |
1708 | ## ------------------------ ## | |
1709 | ## Autoconf initialization. ## | |
1710 | ## ------------------------ ## | |
1711 | ||
1712 | # ac_fn_c_try_compile LINENO | |
1713 | # -------------------------- | |
1714 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1715 | ac_fn_c_try_compile () | |
1716 | { | |
1717 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1718 | rm -f conftest.$ac_objext | |
1719 | if { { ac_try="$ac_compile" | |
1720 | case "(($ac_try" in | |
1721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1722 | *) ac_try_echo=$ac_try;; | |
1723 | esac | |
1724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1725 | $as_echo "$ac_try_echo"; } >&5 | |
1726 | (eval "$ac_compile") 2>conftest.err | |
1727 | ac_status=$? | |
1728 | if test -s conftest.err; then | |
1729 | grep -v '^ *+' conftest.err >conftest.er1 | |
1730 | cat conftest.er1 >&5 | |
1731 | mv -f conftest.er1 conftest.err | |
1732 | fi | |
1733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1734 | test $ac_status = 0; } && { | |
1735 | test -z "$ac_c_werror_flag" || | |
1736 | test ! -s conftest.err | |
1737 | } && test -s conftest.$ac_objext; then : | |
1738 | ac_retval=0 | |
1739 | else | |
1740 | $as_echo "$as_me: failed program was:" >&5 | |
1741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1742 | ||
1743 | ac_retval=1 | |
1744 | fi | |
1745 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1746 | return $ac_retval | |
1747 | ||
1748 | } # ac_fn_c_try_compile | |
1749 | ||
1750 | # ac_fn_cxx_try_compile LINENO | |
1751 | # ---------------------------- | |
1752 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1753 | ac_fn_cxx_try_compile () | |
1754 | { | |
1755 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1756 | rm -f conftest.$ac_objext | |
1757 | if { { ac_try="$ac_compile" | |
1758 | case "(($ac_try" in | |
1759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1760 | *) ac_try_echo=$ac_try;; | |
1761 | esac | |
1762 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1763 | $as_echo "$ac_try_echo"; } >&5 | |
1764 | (eval "$ac_compile") 2>conftest.err | |
1765 | ac_status=$? | |
1766 | if test -s conftest.err; then | |
1767 | grep -v '^ *+' conftest.err >conftest.er1 | |
1768 | cat conftest.er1 >&5 | |
1769 | mv -f conftest.er1 conftest.err | |
1770 | fi | |
1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1772 | test $ac_status = 0; } && { | |
1773 | test -z "$ac_cxx_werror_flag" || | |
1774 | test ! -s conftest.err | |
1775 | } && test -s conftest.$ac_objext; then : | |
1776 | ac_retval=0 | |
1777 | else | |
1778 | $as_echo "$as_me: failed program was:" >&5 | |
1779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1780 | ||
1781 | ac_retval=1 | |
1782 | fi | |
1783 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1784 | return $ac_retval | |
1785 | ||
1786 | } # ac_fn_cxx_try_compile | |
1787 | ||
0b21f5d3 EB |
1788 | # ac_fn_cxx_try_link LINENO |
1789 | # ------------------------- | |
1790 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1791 | ac_fn_cxx_try_link () | |
1792 | { | |
1793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1795 | if { { ac_try="$ac_link" | |
1796 | case "(($ac_try" in | |
1797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1798 | *) ac_try_echo=$ac_try;; | |
1799 | esac | |
1800 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1801 | $as_echo "$ac_try_echo"; } >&5 | |
1802 | (eval "$ac_link") 2>conftest.err | |
1803 | ac_status=$? | |
1804 | if test -s conftest.err; then | |
1805 | grep -v '^ *+' conftest.err >conftest.er1 | |
1806 | cat conftest.er1 >&5 | |
1807 | mv -f conftest.er1 conftest.err | |
1808 | fi | |
1809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1810 | test $ac_status = 0; } && { | |
1811 | test -z "$ac_cxx_werror_flag" || | |
1812 | test ! -s conftest.err | |
1813 | } && test -s conftest$ac_exeext && { | |
1814 | test "$cross_compiling" = yes || | |
1815 | $as_test_x conftest$ac_exeext | |
1816 | }; then : | |
1817 | ac_retval=0 | |
1818 | else | |
1819 | $as_echo "$as_me: failed program was:" >&5 | |
1820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1821 | ||
1822 | ac_retval=1 | |
1823 | fi | |
1824 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1825 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1826 | # interfere with the next link command; also delete a directory that is | |
1827 | # left behind by Apple's compiler. We do this before executing the actions. | |
1828 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1829 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1830 | return $ac_retval | |
1831 | ||
1832 | } # ac_fn_cxx_try_link | |
1833 | ||
5213506e RW |
1834 | # ac_fn_c_try_link LINENO |
1835 | # ----------------------- | |
1836 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1837 | ac_fn_c_try_link () | |
1838 | { | |
1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1841 | if { { ac_try="$ac_link" | |
1842 | case "(($ac_try" in | |
1843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1844 | *) ac_try_echo=$ac_try;; | |
1845 | esac | |
1846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1847 | $as_echo "$ac_try_echo"; } >&5 | |
1848 | (eval "$ac_link") 2>conftest.err | |
1849 | ac_status=$? | |
1850 | if test -s conftest.err; then | |
1851 | grep -v '^ *+' conftest.err >conftest.er1 | |
1852 | cat conftest.er1 >&5 | |
1853 | mv -f conftest.er1 conftest.err | |
1854 | fi | |
1855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1856 | test $ac_status = 0; } && { | |
1857 | test -z "$ac_c_werror_flag" || | |
1858 | test ! -s conftest.err | |
1859 | } && test -s conftest$ac_exeext && { | |
1860 | test "$cross_compiling" = yes || | |
1861 | $as_test_x conftest$ac_exeext | |
1862 | }; then : | |
1863 | ac_retval=0 | |
1864 | else | |
1865 | $as_echo "$as_me: failed program was:" >&5 | |
1866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1867 | ||
1868 | ac_retval=1 | |
1869 | fi | |
1870 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1871 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1872 | # interfere with the next link command; also delete a directory that is | |
1873 | # left behind by Apple's compiler. We do this before executing the actions. | |
1874 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1875 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1876 | return $ac_retval | |
1877 | ||
1878 | } # ac_fn_c_try_link | |
1879 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1880 | This file contains any messages produced by compilers while |
1881 | running configure, to aid debugging if configure makes a mistake. | |
1882 | ||
1883 | It was created by $as_me, which was | |
5213506e | 1884 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
1885 | |
1886 | $ $0 $@ | |
1887 | ||
1888 | _ACEOF | |
5213506e | 1889 | exec 5>>config.log |
1c710c3c DJ |
1890 | { |
1891 | cat <<_ASUNAME | |
1892 | ## --------- ## | |
1893 | ## Platform. ## | |
1894 | ## --------- ## | |
1895 | ||
1896 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1897 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1898 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1899 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1900 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1901 | ||
1902 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1903 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1904 | ||
1905 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1906 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1907 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1908 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1909 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1910 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1911 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1912 | ||
1913 | _ASUNAME | |
1914 | ||
1915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1916 | for as_dir in $PATH | |
1917 | do | |
1918 | IFS=$as_save_IFS | |
1919 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1920 | $as_echo "PATH: $as_dir" |
1921 | done | |
1922 | IFS=$as_save_IFS | |
1c710c3c DJ |
1923 | |
1924 | } >&5 | |
1925 | ||
1926 | cat >&5 <<_ACEOF | |
1927 | ||
1928 | ||
1929 | ## ----------- ## | |
1930 | ## Core tests. ## | |
1931 | ## ----------- ## | |
1932 | ||
1933 | _ACEOF | |
1934 | ||
1935 | ||
1936 | # Keep a trace of the command line. | |
1937 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1938 | # Strip out --silent because we don't want to record it for future runs. | |
1939 | # Also quote any args containing shell meta-characters. | |
1940 | # Make two passes to allow for proper duplicate-argument suppression. | |
1941 | ac_configure_args= | |
1942 | ac_configure_args0= | |
1943 | ac_configure_args1= | |
1c710c3c DJ |
1944 | ac_must_keep_next=false |
1945 | for ac_pass in 1 2 | |
1946 | do | |
1947 | for ac_arg | |
1948 | do | |
1949 | case $ac_arg in | |
1950 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1951 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1952 | | -silent | --silent | --silen | --sile | --sil) | |
1953 | continue ;; | |
5213506e RW |
1954 | *\'*) |
1955 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1956 | esac |
1957 | case $ac_pass in | |
5213506e | 1958 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 1959 | 2) |
5213506e | 1960 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
1961 | if test $ac_must_keep_next = true; then |
1962 | ac_must_keep_next=false # Got value, back to normal. | |
1963 | else | |
1964 | case $ac_arg in | |
1965 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1966 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1967 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1968 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1969 | case "$ac_configure_args0 " in | |
1970 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1971 | esac | |
1972 | ;; | |
1973 | -* ) ac_must_keep_next=true ;; | |
1974 | esac | |
1975 | fi | |
5213506e | 1976 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
1977 | ;; |
1978 | esac | |
1979 | done | |
1980 | done | |
5213506e RW |
1981 | { ac_configure_args0=; unset ac_configure_args0;} |
1982 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
1983 | |
1984 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1985 | # config.log. We remove comments because anyway the quotes in there | |
1986 | # would cause problems or look ugly. | |
5213506e RW |
1987 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1988 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
1989 | trap 'exit_status=$? |
1990 | # Save into config.log some information that might help in debugging. | |
1991 | { | |
1992 | echo | |
1993 | ||
1994 | cat <<\_ASBOX | |
1995 | ## ---------------- ## | |
1996 | ## Cache variables. ## | |
1997 | ## ---------------- ## | |
1998 | _ASBOX | |
1999 | echo | |
2000 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2001 | ( |
2002 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2003 | eval ac_val=\$$ac_var | |
2004 | case $ac_val in #( | |
2005 | *${as_nl}*) | |
2006 | case $ac_var in #( | |
2007 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2008 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2009 | esac | |
2010 | case $ac_var in #( | |
2011 | _ | IFS | as_nl) ;; #( | |
2012 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2013 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2014 | esac ;; | |
2015 | esac | |
2016 | done | |
1c710c3c | 2017 | (set) 2>&1 | |
5213506e RW |
2018 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2019 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2020 | sed -n \ |
5213506e RW |
2021 | "s/'\''/'\''\\\\'\'''\''/g; |
2022 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2023 | ;; #( | |
1c710c3c | 2024 | *) |
5213506e | 2025 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2026 | ;; |
5213506e RW |
2027 | esac | |
2028 | sort | |
2029 | ) | |
1c710c3c DJ |
2030 | echo |
2031 | ||
2032 | cat <<\_ASBOX | |
2033 | ## ----------------- ## | |
2034 | ## Output variables. ## | |
2035 | ## ----------------- ## | |
2036 | _ASBOX | |
2037 | echo | |
2038 | for ac_var in $ac_subst_vars | |
2039 | do | |
5213506e RW |
2040 | eval ac_val=\$$ac_var |
2041 | case $ac_val in | |
2042 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2043 | esac | |
2044 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2045 | done | sort |
2046 | echo | |
2047 | ||
2048 | if test -n "$ac_subst_files"; then | |
2049 | cat <<\_ASBOX | |
5213506e RW |
2050 | ## ------------------- ## |
2051 | ## File substitutions. ## | |
2052 | ## ------------------- ## | |
1c710c3c DJ |
2053 | _ASBOX |
2054 | echo | |
2055 | for ac_var in $ac_subst_files | |
2056 | do | |
5213506e RW |
2057 | eval ac_val=\$$ac_var |
2058 | case $ac_val in | |
2059 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2060 | esac | |
2061 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2062 | done | sort |
2063 | echo | |
2064 | fi | |
2065 | ||
2066 | if test -s confdefs.h; then | |
2067 | cat <<\_ASBOX | |
2068 | ## ----------- ## | |
2069 | ## confdefs.h. ## | |
2070 | ## ----------- ## | |
2071 | _ASBOX | |
2072 | echo | |
5213506e | 2073 | cat confdefs.h |
1c710c3c DJ |
2074 | echo |
2075 | fi | |
2076 | test "$ac_signal" != 0 && | |
5213506e RW |
2077 | $as_echo "$as_me: caught signal $ac_signal" |
2078 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2079 | } >&5 |
5213506e RW |
2080 | rm -f core *.core core.conftest.* && |
2081 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2082 | exit $exit_status |
5213506e | 2083 | ' 0 |
1c710c3c | 2084 | for ac_signal in 1 2 13 15; do |
5213506e | 2085 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2086 | done |
2087 | ac_signal=0 | |
2088 | ||
2089 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2090 | rm -f -r conftest* confdefs.h |
2091 | ||
2092 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2093 | |
2094 | # Predefined preprocessor variables. | |
2095 | ||
2096 | cat >>confdefs.h <<_ACEOF | |
2097 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2098 | _ACEOF | |
2099 | ||
1c710c3c DJ |
2100 | cat >>confdefs.h <<_ACEOF |
2101 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2102 | _ACEOF | |
2103 | ||
1c710c3c DJ |
2104 | cat >>confdefs.h <<_ACEOF |
2105 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2106 | _ACEOF | |
0b0dc272 | 2107 | |
1c710c3c DJ |
2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2110 | _ACEOF | |
2111 | ||
1c710c3c DJ |
2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2114 | _ACEOF | |
2115 | ||
5213506e RW |
2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_URL "$PACKAGE_URL" | |
2118 | _ACEOF | |
2119 | ||
1c710c3c DJ |
2120 | |
2121 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2122 | # Prefer an explicitly selected file to automatically selected ones. |
2123 | ac_site_file1=NONE | |
2124 | ac_site_file2=NONE | |
2125 | if test -n "$CONFIG_SITE"; then | |
2126 | ac_site_file1=$CONFIG_SITE | |
2127 | elif test "x$prefix" != xNONE; then | |
2128 | ac_site_file1=$prefix/share/config.site | |
2129 | ac_site_file2=$prefix/etc/config.site | |
2130 | else | |
2131 | ac_site_file1=$ac_default_prefix/share/config.site | |
2132 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2133 | fi |
5213506e RW |
2134 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2135 | do | |
2136 | test "x$ac_site_file" = xNONE && continue | |
671aa708 | 2137 | if test -r "$ac_site_file"; then |
5213506e RW |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2139 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2140 | sed 's/^/| /' "$ac_site_file" >&5 |
671aa708 NN |
2141 | . "$ac_site_file" |
2142 | fi | |
2143 | done | |
2144 | ||
2145 | if test -r "$cache_file"; then | |
1c710c3c DJ |
2146 | # Some versions of bash will fail to source /dev/null (special |
2147 | # files actually), so we avoid doing that. | |
2148 | if test -f "$cache_file"; then | |
5213506e RW |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2150 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2151 | case $cache_file in |
5213506e RW |
2152 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2153 | *) . "./$cache_file";; | |
1c710c3c DJ |
2154 | esac |
2155 | fi | |
671aa708 | 2156 | else |
5213506e RW |
2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2158 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2159 | >$cache_file |
2160 | fi | |
2161 | ||
2162 | # Check that the precious variables saved in the cache have kept the same | |
2163 | # value. | |
2164 | ac_cache_corrupted=false | |
5213506e | 2165 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2166 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2167 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2168 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2169 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2170 | case $ac_old_set,$ac_new_set in |
2171 | set,) | |
5213506e RW |
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2173 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2174 | ac_cache_corrupted=: ;; |
2175 | ,set) | |
5213506e RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2177 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2178 | ac_cache_corrupted=: ;; |
2179 | ,);; | |
2180 | *) | |
2181 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2182 | # differences in whitespace do not lead to failure. |
2183 | ac_old_val_w=`echo x $ac_old_val` | |
2184 | ac_new_val_w=`echo x $ac_new_val` | |
2185 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2187 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2188 | ac_cache_corrupted=: | |
2189 | else | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2191 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2192 | eval $ac_var=\$ac_old_val | |
2193 | fi | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2195 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2197 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2198 | fi;; |
2199 | esac | |
2200 | # Pass precious variables to config.status. | |
2201 | if test "$ac_new_set" = set; then | |
2202 | case $ac_new_val in | |
5213506e | 2203 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2204 | *) ac_arg=$ac_var=$ac_new_val ;; |
2205 | esac | |
2206 | case " $ac_configure_args " in | |
2207 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2208 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2209 | esac |
2210 | fi | |
2211 | done | |
2212 | if $ac_cache_corrupted; then | |
5213506e RW |
2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2214 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2216 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2217 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
671aa708 | 2218 | fi |
5213506e RW |
2219 | ## -------------------- ## |
2220 | ## Main body of script. ## | |
2221 | ## -------------------- ## | |
671aa708 | 2222 | |
2aeb72e9 DD |
2223 | ac_ext=c |
2224 | ac_cpp='$CPP $CPPFLAGS' | |
2225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2228 | ||
1c710c3c DJ |
2229 | |
2230 | ||
2231 | ||
1c710c3c DJ |
2232 | |
2233 | ||
0115d4a3 | 2234 | |
1c710c3c | 2235 | |
ad33ff57 RW |
2236 | |
2237 | progname=$0 | |
2238 | # if PWD already has a value, it is probably wrong. | |
2239 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2240 | ||
2241 | # Export original configure arguments for use by sub-configures. | |
2242 | # Quote arguments with shell meta charatcers. | |
2243 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2244 | set -- "$progname" "$@" | |
2245 | for ac_arg | |
2246 | do | |
2247 | case "$ac_arg" in | |
2248 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2249 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2250 | # if the argument is of the form -foo=baz, quote the baz part only | |
2251 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2252 | *) ;; | |
2253 | esac | |
2254 | # Add the quoted argument to the list. | |
2255 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2256 | done | |
2257 | if test "$silent" = yes; then | |
2258 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2259 | fi | |
2260 | # Remove the initial space we just introduced and, as these will be | |
2261 | # expanded by make, quote '$'. | |
2262 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2263 | ||
1c710c3c DJ |
2264 | |
2265 | # Find the build, host, and target systems. | |
671aa708 | 2266 | ac_aux_dir= |
5213506e RW |
2267 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2268 | for ac_t in install-sh install.sh shtool; do | |
2269 | if test -f "$ac_dir/$ac_t"; then | |
2270 | ac_aux_dir=$ac_dir | |
2271 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2272 | break 2 | |
2273 | fi | |
2274 | done | |
671aa708 NN |
2275 | done |
2276 | if test -z "$ac_aux_dir"; then | |
5213506e | 2277 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2278 | fi |
5213506e RW |
2279 | |
2280 | # These three variables are undocumented and unsupported, | |
2281 | # and are intended to be withdrawn in a future Autoconf release. | |
2282 | # They can cause serious problems if a builder's source tree is in a directory | |
2283 | # whose full name contains unusual characters. | |
2284 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2285 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2286 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2287 | ||
671aa708 | 2288 | |
1c710c3c | 2289 | # Make sure we can run config.sub. |
5213506e RW |
2290 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2291 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2292 | ||
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2294 | $as_echo_n "checking build system type... " >&6; } | |
2295 | if test "${ac_cv_build+set}" = set; then : | |
2296 | $as_echo_n "(cached) " >&6 | |
2297 | else | |
2298 | ac_build_alias=$build_alias | |
2299 | test "x$ac_build_alias" = x && | |
2300 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2301 | test "x$ac_build_alias" = x && | |
2302 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2303 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2304 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2305 | ||
2306 | fi | |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2308 | $as_echo "$ac_cv_build" >&6; } | |
2309 | case $ac_cv_build in | |
2310 | *-*-*) ;; | |
2311 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2312 | esac | |
1c710c3c | 2313 | build=$ac_cv_build |
5213506e RW |
2314 | ac_save_IFS=$IFS; IFS='-' |
2315 | set x $ac_cv_build | |
2316 | shift | |
2317 | build_cpu=$1 | |
2318 | build_vendor=$2 | |
2319 | shift; shift | |
2320 | # Remember, the first character of IFS is used to create $*, | |
2321 | # except with old shells: | |
2322 | build_os=$* | |
2323 | IFS=$ac_save_IFS | |
2324 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2325 | |
671aa708 | 2326 | |
1c710c3c DJ |
2327 | case ${build_alias} in |
2328 | "") build_noncanonical=${build} ;; | |
2329 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2330 | esac |
2331 | ||
2332 | ||
af71363e | 2333 | |
1c710c3c DJ |
2334 | case ${host_alias} in |
2335 | "") host_noncanonical=${build_noncanonical} ;; | |
2336 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2337 | esac |
2338 | ||
af71363e | 2339 | |
1c710c3c DJ |
2340 | |
2341 | case ${target_alias} in | |
2342 | "") target_noncanonical=${host_noncanonical} ;; | |
2343 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2344 | esac |
2345 | ||
af71363e | 2346 | |
1c710c3c DJ |
2347 | |
2348 | ||
2349 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2350 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2351 | NONENONEs,x,x, && | |
1c710c3c | 2352 | program_transform_name=s,y,y, |
af71363e | 2353 | |
5213506e RW |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2355 | $as_echo_n "checking host system type... " >&6; } | |
2356 | if test "${ac_cv_host+set}" = set; then : | |
2357 | $as_echo_n "(cached) " >&6 | |
af71363e | 2358 | else |
5213506e RW |
2359 | if test "x$host_alias" = x; then |
2360 | ac_cv_host=$ac_cv_build | |
2361 | else | |
2362 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2363 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2364 | fi | |
1c710c3c | 2365 | |
af71363e | 2366 | fi |
5213506e RW |
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2368 | $as_echo "$ac_cv_host" >&6; } | |
2369 | case $ac_cv_host in | |
2370 | *-*-*) ;; | |
2371 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2372 | esac | |
1c710c3c | 2373 | host=$ac_cv_host |
5213506e RW |
2374 | ac_save_IFS=$IFS; IFS='-' |
2375 | set x $ac_cv_host | |
2376 | shift | |
2377 | host_cpu=$1 | |
2378 | host_vendor=$2 | |
2379 | shift; shift | |
2380 | # Remember, the first character of IFS is used to create $*, | |
2381 | # except with old shells: | |
2382 | host_os=$* | |
2383 | IFS=$ac_save_IFS | |
2384 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2385 | |
2386 | ||
5213506e RW |
2387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2388 | $as_echo_n "checking target system type... " >&6; } | |
2389 | if test "${ac_cv_target+set}" = set; then : | |
2390 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 2391 | else |
5213506e RW |
2392 | if test "x$target_alias" = x; then |
2393 | ac_cv_target=$ac_cv_host | |
2394 | else | |
2395 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2396 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2397 | fi | |
1c710c3c DJ |
2398 | |
2399 | fi | |
5213506e RW |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2401 | $as_echo "$ac_cv_target" >&6; } | |
2402 | case $ac_cv_target in | |
2403 | *-*-*) ;; | |
2404 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2405 | esac | |
1c710c3c | 2406 | target=$ac_cv_target |
5213506e RW |
2407 | ac_save_IFS=$IFS; IFS='-' |
2408 | set x $ac_cv_target | |
2409 | shift | |
2410 | target_cpu=$1 | |
2411 | target_vendor=$2 | |
2412 | shift; shift | |
2413 | # Remember, the first character of IFS is used to create $*, | |
2414 | # except with old shells: | |
2415 | target_os=$* | |
2416 | IFS=$ac_save_IFS | |
2417 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2418 | |
2419 | ||
2420 | # The aliases save the names the user supplied, while $host etc. | |
2421 | # will get canonicalized. | |
2422 | test -n "$target_alias" && | |
2423 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2424 | NONENONEs,x,x, && | |
2425 | program_prefix=${target_alias}- | |
5213506e | 2426 | |
671aa708 | 2427 | test "$program_prefix" != NONE && |
5213506e | 2428 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2429 | # Use a double $ so make ignores it. |
2430 | test "$program_suffix" != NONE && | |
5213506e RW |
2431 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2432 | # Double any \ or $. | |
1c710c3c | 2433 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2434 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2435 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2436 | |
671aa708 NN |
2437 | |
2438 | ||
775956d0 NN |
2439 | # Get 'install' or 'install-sh' and its variants. |
2440 | # Find a good install program. We prefer a C program (faster), | |
2441 | # so one script is as good as another. But avoid the broken or | |
2442 | # incompatible versions: | |
2443 | # SysV /etc/install, /usr/sbin/install | |
2444 | # SunOS /usr/etc/install | |
2445 | # IRIX /sbin/install | |
2446 | # AIX /bin/install | |
1c710c3c | 2447 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2448 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2449 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2450 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2451 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2452 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2453 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2455 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2456 | if test -z "$INSTALL"; then |
5213506e RW |
2457 | if test "${ac_cv_path_install+set}" = set; then : |
2458 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
2459 | else |
2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2461 | for as_dir in $PATH | |
2462 | do | |
2463 | IFS=$as_save_IFS | |
2464 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2465 | # Account for people who put trailing slashes in PATH elements. |
2466 | case $as_dir/ in #(( | |
2467 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2468 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2469 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2470 | /usr/ucb/* ) ;; |
2471 | *) | |
2472 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2473 | # Don't use installbsd from OSF since it installs stuff as root | |
2474 | # by default. | |
2475 | for ac_prog in ginstall scoinst install; do | |
2476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2477 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
775956d0 | 2478 | if test $ac_prog = install && |
1c710c3c | 2479 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2480 | # AIX install. It has an incompatible calling convention. |
2481 | : | |
1c710c3c DJ |
2482 | elif test $ac_prog = install && |
2483 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2484 | # program-specific install script used by HP pwplus--don't use. | |
2485 | : | |
775956d0 | 2486 | else |
38d24731 RW |
2487 | rm -rf conftest.one conftest.two conftest.dir |
2488 | echo one > conftest.one | |
2489 | echo two > conftest.two | |
2490 | mkdir conftest.dir | |
2491 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2492 | test -s conftest.one && test -s conftest.two && | |
2493 | test -s conftest.dir/conftest.one && | |
2494 | test -s conftest.dir/conftest.two | |
2495 | then | |
2496 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2497 | break 3 | |
2498 | fi | |
775956d0 NN |
2499 | fi |
2500 | fi | |
2501 | done | |
1c710c3c DJ |
2502 | done |
2503 | ;; | |
2504 | esac | |
5213506e RW |
2505 | |
2506 | done | |
2507 | IFS=$as_save_IFS | |
1c710c3c | 2508 | |
38d24731 | 2509 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2510 | |
2511 | fi | |
2512 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2513 | INSTALL=$ac_cv_path_install |
775956d0 | 2514 | else |
38d24731 RW |
2515 | # As a last resort, use the slow shell script. Don't cache a |
2516 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2517 | # break other packages using the cache if that directory is |
38d24731 | 2518 | # removed, or if the value is a relative name. |
1c710c3c | 2519 | INSTALL=$ac_install_sh |
775956d0 NN |
2520 | fi |
2521 | fi | |
5213506e RW |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2523 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2524 | |
2525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2526 | # It thinks the first close brace ends the variable substitution. | |
2527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2528 | ||
1c710c3c | 2529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2530 | |
2531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2532 | ||
5213506e RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2534 | $as_echo_n "checking whether ln works... " >&6; } | |
2535 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2536 | $as_echo_n "(cached) " >&6 | |
ad6717df PB |
2537 | else |
2538 | rm -f conftestdata_t | |
2539 | echo >conftestdata_f | |
2540 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2541 | then | |
2542 | acx_cv_prog_LN=ln | |
2543 | else | |
2544 | acx_cv_prog_LN=no | |
2545 | fi | |
2546 | rm -f conftestdata_f conftestdata_t | |
2547 | ||
2548 | fi | |
2549 | if test $acx_cv_prog_LN = no; then | |
2550 | LN="cp" | |
5213506e RW |
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2552 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2553 | else |
2554 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2556 | $as_echo "yes" >&6; } | |
ad6717df PB |
2557 | fi |
2558 | ||
5213506e RW |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2560 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2561 | LN_S=$as_ln_s |
2562 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2564 | $as_echo "yes" >&6; } | |
fb0103e5 | 2565 | else |
5213506e RW |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2567 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2568 | fi |
2569 | ||
87264276 PB |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2571 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2572 | if test "${ac_cv_path_SED+set}" = set; then : | |
2573 | $as_echo_n "(cached) " >&6 | |
2574 | else | |
2575 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2576 | for ac_i in 1 2 3 4 5 6 7; do | |
2577 | ac_script="$ac_script$as_nl$ac_script" | |
2578 | done | |
2579 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2580 | { ac_script=; unset ac_script;} | |
2581 | if test -z "$SED"; then | |
2582 | ac_path_SED_found=false | |
2583 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2585 | for as_dir in $PATH | |
2586 | do | |
2587 | IFS=$as_save_IFS | |
2588 | test -z "$as_dir" && as_dir=. | |
2589 | for ac_prog in sed gsed; do | |
2590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2591 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2592 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2593 | # Check for GNU ac_path_SED and select it if it is found. | |
2594 | # Check for GNU $ac_path_SED | |
2595 | case `"$ac_path_SED" --version 2>&1` in | |
2596 | *GNU*) | |
2597 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2598 | *) | |
2599 | ac_count=0 | |
2600 | $as_echo_n 0123456789 >"conftest.in" | |
2601 | while : | |
2602 | do | |
2603 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2604 | mv "conftest.tmp" "conftest.in" | |
2605 | cp "conftest.in" "conftest.nl" | |
2606 | $as_echo '' >> "conftest.nl" | |
2607 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2608 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2609 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2610 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2611 | # Best one so far, save it but keep looking for a better one | |
2612 | ac_cv_path_SED="$ac_path_SED" | |
2613 | ac_path_SED_max=$ac_count | |
2614 | fi | |
2615 | # 10*(2^10) chars as input seems more than enough | |
2616 | test $ac_count -gt 10 && break | |
2617 | done | |
2618 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2619 | esac | |
2620 | ||
2621 | $ac_path_SED_found && break 3 | |
2622 | done | |
2623 | done | |
2624 | done | |
2625 | IFS=$as_save_IFS | |
2626 | if test -z "$ac_cv_path_SED"; then | |
2627 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2628 | fi | |
2629 | else | |
2630 | ac_cv_path_SED=$SED | |
2631 | fi | |
2632 | ||
2633 | fi | |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2635 | $as_echo "$ac_cv_path_SED" >&6; } | |
2636 | SED="$ac_cv_path_SED" | |
2637 | rm -f conftest.sed | |
2638 | ||
2639 | for ac_prog in gawk mawk nawk awk | |
2640 | do | |
2641 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2642 | set dummy $ac_prog; ac_word=$2 | |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2644 | $as_echo_n "checking for $ac_word... " >&6; } | |
2645 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2646 | $as_echo_n "(cached) " >&6 | |
2647 | else | |
2648 | if test -n "$AWK"; then | |
2649 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2650 | else | |
2651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2652 | for as_dir in $PATH | |
2653 | do | |
2654 | IFS=$as_save_IFS | |
2655 | test -z "$as_dir" && as_dir=. | |
2656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2658 | ac_cv_prog_AWK="$ac_prog" | |
2659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2660 | break 2 | |
2661 | fi | |
2662 | done | |
2663 | done | |
2664 | IFS=$as_save_IFS | |
2665 | ||
2666 | fi | |
2667 | fi | |
2668 | AWK=$ac_cv_prog_AWK | |
2669 | if test -n "$AWK"; then | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2671 | $as_echo "$AWK" >&6; } | |
2672 | else | |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2674 | $as_echo "no" >&6; } | |
2675 | fi | |
2676 | ||
2677 | ||
2678 | test -n "$AWK" && break | |
2679 | done | |
2680 | ||
775956d0 | 2681 | |
ee6a22df L |
2682 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2683 | ||
2684 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2685 | # a relative path. | |
2686 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2687 | INSTALL="${srcpwd}/install-sh -c" | |
2688 | fi | |
2689 | ||
671aa708 NN |
2690 | # Set srcdir to "." if that's what it is. |
2691 | # This is important for multilib support. | |
2692 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2693 | if test "${pwd}" = "${srcpwd}" ; then |
2694 | srcdir=. | |
79c06341 JL |
2695 | fi |
2696 | ||
671aa708 | 2697 | topsrcdir=$srcpwd |
5d4a5ee6 | 2698 | |
671aa708 | 2699 | extra_host_args= |
afabd8e6 | 2700 | |
671aa708 NN |
2701 | ### To add a new directory to the tree, first choose whether it is a target |
2702 | ### or a host dependent tool. Then put it into the appropriate list | |
2703 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2704 | |
1c710c3c | 2705 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2706 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2707 | |
1c710c3c DJ |
2708 | # Dependency sorting is only needed when *configuration* must be done in |
2709 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2710 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2711 | |
671aa708 NN |
2712 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2713 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2714 | |
23f6b2f9 PB |
2715 | # these library is used by various programs built for the build |
2716 | # environment | |
2717 | # | |
929315a9 | 2718 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2719 | |
2720 | # these tools are built for the build environment | |
85bfb75e | 2721 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2722 | |
671aa708 | 2723 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2724 | #f |
4a9bb2aa | 2725 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
671aa708 | 2726 | |
671aa708 NN |
2727 | # these tools are built for the host environment |
2728 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2729 | # know that we are building the simulator. | |
2730 | # binutils, gas and ld appear in that order because it makes sense to run | |
2731 | # "make check" in that particular order. | |
38e3d868 | 2732 | # If --enable-gold is used, "gold" may replace "ld". |
bf1de3f0 | 2733 | 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 | 2734 | |
671aa708 NN |
2735 | # these libraries are built for the target environment, and are built after |
2736 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2737 | # Note that libiberty is not a target library. |
291f172e | 2738 | target_libraries="target-libgcc \ |
eff02e4f | 2739 | target-libbacktrace \ |
671aa708 NN |
2740 | target-libgloss \ |
2741 | target-newlib \ | |
6d3b5aea | 2742 | target-libgomp \ |
3038054c | 2743 | target-libcilkrts \ |
5f520819 | 2744 | target-liboffloadmic \ |
48310492 | 2745 | target-libatomic \ |
0a35513e | 2746 | target-libitm \ |
cb543528 | 2747 | target-libstdc++-v3 \ |
f35db108 | 2748 | target-libsanitizer \ |
2077db1b | 2749 | target-libvtv \ |
5373cd33 | 2750 | target-libmpx \ |
77008252 | 2751 | target-libssp \ |
1ec601bf | 2752 | target-libquadmath \ |
6de9cd9a | 2753 | target-libgfortran \ |
43c40f3e | 2754 | target-boehm-gc \ |
012447ea | 2755 | target-libffi \ |
d9cdb878 | 2756 | target-libobjc \ |
632e2a07 ILT |
2757 | target-libada \ |
2758 | target-libgo" | |
671aa708 | 2759 | |
4dbda6f0 NN |
2760 | # these tools are built using the target libraries, and are intended to |
2761 | # run only in the target environment | |
671aa708 | 2762 | # |
4dbda6f0 | 2763 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2764 | # list belongs in this list. |
671aa708 | 2765 | # |
85bfb75e | 2766 | target_tools="target-rda" |
79c06341 | 2767 | |
671aa708 | 2768 | ################################################################################ |
79c06341 | 2769 | |
671aa708 NN |
2770 | ## All tools belong in one of the four categories, and are assigned above |
2771 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2772 | ## is important because configure will choke if they ever get through. | |
2773 | ## ${configdirs} is directories we build using the host tools. | |
2774 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2775 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2776 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2777 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2778 | |
ac9e6043 RW |
2779 | |
2780 | ||
671aa708 | 2781 | ################################################################################ |
79c06341 | 2782 | |
671aa708 | 2783 | srcname="gnu development package" |
79c06341 | 2784 | |
671aa708 NN |
2785 | # This gets set non-empty for some net releases of packages. |
2786 | appdirs="" | |
79c06341 | 2787 | |
671aa708 NN |
2788 | # Define is_cross_compiler to save on calls to 'test'. |
2789 | is_cross_compiler= | |
2790 | if test x"${host}" = x"${target}" ; then | |
2791 | is_cross_compiler=no | |
79c06341 | 2792 | else |
671aa708 | 2793 | is_cross_compiler=yes |
1c710c3c | 2794 | fi |
79c06341 | 2795 | |
b4acb5ef | 2796 | # Find the build and target subdir names. |
8b87bb96 | 2797 | |
2e9e6f68 DJ |
2798 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2799 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2800 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2801 | # However, they still use the build modules, because the corresponding | |
2802 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2803 | # finishes. So: | |
2804 | # - build_subdir is where we find build modules, and never changes. | |
2805 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2806 | ||
2807 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2808 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2809 | |
5213506e RW |
2810 | # Check whether --with-build-libsubdir was given. |
2811 | if test "${with_build_libsubdir+set}" = set; then : | |
2812 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2813 | else |
2814 | build_libsubdir="$build_subdir" | |
5213506e RW |
2815 | fi |
2816 | ||
215c351a PB |
2817 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2818 | if ( test $srcdir = . && test -d gcc ) \ | |
2819 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2820 | host_subdir="host-${host_noncanonical}" | |
2821 | else | |
2822 | host_subdir=. | |
2823 | fi | |
8b87bb96 NN |
2824 | # No prefix. |
2825 | target_subdir=${target_noncanonical} | |
1c710c3c | 2826 | |
0db770bd RW |
2827 | # Be sure to cover against remnants of an in-tree build. |
2828 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2829 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2830 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2831 | fi | |
79c06341 | 2832 | |
671aa708 NN |
2833 | # Skipdirs are removed silently. |
2834 | skipdirs= | |
2835 | # Noconfigdirs are removed loudly. | |
2836 | noconfigdirs="" | |
79c06341 | 2837 | |
671aa708 NN |
2838 | use_gnu_ld= |
2839 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2840 | if test x$with_gnu_ld = xno ; then | |
2841 | use_gnu_ld=no | |
5afab7ad | 2842 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2843 | fi |
2844 | ||
671aa708 NN |
2845 | use_gnu_as= |
2846 | # Make sure we don't let GNU as be added if we didn't want it. | |
2847 | if test x$with_gnu_as = xno ; then | |
2848 | use_gnu_as=no | |
2849 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2850 | fi |
2851 | ||
d7f09764 | 2852 | use_included_zlib= |
a05c2c75 L |
2853 | |
2854 | # Check whether --with-system-zlib was given. | |
2855 | if test "${with_system_zlib+set}" = set; then : | |
2856 | withval=$with_system_zlib; | |
2857 | fi | |
2858 | ||
d7f09764 DN |
2859 | # Make sure we don't let ZLIB be added if we didn't want it. |
2860 | if test x$with_system_zlib = xyes ; then | |
2861 | use_included_zlib=no | |
2862 | noconfigdirs="$noconfigdirs zlib" | |
2863 | fi | |
2864 | ||
1c710c3c | 2865 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2866 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2867 | |
671aa708 NN |
2868 | case ${with_x} in |
2869 | yes | "") ;; # the default value for this tree is that X11 is available | |
2870 | no) | |
b4f96efe | 2871 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2872 | # We won't be able to build gdbtk without X. |
1c710c3c | 2873 | enable_gdbtk=no |
671aa708 NN |
2874 | ;; |
2875 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2876 | esac | |
79c06341 | 2877 | |
1bcce263 | 2878 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2879 | # Remove these if host=target. |
2880 | cross_only="target-libgloss target-newlib target-opcodes" | |
2881 | ||
2882 | case $is_cross_compiler in | |
2883 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2884 | esac |
79c06341 | 2885 | |
671aa708 NN |
2886 | # If both --with-headers and --with-libs are specified, default to |
2887 | # --without-newlib. | |
ee6a22df L |
2888 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2889 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2890 | if test x"${with_newlib}" = x ; then |
2891 | with_newlib=no | |
2892 | fi | |
79c06341 JL |
2893 | fi |
2894 | ||
671aa708 NN |
2895 | # Recognize --with-newlib/--without-newlib. |
2896 | case ${with_newlib} in | |
2897 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2898 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2899 | esac | |
79c06341 | 2900 | |
85c64bbe BS |
2901 | # Check whether --enable-as-accelerator-for was given. |
2902 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2903 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2904 | fi |
2905 | ||
2906 | ||
2907 | # Check whether --enable-offload-targets was given. | |
2908 | if test "${enable_offload_targets+set}" = set; then : | |
2909 | enableval=$enable_offload_targets; | |
2910 | if test x"$enable_offload_targets" = x; then | |
2911 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2912 | fi | |
2913 | ||
2914 | else | |
2915 | enable_offload_targets= | |
2916 | fi | |
2917 | ||
2918 | ||
21539e2e MK |
2919 | # Handle --enable-gold, --enable-ld. |
2920 | # --disable-gold [--enable-ld] | |
2921 | # Build only ld. Default option. | |
9580395f L |
2922 | # --enable-gold [--enable-ld] |
2923 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2924 | # as "ld.bfd" and "ld". | |
2925 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2926 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2927 | # install ld as "ld.bfd". | |
2928 | # --enable-gold[=default] --disable-ld | |
2929 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2930 | # --enable-gold --enable-ld=default | |
9580395f L |
2931 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2932 | # and ld.bfd). | |
21539e2e MK |
2933 | # In other words, ld is default |
2934 | # --enable-gold=default --enable-ld=default | |
2935 | # Error. | |
2936 | ||
2937 | default_ld= | |
5213506e RW |
2938 | # Check whether --enable-gold was given. |
2939 | if test "${enable_gold+set}" = set; then : | |
2940 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2941 | else |
2942 | ENABLE_GOLD=no | |
5213506e RW |
2943 | fi |
2944 | ||
21539e2e MK |
2945 | case "${ENABLE_GOLD}" in |
2946 | yes|default) | |
38e3d868 RM |
2947 | # Check for ELF target. |
2948 | is_elf=no | |
2949 | case "${target}" in | |
2950 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 2951 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 2952 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 2953 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
2954 | case "${target}" in |
2955 | *-*-linux*aout* | *-*-linux*oldld*) | |
2956 | ;; | |
2957 | *) | |
2958 | is_elf=yes | |
2959 | ;; | |
2960 | esac | |
2961 | esac | |
2962 | ||
2963 | if test "$is_elf" = "yes"; then | |
2964 | # Check for target supported by gold. | |
5afab7ad | 2965 | case "${target}" in |
7705dfd1 | 2966 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 2967 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
2968 | configdirs="$configdirs gold" |
2969 | if test x${ENABLE_GOLD} = xdefault; then | |
2970 | default_ld=gold | |
2971 | fi | |
38e3d868 | 2972 | ENABLE_GOLD=yes |
5afab7ad ILT |
2973 | ;; |
2974 | esac | |
38e3d868 RM |
2975 | fi |
2976 | ;; | |
2977 | no) | |
2978 | ;; | |
2979 | *) | |
2980 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2981 | ;; | |
21539e2e MK |
2982 | esac |
2983 | ||
2984 | # Check whether --enable-ld was given. | |
2985 | if test "${enable_ld+set}" = set; then : | |
2986 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2987 | else | |
2988 | ENABLE_LD=yes | |
2989 | fi | |
2990 | ||
2991 | ||
2992 | case "${ENABLE_LD}" in | |
2993 | default) | |
9580395f | 2994 | if test x${default_ld} != x; then |
21539e2e MK |
2995 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2996 | fi | |
2997 | ;; | |
2998 | yes) | |
2999 | ;; | |
3000 | no) | |
3001 | if test x${ENABLE_GOLD} != xyes; then | |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3003 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3004 | fi | |
3005 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3006 | ;; | |
3007 | *) | |
3008 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3009 | ;; | |
3010 | esac | |
5afab7ad | 3011 | |
78edb32f L |
3012 | # PR gas/19109 |
3013 | # Decide the default method for compressing debug sections. | |
3014 | # Provide a configure time option to override our default. | |
3015 | # Check whether --enable-compressed_debug_sections was given. | |
3016 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3017 | enableval=$enable_compressed_debug_sections; | |
3018 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3019 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3020 | fi | |
3021 | ||
3022 | else | |
3023 | enable_compressed_debug_sections= | |
3024 | fi | |
3025 | ||
3026 | ||
671aa708 | 3027 | # Configure extra directories which are host specific |
79c06341 | 3028 | |
671aa708 NN |
3029 | case "${host}" in |
3030 | *-cygwin*) | |
3031 | configdirs="$configdirs libtermcap" ;; | |
3032 | esac | |
79c06341 | 3033 | |
4fab7234 HPN |
3034 | # A target can indicate whether a language isn't supported for some reason. |
3035 | # Only spaces may be used in this macro; not newlines or tabs. | |
3036 | unsupported_languages= | |
3037 | ||
1c710c3c | 3038 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3039 | # target this usually means that a port of the program doesn't |
3040 | # exist yet. | |
ec8d6ddc | 3041 | |
671aa708 | 3042 | case "${host}" in |
111eeb6e | 3043 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3044 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3045 | ;; |
671aa708 | 3046 | esac |
ec8d6ddc | 3047 | |
6de9cd9a | 3048 | |
87e6d9dc TB |
3049 | # Check whether --enable-libquadmath was given. |
3050 | if test "${enable_libquadmath+set}" = set; then : | |
3051 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3052 | else | |
3053 | ENABLE_LIBQUADMATH=yes | |
3054 | fi | |
3055 | ||
3056 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3057 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3058 | fi | |
3059 | ||
3060 | ||
3061 | # Check whether --enable-libquadmath-support was given. | |
3062 | if test "${enable_libquadmath_support+set}" = set; then : | |
3063 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3064 | else | |
3065 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3066 | fi | |
3067 | ||
3068 | enable_libquadmath_support= | |
3069 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3070 | enable_libquadmath_support=no | |
3071 | fi | |
3072 | ||
3073 | ||
5213506e RW |
3074 | # Check whether --enable-libada was given. |
3075 | if test "${enable_libada+set}" = set; then : | |
3076 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3077 | else |
3078 | ENABLE_LIBADA=yes | |
5213506e RW |
3079 | fi |
3080 | ||
d9cdb878 | 3081 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3082 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3083 | fi |
3084 | ||
5213506e RW |
3085 | # Check whether --enable-libssp was given. |
3086 | if test "${enable_libssp+set}" = set; then : | |
3087 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3088 | else |
3089 | ENABLE_LIBSSP=yes | |
5213506e RW |
3090 | fi |
3091 | ||
ef0087a7 | 3092 | |
1873ec0c L |
3093 | # Check whether --enable-libstdcxx was given. |
3094 | if test "${enable_libstdcxx+set}" = set; then : | |
3095 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3096 | else | |
3097 | ENABLE_LIBSTDCXX=default | |
3098 | fi | |
3099 | ||
3100 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3101 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3102 | fi |
3103 | ||
5f520819 KY |
3104 | # If this is accelerator compiler and its target is intelmic we enable |
3105 | # target liboffloadmic by default. If this is compiler with offloading | |
3106 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3107 | # liboffloadmic is disabled by default. | |
3108 | # Check whether --enable-liboffloadmic was given. | |
3109 | if test "${enable_liboffloadmic+set}" = set; then : | |
3110 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3111 | no | host | target) | |
3112 | enable_liboffloadmic=$enableval ;; | |
3113 | *) | |
3114 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3115 | esac | |
3116 | else | |
4b4f2e35 | 3117 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3118 | case "${target}" in |
3119 | *-intelmic-* | *-intelmicemul-*) | |
3120 | enable_liboffloadmic=target | |
3121 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3122 | ;; | |
3123 | *) | |
3124 | enable_liboffloadmic=no | |
3125 | ;; | |
3126 | esac | |
3127 | else | |
3128 | case "${enable_offload_targets}" in | |
3129 | *-intelmic-* | *-intelmicemul-*) | |
3130 | enable_liboffloadmic=host | |
3131 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3132 | ;; | |
3133 | *) | |
3134 | enable_liboffloadmic=no | |
3135 | ;; | |
3136 | esac | |
3137 | fi | |
3138 | fi | |
3139 | ||
3140 | ||
3141 | ||
44a7d18d | 3142 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3143 | if test x$enable_libgomp = x ; then |
953ff289 | 3144 | case "${target}" in |
416ac4d4 | 3145 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3146 | ;; |
8c6d158a | 3147 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3148 | ;; |
b24513a1 | 3149 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3150 | ;; |
cac90078 | 3151 | *-*-darwin* | *-*-aix*) |
953ff289 | 3152 | ;; |
44a7d18d TS |
3153 | nvptx*-*-*) |
3154 | ;; | |
953ff289 DN |
3155 | *) |
3156 | noconfigdirs="$noconfigdirs target-libgomp" | |
3157 | ;; | |
3158 | esac | |
27079765 | 3159 | fi |
953ff289 | 3160 | |
48310492 RH |
3161 | # Disable libatomic on unsupported systems. |
3162 | if test -d ${srcdir}/libatomic; then | |
3163 | if test x$enable_libatomic = x; then | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3165 | $as_echo_n "checking for libatomic support... " >&6; } | |
3166 | if (srcdir=${srcdir}/libatomic; \ | |
3167 | . ${srcdir}/configure.tgt; \ | |
3168 | test -n "$UNSUPPORTED") | |
3169 | then | |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3171 | $as_echo "no" >&6; } | |
3172 | noconfigdirs="$noconfigdirs target-libatomic" | |
3173 | else | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3175 | $as_echo "yes" >&6; } | |
3176 | fi | |
3177 | fi | |
3178 | fi | |
3179 | ||
3038054c BI |
3180 | # Disable libcilkrts on unsupported systems. |
3181 | if test -d ${srcdir}/libcilkrts; then | |
3182 | if test x$enable_libcilkrts = x; then | |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3184 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3185 | if (srcdir=${srcdir}/libcilkrts; \ | |
3186 | . ${srcdir}/configure.tgt; \ | |
3187 | test -n "$UNSUPPORTED") | |
3188 | then | |
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3190 | $as_echo "no" >&6; } | |
3191 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3192 | else | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3194 | $as_echo "yes" >&6; } | |
3195 | fi | |
3196 | fi | |
3197 | fi | |
3198 | ||
5f520819 KY |
3199 | # Disable liboffloadmic on unsupported systems. |
3200 | if test -d ${srcdir}/liboffloadmic; then | |
3201 | if test x$enable_liboffloadmic != xno; then | |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3203 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3204 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3205 | . ${srcdir}/configure.tgt; \ | |
3206 | test -n "$UNSUPPORTED") | |
3207 | then | |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3209 | $as_echo "no" >&6; } | |
3210 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3211 | else | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3213 | $as_echo "yes" >&6; } | |
3214 | fi | |
3215 | fi | |
3216 | fi | |
3217 | ||
e948157d RH |
3218 | # Disable libitm on unsupported systems. |
3219 | if test -d ${srcdir}/libitm; then | |
3220 | if test x$enable_libitm = x; then | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3222 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3223 | if (srcdir=${srcdir}/libitm; \ |
3224 | . ${srcdir}/configure.tgt; \ | |
3225 | test -n "$UNSUPPORTED") | |
3226 | then | |
3227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3228 | $as_echo "no" >&6; } |
e948157d RH |
3229 | noconfigdirs="$noconfigdirs target-libitm" |
3230 | else | |
3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3232 | $as_echo "yes" >&6; } |
e948157d RH |
3233 | fi |
3234 | fi | |
0a35513e AH |
3235 | fi |
3236 | ||
93bf5390 RH |
3237 | # Disable libsanitizer on unsupported systems. |
3238 | if test -d ${srcdir}/libsanitizer; then | |
3239 | if test x$enable_libsanitizer = x; then | |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3241 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3242 | if (srcdir=${srcdir}/libsanitizer; \ | |
3243 | . ${srcdir}/configure.tgt; \ | |
3244 | test -n "$UNSUPPORTED") | |
3245 | then | |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3247 | $as_echo "no" >&6; } | |
3248 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3249 | else | |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3251 | $as_echo "yes" >&6; } | |
3252 | fi | |
3253 | fi | |
3254 | fi | |
3255 | ||
2077db1b CT |
3256 | # Disable libvtv on unsupported systems. |
3257 | if test -d ${srcdir}/libvtv; then | |
3258 | if test x$enable_libvtv = x; then | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3260 | $as_echo_n "checking for libvtv support... " >&6; } | |
3261 | if (srcdir=${srcdir}/libvtv; \ | |
3262 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3263 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3264 | then |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3266 | $as_echo "no" >&6; } | |
3267 | noconfigdirs="$noconfigdirs target-libvtv" | |
3268 | else | |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3270 | $as_echo "yes" >&6; } | |
3271 | fi | |
3272 | fi | |
3273 | fi | |
3274 | ||
5373cd33 IE |
3275 | |
3276 | # Enable libmpx on supported systems by request. | |
3277 | if test -d ${srcdir}/libmpx; then | |
54985c70 | 3278 | if test x$enable_libmpx = x; then |
5373cd33 IE |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 |
3280 | $as_echo_n "checking for libmpx support... " >&6; } | |
3281 | if (srcdir=${srcdir}/libmpx; \ | |
3282 | . ${srcdir}/configure.tgt; \ | |
3283 | test "$LIBMPX_SUPPORTED" != "yes") | |
3284 | then | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3286 | $as_echo "no" >&6; } | |
3287 | noconfigdirs="$noconfigdirs target-libmpx" | |
3288 | else | |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3290 | $as_echo "yes" >&6; } | |
3291 | fi | |
5373cd33 IE |
3292 | fi |
3293 | fi | |
3294 | ||
3295 | ||
3296 | ||
d91491e5 SE |
3297 | # Disable libquadmath for some systems. |
3298 | case "${target}" in | |
e7fae550 DE |
3299 | avr-*-*) |
3300 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3301 | ;; | |
d91491e5 SE |
3302 | # libquadmath is unused on AIX and libquadmath build process use of |
3303 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3304 | powerpc-*-aix* | rs6000-*-aix*) | |
3305 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3306 | ;; | |
3307 | esac | |
3308 | ||
1e9e0e23 JM |
3309 | # Disable libssp for some systems. |
3310 | case "${target}" in | |
3311 | avr-*-*) | |
b318fb4b | 3312 | # No hosted I/O support. |
1e9e0e23 JM |
3313 | noconfigdirs="$noconfigdirs target-libssp" |
3314 | ;; | |
3315 | powerpc-*-aix* | rs6000-*-aix*) | |
3316 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e DD |
3317 | ;; |
3318 | rl78-*-*) | |
7cb62ef1 EB |
3319 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3320 | # doesn't fault for those - instead, it gives a build-time error | |
3321 | # for explicit misaligned loads. | |
85b8555e | 3322 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3323 | ;; |
0969ec7d EB |
3324 | visium-*-*) |
3325 | # No hosted I/O support. | |
3326 | noconfigdirs="$noconfigdirs target-libssp" | |
3327 | ;; | |
1e9e0e23 JM |
3328 | esac |
3329 | ||
1e9e0e23 | 3330 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3331 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3332 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3333 | case "${target}" in | |
3334 | *-*-vxworks*) | |
3335 | # VxWorks uses the Dinkumware C++ library. | |
3336 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3337 | ;; | |
3338 | arm*-wince-pe*) | |
3339 | # the C++ libraries don't build on top of CE's C libraries | |
3340 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3341 | ;; | |
3342 | avr-*-*) | |
3343 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3344 | ;; | |
fef939d6 JB |
3345 | ft32-*-*) |
3346 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3347 | ;; | |
1873ec0c L |
3348 | esac |
3349 | fi | |
1e9e0e23 JM |
3350 | |
3351 | # Disable Fortran for some systems. | |
3352 | case "${target}" in | |
3353 | mmix-*-*) | |
3354 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3355 | unsupported_languages="$unsupported_languages fortran" | |
3356 | ;; | |
3357 | esac | |
3358 | ||
012447ea JJ |
3359 | # Disable libffi for some systems. |
3360 | case "${target}" in | |
3361 | powerpc-*-darwin*) | |
3362 | ;; | |
3363 | i[3456789]86-*-darwin*) | |
3364 | ;; | |
3365 | x86_64-*-darwin[912]*) | |
3366 | ;; | |
3367 | *-*-darwin*) | |
3368 | noconfigdirs="$noconfigdirs target-libffi" | |
3369 | ;; | |
3370 | *-*-netware*) | |
3371 | noconfigdirs="$noconfigdirs target-libffi" | |
3372 | ;; | |
3373 | *-*-phoenix*) | |
3374 | noconfigdirs="$noconfigdirs target-libffi" | |
3375 | ;; | |
3376 | *-*-rtems*) | |
3377 | noconfigdirs="$noconfigdirs target-libffi" | |
3378 | ;; | |
3379 | *-*-tpf*) | |
3380 | noconfigdirs="$noconfigdirs target-libffi" | |
3381 | ;; | |
3382 | *-*-uclinux*) | |
3383 | noconfigdirs="$noconfigdirs target-libffi" | |
3384 | ;; | |
3385 | *-*-vxworks*) | |
3386 | noconfigdirs="$noconfigdirs target-libffi" | |
3387 | ;; | |
3388 | alpha*-*-*vms*) | |
3389 | noconfigdirs="$noconfigdirs target-libffi" | |
3390 | ;; | |
3391 | arm*-*-freebsd*) | |
3392 | noconfigdirs="$noconfigdirs target-libffi" | |
3393 | ;; | |
3394 | arm-wince-pe) | |
3395 | noconfigdirs="$noconfigdirs target-libffi" | |
3396 | ;; | |
3397 | arm*-*-symbianelf*) | |
3398 | noconfigdirs="$noconfigdirs target-libffi" | |
3399 | ;; | |
3400 | cris-*-* | crisv32-*-*) | |
3401 | case "${target}" in | |
3402 | *-*-linux*) | |
3403 | ;; | |
3404 | *) # See PR46792 regarding target-libffi. | |
3405 | noconfigdirs="$noconfigdirs target-libffi";; | |
3406 | esac | |
3407 | ;; | |
3408 | hppa*64*-*-hpux*) | |
3409 | noconfigdirs="$noconfigdirs target-libffi" | |
3410 | ;; | |
3411 | hppa*-hp-hpux11*) | |
3412 | ;; | |
3413 | hppa*-*-hpux*) | |
3414 | noconfigdirs="$noconfigdirs target-libffi" | |
3415 | ;; | |
3416 | ia64*-*-*vms*) | |
3417 | noconfigdirs="$noconfigdirs target-libffi" | |
3418 | ;; | |
3419 | i[3456789]86-w64-mingw*) | |
3420 | noconfigdirs="$noconfigdirs target-libffi" | |
3421 | ;; | |
3422 | i[3456789]86-*-mingw*) | |
3423 | noconfigdirs="$noconfigdirs target-libffi" | |
3424 | ;; | |
3425 | x86_64-*-mingw*) | |
3426 | noconfigdirs="$noconfigdirs target-libffi" | |
3427 | ;; | |
3428 | mmix-*-*) | |
3429 | noconfigdirs="$noconfigdirs target-libffi" | |
3430 | ;; | |
3431 | powerpc-*-aix*) | |
3432 | # copied from rs6000-*-* entry | |
3433 | noconfigdirs="$noconfigdirs target-libffi" | |
3434 | ;; | |
3435 | rs6000-*-aix*) | |
3436 | noconfigdirs="$noconfigdirs target-libffi" | |
3437 | ;; | |
3438 | ft32-*-*) | |
3439 | noconfigdirs="$noconfigdirs target-libffi" | |
3440 | ;; | |
3441 | *-*-lynxos*) | |
3442 | noconfigdirs="$noconfigdirs target-libffi" | |
3443 | ;; | |
3444 | esac | |
3445 | ||
3446 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3447 | # this in sync with contrib/config-list.mk. | |
3448 | case "${target}" in | |
3449 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3450 | unsupported_languages="$unsupported_languages go" | |
3451 | ;; | |
3452 | esac | |
3453 | ||
cdbc9e92 ILT |
3454 | # Disable libgo for some systems where it is known to not work. |
3455 | # For testing, you can easily override this with --enable-libgo. | |
3456 | if test x$enable_libgo = x; then | |
3457 | case "${target}" in | |
3458 | *-*-darwin*) | |
3459 | # PR 46986 | |
3460 | noconfigdirs="$noconfigdirs target-libgo" | |
3461 | ;; | |
3462 | *-*-cygwin* | *-*-mingw*) | |
3463 | noconfigdirs="$noconfigdirs target-libgo" | |
3464 | ;; | |
3465 | *-*-aix*) | |
3466 | noconfigdirs="$noconfigdirs target-libgo" | |
3467 | ;; | |
3468 | esac | |
3469 | fi | |
3470 | ||
c03353e2 RIL |
3471 | # Default libgloss CPU subdirectory. |
3472 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3473 | |
fbcf0dca JM |
3474 | case "${target}" in |
3475 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3476 | libgloss_dir=wince | |
3477 | ;; | |
4dddfc74 YZ |
3478 | aarch64*-*-* ) |
3479 | libgloss_dir=aarch64 | |
3480 | ;; | |
fbcf0dca JM |
3481 | arm*-*-*) |
3482 | libgloss_dir=arm | |
3483 | ;; | |
3484 | cris-*-* | crisv32-*-*) | |
3485 | libgloss_dir=cris | |
3486 | ;; | |
3487 | hppa*-*-*) | |
3488 | libgloss_dir=pa | |
3489 | ;; | |
3490 | i[3456789]86-*-*) | |
3491 | libgloss_dir=i386 | |
3492 | ;; | |
3493 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3494 | libgloss_dir=m68hc11 | |
3495 | ;; | |
3496 | m68*-*-* | fido-*-*) | |
3497 | libgloss_dir=m68k | |
3498 | ;; | |
3499 | mips*-*-*) | |
3500 | libgloss_dir=mips | |
3501 | ;; | |
3502 | powerpc*-*-*) | |
3503 | libgloss_dir=rs6000 | |
3504 | ;; | |
3505 | sparc*-*-*) | |
3506 | libgloss_dir=sparc | |
3507 | ;; | |
3508 | esac | |
3509 | ||
6a789d5e | 3510 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3511 | case "${target}" in |
6a789d5e JM |
3512 | alpha*-dec-osf*) |
3513 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3514 | ;; | |
3515 | i[3456789]86-*-linux*) | |
3516 | # This section makes it possible to build newlib natively on linux. | |
3517 | # If we are using a cross compiler then don't configure newlib. | |
3518 | if test x${is_cross_compiler} != xno ; then | |
3519 | noconfigdirs="$noconfigdirs target-newlib" | |
3520 | fi | |
3521 | noconfigdirs="$noconfigdirs target-libgloss" | |
3522 | # If we are not using a cross compiler, do configure newlib. | |
3523 | # Note however, that newlib will only be configured in this situation | |
3524 | # if the --with-newlib option has been given, because otherwise | |
3525 | # 'target-newlib' will appear in skipdirs. | |
3526 | ;; | |
3527 | i[3456789]86-*-rdos*) | |
3528 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3529 | ;; | |
3530 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3531 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3532 | ;; | |
3533 | sparc-*-sunos4*) | |
3534 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3535 | ;; | |
3536 | *-*-aix*) | |
3537 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3538 | ;; | |
3539 | *-*-beos*) | |
3540 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3541 | ;; | |
671aa708 | 3542 | *-*-chorusos) |
0036370f | 3543 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3544 | ;; |
6a789d5e JM |
3545 | *-*-dragonfly*) |
3546 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3547 | ;; | |
3548 | *-*-freebsd*) | |
3549 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3550 | ;; | |
3551 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3552 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3553 | ;; | |
3554 | *-*-lynxos*) | |
3555 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3556 | ;; | |
3557 | *-*-mingw*) | |
3558 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3559 | ;; | |
3560 | *-*-netbsd*) | |
3561 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3562 | ;; | |
3563 | *-*-netware*) | |
3564 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3565 | ;; | |
3566 | *-*-tpf*) | |
3567 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3568 | ;; | |
3569 | *-*-uclinux*) | |
3570 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3571 | ;; | |
3572 | *-*-vxworks*) | |
3573 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3574 | ;; | |
3575 | esac | |
3576 | ||
3577 | case "${target}" in | |
3578 | *-*-chorusos) | |
3579 | ;; | |
3be96231 TG |
3580 | aarch64-*-darwin*) |
3581 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3582 | noconfigdirs="$noconfigdirs sim target-rda" | |
3583 | ;; | |
3584 | arm-*-darwin*) | |
3585 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3586 | noconfigdirs="$noconfigdirs sim target-rda" | |
3587 | ;; | |
75eeae1a | 3588 | powerpc-*-darwin*) |
e1514c3f | 3589 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3590 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3591 | ;; |
354ebf88 RW |
3592 | i[3456789]86-*-darwin*) |
3593 | noconfigdirs="$noconfigdirs ld gprof" | |
3594 | noconfigdirs="$noconfigdirs sim target-rda" | |
3595 | ;; | |
3596 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3597 | noconfigdirs="$noconfigdirs ld gas gprof" |
3598 | noconfigdirs="$noconfigdirs sim target-rda" | |
3599 | ;; | |
42c1cd8a AT |
3600 | *-*-darwin*) |
3601 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3602 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3603 | ;; |
8c6d158a | 3604 | *-*-dragonfly*) |
8c6d158a | 3605 | ;; |
c3f84f61 | 3606 | *-*-freebsd*) |
6de9cd9a DN |
3607 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3608 | && test -f /usr/local/include/gmp.h; then | |
3609 | with_gmp=/usr/local | |
3610 | fi | |
6de9cd9a | 3611 | ;; |
ef4e7569 US |
3612 | *-*-kaos*) |
3613 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3614 | noconfigdirs="$noconfigdirs target-libgloss" |
3615 | ;; | |
671aa708 | 3616 | *-*-netbsd*) |
671aa708 | 3617 | ;; |
61fec9ff | 3618 | *-*-netware*) |
671aa708 | 3619 | ;; |
fd6487af JS |
3620 | *-*-phoenix*) |
3621 | noconfigdirs="$noconfigdirs target-libgloss" | |
3622 | ;; | |
671aa708 | 3623 | *-*-rtems*) |
2909494b | 3624 | noconfigdirs="$noconfigdirs target-libgloss" |
d896cc4d JBG |
3625 | # this is not caught below because this stanza matches earlier |
3626 | case $target in | |
3627 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3628 | esac | |
671aa708 | 3629 | ;; |
a8ba31f2 EC |
3630 | # The tpf target doesn't support gdb yet. |
3631 | *-*-tpf*) | |
6a789d5e | 3632 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3633 | ;; |
5785c0ed | 3634 | *-*-uclinux*) |
6a789d5e | 3635 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3636 | ;; |
671aa708 | 3637 | *-*-vxworks*) |
671aa708 NN |
3638 | ;; |
3639 | alpha*-dec-osf*) | |
3640 | # ld works, but does not support shared libraries. | |
671aa708 | 3641 | # gas doesn't generate exception information. |
6a789d5e | 3642 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3643 | ;; |
3644 | alpha*-*-*vms*) | |
2909494b | 3645 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3646 | ;; |
671aa708 NN |
3647 | alpha*-*-*) |
3648 | # newlib is not 64 bit ready | |
2909494b | 3649 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3650 | ;; |
671aa708 | 3651 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3652 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3653 | ;; |
2fd88f4f AK |
3654 | arc*-*-*) |
3655 | noconfigdirs="$noconfigdirs sim" | |
3656 | ;; | |
671aa708 | 3657 | arm-*-pe*) |
2909494b | 3658 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3659 | ;; |
671aa708 | 3660 | arm-*-riscix*) |
0036370f | 3661 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3662 | ;; |
b588ae30 GJL |
3663 | avr-*-*) |
3664 | if test x${with_avrlibc} != xno; then | |
3665 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3666 | fi | |
3667 | ;; | |
671aa708 | 3668 | c4x-*-* | tic4x-*-*) |
0036370f | 3669 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3670 | ;; |
0036370f JM |
3671 | tic54x-*-*) |
3672 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3673 | ;; |
671aa708 | 3674 | d10v-*-*) |
0036370f | 3675 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3676 | ;; |
3677 | d30v-*-*) | |
0036370f | 3678 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3679 | ;; |
3680 | fr30-*-elf*) | |
2909494b | 3681 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3682 | ;; |
a05c2c75 L |
3683 | ft32-*-*) |
3684 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3685 | ;; | |
55f2d967 | 3686 | moxie-*-*) |
a05c2c75 | 3687 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3688 | ;; |
671aa708 | 3689 | h8300*-*-*) |
2909494b | 3690 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3691 | ;; |
3692 | h8500-*-*) | |
0036370f | 3693 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3694 | ;; |
ee6a22df | 3695 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3696 | ;; |
a05c2c75 L |
3697 | hppa*64*-*-hpux*) |
3698 | noconfigdirs="$noconfigdirs gdb" | |
3699 | ;; | |
3700 | hppa*-*-hpux11*) | |
3701 | noconfigdirs="$noconfigdirs gdb ld" | |
3702 | ;; | |
4569f85e | 3703 | hppa*64*-*-linux*) |
671aa708 | 3704 | ;; |
56f8587a | 3705 | hppa*-*-linux*) |
3e732ba0 | 3706 | ;; |
671aa708 | 3707 | hppa*-*-*elf* | \ |
671aa708 NN |
3708 | hppa*-*-lites* | \ |
3709 | hppa*-*-openbsd* | \ | |
3710 | hppa*64*-*-*) | |
671aa708 | 3711 | ;; |
c03353e2 | 3712 | hppa*-*-pro*) |
c03353e2 | 3713 | ;; |
671aa708 | 3714 | hppa*-*-*) |
2909494b | 3715 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3716 | ;; |
fb87ad5d | 3717 | i960-*-*) |
0036370f | 3718 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3719 | ;; |
671aa708 NN |
3720 | ia64*-*-elf*) |
3721 | # No gdb support yet. | |
1bcce263 | 3722 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3723 | ;; |
3724 | ia64*-**-hpux*) | |
5a2931d1 | 3725 | # No ld support yet. |
a05c2c75 | 3726 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3727 | ;; |
52535a64 | 3728 | ia64*-*-*vms*) |
091fe9ca TG |
3729 | # No ld support yet. |
3730 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3731 | ;; |
ef4c4300 | 3732 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3733 | ;; |
3734 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3735 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3736 | ;; |
671aa708 NN |
3737 | *-*-cygwin*) |
3738 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3739 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3740 | # always build newlib if winsup directory is present. |
b91f0a41 | 3741 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3742 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3743 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3744 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3745 | fi |
1c710c3c | 3746 | ;; |
f2a0e225 | 3747 | i[3456789]86-*-pe) |
ebb9f8b0 | 3748 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3749 | ;; |
f2a0e225 | 3750 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3751 | # The linker does not yet know about weak symbols in COFF, |
3752 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3753 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3754 | ;; |
f2a0e225 | 3755 | i[3456789]86-*-sco*) |
0036370f | 3756 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3757 | ;; |
fbdd5d87 | 3758 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3759 | noconfigdirs="$noconfigdirs target-libgloss" |
3760 | ;; | |
f2a0e225 | 3761 | i[3456789]86-*-sysv4*) |
0036370f | 3762 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3763 | ;; |
f2a0e225 | 3764 | i[3456789]86-*-beos*) |
6a789d5e | 3765 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3766 | ;; |
d1f8db0c | 3767 | i[3456789]86-*-rdos*) |
6a789d5e | 3768 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3769 | ;; |
671aa708 | 3770 | mmix-*-*) |
2909494b | 3771 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3772 | ;; |
ab34901f | 3773 | mt-*-*) |
79dd769c AH |
3774 | noconfigdirs="$noconfigdirs sim" |
3775 | ;; | |
671aa708 NN |
3776 | powerpc-*-aix*) |
3777 | # copied from rs6000-*-* entry | |
6a789d5e | 3778 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3779 | ;; |
4569f85e | 3780 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3781 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3782 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3783 | # always build newlib. |
3784 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3785 | ;; | |
3786 | # This is temporary until we can link against shared libraries | |
3787 | powerpcle-*-solaris*) | |
0036370f | 3788 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3789 | ;; |
3790 | powerpc-*-beos*) | |
6a789d5e | 3791 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3792 | ;; |
671aa708 | 3793 | rs6000-*-lynxos*) |
6a789d5e | 3794 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3795 | ;; |
3796 | rs6000-*-aix*) | |
6a789d5e | 3797 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3798 | ;; |
3799 | rs6000-*-*) | |
2909494b | 3800 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3801 | ;; |
3802 | m68k-apollo-*) | |
0036370f | 3803 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3804 | ;; |
ca9fe997 | 3805 | microblaze*) |
2909494b | 3806 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3807 | ;; |
d896cc4d | 3808 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3809 | if test x$with_newlib = xyes; then |
3810 | noconfigdirs="$noconfigdirs gprof" | |
3811 | fi | |
d9dced13 | 3812 | ;; |
671aa708 | 3813 | mips*-*-irix5*) |
0036370f | 3814 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3815 | ;; |
3816 | mips*-*-irix6*) | |
2909494b | 3817 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3818 | ;; |
671aa708 | 3819 | mips*-*-bsd*) |
bc98bcc4 | 3820 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3821 | ;; |
671aa708 | 3822 | mips*-*-linux*) |
671aa708 | 3823 | ;; |
bc98bcc4 JBG |
3824 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3825 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3826 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3827 | ;; | |
671aa708 | 3828 | mips*-*-*) |
2909494b | 3829 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3830 | ;; |
738f2522 | 3831 | nvptx*-*-*) |
738f2522 BS |
3832 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3833 | ;; | |
d896cc4d JBG |
3834 | or1k*-*-*) |
3835 | noconfigdirs="$noconfigdirs gdb" | |
3836 | ;; | |
bc6d9014 | 3837 | sh-*-*) |
ea2002ba CB |
3838 | case "${target}" in |
3839 | sh*-*-elf) | |
2909494b | 3840 | ;; |
ea2002ba | 3841 | *) |
2909494b | 3842 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3843 | esac |
671aa708 | 3844 | ;; |
671aa708 | 3845 | sparc-*-sunos4*) |
6a789d5e | 3846 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3847 | use_gnu_ld=no |
3848 | fi | |
3849 | ;; | |
b42f0d7e | 3850 | tic6x-*-*) |
0d557ff8 | 3851 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3852 | ;; |
341c653c | 3853 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
3854 | noconfigdirs="$noconfigdirs sim" |
3855 | ;; | |
671aa708 | 3856 | v810-*-*) |
0036370f | 3857 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3858 | ;; |
3859 | vax-*-*) | |
2909494b | 3860 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3861 | ;; |
671aa708 | 3862 | esac |
79c06341 | 3863 | |
671aa708 NN |
3864 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3865 | # depends upon some newlib header files. | |
3866 | case "${noconfigdirs}" in | |
3867 | *target-libgloss*) ;; | |
3868 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3869 | esac | |
3870 | ||
671aa708 | 3871 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3872 | host_makefile_frag=/dev/null |
3873 | if test -d ${srcdir}/config ; then | |
3874 | case "${host}" in | |
f2a0e225 | 3875 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3876 | host_makefile_frag="config/mh-djgpp" |
3877 | ;; | |
3878 | *-cygwin*) | |
2a79c47f | 3879 | |
5213506e RW |
3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3881 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3882 | echo a >cygwin-cat-check |
e25a8c82 | 3883 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3884 | rm cygwin-cat-check |
5213506e RW |
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3886 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3887 | else |
3888 | rm cygwin-cat-check | |
5213506e RW |
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3890 | $as_echo "no" >&6; } | |
3891 | as_fn_error "The cat command does not ignore carriage return characters. | |
2a79c47f NC |
3892 | Please either mount the build directory in binary mode or run the following |
3893 | commands before running any configure script: | |
3894 | set -o igncr | |
3895 | export SHELLOPTS | |
5213506e | 3896 | " "$LINENO" 5 |
2a79c47f NC |
3897 | fi |
3898 | ||
671aa708 NN |
3899 | host_makefile_frag="config/mh-cygwin" |
3900 | ;; | |
c53a18d3 | 3901 | *-mingw*) |
1f5a6b84 | 3902 | host_makefile_frag="config/mh-mingw" |
95af8923 | 3903 | ;; |
cabb9d59 | 3904 | alpha*-linux*) |
13be44ed UB |
3905 | host_makefile_frag="config/mh-alpha-linux" |
3906 | ;; | |
efd41714 | 3907 | hppa*-hp-hpux10*) |
efd41714 | 3908 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 3909 | ;; |
111eeb6e | 3910 | hppa*-hp-hpux*) |
efd41714 PB |
3911 | host_makefile_frag="config/mh-pa" |
3912 | ;; | |
3913 | hppa*-*) | |
3914 | host_makefile_frag="config/mh-pa" | |
3915 | ;; | |
d8ed14ce IS |
3916 | *-*-darwin*) |
3917 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 3918 | ;; |
d19bca38 PB |
3919 | powerpc-*-aix*) |
3920 | host_makefile_frag="config/mh-ppc-aix" | |
3921 | ;; | |
3922 | rs6000-*-aix*) | |
3923 | host_makefile_frag="config/mh-ppc-aix" | |
3924 | ;; | |
671aa708 NN |
3925 | esac |
3926 | fi | |
3927 | ||
55ffb5ed | 3928 | if test "${build}" != "${host}" ; then |
0999159b PB |
3929 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3930 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 3931 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b PB |
3932 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3933 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3934 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
632e2a07 | 3935 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
0999159b PB |
3936 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3937 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3938 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3939 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3940 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3941 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3942 | else | |
3943 | AR_FOR_BUILD="\$(AR)" | |
3944 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 3945 | CC_FOR_BUILD="\$(CC)" |
0999159b PB |
3946 | CXX_FOR_BUILD="\$(CXX)" |
3947 | GCJ_FOR_BUILD="\$(GCJ)" | |
3948 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
632e2a07 | 3949 | GOC_FOR_BUILD="\$(GOC)" |
0999159b PB |
3950 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3951 | LD_FOR_BUILD="\$(LD)" | |
3952 | NM_FOR_BUILD="\$(NM)" | |
3953 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3954 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3955 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
3956 | fi |
3957 | ||
3958 | ac_ext=c | |
1c710c3c DJ |
3959 | ac_cpp='$CPP $CPPFLAGS' |
3960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3963 | if test -n "$ac_tool_prefix"; then | |
3964 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3965 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3967 | $as_echo_n "checking for $ac_word... " >&6; } | |
3968 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3969 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
3970 | else |
3971 | if test -n "$CC"; then | |
3972 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3973 | else | |
3974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3975 | for as_dir in $PATH | |
3976 | do | |
3977 | IFS=$as_save_IFS | |
3978 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3979 | for ac_exec_ext in '' $ac_executable_extensions; do |
3980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3981 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3983 | break 2 |
3984 | fi | |
3985 | done | |
5213506e RW |
3986 | done |
3987 | IFS=$as_save_IFS | |
1c710c3c DJ |
3988 | |
3989 | fi | |
3990 | fi | |
3991 | CC=$ac_cv_prog_CC | |
3992 | if test -n "$CC"; then | |
5213506e RW |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3994 | $as_echo "$CC" >&6; } | |
1c710c3c | 3995 | else |
5213506e RW |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3997 | $as_echo "no" >&6; } | |
1c710c3c DJ |
3998 | fi |
3999 | ||
5213506e | 4000 | |
1c710c3c DJ |
4001 | fi |
4002 | if test -z "$ac_cv_prog_CC"; then | |
4003 | ac_ct_CC=$CC | |
fb0103e5 RG |
4004 | # Extract the first word of "gcc", so it can be a program name with args. |
4005 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4007 | $as_echo_n "checking for $ac_word... " >&6; } | |
4008 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4009 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
4010 | else |
4011 | if test -n "$ac_ct_CC"; then | |
4012 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4013 | else | |
4014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4015 | for as_dir in $PATH | |
4016 | do | |
4017 | IFS=$as_save_IFS | |
4018 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4019 | for ac_exec_ext in '' $ac_executable_extensions; do |
4020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4021 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4023 | break 2 |
4024 | fi | |
4025 | done | |
5213506e RW |
4026 | done |
4027 | IFS=$as_save_IFS | |
1c710c3c DJ |
4028 | |
4029 | fi | |
4030 | fi | |
4031 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4032 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4034 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4035 | else |
5213506e RW |
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4037 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4038 | fi |
4039 | ||
5213506e RW |
4040 | if test "x$ac_ct_CC" = x; then |
4041 | CC="" | |
4042 | else | |
4043 | case $cross_compiling:$ac_tool_warned in | |
4044 | yes:) | |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4046 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4047 | ac_tool_warned=yes ;; | |
4048 | esac | |
4049 | CC=$ac_ct_CC | |
4050 | fi | |
1c710c3c DJ |
4051 | else |
4052 | CC="$ac_cv_prog_CC" | |
4053 | fi | |
4054 | ||
4055 | if test -z "$CC"; then | |
5213506e RW |
4056 | if test -n "$ac_tool_prefix"; then |
4057 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4058 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4060 | $as_echo_n "checking for $ac_word... " >&6; } | |
4061 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4062 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4063 | else |
4064 | if test -n "$CC"; then | |
4065 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4066 | else | |
1c710c3c DJ |
4067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4068 | for as_dir in $PATH | |
4069 | do | |
4070 | IFS=$as_save_IFS | |
4071 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4072 | for ac_exec_ext in '' $ac_executable_extensions; do |
4073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4074 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4076 | break 2 |
4077 | fi | |
4078 | done | |
5213506e RW |
4079 | done |
4080 | IFS=$as_save_IFS | |
1c710c3c | 4081 | |
0b0dc272 | 4082 | fi |
0b0dc272 | 4083 | fi |
1c710c3c | 4084 | CC=$ac_cv_prog_CC |
af71363e | 4085 | if test -n "$CC"; then |
5213506e RW |
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4087 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4088 | else |
5213506e RW |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4090 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4091 | fi |
4092 | ||
2aeb72e9 | 4093 | |
5213506e | 4094 | fi |
1c710c3c | 4095 | fi |
55ffb5ed NN |
4096 | if test -z "$CC"; then |
4097 | # Extract the first word of "cc", so it can be a program name with args. | |
4098 | set dummy cc; ac_word=$2 | |
5213506e RW |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4100 | $as_echo_n "checking for $ac_word... " >&6; } | |
4101 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4102 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4103 | else |
4104 | if test -n "$CC"; then | |
4105 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4106 | else | |
0b0dc272 | 4107 | ac_prog_rejected=no |
1c710c3c DJ |
4108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4109 | for as_dir in $PATH | |
4110 | do | |
4111 | IFS=$as_save_IFS | |
4112 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4113 | for ac_exec_ext in '' $ac_executable_extensions; do |
4114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c DJ |
4115 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4116 | ac_prog_rejected=yes | |
4117 | continue | |
4118 | fi | |
4119 | ac_cv_prog_CC="cc" | |
5213506e | 4120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4121 | break 2 |
4122 | fi | |
4123 | done | |
5213506e RW |
4124 | done |
4125 | IFS=$as_save_IFS | |
1c710c3c | 4126 | |
55ffb5ed NN |
4127 | if test $ac_prog_rejected = yes; then |
4128 | # We found a bogon in the path, so make sure we never use it. | |
4129 | set dummy $ac_cv_prog_CC | |
4130 | shift | |
1c710c3c | 4131 | if test $# != 0; then |
55ffb5ed NN |
4132 | # We chose a different compiler from the bogus one. |
4133 | # However, it has the same basename, so the bogon will be chosen | |
4134 | # first if we set CC to just the basename; use the full file name. | |
4135 | shift | |
1c710c3c | 4136 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4137 | fi |
4138 | fi | |
4139 | fi | |
4140 | fi | |
1c710c3c | 4141 | CC=$ac_cv_prog_CC |
55ffb5ed | 4142 | if test -n "$CC"; then |
5213506e RW |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4144 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4145 | else |
5213506e RW |
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4147 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4148 | fi |
4149 | ||
5213506e | 4150 | |
1c710c3c DJ |
4151 | fi |
4152 | if test -z "$CC"; then | |
4153 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4154 | for ac_prog in cl.exe |
1c710c3c DJ |
4155 | do |
4156 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4157 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4159 | $as_echo_n "checking for $ac_word... " >&6; } | |
4160 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4161 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4162 | else |
4163 | if test -n "$CC"; then | |
4164 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4165 | else | |
1c710c3c DJ |
4166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4167 | for as_dir in $PATH | |
4168 | do | |
4169 | IFS=$as_save_IFS | |
4170 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4171 | for ac_exec_ext in '' $ac_executable_extensions; do |
4172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4173 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4175 | break 2 |
4176 | fi | |
4177 | done | |
5213506e RW |
4178 | done |
4179 | IFS=$as_save_IFS | |
1c710c3c | 4180 | |
55ffb5ed NN |
4181 | fi |
4182 | fi | |
1c710c3c | 4183 | CC=$ac_cv_prog_CC |
55ffb5ed | 4184 | if test -n "$CC"; then |
5213506e RW |
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4186 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4187 | else |
5213506e RW |
4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4189 | $as_echo "no" >&6; } | |
fb0103e5 | 4190 | fi |
af71363e | 4191 | |
5213506e | 4192 | |
1c710c3c DJ |
4193 | test -n "$CC" && break |
4194 | done | |
af71363e | 4195 | fi |
1c710c3c DJ |
4196 | if test -z "$CC"; then |
4197 | ac_ct_CC=$CC | |
5213506e | 4198 | for ac_prog in cl.exe |
1c710c3c DJ |
4199 | do |
4200 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4201 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4203 | $as_echo_n "checking for $ac_word... " >&6; } | |
4204 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4205 | $as_echo_n "(cached) " >&6 | |
0b0dc272 | 4206 | else |
1c710c3c DJ |
4207 | if test -n "$ac_ct_CC"; then |
4208 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4209 | else |
1c710c3c DJ |
4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4211 | for as_dir in $PATH | |
4212 | do | |
4213 | IFS=$as_save_IFS | |
4214 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4215 | for ac_exec_ext in '' $ac_executable_extensions; do |
4216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4217 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4219 | break 2 |
4220 | fi | |
4221 | done | |
5213506e RW |
4222 | done |
4223 | IFS=$as_save_IFS | |
1c710c3c | 4224 | |
af71363e AS |
4225 | fi |
4226 | fi | |
1c710c3c DJ |
4227 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4228 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4230 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4231 | else |
5213506e RW |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4233 | $as_echo "no" >&6; } | |
af71363e | 4234 | fi |
0b0dc272 | 4235 | |
5213506e | 4236 | |
1c710c3c DJ |
4237 | test -n "$ac_ct_CC" && break |
4238 | done | |
4239 | ||
5213506e RW |
4240 | if test "x$ac_ct_CC" = x; then |
4241 | CC="" | |
4242 | else | |
4243 | case $cross_compiling:$ac_tool_warned in | |
4244 | yes:) | |
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4246 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4247 | ac_tool_warned=yes ;; | |
4248 | esac | |
4249 | CC=$ac_ct_CC | |
4250 | fi | |
1c710c3c DJ |
4251 | fi |
4252 | ||
4253 | fi | |
4254 | ||
4255 | ||
5213506e RW |
4256 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4257 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4258 | as_fn_error "no acceptable C compiler found in \$PATH | |
4259 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c DJ |
4260 | |
4261 | # Provide some information about the compiler. | |
5213506e RW |
4262 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4263 | set X $ac_compile | |
4264 | ac_compiler=$2 | |
4265 | for ac_option in --version -v -V -qversion; do | |
4266 | { { ac_try="$ac_compiler $ac_option >&5" | |
4267 | case "(($ac_try" in | |
4268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4269 | *) ac_try_echo=$ac_try;; | |
4270 | esac | |
4271 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4272 | $as_echo "$ac_try_echo"; } >&5 | |
4273 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4274 | ac_status=$? |
5213506e RW |
4275 | if test -s conftest.err; then |
4276 | sed '10a\ | |
4277 | ... rest of stderr output deleted ... | |
4278 | 10q' conftest.err >conftest.er1 | |
4279 | cat conftest.er1 >&5 | |
4280 | rm -f conftest.er1 conftest.err | |
4281 | fi | |
4282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4283 | test $ac_status = 0; } | |
4284 | done | |
1c710c3c | 4285 | |
5213506e | 4286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4287 | /* end confdefs.h. */ |
4288 | ||
4289 | int | |
4290 | main () | |
4291 | { | |
4292 | ||
4293 | ; | |
4294 | return 0; | |
4295 | } | |
4296 | _ACEOF | |
4297 | ac_clean_files_save=$ac_clean_files | |
5213506e | 4298 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
1c710c3c DJ |
4299 | # Try to create an executable without -o first, disregard a.out. |
4300 | # It will help us diagnose broken compilers, and finding out an intuition | |
4301 | # of exeext. | |
5213506e RW |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4303 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4304 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4305 | ||
4306 | # The possible output files: | |
4307 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4308 | ||
4309 | ac_rmfiles= | |
4310 | for ac_file in $ac_files | |
4311 | do | |
4312 | case $ac_file in | |
4313 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4314 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4315 | esac | |
4316 | done | |
4317 | rm -f $ac_rmfiles | |
4318 | ||
4319 | if { { ac_try="$ac_link_default" | |
4320 | case "(($ac_try" in | |
4321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4322 | *) ac_try_echo=$ac_try;; | |
4323 | esac | |
4324 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4325 | $as_echo "$ac_try_echo"; } >&5 | |
4326 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4327 | ac_status=$? |
5213506e RW |
4328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4329 | test $ac_status = 0; }; then : | |
4330 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4331 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4332 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4333 | # so that the user can short-circuit this test for compilers unknown to | |
4334 | # Autoconf. | |
4335 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4336 | do |
4337 | test -f "$ac_file" || continue | |
4338 | case $ac_file in | |
5213506e | 4339 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4340 | ;; |
4341 | [ab].out ) | |
4342 | # We found the default executable, but exeext='' is most | |
4343 | # certainly right. | |
4344 | break;; | |
4345 | *.* ) | |
5213506e RW |
4346 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4347 | then :; else | |
4348 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4349 | fi | |
4350 | # We set ac_cv_exeext here because the later test for it is not | |
4351 | # safe: cross compilers may not add the suffix if given an `-o' | |
4352 | # argument, so we may need to know it at that point already. | |
4353 | # Even if this section looks crufty: it has the advantage of | |
4354 | # actually working. | |
1c710c3c DJ |
4355 | break;; |
4356 | * ) | |
4357 | break;; | |
4358 | esac | |
4359 | done | |
5213506e RW |
4360 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4361 | ||
1c710c3c | 4362 | else |
5213506e RW |
4363 | ac_file='' |
4364 | fi | |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4366 | $as_echo "$ac_file" >&6; } | |
4367 | if test -z "$ac_file"; then : | |
4368 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4369 | sed 's/^/| /' conftest.$ac_ext >&5 |
4370 | ||
5213506e RW |
4371 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4373 | { as_fn_set_status 77 | |
4374 | as_fn_error "C compiler cannot create executables | |
4375 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1c710c3c | 4376 | fi |
1c710c3c | 4377 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4378 | |
5213506e | 4379 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4380 | # the compiler is broken, or we cross compile. |
5213506e RW |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4382 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1c710c3c DJ |
4383 | # If not cross compiling, check that we can run a simple program. |
4384 | if test "$cross_compiling" != yes; then | |
4385 | if { ac_try='./$ac_file' | |
5213506e RW |
4386 | { { case "(($ac_try" in |
4387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4388 | *) ac_try_echo=$ac_try;; | |
4389 | esac | |
4390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4391 | $as_echo "$ac_try_echo"; } >&5 | |
4392 | (eval "$ac_try") 2>&5 | |
1c710c3c | 4393 | ac_status=$? |
5213506e RW |
4394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4395 | test $ac_status = 0; }; }; then | |
1c710c3c DJ |
4396 | cross_compiling=no |
4397 | else | |
4398 | if test "$cross_compiling" = maybe; then | |
4399 | cross_compiling=yes | |
4400 | else | |
5213506e RW |
4401 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4403 | as_fn_error "cannot run C compiled programs. | |
1c710c3c | 4404 | If you meant to cross compile, use \`--host'. |
5213506e | 4405 | See \`config.log' for more details." "$LINENO" 5; } |
1c710c3c DJ |
4406 | fi |
4407 | fi | |
4408 | fi | |
5213506e RW |
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4410 | $as_echo "yes" >&6; } | |
1c710c3c | 4411 | |
5213506e | 4412 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
1c710c3c | 4413 | ac_clean_files=$ac_clean_files_save |
5213506e | 4414 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4415 | # the compiler is broken, or we cross compile. |
5213506e RW |
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4417 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4419 | $as_echo "$cross_compiling" >&6; } | |
4420 | ||
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4422 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4423 | if { { ac_try="$ac_link" | |
4424 | case "(($ac_try" in | |
4425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4426 | *) ac_try_echo=$ac_try;; | |
4427 | esac | |
4428 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4429 | $as_echo "$ac_try_echo"; } >&5 | |
4430 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4431 | ac_status=$? |
5213506e RW |
4432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4433 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4434 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4435 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4436 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4437 | # `rm'. | |
4438 | for ac_file in conftest.exe conftest conftest.*; do | |
4439 | test -f "$ac_file" || continue | |
4440 | case $ac_file in | |
5213506e | 4441 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4442 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4443 | break;; |
4444 | * ) break;; | |
4445 | esac | |
4446 | done | |
af71363e | 4447 | else |
5213506e RW |
4448 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4449 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4450 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4451 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4452 | fi |
1c710c3c | 4453 | rm -f conftest$ac_cv_exeext |
5213506e RW |
4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4455 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4456 | |
4457 | rm -f conftest.$ac_ext | |
4458 | EXEEXT=$ac_cv_exeext | |
4459 | ac_exeext=$EXEEXT | |
5213506e RW |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4461 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4462 | if test "${ac_cv_objext+set}" = set; then : | |
4463 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4464 | else |
5213506e | 4465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4466 | /* end confdefs.h. */ |
4467 | ||
4468 | int | |
4469 | main () | |
4470 | { | |
4471 | ||
4472 | ; | |
4473 | return 0; | |
4474 | } | |
4475 | _ACEOF | |
4476 | rm -f conftest.o conftest.obj | |
5213506e RW |
4477 | if { { ac_try="$ac_compile" |
4478 | case "(($ac_try" in | |
4479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4480 | *) ac_try_echo=$ac_try;; | |
4481 | esac | |
4482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4483 | $as_echo "$ac_try_echo"; } >&5 | |
4484 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4485 | ac_status=$? |
5213506e RW |
4486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4487 | test $ac_status = 0; }; then : | |
4488 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4489 | test -f "$ac_file" || continue; | |
1c710c3c | 4490 | case $ac_file in |
5213506e | 4491 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4492 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4493 | break;; | |
4494 | esac | |
4495 | done | |
4496 | else | |
5213506e | 4497 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4498 | sed 's/^/| /' conftest.$ac_ext >&5 |
4499 | ||
5213506e RW |
4500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4502 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4503 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4504 | fi |
1c710c3c DJ |
4505 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4506 | fi | |
5213506e RW |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4508 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4509 | OBJEXT=$ac_cv_objext |
4510 | ac_objext=$OBJEXT | |
5213506e RW |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4512 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4513 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4514 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4515 | else |
5213506e | 4516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4517 | /* end confdefs.h. */ |
4518 | ||
4519 | int | |
4520 | main () | |
4521 | { | |
4522 | #ifndef __GNUC__ | |
4523 | choke me | |
4524 | #endif | |
4525 | ||
4526 | ; | |
4527 | return 0; | |
4528 | } | |
4529 | _ACEOF | |
5213506e | 4530 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4531 | ac_compiler_gnu=yes |
4532 | else | |
5213506e | 4533 | ac_compiler_gnu=no |
1c710c3c | 4534 | fi |
5213506e | 4535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4536 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4537 | ||
4538 | fi | |
5213506e RW |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4540 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4541 | if test $ac_compiler_gnu = yes; then | |
4542 | GCC=yes | |
4543 | else | |
4544 | GCC= | |
4545 | fi | |
1c710c3c DJ |
4546 | ac_test_CFLAGS=${CFLAGS+set} |
4547 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4549 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4550 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4551 | $as_echo_n "(cached) " >&6 | |
4552 | else | |
4553 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4554 | ac_c_werror_flag=yes | |
4555 | ac_cv_prog_cc_g=no | |
4556 | CFLAGS="-g" | |
4557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4558 | /* end confdefs.h. */ |
4559 | ||
4560 | int | |
4561 | main () | |
4562 | { | |
4563 | ||
4564 | ; | |
4565 | return 0; | |
4566 | } | |
4567 | _ACEOF | |
5213506e | 4568 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4569 | ac_cv_prog_cc_g=yes |
4570 | else | |
5213506e RW |
4571 | CFLAGS="" |
4572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4573 | /* end confdefs.h. */ | |
4574 | ||
4575 | int | |
4576 | main () | |
4577 | { | |
4578 | ||
4579 | ; | |
4580 | return 0; | |
4581 | } | |
4582 | _ACEOF | |
4583 | if ac_fn_c_try_compile "$LINENO"; then : | |
4584 | ||
4585 | else | |
4586 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4587 | CFLAGS="-g" | |
4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4589 | /* end confdefs.h. */ | |
af71363e | 4590 | |
5213506e RW |
4591 | int |
4592 | main () | |
4593 | { | |
4594 | ||
4595 | ; | |
4596 | return 0; | |
4597 | } | |
4598 | _ACEOF | |
4599 | if ac_fn_c_try_compile "$LINENO"; then : | |
4600 | ac_cv_prog_cc_g=yes | |
4601 | fi | |
4602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4603 | fi |
5213506e | 4604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4605 | fi |
5213506e RW |
4606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4607 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4608 | fi | |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4610 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4611 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4612 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4613 | elif test $ac_cv_prog_cc_g = yes; then |
4614 | if test "$GCC" = yes; then | |
4615 | CFLAGS="-g -O2" | |
4616 | else | |
4617 | CFLAGS="-g" | |
4618 | fi | |
4619 | else | |
4620 | if test "$GCC" = yes; then | |
4621 | CFLAGS="-O2" | |
4622 | else | |
4623 | CFLAGS= | |
4624 | fi | |
4625 | fi | |
5213506e RW |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4627 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4628 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4629 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4630 | else |
5213506e | 4631 | ac_cv_prog_cc_c89=no |
1c710c3c | 4632 | ac_save_CC=$CC |
5213506e | 4633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4634 | /* end confdefs.h. */ |
4635 | #include <stdarg.h> | |
4636 | #include <stdio.h> | |
4637 | #include <sys/types.h> | |
4638 | #include <sys/stat.h> | |
4639 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4640 | struct buf { int x; }; | |
4641 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4642 | static char *e (p, i) | |
4643 | char **p; | |
4644 | int i; | |
4645 | { | |
4646 | return p[i]; | |
4647 | } | |
4648 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4649 | { | |
4650 | char *s; | |
4651 | va_list v; | |
4652 | va_start (v,p); | |
4653 | s = g (p, va_arg (v,int)); | |
4654 | va_end (v); | |
4655 | return s; | |
4656 | } | |
4657 | ||
4658 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4659 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4660 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4661 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4662 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4663 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4664 | that's true only with -std. */ |
1c710c3c DJ |
4665 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4666 | ||
5213506e RW |
4667 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4668 | inside strings and character constants. */ | |
4669 | #define FOO(x) 'x' | |
4670 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4671 | ||
1c710c3c DJ |
4672 | int test (int i, double x); |
4673 | struct s1 {int (*f) (int a);}; | |
4674 | struct s2 {int (*f) (double a);}; | |
4675 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4676 | int argc; | |
4677 | char **argv; | |
4678 | int | |
4679 | main () | |
4680 | { | |
4681 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4682 | ; | |
4683 | return 0; | |
4684 | } | |
4685 | _ACEOF | |
5213506e RW |
4686 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4687 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4688 | do |
4689 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4690 | if ac_fn_c_try_compile "$LINENO"; then : |
4691 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4692 | fi |
5213506e RW |
4693 | rm -f core conftest.err conftest.$ac_objext |
4694 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4695 | done |
5213506e | 4696 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4697 | CC=$ac_save_CC |
4698 | ||
4699 | fi | |
5213506e RW |
4700 | # AC_CACHE_VAL |
4701 | case "x$ac_cv_prog_cc_c89" in | |
4702 | x) | |
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4704 | $as_echo "none needed" >&6; } ;; | |
4705 | xno) | |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4707 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4708 | *) |
5213506e RW |
4709 | CC="$CC $ac_cv_prog_cc_c89" |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4711 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4712 | esac |
5213506e | 4713 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4714 | |
2aeb72e9 DD |
4715 | fi |
4716 | ||
2aeb72e9 DD |
4717 | ac_ext=c |
4718 | ac_cpp='$CPP $CPPFLAGS' | |
4719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4722 | ||
5213506e | 4723 | ac_ext=cpp |
2aeb72e9 DD |
4724 | ac_cpp='$CXXCPP $CPPFLAGS' |
4725 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4726 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4727 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4728 | if test -z "$CXX"; then |
4729 | if test -n "$CCC"; then | |
4730 | CXX=$CCC | |
4731 | else | |
4732 | if test -n "$ac_tool_prefix"; then | |
4733 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4734 | do |
4735 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4736 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4738 | $as_echo_n "checking for $ac_word... " >&6; } | |
4739 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4740 | $as_echo_n "(cached) " >&6 | |
2aeb72e9 DD |
4741 | else |
4742 | if test -n "$CXX"; then | |
4743 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4744 | else | |
4745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4746 | for as_dir in $PATH | |
4747 | do | |
4748 | IFS=$as_save_IFS | |
4749 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4750 | for ac_exec_ext in '' $ac_executable_extensions; do |
4751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2aeb72e9 | 4752 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4754 | break 2 |
4755 | fi | |
4756 | done | |
5213506e RW |
4757 | done |
4758 | IFS=$as_save_IFS | |
55ffb5ed | 4759 | |
c3a86da9 DJ |
4760 | fi |
4761 | fi | |
4762 | CXX=$ac_cv_prog_CXX | |
4763 | if test -n "$CXX"; then | |
5213506e RW |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4765 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4766 | else |
5213506e RW |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4768 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4769 | fi |
4770 | ||
5213506e | 4771 | |
c3a86da9 DJ |
4772 | test -n "$CXX" && break |
4773 | done | |
4774 | fi | |
4775 | if test -z "$CXX"; then | |
4776 | ac_ct_CXX=$CXX | |
5213506e | 4777 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4778 | do |
4779 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4780 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4782 | $as_echo_n "checking for $ac_word... " >&6; } | |
4783 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4784 | $as_echo_n "(cached) " >&6 | |
c3a86da9 DJ |
4785 | else |
4786 | if test -n "$ac_ct_CXX"; then | |
4787 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4788 | else | |
4789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4790 | for as_dir in $PATH | |
4791 | do | |
4792 | IFS=$as_save_IFS | |
4793 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4794 | for ac_exec_ext in '' $ac_executable_extensions; do |
4795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c3a86da9 | 4796 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4798 | break 2 |
4799 | fi | |
4800 | done | |
5213506e RW |
4801 | done |
4802 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4803 | |
4804 | fi | |
4805 | fi | |
4806 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4807 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4809 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4810 | else |
5213506e RW |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4812 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4813 | fi |
4814 | ||
5213506e | 4815 | |
c3a86da9 DJ |
4816 | test -n "$ac_ct_CXX" && break |
4817 | done | |
c3a86da9 | 4818 | |
5213506e RW |
4819 | if test "x$ac_ct_CXX" = x; then |
4820 | CXX="g++" | |
4821 | else | |
4822 | case $cross_compiling:$ac_tool_warned in | |
4823 | yes:) | |
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4825 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4826 | ac_tool_warned=yes ;; | |
4827 | esac | |
4828 | CXX=$ac_ct_CXX | |
4829 | fi | |
c3a86da9 DJ |
4830 | fi |
4831 | ||
5213506e RW |
4832 | fi |
4833 | fi | |
c3a86da9 | 4834 | # Provide some information about the compiler. |
5213506e RW |
4835 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4836 | set X $ac_compile | |
4837 | ac_compiler=$2 | |
4838 | for ac_option in --version -v -V -qversion; do | |
4839 | { { ac_try="$ac_compiler $ac_option >&5" | |
4840 | case "(($ac_try" in | |
4841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4842 | *) ac_try_echo=$ac_try;; | |
4843 | esac | |
4844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4845 | $as_echo "$ac_try_echo"; } >&5 | |
4846 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4847 | ac_status=$? |
5213506e RW |
4848 | if test -s conftest.err; then |
4849 | sed '10a\ | |
4850 | ... rest of stderr output deleted ... | |
4851 | 10q' conftest.err >conftest.er1 | |
4852 | cat conftest.er1 >&5 | |
4853 | rm -f conftest.er1 conftest.err | |
4854 | fi | |
4855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4856 | test $ac_status = 0; } | |
4857 | done | |
c3a86da9 | 4858 | |
5213506e RW |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4860 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4861 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4862 | $as_echo_n "(cached) " >&6 | |
c3a86da9 | 4863 | else |
5213506e | 4864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4865 | /* end confdefs.h. */ |
4866 | ||
4867 | int | |
4868 | main () | |
4869 | { | |
4870 | #ifndef __GNUC__ | |
4871 | choke me | |
4872 | #endif | |
4873 | ||
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
5213506e | 4878 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4879 | ac_compiler_gnu=yes |
4880 | else | |
5213506e | 4881 | ac_compiler_gnu=no |
c3a86da9 | 4882 | fi |
5213506e | 4883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4884 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4885 | ||
4886 | fi | |
5213506e RW |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4888 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4889 | if test $ac_compiler_gnu = yes; then | |
4890 | GXX=yes | |
4891 | else | |
4892 | GXX= | |
4893 | fi | |
c3a86da9 DJ |
4894 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4895 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4897 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4898 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4899 | $as_echo_n "(cached) " >&6 | |
4900 | else | |
4901 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4902 | ac_cxx_werror_flag=yes | |
4903 | ac_cv_prog_cxx_g=no | |
4904 | CXXFLAGS="-g" | |
4905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
4906 | /* end confdefs.h. */ |
4907 | ||
4908 | int | |
4909 | main () | |
4910 | { | |
4911 | ||
4912 | ; | |
4913 | return 0; | |
4914 | } | |
4915 | _ACEOF | |
5213506e | 4916 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4917 | ac_cv_prog_cxx_g=yes |
4918 | else | |
5213506e RW |
4919 | CXXFLAGS="" |
4920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4921 | /* end confdefs.h. */ |
5213506e | 4922 | |
c3a86da9 DJ |
4923 | int |
4924 | main () | |
4925 | { | |
5213506e | 4926 | |
c3a86da9 DJ |
4927 | ; |
4928 | return 0; | |
4929 | } | |
4930 | _ACEOF | |
5213506e | 4931 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 4932 | |
5213506e RW |
4933 | else |
4934 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4935 | CXXFLAGS="-g" | |
4936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4937 | /* end confdefs.h. */ |
5213506e | 4938 | |
c3a86da9 DJ |
4939 | int |
4940 | main () | |
4941 | { | |
5213506e | 4942 | |
c3a86da9 DJ |
4943 | ; |
4944 | return 0; | |
4945 | } | |
4946 | _ACEOF | |
5213506e RW |
4947 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4948 | ac_cv_prog_cxx_g=yes | |
11a67599 | 4949 | fi |
5213506e RW |
4950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4951 | fi | |
4952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4953 | fi | |
4954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4955 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4956 | fi | |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4958 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4959 | if test "$ac_test_CXXFLAGS" = set; then | |
4960 | CXXFLAGS=$ac_save_CXXFLAGS | |
4961 | elif test $ac_cv_prog_cxx_g = yes; then | |
4962 | if test "$GXX" = yes; then | |
4963 | CXXFLAGS="-g -O2" | |
4964 | else | |
4965 | CXXFLAGS="-g" | |
4966 | fi | |
4967 | else | |
4968 | if test "$GXX" = yes; then | |
4969 | CXXFLAGS="-O2" | |
4970 | else | |
4971 | CXXFLAGS= | |
4972 | fi | |
c3a86da9 | 4973 | fi |
c3a86da9 DJ |
4974 | ac_ext=c |
4975 | ac_cpp='$CPP $CPPFLAGS' | |
4976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4979 | ||
4980 | ||
4981 | # We must set the default linker to the linker used by gcc for the correct | |
4982 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4983 | # set the LD default to the ld used by gcc. | |
4984 | if test -z "$LD"; then | |
4985 | if test "$GCC" = yes; then | |
4986 | case $build in | |
4987 | *-*-mingw*) | |
4988 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4989 | *) | |
4990 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4991 | esac | |
4992 | case $gcc_prog_ld in | |
4993 | # Accept absolute paths. | |
4994 | [\\/]* | [A-Za-z]:[\\/]*) | |
4995 | LD="$gcc_prog_ld" ;; | |
4996 | esac | |
4997 | fi | |
23f6b2f9 PB |
4998 | fi |
4999 | ||
0b21f5d3 EB |
5000 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5001 | have_static_libs=no | |
5002 | if test "$GCC" = yes; then | |
5003 | saved_LDFLAGS="$LDFLAGS" | |
5004 | ||
5005 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5007 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5008 | ac_ext=cpp | |
5009 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5013 | ||
5014 | ||
5015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5016 | /* end confdefs.h. */ | |
0d6414b2 EB |
5017 | |
5018 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5019 | #error -static-libstdc++ not implemented | |
5020 | #endif | |
0b21f5d3 EB |
5021 | int main() {} |
5022 | _ACEOF | |
5023 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5025 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5026 | else | |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5028 | $as_echo "no" >&6; } | |
5029 | fi | |
5030 | rm -f core conftest.err conftest.$ac_objext \ | |
5031 | conftest$ac_exeext conftest.$ac_ext | |
5032 | ac_ext=c | |
5033 | ac_cpp='$CPP $CPPFLAGS' | |
5034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5037 | ||
5038 | ||
5039 | LDFLAGS="$saved_LDFLAGS" | |
5040 | fi | |
5041 | ||
23f6b2f9 PB |
5042 | |
5043 | ||
55ffb5ed | 5044 | |
1c710c3c DJ |
5045 | if test -n "$ac_tool_prefix"; then |
5046 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5047 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5049 | $as_echo_n "checking for $ac_word... " >&6; } | |
5050 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5051 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5052 | else |
5053 | if test -n "$GNATBIND"; then | |
5054 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5055 | else | |
1c710c3c DJ |
5056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5057 | for as_dir in $PATH | |
5058 | do | |
5059 | IFS=$as_save_IFS | |
5060 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5061 | for ac_exec_ext in '' $ac_executable_extensions; do |
5062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5063 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5065 | break 2 |
5066 | fi | |
5067 | done | |
5213506e RW |
5068 | done |
5069 | IFS=$as_save_IFS | |
1c710c3c | 5070 | |
55ffb5ed NN |
5071 | fi |
5072 | fi | |
1c710c3c | 5073 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5074 | if test -n "$GNATBIND"; then |
5213506e RW |
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5076 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5077 | else |
5213506e RW |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5079 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5080 | fi |
5081 | ||
5213506e | 5082 | |
1c710c3c | 5083 | fi |
55ffb5ed | 5084 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5085 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5086 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5087 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5089 | $as_echo_n "checking for $ac_word... " >&6; } | |
5090 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5091 | $as_echo_n "(cached) " >&6 | |
55ffb5ed | 5092 | else |
1c710c3c DJ |
5093 | if test -n "$ac_ct_GNATBIND"; then |
5094 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5095 | else |
1c710c3c DJ |
5096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5097 | for as_dir in $PATH | |
5098 | do | |
5099 | IFS=$as_save_IFS | |
5100 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5101 | for ac_exec_ext in '' $ac_executable_extensions; do |
5102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5103 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5105 | break 2 |
5106 | fi | |
5107 | done | |
5213506e RW |
5108 | done |
5109 | IFS=$as_save_IFS | |
1c710c3c | 5110 | |
55ffb5ed NN |
5111 | fi |
5112 | fi | |
1c710c3c DJ |
5113 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5114 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5116 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5117 | else |
5213506e RW |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5119 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5120 | fi |
5121 | ||
5213506e RW |
5122 | if test "x$ac_ct_GNATBIND" = x; then |
5123 | GNATBIND="no" | |
5124 | else | |
5125 | case $cross_compiling:$ac_tool_warned in | |
5126 | yes:) | |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5128 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5129 | ac_tool_warned=yes ;; | |
5130 | esac | |
5131 | GNATBIND=$ac_ct_GNATBIND | |
5132 | fi | |
55ffb5ed | 5133 | else |
1c710c3c | 5134 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5135 | fi |
5136 | ||
1c710c3c DJ |
5137 | if test -n "$ac_tool_prefix"; then |
5138 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5139 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5141 | $as_echo_n "checking for $ac_word... " >&6; } | |
5142 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5143 | $as_echo_n "(cached) " >&6 | |
5305be7e RG |
5144 | else |
5145 | if test -n "$GNATMAKE"; then | |
5146 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5147 | else | |
1c710c3c DJ |
5148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5149 | for as_dir in $PATH | |
5150 | do | |
5151 | IFS=$as_save_IFS | |
5152 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5153 | for ac_exec_ext in '' $ac_executable_extensions; do |
5154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5155 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5157 | break 2 |
5158 | fi | |
5159 | done | |
5213506e RW |
5160 | done |
5161 | IFS=$as_save_IFS | |
1c710c3c | 5162 | |
5305be7e RG |
5163 | fi |
5164 | fi | |
1c710c3c | 5165 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5166 | if test -n "$GNATMAKE"; then |
5213506e RW |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5168 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5169 | else |
5213506e RW |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5171 | $as_echo "no" >&6; } | |
5305be7e RG |
5172 | fi |
5173 | ||
5213506e | 5174 | |
1c710c3c | 5175 | fi |
5305be7e | 5176 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5177 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5178 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5179 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5181 | $as_echo_n "checking for $ac_word... " >&6; } | |
5182 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5183 | $as_echo_n "(cached) " >&6 | |
5305be7e | 5184 | else |
1c710c3c DJ |
5185 | if test -n "$ac_ct_GNATMAKE"; then |
5186 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5187 | else |
1c710c3c DJ |
5188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5189 | for as_dir in $PATH | |
5190 | do | |
5191 | IFS=$as_save_IFS | |
5192 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5193 | for ac_exec_ext in '' $ac_executable_extensions; do |
5194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5195 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5197 | break 2 |
5198 | fi | |
5199 | done | |
5213506e RW |
5200 | done |
5201 | IFS=$as_save_IFS | |
1c710c3c | 5202 | |
5305be7e RG |
5203 | fi |
5204 | fi | |
1c710c3c DJ |
5205 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5206 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5208 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5209 | else |
5213506e RW |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5211 | $as_echo "no" >&6; } | |
5305be7e RG |
5212 | fi |
5213 | ||
5213506e RW |
5214 | if test "x$ac_ct_GNATMAKE" = x; then |
5215 | GNATMAKE="no" | |
5216 | else | |
5217 | case $cross_compiling:$ac_tool_warned in | |
5218 | yes:) | |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5221 | ac_tool_warned=yes ;; | |
5222 | esac | |
5223 | GNATMAKE=$ac_ct_GNATMAKE | |
5224 | fi | |
5305be7e | 5225 | else |
1c710c3c | 5226 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5227 | fi |
5228 | ||
5213506e RW |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5230 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5231 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5232 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5233 | else |
5234 | cat >conftest.adb <<EOF | |
5235 | procedure conftest is begin null; end conftest; | |
5236 | EOF | |
5237 | acx_cv_cc_gcc_supports_ada=no | |
5238 | # There is a bug in old released versions of GCC which causes the | |
5239 | # driver to exit successfully when the appropriate language module | |
5240 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5241 | # Therefore we must check for the error message as well as an | |
5242 | # unsuccessful exit. | |
1db673ca RO |
5243 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5244 | # given a .adb file, but produce no object file. So we must check | |
5245 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5246 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5247 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5248 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5249 | fi |
5250 | rm -f conftest.* | |
5251 | fi | |
5213506e RW |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5253 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5254 | |
7cb62ef1 | 5255 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5256 | have_gnat=yes |
5257 | else | |
5258 | have_gnat=no | |
5259 | fi | |
5260 | ||
5213506e RW |
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5262 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5263 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5264 | $as_echo_n "(cached) " >&6 | |
a76494aa PB |
5265 | else |
5266 | echo abfoo >t1 | |
5267 | echo cdfoo >t2 | |
5268 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
5269 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5270 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5271 | : | |
5272 | else | |
5273 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5274 | fi | |
5275 | fi | |
a76494aa PB |
5276 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5277 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5278 | : |
a76494aa PB |
5279 | else |
5280 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5281 | fi | |
5282 | fi | |
5283 | rm t1 t2 | |
5284 | ||
5285 | fi | |
5213506e RW |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5287 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5288 | do_compare="$gcc_cv_prog_cmp_skip" |
5289 | ||
5290 | ||
55ffb5ed | 5291 | |
ff3ac0f4 ILT |
5292 | # Check whether --enable-bootstrap was given. |
5293 | if test "${enable_bootstrap+set}" = set; then : | |
5294 | enableval=$enable_bootstrap; | |
5295 | else | |
5296 | enable_bootstrap=default | |
5297 | fi | |
5298 | ||
5299 | ||
5300 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5301 | if test -r $srcdir/gcc/configure; then |
5302 | have_compiler=yes | |
5303 | else | |
5304 | have_compiler=no | |
5305 | fi | |
ff3ac0f4 ILT |
5306 | |
5307 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5308 | *:*:*:no) ;; | |
5309 | ||
5310 | # Default behavior. Enable bootstrap if we have a compiler | |
5311 | # and we are in a native configuration. | |
5312 | yes:$build:$build:default) | |
5313 | enable_bootstrap=yes ;; | |
5314 | ||
5315 | *:*:*:default) | |
5316 | enable_bootstrap=no ;; | |
5317 | ||
5318 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5319 | yes:$build:$build:yes) | |
5320 | ;; | |
5321 | ||
5322 | # Other configurations, but we have a compiler. Assume the user knows | |
5323 | # what he's doing. | |
5324 | yes:*:*:yes) | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5326 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5327 | ;; | |
5328 | ||
5329 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5330 | no:*:*:yes) | |
5331 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5332 | ||
5333 | # Fail if wrong command line | |
5334 | *) | |
5335 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5336 | ;; | |
5337 | esac | |
5338 | ||
46070488 JM |
5339 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5340 | # C++98 compiler can still start the bootstrap. | |
5341 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
8ca528d9 | 5342 | CXX="$CXX -std=gnu++98" |
46070488 JM |
5343 | fi |
5344 | ||
592c90ff KG |
5345 | # Used for setting $lt_cv_objdir |
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5347 | $as_echo_n "checking for objdir... " >&6; } | |
5348 | if test "${lt_cv_objdir+set}" = set; then : | |
5349 | $as_echo_n "(cached) " >&6 | |
5350 | else | |
5351 | rm -f .libs 2>/dev/null | |
5352 | mkdir .libs 2>/dev/null | |
5353 | if test -d .libs; then | |
5354 | lt_cv_objdir=.libs | |
5355 | else | |
5356 | # MS-DOS does not allow filenames that begin with a dot. | |
5357 | lt_cv_objdir=_libs | |
5358 | fi | |
5359 | rmdir .libs 2>/dev/null | |
5360 | fi | |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5362 | $as_echo "$lt_cv_objdir" >&6; } | |
5363 | objdir=$lt_cv_objdir | |
5364 | ||
5365 | ||
5366 | ||
5367 | ||
5368 | ||
5369 | cat >>confdefs.h <<_ACEOF | |
5370 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5371 | _ACEOF | |
5372 | ||
5373 | ||
5374 | ||
acd26225 | 5375 | # Check for GMP, MPFR and MPC |
3a5729ea | 5376 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5377 | gmpinc= |
e69bf64b | 5378 | have_gmp=no |
acd26225 KG |
5379 | |
5380 | # Specify a location for mpc | |
5381 | # check for this first so it ends up on the link line before mpfr. | |
5382 | ||
5213506e RW |
5383 | # Check whether --with-mpc was given. |
5384 | if test "${with_mpc+set}" = set; then : | |
5385 | withval=$with_mpc; | |
5386 | fi | |
acd26225 | 5387 | |
acd26225 | 5388 | |
9965e3cd | 5389 | # Check whether --with-mpc-include was given. |
5213506e RW |
5390 | if test "${with_mpc_include+set}" = set; then : |
5391 | withval=$with_mpc_include; | |
5392 | fi | |
acd26225 | 5393 | |
acd26225 | 5394 | |
9965e3cd | 5395 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5396 | if test "${with_mpc_lib+set}" = set; then : |
5397 | withval=$with_mpc_lib; | |
5398 | fi | |
acd26225 | 5399 | |
acd26225 KG |
5400 | |
5401 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5402 | gmplibs="-L$with_mpc/lib $gmplibs" |
5403 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5404 | fi |
5405 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5406 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5407 | fi |
5408 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5409 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5410 | fi |
5411 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5412 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5413 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5414 | # Do not test the mpc version. Assume that it is sufficient, since |
5415 | # it is in the source tree, and the library has not been built yet | |
5416 | # but it would be included on the link line in the version check below | |
5417 | # hence making the test fail. | |
3a5729ea | 5418 | have_gmp=yes |
acd26225 | 5419 | fi |
e69bf64b | 5420 | |
bebf829d PB |
5421 | # Specify a location for mpfr |
5422 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5423 | |
5213506e RW |
5424 | # Check whether --with-mpfr-dir was given. |
5425 | if test "${with_mpfr_dir+set}" = set; then : | |
5426 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5427 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5428 | fi | |
5429 | ||
bebf829d PB |
5430 | |
5431 | ||
5213506e RW |
5432 | # Check whether --with-mpfr was given. |
5433 | if test "${with_mpfr+set}" = set; then : | |
5434 | withval=$with_mpfr; | |
5435 | fi | |
1c710c3c | 5436 | |
bebf829d | 5437 | |
9965e3cd | 5438 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5439 | if test "${with_mpfr_include+set}" = set; then : |
5440 | withval=$with_mpfr_include; | |
5441 | fi | |
1c710c3c | 5442 | |
8a877c9c | 5443 | |
9965e3cd | 5444 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5445 | if test "${with_mpfr_lib+set}" = set; then : |
5446 | withval=$with_mpfr_lib; | |
5447 | fi | |
8a877c9c | 5448 | |
bebf829d PB |
5449 | |
5450 | if test "x$with_mpfr" != x; then | |
5451 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5452 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5453 | fi |
8a877c9c | 5454 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5455 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5456 | fi |
5457 | if test "x$with_mpfr_lib" != x; then | |
5458 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5459 | fi | |
e69bf64b | 5460 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
5461 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5462 | if ! test -d ${srcdir}/mpfr/src; then | |
5463 | as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 | |
5464 | fi | |
00f35794 BE |
5465 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5466 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5467 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
5468 | # Do not test the mpfr version. Assume that it is sufficient, since |
5469 | # it is in the source tree, and the library has not been built yet | |
5470 | # but it would be included on the link line in the version check below | |
5471 | # hence making the test fail. | |
5472 | have_gmp=yes | |
5473 | fi | |
bebf829d | 5474 | |
6de9cd9a | 5475 | # Specify a location for gmp |
1c710c3c | 5476 | |
5213506e RW |
5477 | # Check whether --with-gmp-dir was given. |
5478 | if test "${with_gmp_dir+set}" = set; then : | |
5479 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5480 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5481 | fi | |
5482 | ||
6de9cd9a | 5483 | |
6de9cd9a | 5484 | |
5213506e RW |
5485 | # Check whether --with-gmp was given. |
5486 | if test "${with_gmp+set}" = set; then : | |
5487 | withval=$with_gmp; | |
5488 | fi | |
1c710c3c | 5489 | |
6de9cd9a | 5490 | |
9965e3cd | 5491 | # Check whether --with-gmp-include was given. |
5213506e RW |
5492 | if test "${with_gmp_include+set}" = set; then : |
5493 | withval=$with_gmp_include; | |
5494 | fi | |
1c710c3c | 5495 | |
8a877c9c | 5496 | |
9965e3cd | 5497 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5498 | if test "${with_gmp_lib+set}" = set; then : |
5499 | withval=$with_gmp_lib; | |
5500 | fi | |
8a877c9c KG |
5501 | |
5502 | ||
6de9cd9a | 5503 | |
bebf829d PB |
5504 | if test "x$with_gmp" != x; then |
5505 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5506 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5507 | fi |
8a877c9c KG |
5508 | if test "x$with_gmp_include" != x; then |
5509 | gmpinc="-I$with_gmp_include $gmpinc" | |
5510 | fi | |
5511 | if test "x$with_gmp_lib" != x; then | |
5512 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5513 | fi | |
e69bf64b | 5514 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5515 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5516 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5517 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5518 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5519 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5520 | # Do not test the gmp version. Assume that it is sufficient, since |
5521 | # it is in the source tree, and the library has not been built yet | |
5522 | # but it would be included on the link line in the version check below | |
5523 | # hence making the test fail. | |
5524 | have_gmp=yes | |
5525 | fi | |
6de9cd9a | 5526 | |
d943d7c4 | 5527 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5528 | have_gmp=yes |
5529 | saved_CFLAGS="$CFLAGS" | |
5530 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5531 | # Check for the recommended and required versions of GMP. |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5533 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5534 | |
5535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5536 | /* end confdefs.h. */ |
5537 | #include "gmp.h" | |
5538 | int | |
5539 | main () | |
5540 | { | |
5541 | ||
5542 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5543 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5544 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5545 | choke me |
5546 | #endif | |
5547 | ||
5548 | ; | |
5549 | return 0; | |
5550 | } | |
5551 | _ACEOF | |
5552 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5554 | /* end confdefs.h. */ |
362c6d2f | 5555 | #include <gmp.h> |
1c710c3c DJ |
5556 | int |
5557 | main () | |
5558 | { | |
6de9cd9a | 5559 | |
362c6d2f KG |
5560 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5561 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5562 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5563 | choke me |
5564 | #endif | |
1c710c3c DJ |
5565 | |
5566 | ; | |
5567 | return 0; | |
5568 | } | |
5569 | _ACEOF | |
5213506e RW |
5570 | if ac_fn_c_try_compile "$LINENO"; then : |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5572 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5573 | else |
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5575 | $as_echo "buggy but acceptable" >&6; } | |
5576 | fi | |
5577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5578 | else |
5213506e RW |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5580 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5581 | fi |
5213506e | 5582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5583 | |
acd26225 | 5584 | # If we have GMP, check the MPFR version. |
e69bf64b | 5585 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5586 | # Check for the recommended and required versions of MPFR. |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5588 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5590 | /* end confdefs.h. */ |
70ec446f | 5591 | #include <gmp.h> |
e69bf64b | 5592 | #include <mpfr.h> |
1c710c3c DJ |
5593 | int |
5594 | main () | |
5595 | { | |
e48d66a9 | 5596 | |
f7d6bc01 | 5597 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
e69bf64b PB |
5598 | choke me |
5599 | #endif | |
1c710c3c DJ |
5600 | |
5601 | ; | |
5602 | return 0; | |
5603 | } | |
5604 | _ACEOF | |
5213506e RW |
5605 | if ac_fn_c_try_compile "$LINENO"; then : |
5606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5607 | /* end confdefs.h. */ |
a3993f33 | 5608 | #include <gmp.h> |
e69bf64b | 5609 | #include <mpfr.h> |
1c710c3c DJ |
5610 | int |
5611 | main () | |
5612 | { | |
a3993f33 | 5613 | |
362c6d2f | 5614 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5615 | choke me |
5616 | #endif | |
acd26225 KG |
5617 | |
5618 | ; | |
5619 | return 0; | |
5620 | } | |
5621 | _ACEOF | |
5213506e RW |
5622 | if ac_fn_c_try_compile "$LINENO"; then : |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5624 | $as_echo "yes" >&6; } | |
acd26225 | 5625 | else |
5213506e RW |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5627 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5628 | fi |
5213506e | 5629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5630 | else |
5213506e RW |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5632 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5633 | fi |
5213506e | 5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5635 | fi |
5636 | ||
5637 | # Check for the MPC header version. | |
3a5729ea | 5638 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5639 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5641 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5643 | /* end confdefs.h. */ |
5644 | #include <mpc.h> | |
5645 | int | |
5646 | main () | |
5647 | { | |
5648 | ||
362c6d2f KG |
5649 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5650 | choke me | |
5651 | #endif | |
5652 | ||
5653 | ; | |
5654 | return 0; | |
5655 | } | |
5656 | _ACEOF | |
5657 | if ac_fn_c_try_compile "$LINENO"; then : | |
5658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5659 | /* end confdefs.h. */ | |
5660 | #include <mpc.h> | |
5661 | int | |
5662 | main () | |
5663 | { | |
5664 | ||
5665 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5666 | choke me |
5667 | #endif | |
5668 | ||
5669 | ; | |
5670 | return 0; | |
5671 | } | |
5672 | _ACEOF | |
5213506e RW |
5673 | if ac_fn_c_try_compile "$LINENO"; then : |
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5675 | $as_echo "yes" >&6; } |
362c6d2f KG |
5676 | else |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5678 | $as_echo "buggy but acceptable" >&6; } | |
5679 | fi | |
5680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5681 | else |
5213506e | 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5683 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5684 | fi |
5213506e | 5685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5686 | fi |
5687 | ||
5688 | # Now check the MPFR library. | |
5689 | if test x"$have_gmp" = xyes; then | |
5690 | saved_LIBS="$LIBS" | |
5691 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5693 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5695 | /* end confdefs.h. */ |
3a5729ea | 5696 | #include <mpc.h> |
acd26225 KG |
5697 | int |
5698 | main () | |
5699 | { | |
5700 | ||
5701 | mpfr_t n; | |
5702 | mpfr_t x; | |
3a5729ea | 5703 | mpc_t c; |
acd26225 KG |
5704 | int t; |
5705 | mpfr_init (n); | |
5706 | mpfr_init (x); | |
5707 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5708 | mpfr_erfc (n, x, GMP_RNDN); | |
5709 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5710 | mpfr_clear(n); |
5711 | mpfr_clear(x); | |
5712 | mpc_init2 (c, 53); | |
5713 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5714 | mpc_cosh (c, c, MPC_RNDNN); | |
5715 | mpc_pow (c, c, c, MPC_RNDNN); | |
5716 | mpc_acosh (c, c, MPC_RNDNN); | |
5717 | mpc_clear (c); | |
1c710c3c DJ |
5718 | |
5719 | ; | |
5720 | return 0; | |
5721 | } | |
5722 | _ACEOF | |
5213506e RW |
5723 | if ac_fn_c_try_link "$LINENO"; then : |
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5725 | $as_echo "yes" >&6; } | |
1c710c3c | 5726 | else |
5213506e RW |
5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5728 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5729 | fi |
5213506e RW |
5730 | rm -f core conftest.err conftest.$ac_objext \ |
5731 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5732 | LIBS="$saved_LIBS" |
5733 | fi | |
5734 | ||
e69bf64b | 5735 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5736 | |
362c6d2f KG |
5737 | # The library versions listed in the error message below should match |
5738 | # the HARD-minimums enforced above. | |
e69bf64b | 5739 | if test x$have_gmp != xyes; then |
f7d6bc01 | 5740 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
3a5729ea KG |
5741 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5742 | their locations. Source code for these libraries can be found at | |
5743 | their respective hosting sites as well as at | |
5744 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5745 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5746 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5747 | make sure that you have installed both the libraries and the header | |
5748 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5749 | fi |
70ec446f KG |
5750 | fi |
5751 | ||
acd26225 KG |
5752 | # Flags needed for both GMP, MPFR and/or MPC. |
5753 | ||
5754 | ||
6de9cd9a DN |
5755 | |
5756 | ||
5757 | ||
9e3eba15 | 5758 | |
0ff2d841 | 5759 | |
0b21f5d3 | 5760 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5761 | |
0b21f5d3 EB |
5762 | # Check whether --with-stage1-libs was given. |
5763 | if test "${with_stage1_libs+set}" = set; then : | |
5764 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5765 | stage1_libs= | |
00020c16 | 5766 | else |
0b21f5d3 | 5767 | stage1_libs=$withval |
00020c16 ILT |
5768 | fi |
5769 | else | |
5dc85f7e | 5770 | stage1_libs= |
5213506e RW |
5771 | fi |
5772 | ||
00020c16 ILT |
5773 | |
5774 | ||
0b21f5d3 | 5775 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5776 | |
0b21f5d3 EB |
5777 | # Check whether --with-stage1-ldflags was given. |
5778 | if test "${with_stage1_ldflags+set}" = set; then : | |
5779 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5780 | stage1_ldflags= | |
00020c16 | 5781 | else |
0b21f5d3 | 5782 | stage1_ldflags=$withval |
00020c16 ILT |
5783 | fi |
5784 | else | |
0b21f5d3 EB |
5785 | stage1_ldflags= |
5786 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5787 | # if supported. But if the user explicitly specified the libraries to use, | |
5788 | # trust that they are doing what they want. | |
5789 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5790 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5791 | fi | |
5213506e RW |
5792 | fi |
5793 | ||
00020c16 ILT |
5794 | |
5795 | ||
5dc85f7e | 5796 | # Libraries to use for stage2 and later builds. |
00020c16 | 5797 | |
5213506e RW |
5798 | # Check whether --with-boot-libs was given. |
5799 | if test "${with_boot_libs+set}" = set; then : | |
5800 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5801 | poststage1_libs= |
5802 | else | |
5803 | poststage1_libs=$withval | |
5804 | fi | |
5805 | else | |
5dc85f7e | 5806 | poststage1_libs= |
5213506e RW |
5807 | fi |
5808 | ||
00020c16 ILT |
5809 | |
5810 | ||
ed2eaa9f ILT |
5811 | # Linker flags to use for stage2 and later builds. |
5812 | ||
5813 | # Check whether --with-boot-ldflags was given. | |
5814 | if test "${with_boot_ldflags+set}" = set; then : | |
5815 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5816 | poststage1_ldflags= | |
5817 | else | |
5818 | poststage1_ldflags=$withval | |
5819 | fi | |
5820 | else | |
5821 | poststage1_ldflags= | |
bec93d73 ILT |
5822 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5823 | # statically. But if the user explicitly specified the libraries to | |
5824 | # use, trust that they are doing what they want. | |
5825 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5826 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5827 | fi | |
5828 | fi | |
5829 | ||
5830 | ||
5831 | ||
e357a5e0 | 5832 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 5833 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
5834 | |
5835 | ||
33ad93b9 RG |
5836 | # Check whether --with-isl was given. |
5837 | if test "${with_isl+set}" = set; then : | |
5838 | withval=$with_isl; | |
5213506e | 5839 | fi |
f8bf9252 | 5840 | |
f8bf9252 | 5841 | |
eae1a5d4 | 5842 | # Treat --without-isl as a request to disable |
625afa23 | 5843 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 5844 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 5845 | # Check for isl |
625afa23 RG |
5846 | |
5847 | ||
33ad93b9 RG |
5848 | # Check whether --with-isl-include was given. |
5849 | if test "${with_isl_include+set}" = set; then : | |
5850 | withval=$with_isl_include; | |
5213506e RW |
5851 | fi |
5852 | ||
f8bf9252 | 5853 | |
33ad93b9 RG |
5854 | # Check whether --with-isl-lib was given. |
5855 | if test "${with_isl_lib+set}" = set; then : | |
5856 | withval=$with_isl_lib; | |
5213506e | 5857 | fi |
f8bf9252 | 5858 | |
f8bf9252 | 5859 | |
33ad93b9 RG |
5860 | # Check whether --enable-isl-version-check was given. |
5861 | if test "${enable_isl_version_check+set}" = set; then : | |
5862 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5863 | else | |
5864 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
5865 | fi |
5866 | ||
5867 | ||
33ad93b9 RG |
5868 | # Initialize isllibs and islinc. |
5869 | case $with_isl in | |
5870 | no) | |
5871 | isllibs= | |
5872 | islinc= | |
5873 | ;; | |
5874 | "" | yes) | |
5875 | ;; | |
5876 | *) | |
5877 | isllibs="-L$with_isl/lib" | |
5878 | islinc="-I$with_isl/include" | |
5879 | ;; | |
5880 | esac | |
5881 | if test "x${with_isl_include}" != x ; then | |
5882 | islinc="-I$with_isl_include" | |
5883 | fi | |
5884 | if test "x${with_isl_lib}" != x; then | |
5885 | isllibs="-L$with_isl_lib" | |
5886 | fi | |
5887 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5888 | && test -d ${srcdir}/isl; then | |
5889 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5890 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5891 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5893 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 5894 | fi |
7d32a440 | 5895 | |
eae1a5d4 RG |
5896 | isllibs="${isllibs} -lisl" |
5897 | ||
7d32a440 | 5898 | |
7d32a440 | 5899 | |
9847828b RB |
5900 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5901 | _isl_saved_CFLAGS=$CFLAGS | |
5902 | _isl_saved_LDFLAGS=$LDFLAGS | |
5903 | _isl_saved_LIBS=$LIBS | |
5904 | ||
5905 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
5906 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5907 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 5908 | |
c661a43d SP |
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
5910 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
e0c0c325 | 5911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 5912 | /* end confdefs.h. */ |
560d18d3 | 5913 | #include <isl/ctx.h> |
622dbadf BC |
5914 | int |
5915 | main () | |
5916 | { | |
560d18d3 | 5917 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
622dbadf BC |
5918 | ; |
5919 | return 0; | |
5920 | } | |
5921 | _ACEOF | |
5922 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 5923 | gcc_cv_isl=yes |
622dbadf BC |
5924 | else |
5925 | gcc_cv_isl=no | |
5926 | fi | |
5927 | rm -f core conftest.err conftest.$ac_objext \ | |
5928 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5930 | $as_echo "$gcc_cv_isl" >&6; } | |
5931 | ||
560d18d3 | 5932 | if test "${gcc_cv_isl}" = no ; then |
c661a43d SP |
5933 | { $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 |
5934 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
560d18d3 AK |
5935 | fi |
5936 | ||
c661a43d SP |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 |
5938 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
1e050c90 AK |
5939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5940 | /* end confdefs.h. */ | |
5941 | #include <isl/schedule.h> | |
5942 | int | |
5943 | main () | |
5944 | { | |
5945 | isl_options_set_schedule_serialize_sccs (NULL, 0); | |
5946 | ; | |
5947 | return 0; | |
5948 | } | |
5949 | _ACEOF | |
5950 | if ac_fn_c_try_link "$LINENO"; then : | |
5951 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
5952 | else | |
5953 | ac_has_isl_options_set_schedule_serialize_sccs=no | |
5954 | fi | |
5955 | rm -f core conftest.err conftest.$ac_objext \ | |
5956 | conftest$ac_exeext conftest.$ac_ext | |
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
5958 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
5959 | ||
5960 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
5961 | islver="0.15" | |
5962 | ||
5963 | fi | |
5964 | ||
9847828b RB |
5965 | CFLAGS=$_isl_saved_CFLAGS |
5966 | LDFLAGS=$_isl_saved_LDFLAGS | |
5967 | LIBS=$_isl_saved_LIBS | |
5968 | fi | |
5969 | ||
5970 | ||
f8bf9252 | 5971 | |
f8bf9252 | 5972 | |
33ad93b9 RG |
5973 | |
5974 | ||
33ad93b9 RG |
5975 | if test "x${with_isl}" = xno; then |
5976 | graphite_requested=no | |
5977 | elif test "x${with_isl}" != x \ | |
5978 | || test "x${with_isl_include}" != x \ | |
5979 | || test "x${with_isl_lib}" != x ; then | |
5980 | graphite_requested=yes | |
5981 | else | |
5982 | graphite_requested=no | |
7d32a440 | 5983 | fi |
d789184e | 5984 | |
d789184e SP |
5985 | |
5986 | ||
33ad93b9 RG |
5987 | if test "${gcc_cv_isl}" = no ; then |
5988 | isllibs= | |
5989 | islinc= | |
5990 | fi | |
5991 | ||
5992 | if test "${graphite_requested}" = yes \ | |
5993 | && test "x${isllibs}" = x \ | |
5994 | && test "x${islinc}" = x ; then | |
f8bf9252 | 5995 | |
e357a5e0 | 5996 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 5997 | fi |
f8bf9252 | 5998 | |
d32ef397 | 5999 | |
d32ef397 AS |
6000 | fi |
6001 | ||
e357a5e0 | 6002 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 6003 | if test "x$with_isl" = xno || |
625afa23 | 6004 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6005 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6006 | islinc= |
32d024bf RG |
6007 | fi |
6008 | ||
625afa23 RG |
6009 | |
6010 | ||
6011 | ||
d7f09764 DN |
6012 | # Check for LTO support. |
6013 | # Check whether --enable-lto was given. | |
6014 | if test "${enable_lto+set}" = set; then : | |
6015 | enableval=$enable_lto; enable_lto=$enableval | |
6016 | else | |
6017 | enable_lto=yes; default_enable_lto=yes | |
6018 | fi | |
6019 | ||
6020 | ||
7413962d | 6021 | |
9a02962b DK |
6022 | |
6023 | ||
6024 | target_elf=no | |
6025 | case $target in | |
6026 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6027 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
3e326935 | 6028 | alpha*-dec-osf* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 6029 | nvptx-*-none) |
9a02962b DK |
6030 | target_elf=no |
6031 | ;; | |
6032 | *) | |
6033 | target_elf=yes | |
6034 | ;; | |
6035 | esac | |
6036 | ||
6037 | if test $target_elf = yes; then : | |
48215350 DK |
6038 | # ELF platforms build the lto-plugin always. |
6039 | build_lto_plugin=yes | |
9a02962b | 6040 | |
9a02962b DK |
6041 | else |
6042 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6043 | case $target in |
9e530bcd | 6044 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 6045 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6046 | *) enable_lto=no ;; |
6047 | esac | |
9a02962b | 6048 | else |
db50fe7d IS |
6049 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6050 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6051 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6052 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6053 | # -flto it won't be needed until after installation anyway. | |
6054 | case $target in | |
9e530bcd | 6055 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b DK |
6056 | *) if test x"$enable_lto" = x"yes"; then |
6057 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6058 | fi | |
6059 | ;; | |
6060 | esac | |
6061 | fi | |
1cd0b716 | 6062 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6063 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6064 | case $target in |
48215350 | 6065 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6066 | *) ;; |
6067 | esac | |
48215350 | 6068 | |
9a02962b DK |
6069 | fi |
6070 | ||
d7f09764 | 6071 | |
45b3824d TS |
6072 | # Check whether --enable-linker-plugin-configure-flags was given. |
6073 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6074 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6075 | else | |
6076 | extra_linker_plugin_configure_flags= | |
6077 | fi | |
6078 | ||
6079 | ||
6080 | # Check whether --enable-linker-plugin-flags was given. | |
6081 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6082 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6083 | else | |
6084 | extra_linker_plugin_flags= | |
6085 | fi | |
6086 | ||
6087 | ||
6088 | ||
f8bf9252 | 6089 | |
0823efed | 6090 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6091 | stage1_languages=,c, |
2805b53a | 6092 | |
00020c16 | 6093 | # Target libraries that we bootstrap. |
ad1e5170 | 6094 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6095 | |
55ffb5ed NN |
6096 | # Figure out what language subdirectories are present. |
6097 | # Look if the user specified --enable-languages="..."; if not, use | |
6098 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6099 | # go away some day. | |
6100 | # NB: embedded tabs in this IF block -- do not untabify | |
6101 | if test -d ${srcdir}/gcc; then | |
6102 | if test x"${enable_languages+set}" != xset; then | |
6103 | if test x"${LANGUAGES+set}" = xset; then | |
6104 | enable_languages="${LANGUAGES}" | |
6b1786aa | 6105 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed NN |
6106 | else |
6107 | enable_languages=all | |
6108 | fi | |
6109 | else | |
6110 | if test x"${enable_languages}" = x || | |
6111 | test x"${enable_languages}" = xyes; | |
6112 | then | |
6b1786aa | 6113 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
6114 | exit 1 |
6115 | fi | |
6116 | fi | |
6117 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6118 | ||
7f26dfa3 FXC |
6119 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6120 | # and make the substitution. | |
6121 | case ,${enable_languages}, in | |
6122 | *,f95,*) | |
6b1786aa | 6123 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
6124 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6125 | ;; | |
6126 | esac | |
6127 | ||
0823efed DN |
6128 | # If bootstrapping, C++ must be enabled. |
6129 | case ",$enable_languages,:$enable_bootstrap" in | |
6130 | *,c++,*:*) ;; | |
6131 | *:yes) | |
ff3ac0f4 ILT |
6132 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6133 | enable_languages="${enable_languages},c++" | |
6134 | else | |
0823efed | 6135 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6136 | fi |
6137 | ;; | |
6138 | esac | |
6139 | ||
55ffb5ed NN |
6140 | # First scan to see if an enabled language requires some other language. |
6141 | # We assume that a given config-lang.in will list all the language | |
6142 | # front ends it requires, even if some are required indirectly. | |
6143 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6144 | case ${lang_frag} in | |
6145 | ..) ;; | |
6146 | # The odd quoting in the next line works around | |
6147 | # an apparent bug in bash 1.12 on linux. | |
6148 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6149 | *) | |
69ecd18f ILT |
6150 | # From the config-lang.in, get $language, $lang_requires, and |
6151 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6152 | language= |
6153 | lang_requires= | |
69ecd18f | 6154 | lang_requires_boot_languages= |
55ffb5ed | 6155 | . ${lang_frag} |
69ecd18f | 6156 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6157 | case ,${enable_languages}, in |
6158 | *,$other,*) ;; | |
6159 | *,all,*) ;; | |
6160 | *,$language,*) | |
6161 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6162 | enable_languages="${enable_languages},${other}" | |
6163 | ;; | |
6164 | esac | |
6165 | done | |
69ecd18f ILT |
6166 | for other in ${lang_requires_boot_languages} ; do |
6167 | if test "$other" != "c"; then | |
6168 | case ,${enable_stage1_languages}, in | |
6169 | *,$other,*) ;; | |
6170 | *,all,*) ;; | |
6171 | *) | |
6172 | case ,${enable_languages}, in | |
6173 | *,$language,*) | |
6174 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6175 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6176 | ;; | |
6177 | esac | |
6178 | ;; | |
6179 | esac | |
6180 | fi | |
6181 | done | |
55ffb5ed NN |
6182 | ;; |
6183 | esac | |
6184 | done | |
6185 | ||
e1888513 | 6186 | new_enable_languages=,c, |
d7f09764 DN |
6187 | |
6188 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6189 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6190 | case ,${enable_languages}, in |
6191 | *,lto,*) ;; | |
6192 | *) enable_languages="${enable_languages},lto" ;; | |
6193 | esac | |
1cd0b716 | 6194 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6195 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6196 | fi |
6197 | fi | |
6198 | ||
426c1eb0 TS |
6199 | # If we're building an offloading compiler, add the LTO front end. |
6200 | if test x"$enable_as_accelerator_for" != x ; then | |
6201 | case ,${enable_languages}, in | |
6202 | *,lto,*) ;; | |
6203 | *) enable_languages="${enable_languages},lto" ;; | |
6204 | esac | |
6205 | fi | |
6206 | ||
55ffb5ed | 6207 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6208 | potential_languages=,c, |
55ffb5ed | 6209 | |
4da3b0f8 ILT |
6210 | enabled_target_libs= |
6211 | disabled_target_libs= | |
6212 | ||
55ffb5ed NN |
6213 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6214 | case ${lang_frag} in | |
6215 | ..) ;; | |
6216 | # The odd quoting in the next line works around | |
6217 | # an apparent bug in bash 1.12 on linux. | |
6218 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6219 | *) | |
1c710c3c | 6220 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6221 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6222 | language= |
6223 | target_libs= | |
6224 | lang_dirs= | |
1546bb64 | 6225 | subdir_requires= |
e1888513 PB |
6226 | boot_language=no |
6227 | build_by_default=yes | |
55ffb5ed | 6228 | . ${lang_frag} |
e1888513 PB |
6229 | if test x${language} = x; then |
6230 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6231 | exit 1 | |
6232 | fi | |
6233 | ||
78767fd9 | 6234 | if test "$language" = "c++"; then |
0823efed | 6235 | boot_language=yes |
00020c16 ILT |
6236 | fi |
6237 | ||
178f875a | 6238 | add_this_lang=no |
e1888513 PB |
6239 | case ,${enable_languages}, in |
6240 | *,${language},*) | |
d4a10d0a SB |
6241 | # Language was explicitly selected; include it |
6242 | # unless it is C, which is enabled by default. | |
6243 | if test "$language" != "c"; then | |
6244 | add_this_lang=yes | |
6245 | fi | |
55ffb5ed | 6246 | ;; |
e1888513 PB |
6247 | *,all,*) |
6248 | # 'all' was selected, select it if it is a default language | |
178f875a JM |
6249 | if test "$language" != "c"; then |
6250 | add_this_lang=${build_by_default} | |
6251 | fi | |
55ffb5ed NN |
6252 | ;; |
6253 | esac | |
6de9cd9a | 6254 | |
1546bb64 | 6255 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6256 | for i in $subdir_requires; do |
b6348cb3 | 6257 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
6258 | case ,${enable_languages}, in |
6259 | *,${language},*) | |
6260 | # Specifically requested language; tell them. | |
5213506e | 6261 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 PB |
6262 | ;; |
6263 | *) | |
6264 | # Silently disable. | |
e1888513 | 6265 | add_this_lang=unsupported |
1546bb64 PB |
6266 | ;; |
6267 | esac | |
6268 | done | |
6269 | ||
e1888513 PB |
6270 | # Disable Ada if no preexisting GNAT is available. |
6271 | case ,${enable_languages},:${language}:${have_gnat} in | |
6272 | *,${language},*:ada:no) | |
6273 | # Specifically requested language; tell them. | |
5213506e | 6274 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
e1888513 PB |
6275 | ;; |
6276 | *:ada:no) | |
6277 | # Silently disable. | |
6278 | add_this_lang=unsupported | |
6279 | ;; | |
6280 | esac | |
6281 | ||
4fab7234 HPN |
6282 | # Disable a language that is unsupported by the target. |
6283 | case " $unsupported_languages " in | |
6284 | *" $language "*) | |
e1888513 | 6285 | add_this_lang=unsupported |
4fab7234 HPN |
6286 | ;; |
6287 | esac | |
6288 | ||
6de9cd9a | 6289 | case $add_this_lang in |
e1888513 | 6290 | unsupported) |
55ffb5ed | 6291 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6292 | disabled_target_libs="$disabled_target_libs $target_libs" |
6293 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6294 | ;; |
e1888513 PB |
6295 | no) |
6296 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6297 | disabled_target_libs="$disabled_target_libs $target_libs" |
6298 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6299 | potential_languages="${potential_languages}${language}," |
6300 | ;; | |
6301 | yes) | |
6302 | new_enable_languages="${new_enable_languages}${language}," | |
6303 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6304 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6305 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6306 | case "${boot_language}:,$enable_stage1_languages," in |
6307 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6308 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6309 | case ",$stage1_languages," in |
6310 | *,$language,* | ,yes, | ,all,) ;; | |
6311 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6312 | esac | |
00020c16 ILT |
6313 | # We need to bootstrap any supporting libraries. |
6314 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6315 | ;; |
6316 | esac | |
6317 | ;; | |
55ffb5ed NN |
6318 | esac |
6319 | ;; | |
6320 | esac | |
6321 | done | |
6322 | ||
4da3b0f8 ILT |
6323 | # Add target libraries which are only needed for disabled languages |
6324 | # to noconfigdirs. | |
6325 | if test -n "$disabled_target_libs"; then | |
6326 | for dir in $disabled_target_libs; do | |
6327 | case " $enabled_target_libs " in | |
6328 | *" ${dir} "*) ;; | |
6329 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6330 | esac | |
6331 | done | |
6332 | fi | |
6333 | ||
5213506e RW |
6334 | # Check whether --enable-stage1-languages was given. |
6335 | if test "${enable_stage1_languages+set}" = set; then : | |
6336 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6337 | ,no,|,,) |
6338 | # Set it to something that will have no effect in the loop below | |
6339 | enable_stage1_languages=c ;; | |
6340 | ,yes,) | |
6341 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6342 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6343 | *,all,*) | |
6344 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6345 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6346 | esac | |
6347 | ||
6348 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6349 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6350 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6351 | case $potential_languages in | |
6352 | *,$i,*) | |
6353 | case $stage1_languages in | |
6354 | *,$i,*) ;; | |
6355 | *) stage1_languages="$stage1_languages$i," ;; | |
6356 | esac ;; | |
6357 | *) | |
6358 | case $missing_languages in | |
6359 | *,$i,*) ;; | |
6360 | *) missing_languages="$missing_languages$i," ;; | |
6361 | esac ;; | |
6362 | esac | |
6363 | done | |
5213506e RW |
6364 | fi |
6365 | ||
e1888513 PB |
6366 | |
6367 | # Remove leading/trailing commas that were added for simplicity | |
6368 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6369 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6370 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6371 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6372 | ||
55ffb5ed | 6373 | if test "x$missing_languages" != x; then |
5213506e | 6374 | as_fn_error " |
0cf085e4 | 6375 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6376 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6377 | fi |
55ffb5ed NN |
6378 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6379 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6380 | enable_languages="$new_enable_languages" |
55ffb5ed | 6381 | fi |
e1888513 | 6382 | |
1c710c3c | 6383 | |
b2eaac4a | 6384 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6385 | fi |
6386 | ||
27079765 AH |
6387 | # Handle --disable-<component> generically. |
6388 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6389 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6390 | varname=`echo $dirname | sed -e s/+/_/g` |
6391 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6392 | noconfigdirs="$noconfigdirs $dir" |
6393 | fi | |
6394 | done | |
6395 | ||
43c40f3e RO |
6396 | # Check for Boehm's garbage collector |
6397 | # Check whether --enable-objc-gc was given. | |
6398 | if test "${enable_objc_gc+set}" = set; then : | |
6399 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
6400 | *,objc,*:*:yes:*target-boehm-gc*) | |
6401 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 | |
6402 | ;; | |
6403 | esac | |
6404 | fi | |
6405 | ||
6406 | ||
6407 | # Make sure we only build Boehm's garbage collector if required. | |
6408 | case ,${enable_languages},:${enable_objc_gc} in | |
6409 | *,objc,*:yes) | |
6410 | # Keep target-boehm-gc if requested for Objective-C. | |
6411 | ;; | |
6412 | *) | |
6413 | # Otherwise remove target-boehm-gc. | |
6414 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6415 | ;; | |
6416 | esac | |
6417 | ||
5f520819 | 6418 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6419 | case ,${enable_languages}, in |
1007a55c JW |
6420 | *,c++,*) |
6421 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6422 | case "${noconfigdirs}" in | |
6423 | *target-libstdc++-v3*) | |
6424 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6425 | ;; | |
6426 | *) ;; | |
6427 | esac | |
6428 | ;; | |
99776ebd | 6429 | *) |
5f520819 | 6430 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6431 | ;; |
6432 | esac | |
6433 | ||
ee6a22df L |
6434 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6435 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6436 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6437 | ||
6438 | notsupp="" | |
6439 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6440 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6441 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6442 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6443 | if test -r $srcdir/$dirname/configure ; then | |
6444 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6445 | true | |
6446 | else | |
6447 | notsupp="$notsupp $dir" | |
6448 | fi | |
6449 | fi | |
6450 | fi | |
ee6a22df L |
6451 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6452 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6453 | if test -r $srcdir/$dirname/configure ; then | |
6454 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6455 | true | |
6456 | else | |
6457 | notsupp="$notsupp $dir" | |
6458 | fi | |
6459 | fi | |
6460 | fi | |
55ffb5ed NN |
6461 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6462 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6463 | if test -r $srcdir/$dirname/configure ; then | |
6464 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6465 | true | |
6466 | else | |
6467 | notsupp="$notsupp $dir" | |
6468 | fi | |
6469 | fi | |
6470 | fi | |
6471 | done | |
6472 | ||
55ffb5ed NN |
6473 | # Quietly strip out all directories which aren't configurable in this tree. |
6474 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6475 | # is now the case. | |
23f6b2f9 PB |
6476 | build_configdirs_all="$build_configdirs" |
6477 | build_configdirs= | |
6478 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6479 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6480 | if test -f ${srcdir}/$j/configure ; then |
6481 | build_configdirs="${build_configdirs} $i" | |
6482 | fi | |
6483 | done | |
6484 | ||
55ffb5ed NN |
6485 | configdirs_all="$configdirs" |
6486 | configdirs= | |
6487 | for i in ${configdirs_all} ; do | |
6488 | if test -f ${srcdir}/$i/configure ; then | |
6489 | configdirs="${configdirs} $i" | |
6490 | fi | |
6491 | done | |
23f6b2f9 | 6492 | |
55ffb5ed NN |
6493 | target_configdirs_all="$target_configdirs" |
6494 | target_configdirs= | |
6495 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6496 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6497 | if test -f ${srcdir}/$j/configure ; then |
6498 | target_configdirs="${target_configdirs} $i" | |
6499 | fi | |
6500 | done | |
6501 | ||
45b3824d TS |
6502 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6503 | # so we have to add it after the preceding checks. | |
6504 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6505 | then | |
6506 | case " $configdirs " in | |
6507 | *" libiberty "*) | |
6508 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6509 | configdirs="$configdirs libiberty-linker-plugin" | |
6510 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6511 | --with-libiberty=../libiberty-linker-plugin";; | |
6512 | *) | |
6513 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6514 | esac | |
6515 | fi | |
6516 | ||
fca38047 TS |
6517 | # Sometimes we have special requirements for the host libiberty. |
6518 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 6519 | extra_host_zlib_configure_flags= |
fca38047 TS |
6520 | case " $configdirs " in |
6521 | *" lto-plugin "* | *" libcc1 "*) | |
6522 | # When these are to be built as shared libraries, the same applies to | |
6523 | # libiberty. | |
6524 | extra_host_libiberty_configure_flags=--enable-shared | |
6525 | ;; | |
1c01ebf6 L |
6526 | *" bfd "*) |
6527 | # When bfd is to be built as a shared library, the same applies to | |
6528 | # zlib. | |
6529 | if test "$enable_shared" = "yes"; then | |
6530 | extra_host_zlib_configure_flags=--enable-host-shared | |
6531 | fi | |
6532 | ;; | |
fca38047 TS |
6533 | esac |
6534 | ||
6535 | ||
1c01ebf6 | 6536 | |
55ffb5ed NN |
6537 | # Produce a warning message for the subdirs we can't configure. |
6538 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6539 | # FSF releases, it's important to let people know when their machine isn't | |
6540 | # supported by the one or two programs in a package. | |
6541 | ||
6542 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6543 | # If $appdirs is non-empty, at least one of those directories must still | |
6544 | # be configured, or we error out. (E.g., if the gas release supports a | |
6545 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6546 | # pretend that all is well.) | |
6547 | if test -n "$appdirs" ; then | |
6548 | for dir in $appdirs ; do | |
6549 | if test -r $dir/Makefile.in ; then | |
6550 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6551 | appdirs="" | |
6552 | break | |
6553 | fi | |
23f6b2f9 | 6554 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6555 | appdirs="" |
6556 | break | |
6557 | fi | |
6558 | fi | |
6559 | done | |
6560 | if test -n "$appdirs" ; then | |
6561 | echo "*** This configuration is not supported by this package." 1>&2 | |
6562 | exit 1 | |
6563 | fi | |
6564 | fi | |
6565 | # Okay, some application will build, or we don't care to check. Still | |
6566 | # notify of subdirs not getting built. | |
6567 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6568 | echo " ${notsupp}" 1>&2 | |
6569 | echo " (Any other directories should still work fine.)" 1>&2 | |
6570 | fi | |
6571 | ||
6572 | case "$host" in | |
6573 | *msdosdjgpp*) | |
6574 | enable_gdbtk=no ;; | |
6575 | esac | |
6576 | ||
c3a86da9 DJ |
6577 | # To find our prefix, in gcc_cv_tool_prefix. |
6578 | ||
6579 | # The user is always right. | |
6580 | if test "${PATH_SEPARATOR+set}" != set; then | |
6581 | echo "#! /bin/sh" >conf$$.sh | |
6582 | echo "exit 0" >>conf$$.sh | |
6583 | chmod +x conf$$.sh | |
6584 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6585 | PATH_SEPARATOR=';' | |
6586 | else | |
6587 | PATH_SEPARATOR=: | |
6588 | fi | |
6589 | rm -f conf$$.sh | |
6590 | fi | |
6591 | ||
6592 | ||
6593 | ||
6594 | if test "x$exec_prefix" = xNONE; then | |
6595 | if test "x$prefix" = xNONE; then | |
6596 | gcc_cv_tool_prefix=$ac_default_prefix | |
6597 | else | |
6598 | gcc_cv_tool_prefix=$prefix | |
6599 | fi | |
6600 | else | |
6601 | gcc_cv_tool_prefix=$exec_prefix | |
6602 | fi | |
6603 | ||
6604 | # If there is no compiler in the tree, use the PATH only. In any | |
6605 | # case, if there is no compiler in the tree nobody should use | |
6606 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6607 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6608 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6609 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6610 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6611 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6612 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6613 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6614 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6615 | else | |
6616 | gcc_cv_tool_dirs= | |
6617 | fi | |
6618 | ||
6619 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6620 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6621 | fi | |
6622 | ||
6623 | ||
6624 | ||
55ffb5ed NN |
6625 | copy_dirs= |
6626 | ||
1c710c3c | 6627 | |
5213506e RW |
6628 | # Check whether --with-build-sysroot was given. |
6629 | if test "${with_build_sysroot+set}" = set; then : | |
6630 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6631 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6632 | fi | |
6633 | else | |
6634 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6635 | fi |
526635cb MM |
6636 | |
6637 | ||
c8aea42c | 6638 | |
5213506e RW |
6639 | |
6640 | # Check whether --with-debug-prefix-map was given. | |
6641 | if test "${with_debug_prefix_map+set}" = set; then : | |
6642 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6643 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6644 | for debug_map in $withval; do | |
6645 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6646 | done | |
6647 | fi | |
6648 | else | |
6649 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6650 | fi |
6651 | ||
c8aea42c PB |
6652 | |
6653 | ||
1c8bd6a3 PB |
6654 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6655 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6656 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6657 | # We want to ensure that TARGET libraries (which we know are built with | |
6658 | # gcc) are built with "-O2 -g", so include those options when setting | |
6659 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6660 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6661 | if test "x${is_cross_compiler}" = xyes; then |
6662 | CFLAGS_FOR_TARGET="-g -O2" | |
6663 | else | |
6664 | CFLAGS_FOR_TARGET=$CFLAGS | |
6665 | case " $CFLAGS " in | |
6666 | *" -O2 "*) ;; | |
6667 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6668 | esac | |
6669 | case " $CFLAGS " in | |
6670 | *" -g "* | *" -g3 "*) ;; | |
6671 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6672 | esac | |
6673 | fi | |
1c8bd6a3 PB |
6674 | fi |
6675 | ||
6676 | ||
6677 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6678 | if test "x${is_cross_compiler}" = xyes; then |
6679 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6680 | else | |
6681 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6682 | case " $CXXFLAGS " in | |
6683 | *" -O2 "*) ;; | |
6684 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6685 | esac | |
6686 | case " $CXXFLAGS " in | |
6687 | *" -g "* | *" -g3 "*) ;; | |
6688 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6689 | esac | |
6690 | fi | |
1c8bd6a3 PB |
6691 | fi |
6692 | ||
6693 | ||
6f57bdf6 DK |
6694 | |
6695 | ||
55ffb5ed NN |
6696 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6697 | # the named directory are copied to $(tooldir)/sys-include. | |
6698 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6699 | if test x${is_cross_compiler} = xno ; then | |
6700 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6701 | exit 1 | |
6702 | fi | |
6703 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6704 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6705 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6706 | fi |
6707 | fi | |
6708 | ||
6709 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6710 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6711 | # are permitted. | |
6712 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6713 | if test x${is_cross_compiler} = xno ; then | |
6714 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6715 | exit 1 | |
6716 | fi | |
6717 | if test x"${with_libs}" != xyes ; then | |
6718 | # Copy the libraries in reverse order, so that files in the first named | |
6719 | # library override files in subsequent libraries. | |
c3a86da9 | 6720 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6721 | for l in ${with_libs}; do |
1c710c3c | 6722 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6723 | done |
6724 | fi | |
6725 | fi | |
6726 | ||
d7f09764 | 6727 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6728 | # |
6729 | # This is done by determining whether or not the appropriate directory | |
6730 | # is available, and by checking whether or not specific configurations | |
6731 | # have requested that this magic not happen. | |
1c710c3c DJ |
6732 | # |
6733 | # The command line options always override the explicit settings in | |
6b1786aa | 6734 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 6735 | # |
1c710c3c | 6736 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6737 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6738 | # --without-gnu-ld options for the configure script. Similarly, if |
6739 | # the default is to use the included zlib and you don't want to do that, | |
6740 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6741 | |
6742 | if test x${use_gnu_as} = x && | |
6743 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6744 | with_gnu_as=yes | |
6745 | extra_host_args="$extra_host_args --with-gnu-as" | |
6746 | fi | |
6747 | ||
6748 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6749 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6750 | with_gnu_ld=yes |
6751 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6752 | fi | |
6753 | ||
d7f09764 DN |
6754 | if test x${use_included_zlib} = x && |
6755 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6756 | : | |
6757 | else | |
6758 | with_system_zlib=yes | |
6759 | extra_host_args="$extra_host_args --with-system-zlib" | |
6760 | fi | |
6761 | ||
e8b05380 PB |
6762 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6763 | # can detect this case. | |
6764 | ||
6765 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6766 | with_newlib=yes | |
6767 | extra_host_args="$extra_host_args --with-newlib" | |
6768 | fi | |
6769 | ||
55ffb5ed NN |
6770 | # Handle ${copy_dirs} |
6771 | set fnord ${copy_dirs} | |
6772 | shift | |
6773 | while test $# != 0 ; do | |
6774 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6775 | : | |
6776 | else | |
6777 | echo Copying $1 to $2 | |
6778 | ||
6779 | # Use the install script to create the directory and all required | |
6780 | # parent directories. | |
6781 | if test -d $2 ; then | |
6782 | : | |
6783 | else | |
6784 | echo >config.temp | |
6785 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6786 | fi | |
6787 | ||
6788 | # Copy the directory, assuming we have tar. | |
6789 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6790 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6791 | ||
6792 | # It is the responsibility of the user to correctly adjust all | |
6793 | # symlinks. If somebody can figure out how to handle them correctly | |
6794 | # here, feel free to add the code. | |
6795 | ||
6796 | echo $1 > $2/COPIED | |
6797 | fi | |
6798 | shift; shift | |
6799 | done | |
6800 | ||
e8b05380 PB |
6801 | # Determine a target-dependent exec_prefix that the installed |
6802 | # gcc will search in. Keep this list sorted by triplet, with | |
6803 | # the *-*-osname triplets last. | |
6804 | md_exec_prefix= | |
6805 | case "${target}" in | |
30b74385 | 6806 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6807 | md_exec_prefix=/dev/env/DJDIR/bin |
6808 | ;; | |
e8b05380 | 6809 | *-*-hpux* | \ |
e8b05380 | 6810 | *-*-nto-qnx* | \ |
6de66370 | 6811 | *-*-solaris2*) |
e8b05380 PB |
6812 | md_exec_prefix=/usr/ccs/bin |
6813 | ;; | |
6814 | esac | |
6815 | ||
671aa708 NN |
6816 | extra_arflags_for_target= |
6817 | extra_nmflags_for_target= | |
6818 | extra_ranlibflags_for_target= | |
6819 | target_makefile_frag=/dev/null | |
6820 | case "${target}" in | |
58e24147 AM |
6821 | spu-*-*) |
6822 | target_makefile_frag="config/mt-spu" | |
6823 | ;; | |
d896cc4d | 6824 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
6825 | target_makefile_frag="config/mt-sde" |
6826 | ;; | |
1ec3b87b RS |
6827 | mipsisa*-*-elfoabi*) |
6828 | target_makefile_frag="config/mt-mips-elfoabi" | |
6829 | ;; | |
08d0963a RS |
6830 | mips*-*-*linux* | mips*-*-gnu*) |
6831 | target_makefile_frag="config/mt-mips-gnu" | |
6832 | ;; | |
707f1839 SL |
6833 | nios2-*-elf*) |
6834 | target_makefile_frag="config/mt-nios2-elf" | |
6835 | ;; | |
416ac4d4 | 6836 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 6837 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
6838 | ;; |
6839 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 6840 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
6841 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6842 | # harmless if we're using GNU nm or ar. | |
6843 | extra_arflags_for_target=" -X32_64" | |
6844 | extra_nmflags_for_target=" -B -X32_64" | |
6845 | ;; | |
671aa708 NN |
6846 | esac |
6847 | ||
6848 | alphaieee_frag=/dev/null | |
6849 | case $target in | |
6850 | alpha*-*-*) | |
6851 | # This just makes sure to use the -mieee option to build target libs. | |
6852 | # This should probably be set individually by each library. | |
6853 | alphaieee_frag="config/mt-alphaieee" | |
6854 | ;; | |
6855 | esac | |
6856 | ||
6857 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6858 | # the target libraries, similarly if it is not specified, use -Os | |
6859 | # on selected platforms. | |
6860 | ospace_frag=/dev/null | |
6861 | case "${enable_target_optspace}:${target}" in | |
6862 | yes:*) | |
6863 | ospace_frag="config/mt-ospace" | |
6864 | ;; | |
6865 | :d30v-*) | |
6866 | ospace_frag="config/mt-d30v" | |
6867 | ;; | |
d9063947 | 6868 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
6869 | ospace_frag="config/mt-ospace" |
6870 | ;; | |
6871 | no:* | :*) | |
6872 | ;; | |
6873 | *) | |
6874 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6875 | ;; | |
6876 | esac | |
6877 | ||
671aa708 NN |
6878 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6879 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 6880 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
6881 | build_tooldir=${tooldir} |
6882 | ||
671aa708 NN |
6883 | # Create a .gdbinit file which runs the one in srcdir |
6884 | # and tells GDB to look there for source files. | |
6885 | ||
6886 | if test -r ${srcdir}/.gdbinit ; then | |
6887 | case ${srcdir} in | |
6888 | .) ;; | |
6889 | *) cat > ./.gdbinit <<EOF | |
6890 | # ${NO_EDIT} | |
6891 | dir ${srcdir} | |
6892 | dir . | |
6893 | source ${srcdir}/.gdbinit | |
6894 | EOF | |
6895 | ;; | |
6896 | esac | |
6897 | fi | |
6898 | ||
671aa708 NN |
6899 | # Make sure that the compiler is able to generate an executable. If it |
6900 | # can't, we are probably in trouble. We don't care whether we can run the | |
6901 | # executable--we might be using a cross compiler--we only care whether it | |
6902 | # can be created. At this point the main configure script has set CC. | |
6903 | we_are_ok=no | |
6904 | echo "int main () { return 0; }" > conftest.c | |
6905 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6906 | if test $? = 0 ; then | |
6907 | if test -s conftest || test -s conftest.exe ; then | |
6908 | we_are_ok=yes | |
6909 | fi | |
1c710c3c | 6910 | fi |
671aa708 NN |
6911 | case $we_are_ok in |
6912 | no) | |
6913 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6914 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6915 | rm -f conftest* | |
6916 | exit 1 | |
6917 | ;; | |
6918 | esac | |
6919 | rm -f conftest* | |
6920 | ||
d89f0ad6 | 6921 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
6922 | case "${host}" in |
6923 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 6924 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 6925 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
6926 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6927 | esac | |
6928 | ||
d89f0ad6 AL |
6929 | # On systems where the dynamic library environment variable is PATH, |
6930 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6931 | # built executables to PATH. | |
6932 | if test "$RPATH_ENVVAR" = PATH; then | |
6933 | GCC_SHLIB_SUBDIR=/shlib | |
6934 | else | |
6935 | GCC_SHLIB_SUBDIR= | |
6936 | fi | |
6937 | ||
beeda1d9 JJ |
6938 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6939 | case $enable_bootstrap in | |
6940 | yes) | |
6941 | bootstrap_suffix=bootstrap | |
6942 | BUILD_CONFIG=bootstrap-debug | |
6943 | ;; | |
6944 | no) | |
6945 | bootstrap_suffix=no-bootstrap | |
6946 | BUILD_CONFIG= | |
6947 | ;; | |
6948 | esac | |
6949 | ||
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
6951 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6952 | ||
6953 | ||
6954 | # Check whether --with-build-config was given. | |
6955 | if test "${with_build_config+set}" = set; then : | |
6956 | withval=$with_build_config; case $with_build_config in | |
6957 | yes) with_build_config= ;; | |
6958 | no) with_build_config= BUILD_CONFIG= ;; | |
6959 | esac | |
6960 | fi | |
6961 | ||
6962 | ||
6963 | if test "x${with_build_config}" != x; then | |
6964 | BUILD_CONFIG=$with_build_config | |
6965 | else | |
6966 | case $BUILD_CONFIG in | |
6967 | bootstrap-debug) | |
6968 | if echo "int f (void) { return 0; }" > conftest.c && | |
6969 | ${CC} -c conftest.c && | |
6970 | mv conftest.o conftest.o.g0 && | |
6971 | ${CC} -c -g conftest.c && | |
6972 | mv conftest.o conftest.o.g && | |
6973 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
6974 | : | |
6975 | else | |
6976 | BUILD_CONFIG= | |
6977 | fi | |
6978 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6979 | ;; | |
6980 | esac | |
6981 | fi | |
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6983 | $as_echo "$BUILD_CONFIG" >&6; } | |
6984 | ||
6985 | ||
6986 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
6988 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
6989 | # Check whether --enable-vtable-verify was given. | |
6990 | if test "${enable_vtable_verify+set}" = set; then : | |
6991 | enableval=$enable_vtable_verify; case "$enableval" in | |
6992 | yes) enable_vtable_verify=yes ;; | |
6993 | no) enable_vtable_verify=no ;; | |
6994 | *) enable_vtable_verify=no;; | |
6995 | esac | |
6996 | else | |
6997 | enable_vtable_verify=no | |
6998 | fi | |
6999 | ||
7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7001 | $as_echo "$enable_vtable_verify" >&6; } | |
7002 | ||
671aa708 NN |
7003 | # Record target_configdirs and the configure arguments for target and |
7004 | # build configuration in Makefile. | |
7005 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 7006 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 7007 | bootstrap_fixincludes=no |
671aa708 | 7008 | |
ad1e5170 JR |
7009 | # If we are building libgomp, bootstrap it. |
7010 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7011 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7012 | fi | |
7013 | ||
beeda1d9 JJ |
7014 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7015 | # or bootstrap-ubsan, bootstrap it. | |
7016 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7017 | case "$BUILD_CONFIG" in | |
7018 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7019 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7020 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7021 | ;; |
7022 | esac | |
ac8701fe L |
7023 | fi |
7024 | ||
beeda1d9 JJ |
7025 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7026 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7027 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7028 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7029 | fi | |
7030 | ||
5373cd33 IE |
7031 | # If we are building libmpx, bootstrap it. |
7032 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7033 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7034 | fi | |
7035 | ||
671aa708 NN |
7036 | # Determine whether gdb needs tk/tcl or not. |
7037 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7038 | # and in that case we want gdb to be built without tk. Ugh! | |
7039 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7040 | # so we should be able to put the 'maybe's in unconditionally and | |
7041 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7042 | # 100% sure that that's safe though. | |
e914a571 | 7043 | |
b4f96efe | 7044 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7045 | case "$enable_gdbtk" in |
7046 | no) | |
7047 | GDB_TK="" ;; | |
e914a571 AC |
7048 | yes) |
7049 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7050 | *) |
e914a571 AC |
7051 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7052 | # distro. Eventually someone will fix this and move Insight, nee | |
7053 | # gdbtk to a separate directory. | |
7054 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7055 | GDB_TK="${gdb_tk}" | |
7056 | else | |
7057 | GDB_TK="" | |
7058 | fi | |
7059 | ;; | |
671aa708 | 7060 | esac |
ef9db8d5 DJ |
7061 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7062 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7063 | |
60975492 | 7064 | # Strip out unwanted targets. |
8b87bb96 NN |
7065 | |
7066 | # While at that, we remove Makefiles if we were started for recursive | |
7067 | # configuration, so that the top-level Makefile reconfigures them, | |
7068 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7069 | |
3e54529c RW |
7070 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7071 | # but now we're fixing up the Makefile ourselves with the additional | |
7072 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7073 | # extrasub-{build,host,target} not because there is any reason to split | |
7074 | # the substitutions up that way, but only to remain below the limit of | |
7075 | # 99 commands in a script, for HP-UX sed. | |
7076 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 7077 | |
79cd2b23 RW |
7078 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7079 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7080 | yes:yes:*\ gold\ *:*) | |
7081 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7082 | ;; | |
7083 | esac | |
7084 | ||
3e54529c | 7085 | extrasub_build= |
23f6b2f9 | 7086 | for module in ${build_configdirs} ; do |
5607edfd PB |
7087 | if test -z "${no_recursion}" \ |
7088 | && test -f ${build_subdir}/${module}/Makefile; then | |
7089 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7090 | rm -f ${build_subdir}/${module}/Makefile | |
7091 | fi | |
3e54529c | 7092 | extrasub_build="$extrasub_build |
5607edfd PB |
7093 | /^@if build-$module\$/d |
7094 | /^@endif build-$module\$/d | |
7095 | /^@if build-$module-$bootstrap_suffix\$/d | |
7096 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7097 | done | |
3e54529c | 7098 | extrasub_host= |
5607edfd | 7099 | for module in ${configdirs} ; do |
a6fbc1e2 | 7100 | if test -z "${no_recursion}"; then |
f063a9ed | 7101 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7102 | if test -f ${file}; then |
7103 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7104 | rm -f ${file} | |
7105 | fi | |
7106 | done | |
5607edfd | 7107 | fi |
9e1c8fc1 JJ |
7108 | case ${module},${bootstrap_fixincludes} in |
7109 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7110 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7111 | esac | |
3e54529c | 7112 | extrasub_host="$extrasub_host |
5607edfd PB |
7113 | /^@if $module\$/d |
7114 | /^@endif $module\$/d | |
9e1c8fc1 JJ |
7115 | /^@if $module-$host_bootstrap_suffix\$/d |
7116 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7117 | done |
3e54529c | 7118 | extrasub_target= |
5607edfd PB |
7119 | for module in ${target_configdirs} ; do |
7120 | if test -z "${no_recursion}" \ | |
7121 | && test -f ${target_subdir}/${module}/Makefile; then | |
7122 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7123 | rm -f ${target_subdir}/${module}/Makefile | |
7124 | fi | |
00020c16 ILT |
7125 | |
7126 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7127 | case $bootstrap_target_libs in | |
7128 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7129 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7130 | esac | |
7131 | ||
3e54529c | 7132 | extrasub_target="$extrasub_target |
5607edfd PB |
7133 | /^@if target-$module\$/d |
7134 | /^@endif target-$module\$/d | |
00020c16 ILT |
7135 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7136 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7137 | done |
7138 | ||
3e54529c RW |
7139 | # Do the final fixup along with target modules. |
7140 | extrasub_target="$extrasub_target | |
60975492 | 7141 | /^@if /,/^@endif /d" |
671aa708 NN |
7142 | |
7143 | # Create the serialization dependencies. This uses a temporary file. | |
7144 | ||
5213506e RW |
7145 | # Check whether --enable-serial-configure was given. |
7146 | if test "${enable_serial_configure+set}" = set; then : | |
7147 | enableval=$enable_serial_configure; | |
7148 | fi | |
ade82b16 AO |
7149 | |
7150 | ||
bf1d3e81 NN |
7151 | case ${enable_serial_configure} in |
7152 | yes) | |
7153 | enable_serial_build_configure=yes | |
7154 | enable_serial_host_configure=yes | |
7155 | enable_serial_target_configure=yes | |
7156 | ;; | |
7157 | esac | |
7158 | ||
671aa708 NN |
7159 | # These force 'configure's to be done one at a time, to avoid problems |
7160 | # with contention over a shared config.cache. | |
7161 | rm -f serdep.tmp | |
ade82b16 | 7162 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7163 | olditem= |
bf1d3e81 | 7164 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7165 | for item in ${build_configdirs} ; do |
7166 | case ${olditem} in | |
7167 | "") ;; | |
ade82b16 | 7168 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7169 | esac |
7170 | olditem=${item} | |
7171 | done | |
7172 | olditem= | |
bf1d3e81 | 7173 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7174 | for item in ${configdirs} ; do |
7175 | case ${olditem} in | |
7176 | "") ;; | |
ade82b16 | 7177 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7178 | esac |
7179 | olditem=${item} | |
7180 | done | |
7181 | olditem= | |
bf1d3e81 | 7182 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7183 | for item in ${target_configdirs} ; do |
7184 | case ${olditem} in | |
7185 | "") ;; | |
ade82b16 | 7186 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7187 | esac |
7188 | olditem=${item} | |
7189 | done | |
7190 | serialization_dependencies=serdep.tmp | |
7191 | ||
7192 | ||
ade82b16 | 7193 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7194 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7195 | # might not want to pass down to subconfigures. The exception being |
7196 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7197 | # files altogether, and which should be passed on to subconfigures. | |
7198 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7199 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7200 | baseargs= |
29a63921 | 7201 | tbaseargs= |
1c710c3c DJ |
7202 | keep_next=no |
7203 | skip_next=no | |
7204 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7205 | for ac_arg |
7206 | do | |
1c710c3c DJ |
7207 | if test X"$skip_next" = X"yes"; then |
7208 | skip_next=no | |
7209 | continue | |
7210 | fi | |
7211 | if test X"$keep_next" = X"yes"; then | |
7212 | case $ac_arg in | |
7213 | *\'*) | |
7214 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7215 | esac | |
7216 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7217 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7218 | keep_next=no |
7219 | continue | |
7220 | fi | |
7221 | ||
7222 | # Handle separated arguments. Based on the logic generated by | |
7223 | # autoconf 2.59. | |
7224 | case $ac_arg in | |
7225 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7226 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7227 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7228 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7229 | separate_arg=no | |
7230 | ;; | |
7231 | -*) | |
7232 | separate_arg=yes | |
7233 | ;; | |
7234 | *) | |
7235 | separate_arg=no | |
7236 | ;; | |
7237 | esac | |
7238 | ||
29a63921 AO |
7239 | skip_targ=no |
7240 | case $ac_arg in | |
7241 | ||
7242 | --with-* | --without-*) | |
7243 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7244 | ||
7245 | case $libopt in | |
7246 | *[-_]include) | |
7247 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7248 | ;; | |
7249 | *[-_]lib) | |
7250 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7251 | ;; | |
7252 | *) | |
7253 | lib=$libopt | |
7254 | ;; | |
7255 | esac | |
7256 | ||
7257 | ||
7258 | case $lib in | |
4a9bb2aa | 7259 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7260 | # If we're processing --with-$lib, --with-$lib-include or |
7261 | # --with-$lib-lib, for one of the libs above, and target is | |
7262 | # different from host, don't pass the current argument to any | |
7263 | # target library's configure. | |
7264 | if test x$is_cross_compiler = xyes; then | |
7265 | skip_targ=yes | |
7266 | fi | |
7267 | ;; | |
7268 | esac | |
7269 | ;; | |
7270 | esac | |
7271 | ||
1c710c3c | 7272 | case "$ac_arg" in |
f1a036e4 NC |
7273 | --cache-file=/dev/null | \ |
7274 | -cache-file=/dev/null ) | |
7275 | # Handled here to avoid the test to skip args below. | |
7276 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7277 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7278 | # Assert: $separate_arg should always be no. |
7279 | keep_next=$separate_arg | |
7280 | ;; | |
1c710c3c DJ |
7281 | --no*) |
7282 | continue | |
7283 | ;; | |
7284 | --c* | \ | |
7285 | --sr* | \ | |
7286 | --ho* | \ | |
7287 | --bu* | \ | |
7288 | --t* | \ | |
7289 | --program-* | \ | |
7290 | -cache_file* | \ | |
7291 | -srcdir* | \ | |
7292 | -host* | \ | |
7293 | -build* | \ | |
7294 | -target* | \ | |
7295 | -program-prefix* | \ | |
7296 | -program-suffix* | \ | |
7297 | -program-transform-name* ) | |
7298 | skip_next=$separate_arg | |
7299 | continue | |
7300 | ;; | |
7301 | -*) | |
7302 | # An option. Add it. | |
7303 | case $ac_arg in | |
7304 | *\'*) | |
7305 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7306 | esac | |
7307 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7308 | if test X"$skip_targ" = Xno; then |
7309 | tbaseargs="$tbaseargs '$ac_arg'" | |
7310 | fi | |
1c710c3c DJ |
7311 | keep_next=$separate_arg |
7312 | ;; | |
7313 | *) | |
7314 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7315 | # pass it down; let the Makefile handle this. | |
7316 | continue | |
7317 | ;; | |
7318 | esac | |
7319 | done | |
7320 | # Remove the initial space we just introduced and, as these will be | |
7321 | # expanded by make, quote '$'. | |
7322 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7323 | |
43bb47c2 DJ |
7324 | # Add in --program-transform-name, after --program-prefix and |
7325 | # --program-suffix have been applied to it. Autoconf has already | |
7326 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7327 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7328 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7329 | # Also, because we want to override the logic in subdir configure scripts to |
7330 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7331 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7332 | ${program_transform_name} | |
7333 | EOF_SED | |
7334 | gcc_transform_name=`cat conftestsed.out` | |
7335 | rm -f conftestsed.out | |
7336 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7337 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7338 | if test "$silent" = yes; then |
7339 | baseargs="$baseargs --silent" | |
29a63921 | 7340 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7341 | fi |
0115d4a3 | 7342 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7343 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7344 | |
ffedf511 RW |
7345 | # Record and document user additions to sub configure arguments. |
7346 | ||
7347 | ||
7348 | ||
7349 | ||
671aa708 NN |
7350 | # For the build-side libraries, we just need to pretend we're native, |
7351 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7352 | # desired. We can't even use the same cache file for all build-side |
7353 | # libraries, as they're compiled differently; some with C, some with | |
7354 | # C++ or with different feature-enabling options. | |
7355 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7356 | |
7357 | # For host modules, accept cache file option, or specification as blank. | |
7358 | case "${cache_file}" in | |
7359 | "") # empty | |
7360 | cache_file_option="" ;; | |
7361 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7362 | cache_file_option="--cache-file=${cache_file}" ;; | |
7363 | *) # relative path | |
7364 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7365 | esac | |
7366 | ||
09438bde NN |
7367 | # Host dirs don't like to share a cache file either, horribly enough. |
7368 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7369 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7370 | |
29a63921 | 7371 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7372 | |
7373 | # Passing a --with-cross-host argument lets the target libraries know | |
7374 | # whether they are being built with a cross-compiler or being built | |
7375 | # native. However, it would be better to use other mechanisms to make the | |
7376 | # sorts of decisions they want to make on this basis. Please consider | |
7377 | # this option to be deprecated. FIXME. | |
7378 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7379 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7380 | fi |
7381 | ||
79e0604d FXC |
7382 | # Special user-friendly check for native x86_64-linux build, if |
7383 | # multilib is not explicitly enabled. | |
7384 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7385 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 7386 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
7387 | dev64=no |
7388 | echo "int main () { return 0; }" > conftest.c | |
7389 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7390 | if test $? = 0 ; then | |
7391 | if test -s conftest || test -s conftest.exe ; then | |
7392 | dev64=yes | |
7393 | fi | |
7394 | fi | |
7395 | rm -f conftest* | |
7396 | if test x${dev64} != xyes ; then | |
e640447c | 7397 | 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 |
7398 | fi |
7399 | ;; | |
7400 | esac | |
7401 | ||
dc683a3f RW |
7402 | # Default to --enable-multilib. |
7403 | if test x${enable_multilib} = x ; then | |
671aa708 | 7404 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7405 | fi |
671aa708 NN |
7406 | |
7407 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7408 | # changed from the earlier setting of with_newlib. | |
7409 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7410 | target_configargs="--with-newlib ${target_configargs}" | |
7411 | fi | |
7412 | ||
6b9eb62c NN |
7413 | # Different target subdirs use different values of certain variables |
7414 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7415 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7416 | # it doesn't automatically accept command-line overrides of them. | |
7417 | # This means it's not safe for target subdirs to share a cache file, | |
7418 | # which is disgusting, but there you have it. Hopefully this can be | |
7419 | # fixed in future. It's still worthwhile to use a cache file for each | |
7420 | # directory. I think. | |
7421 | ||
bebcd931 MS |
7422 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7423 | # We need to pass --target, as newer autoconf's requires consistency | |
7424 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7425 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7426 | |
671aa708 NN |
7427 | FLAGS_FOR_TARGET= |
7428 | case " $target_configdirs " in | |
7429 | *" newlib "*) | |
7430 | case " $target_configargs " in | |
7431 | *" --with-newlib "*) | |
7432 | case "$target" in | |
5d571eaa | 7433 | *-cygwin*) |
443e6238 | 7434 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7435 | ;; |
671aa708 NN |
7436 | esac |
7437 | ||
7438 | # If we're not building GCC, don't discard standard headers. | |
7439 | if test -d ${srcdir}/gcc; then | |
7440 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7441 | ||
7442 | if test "${build}" != "${host}"; then | |
7443 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7444 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7445 | # to it. This is right: we don't want to search that directory | |
7446 | # for binaries, but we want the header files in there, so add | |
7447 | # them explicitly. | |
0463992b | 7448 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7449 | |
7450 | # Someone might think of using the pre-installed headers on | |
7451 | # Canadian crosses, in case the installed compiler is not fully | |
7452 | # compatible with the compiler being built. In this case, it | |
7453 | # would be better to flag an error than risking having | |
7454 | # incompatible object files being constructed. We can't | |
7455 | # guarantee that an error will be flagged, but let's hope the | |
7456 | # compiler will do it, when presented with incompatible header | |
7457 | # files. | |
7458 | fi | |
7459 | fi | |
7460 | ||
7461 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7462 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7463 | # Here host == target, so we don't need to build gcc, |
7464 | # so we don't want to discard standard headers. | |
7465 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7466 | ;; | |
7467 | *) | |
7468 | # If we're building newlib, use its generic headers last, but search | |
7469 | # for any libc-related directories first (so make it the last -B | |
7470 | # switch). | |
7471 | 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 |
7472 | |
7473 | # If we're building libgloss, find the startup file, simulator library | |
7474 | # and linker script. | |
7475 | case " $target_configdirs " in | |
7476 | *" libgloss "*) | |
7477 | # Look for startup file, simulator library and maybe linker script. | |
7478 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7479 | # Look for libnosys.a in case the target needs it. | |
7480 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7481 | # Most targets have the linker script in the source directory. | |
7482 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7483 | ;; | |
7484 | esac | |
671aa708 NN |
7485 | ;; |
7486 | esac | |
7487 | ;; | |
7488 | esac | |
7489 | ;; | |
7490 | esac | |
5d571eaa | 7491 | |
b91f0a41 | 7492 | case "$target" in |
5d571eaa OS |
7493 | x86_64-*mingw* | *-w64-mingw*) |
7494 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7495 | # however, use a symlink named 'mingw' in ${prefix} . | |
7496 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7497 | ;; | |
7498 | *-mingw*) | |
7499 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7500 | 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' | |
7501 | ;; | |
b91f0a41 | 7502 | esac |
671aa708 | 7503 | |
6691a79e ME |
7504 | # Allow the user to override the flags for |
7505 | # our build compiler if desired. | |
f019adc1 MF |
7506 | if test x"${build}" = x"${host}" ; then |
7507 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7508 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7509 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7510 | fi | |
6691a79e | 7511 | |
671aa708 NN |
7512 | # On Canadian crosses, we'll be searching the right directories for |
7513 | # the previously-installed cross compiler, so don't bother to add | |
7514 | # flags for directories within the install tree of the compiler | |
7515 | # being built; programs in there won't even run. | |
7516 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7517 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7518 | 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 |
7519 | fi |
7520 | ||
7521 | if test "x${use_gnu_ld}" = x && | |
7522 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7523 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7524 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7525 | fi |
7526 | ||
e88a2c09 DD |
7527 | # Search for other target-specific linker scripts and such. |
7528 | case "${target}" in | |
3e19841a PB |
7529 | mep*) |
7530 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7531 | ;; | |
e88a2c09 DD |
7532 | esac |
7533 | ||
671aa708 | 7534 | # Makefile fragments. |
7b61653a PE |
7535 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7536 | do | |
7537 | eval fragval=\$$frag | |
7538 | if test $fragval != /dev/null; then | |
7539 | eval $frag=${srcdir}/$fragval | |
7540 | fi | |
7541 | done | |
671aa708 NN |
7542 | |
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | # Miscellanea: directories, flags, etc. | |
7548 | ||
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
d89f0ad6 | 7555 | |
23f6b2f9 | 7556 | # Build module lists & subconfigure args. |
671aa708 NN |
7557 | |
7558 | ||
7559 | ||
2abefe3d PB |
7560 | # Host module lists & subconfigure args. |
7561 | ||
7562 | ||
7563 | ||
aae29963 | 7564 | |
2abefe3d PB |
7565 | # Target module lists & subconfigure args. |
7566 | ||
7567 | ||
7568 | ||
7569 | # Build tools. | |
7570 | ||
7571 | ||
7572 | ||
0999159b PB |
7573 | |
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | ||
7582 | ||
7583 | ||
7584 | ||
7585 | ||
7586 | ||
2abefe3d PB |
7587 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7588 | # on the build machine. These are used if the Makefile can't locate these | |
7589 | # programs in objdir. | |
7590 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7591 | ||
7592 | for ac_prog in 'bison -y' byacc yacc | |
7593 | do | |
1c710c3c | 7594 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7595 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7597 | $as_echo_n "checking for $ac_word... " >&6; } | |
7598 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7599 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7600 | else |
7601 | if test -n "$YACC"; then | |
7602 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7603 | else | |
1c710c3c DJ |
7604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7605 | for as_dir in $PATH | |
7606 | do | |
7607 | IFS=$as_save_IFS | |
7608 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7609 | for ac_exec_ext in '' $ac_executable_extensions; do |
7610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7611 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7613 | break 2 |
7614 | fi | |
7615 | done | |
5213506e RW |
7616 | done |
7617 | IFS=$as_save_IFS | |
1c710c3c | 7618 | |
2abefe3d PB |
7619 | fi |
7620 | fi | |
1c710c3c | 7621 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7622 | if test -n "$YACC"; then |
5213506e RW |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7624 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7625 | else |
5213506e RW |
7626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7627 | $as_echo "no" >&6; } | |
2abefe3d PB |
7628 | fi |
7629 | ||
5213506e | 7630 | |
1c710c3c | 7631 | test -n "$YACC" && break |
2abefe3d PB |
7632 | done |
7633 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7634 | ||
7635 | case " $build_configdirs " in | |
7636 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7637 | esac |
7638 | ||
7639 | for ac_prog in bison | |
7640 | do | |
1c710c3c | 7641 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7642 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7644 | $as_echo_n "checking for $ac_word... " >&6; } | |
7645 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7646 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7647 | else |
7648 | if test -n "$BISON"; then | |
7649 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7650 | else | |
1c710c3c DJ |
7651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7652 | for as_dir in $PATH | |
7653 | do | |
7654 | IFS=$as_save_IFS | |
7655 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7656 | for ac_exec_ext in '' $ac_executable_extensions; do |
7657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7658 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7660 | break 2 |
7661 | fi | |
7662 | done | |
5213506e RW |
7663 | done |
7664 | IFS=$as_save_IFS | |
1c710c3c | 7665 | |
2abefe3d PB |
7666 | fi |
7667 | fi | |
1c710c3c | 7668 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7669 | if test -n "$BISON"; then |
5213506e RW |
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7671 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7672 | else |
5213506e RW |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7674 | $as_echo "no" >&6; } | |
2abefe3d PB |
7675 | fi |
7676 | ||
5213506e | 7677 | |
1c710c3c | 7678 | test -n "$BISON" && break |
2abefe3d PB |
7679 | done |
7680 | test -n "$BISON" || BISON="$MISSING bison" | |
7681 | ||
7682 | case " $build_configdirs " in | |
7683 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7684 | esac | |
7685 | ||
7686 | for ac_prog in gm4 gnum4 m4 | |
7687 | do | |
1c710c3c | 7688 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7689 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7691 | $as_echo_n "checking for $ac_word... " >&6; } | |
7692 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7693 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7694 | else |
7695 | if test -n "$M4"; then | |
7696 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7697 | else | |
1c710c3c DJ |
7698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7699 | for as_dir in $PATH | |
7700 | do | |
7701 | IFS=$as_save_IFS | |
7702 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7703 | for ac_exec_ext in '' $ac_executable_extensions; do |
7704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7705 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7707 | break 2 |
7708 | fi | |
7709 | done | |
5213506e RW |
7710 | done |
7711 | IFS=$as_save_IFS | |
1c710c3c | 7712 | |
2abefe3d PB |
7713 | fi |
7714 | fi | |
1c710c3c | 7715 | M4=$ac_cv_prog_M4 |
2abefe3d | 7716 | if test -n "$M4"; then |
5213506e RW |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7718 | $as_echo "$M4" >&6; } | |
2abefe3d | 7719 | else |
5213506e RW |
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7721 | $as_echo "no" >&6; } | |
2abefe3d PB |
7722 | fi |
7723 | ||
5213506e | 7724 | |
1c710c3c | 7725 | test -n "$M4" && break |
2abefe3d PB |
7726 | done |
7727 | test -n "$M4" || M4="$MISSING m4" | |
7728 | ||
7729 | case " $build_configdirs " in | |
7730 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7731 | esac | |
7732 | ||
7733 | for ac_prog in flex lex | |
7734 | do | |
1c710c3c | 7735 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7736 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7738 | $as_echo_n "checking for $ac_word... " >&6; } | |
7739 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7740 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7741 | else |
7742 | if test -n "$LEX"; then | |
7743 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7744 | else | |
1c710c3c DJ |
7745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7746 | for as_dir in $PATH | |
7747 | do | |
7748 | IFS=$as_save_IFS | |
7749 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7750 | for ac_exec_ext in '' $ac_executable_extensions; do |
7751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7752 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7754 | break 2 |
7755 | fi | |
7756 | done | |
5213506e RW |
7757 | done |
7758 | IFS=$as_save_IFS | |
1c710c3c | 7759 | |
2abefe3d PB |
7760 | fi |
7761 | fi | |
1c710c3c | 7762 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7763 | if test -n "$LEX"; then |
5213506e RW |
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7765 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7766 | else |
5213506e RW |
7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7768 | $as_echo "no" >&6; } | |
2abefe3d PB |
7769 | fi |
7770 | ||
5213506e | 7771 | |
1c710c3c | 7772 | test -n "$LEX" && break |
2abefe3d PB |
7773 | done |
7774 | test -n "$LEX" || LEX="$MISSING flex" | |
7775 | ||
7776 | case " $build_configdirs " in | |
7777 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7778 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7779 | esac | |
7780 | ||
7781 | for ac_prog in flex | |
7782 | do | |
1c710c3c | 7783 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7784 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7786 | $as_echo_n "checking for $ac_word... " >&6; } | |
7787 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7788 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7789 | else |
7790 | if test -n "$FLEX"; then | |
7791 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7792 | else | |
1c710c3c DJ |
7793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7794 | for as_dir in $PATH | |
7795 | do | |
7796 | IFS=$as_save_IFS | |
7797 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7798 | for ac_exec_ext in '' $ac_executable_extensions; do |
7799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7800 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7802 | break 2 |
7803 | fi | |
7804 | done | |
5213506e RW |
7805 | done |
7806 | IFS=$as_save_IFS | |
1c710c3c | 7807 | |
2abefe3d PB |
7808 | fi |
7809 | fi | |
1c710c3c | 7810 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7811 | if test -n "$FLEX"; then |
5213506e RW |
7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7813 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7814 | else |
5213506e RW |
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7816 | $as_echo "no" >&6; } | |
2abefe3d PB |
7817 | fi |
7818 | ||
5213506e | 7819 | |
1c710c3c | 7820 | test -n "$FLEX" && break |
2abefe3d PB |
7821 | done |
7822 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7823 | ||
7824 | case " $build_configdirs " in | |
7825 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7826 | esac | |
7827 | ||
7828 | for ac_prog in makeinfo | |
7829 | do | |
1c710c3c | 7830 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7831 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7833 | $as_echo_n "checking for $ac_word... " >&6; } | |
7834 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7835 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7836 | else |
7837 | if test -n "$MAKEINFO"; then | |
7838 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7839 | else | |
1c710c3c DJ |
7840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7841 | for as_dir in $PATH | |
7842 | do | |
7843 | IFS=$as_save_IFS | |
7844 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7845 | for ac_exec_ext in '' $ac_executable_extensions; do |
7846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7847 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 7848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7849 | break 2 |
7850 | fi | |
7851 | done | |
5213506e RW |
7852 | done |
7853 | IFS=$as_save_IFS | |
1c710c3c | 7854 | |
2abefe3d PB |
7855 | fi |
7856 | fi | |
1c710c3c | 7857 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 7858 | if test -n "$MAKEINFO"; then |
5213506e RW |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7860 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 7861 | else |
5213506e RW |
7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7863 | $as_echo "no" >&6; } | |
2abefe3d PB |
7864 | fi |
7865 | ||
5213506e | 7866 | |
1c710c3c | 7867 | test -n "$MAKEINFO" && break |
2abefe3d PB |
7868 | done |
7869 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7870 | ||
7871 | case " $build_configdirs " in | |
7872 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7873 | *) | |
7874 | ||
d18ff35a | 7875 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
7876 | # higher, else we use the "missing" dummy. |
7877 | if ${MAKEINFO} --version \ | |
d18ff35a | 7878 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
7879 | : |
7880 | else | |
7881 | MAKEINFO="$MISSING makeinfo" | |
7882 | fi | |
7883 | ;; | |
7884 | ||
7885 | esac | |
671aa708 | 7886 | |
2abefe3d | 7887 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 7888 | |
2abefe3d PB |
7889 | for ac_prog in expect |
7890 | do | |
1c710c3c | 7891 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7892 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7894 | $as_echo_n "checking for $ac_word... " >&6; } | |
7895 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7896 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7897 | else |
7898 | if test -n "$EXPECT"; then | |
7899 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7900 | else | |
1c710c3c DJ |
7901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7902 | for as_dir in $PATH | |
7903 | do | |
7904 | IFS=$as_save_IFS | |
7905 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7906 | for ac_exec_ext in '' $ac_executable_extensions; do |
7907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7908 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 7909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7910 | break 2 |
7911 | fi | |
7912 | done | |
5213506e RW |
7913 | done |
7914 | IFS=$as_save_IFS | |
1c710c3c | 7915 | |
2abefe3d PB |
7916 | fi |
7917 | fi | |
1c710c3c | 7918 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 7919 | if test -n "$EXPECT"; then |
5213506e RW |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7921 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 7922 | else |
5213506e RW |
7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7924 | $as_echo "no" >&6; } | |
2abefe3d | 7925 | fi |
671aa708 | 7926 | |
5213506e | 7927 | |
1c710c3c | 7928 | test -n "$EXPECT" && break |
2abefe3d PB |
7929 | done |
7930 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 7931 | |
2abefe3d PB |
7932 | case " $configdirs " in |
7933 | *" expect "*) | |
7934 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7935 | ;; | |
7936 | esac | |
671aa708 | 7937 | |
2abefe3d PB |
7938 | for ac_prog in runtest |
7939 | do | |
1c710c3c | 7940 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7941 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7943 | $as_echo_n "checking for $ac_word... " >&6; } | |
7944 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7945 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7946 | else |
7947 | if test -n "$RUNTEST"; then | |
7948 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 7949 | else |
1c710c3c DJ |
7950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7951 | for as_dir in $PATH | |
7952 | do | |
7953 | IFS=$as_save_IFS | |
7954 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7955 | for ac_exec_ext in '' $ac_executable_extensions; do |
7956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7957 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 7958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7959 | break 2 |
7960 | fi | |
7961 | done | |
5213506e RW |
7962 | done |
7963 | IFS=$as_save_IFS | |
1c710c3c | 7964 | |
2abefe3d PB |
7965 | fi |
7966 | fi | |
1c710c3c | 7967 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 7968 | if test -n "$RUNTEST"; then |
5213506e RW |
7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7970 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 7971 | else |
5213506e RW |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7973 | $as_echo "no" >&6; } | |
2abefe3d | 7974 | fi |
671aa708 | 7975 | |
5213506e | 7976 | |
1c710c3c | 7977 | test -n "$RUNTEST" && break |
2abefe3d PB |
7978 | done |
7979 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 7980 | |
2abefe3d PB |
7981 | case " $configdirs " in |
7982 | *" dejagnu "*) | |
c394e891 | 7983 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
7984 | ;; |
7985 | esac | |
671aa708 NN |
7986 | |
7987 | ||
671aa708 | 7988 | # Host tools. |
ca9f4b81 AO |
7989 | ncn_tool_prefix= |
7990 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7991 | ncn_target_tool_prefix= | |
7992 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7993 | ||
278a7a38 AO |
7994 | |
7995 | ||
7996 | if test -n "$AR"; then | |
7997 | ac_cv_prog_AR=$AR | |
7998 | elif test -n "$ac_cv_prog_AR"; then | |
7999 | AR=$ac_cv_prog_AR | |
8000 | fi | |
8001 | ||
8002 | if test -n "$ac_cv_prog_AR"; then | |
8003 | for ncn_progname in ar; do | |
8004 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8005 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8007 | $as_echo_n "checking for $ac_word... " >&6; } | |
8008 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8009 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8010 | else |
8011 | if test -n "$AR"; then | |
8012 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8013 | else | |
8014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8015 | for as_dir in $PATH | |
8016 | do | |
8017 | IFS=$as_save_IFS | |
8018 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8019 | for ac_exec_ext in '' $ac_executable_extensions; do |
8020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8021 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8023 | break 2 |
8024 | fi | |
8025 | done | |
5213506e RW |
8026 | done |
8027 | IFS=$as_save_IFS | |
278a7a38 AO |
8028 | |
8029 | fi | |
8030 | fi | |
8031 | AR=$ac_cv_prog_AR | |
8032 | if test -n "$AR"; then | |
5213506e RW |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8034 | $as_echo "$AR" >&6; } | |
278a7a38 | 8035 | else |
5213506e RW |
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8037 | $as_echo "no" >&6; } | |
278a7a38 AO |
8038 | fi |
8039 | ||
5213506e | 8040 | |
278a7a38 AO |
8041 | done |
8042 | fi | |
8043 | ||
8044 | for ncn_progname in ar; do | |
2693c0b0 PB |
8045 | if test -n "$ncn_tool_prefix"; then |
8046 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8047 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8049 | $as_echo_n "checking for $ac_word... " >&6; } | |
8050 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8051 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8052 | else |
8053 | if test -n "$AR"; then | |
8054 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8055 | else | |
1c710c3c DJ |
8056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8057 | for as_dir in $PATH | |
8058 | do | |
8059 | IFS=$as_save_IFS | |
8060 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8061 | for ac_exec_ext in '' $ac_executable_extensions; do |
8062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8063 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8065 | break 2 |
8066 | fi | |
8067 | done | |
5213506e RW |
8068 | done |
8069 | IFS=$as_save_IFS | |
1c710c3c | 8070 | |
ca9f4b81 AO |
8071 | fi |
8072 | fi | |
1c710c3c | 8073 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8074 | if test -n "$AR"; then |
5213506e RW |
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8076 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8077 | else |
5213506e RW |
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8079 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8080 | fi |
8081 | ||
5213506e | 8082 | |
2693c0b0 PB |
8083 | fi |
8084 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8085 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8086 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8088 | $as_echo_n "checking for $ac_word... " >&6; } | |
8089 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8090 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8091 | else |
2693c0b0 | 8092 | if test -n "$AR"; then |
af71363e AS |
8093 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8094 | else | |
1c710c3c DJ |
8095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8096 | for as_dir in $PATH | |
8097 | do | |
8098 | IFS=$as_save_IFS | |
8099 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8100 | for ac_exec_ext in '' $ac_executable_extensions; do |
8101 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8102 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8104 | break 2 |
8105 | fi | |
8106 | done | |
5213506e RW |
8107 | done |
8108 | IFS=$as_save_IFS | |
1c710c3c | 8109 | |
ca9f4b81 AO |
8110 | fi |
8111 | fi | |
1c710c3c | 8112 | AR=$ac_cv_prog_AR |
2693c0b0 | 8113 | if test -n "$AR"; then |
5213506e RW |
8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8115 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8116 | else |
5213506e RW |
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8118 | $as_echo "no" >&6; } | |
ca9f4b81 | 8119 | fi |
1c710c3c | 8120 | |
5213506e | 8121 | |
2693c0b0 PB |
8122 | fi |
8123 | test -n "$ac_cv_prog_AR" && break | |
8124 | done | |
8125 | ||
8126 | if test -z "$ac_cv_prog_AR" ; then | |
8127 | set dummy ar | |
8128 | if test $build = $host ; then | |
8129 | AR="$2" | |
ca9f4b81 | 8130 | else |
2693c0b0 | 8131 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8132 | fi |
ca9f4b81 AO |
8133 | fi |
8134 | ||
278a7a38 AO |
8135 | |
8136 | ||
8137 | if test -n "$AS"; then | |
8138 | ac_cv_prog_AS=$AS | |
8139 | elif test -n "$ac_cv_prog_AS"; then | |
8140 | AS=$ac_cv_prog_AS | |
8141 | fi | |
8142 | ||
8143 | if test -n "$ac_cv_prog_AS"; then | |
8144 | for ncn_progname in as; do | |
8145 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8146 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8148 | $as_echo_n "checking for $ac_word... " >&6; } | |
8149 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8150 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8151 | else |
8152 | if test -n "$AS"; then | |
8153 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8154 | else | |
8155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8156 | for as_dir in $PATH | |
8157 | do | |
8158 | IFS=$as_save_IFS | |
8159 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8160 | for ac_exec_ext in '' $ac_executable_extensions; do |
8161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8162 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8164 | break 2 |
8165 | fi | |
8166 | done | |
5213506e RW |
8167 | done |
8168 | IFS=$as_save_IFS | |
278a7a38 AO |
8169 | |
8170 | fi | |
8171 | fi | |
8172 | AS=$ac_cv_prog_AS | |
8173 | if test -n "$AS"; then | |
5213506e RW |
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8175 | $as_echo "$AS" >&6; } | |
278a7a38 | 8176 | else |
5213506e RW |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8178 | $as_echo "no" >&6; } | |
278a7a38 AO |
8179 | fi |
8180 | ||
5213506e | 8181 | |
278a7a38 AO |
8182 | done |
8183 | fi | |
8184 | ||
8185 | for ncn_progname in as; do | |
2693c0b0 PB |
8186 | if test -n "$ncn_tool_prefix"; then |
8187 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8188 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8190 | $as_echo_n "checking for $ac_word... " >&6; } | |
8191 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8192 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8193 | else |
8194 | if test -n "$AS"; then | |
8195 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8196 | else |
1c710c3c DJ |
8197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8198 | for as_dir in $PATH | |
8199 | do | |
8200 | IFS=$as_save_IFS | |
8201 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8202 | for ac_exec_ext in '' $ac_executable_extensions; do |
8203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8204 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8206 | break 2 |
8207 | fi | |
8208 | done | |
5213506e RW |
8209 | done |
8210 | IFS=$as_save_IFS | |
1c710c3c | 8211 | |
ca9f4b81 AO |
8212 | fi |
8213 | fi | |
1c710c3c | 8214 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8215 | if test -n "$AS"; then |
5213506e RW |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8217 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8218 | else |
5213506e RW |
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8220 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8221 | fi |
8222 | ||
5213506e | 8223 | |
2693c0b0 PB |
8224 | fi |
8225 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8226 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8227 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8229 | $as_echo_n "checking for $ac_word... " >&6; } | |
8230 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8231 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8232 | else |
2693c0b0 PB |
8233 | if test -n "$AS"; then |
8234 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8235 | else |
1c710c3c DJ |
8236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8237 | for as_dir in $PATH | |
8238 | do | |
8239 | IFS=$as_save_IFS | |
8240 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8241 | for ac_exec_ext in '' $ac_executable_extensions; do |
8242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8243 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8245 | break 2 |
8246 | fi | |
8247 | done | |
5213506e RW |
8248 | done |
8249 | IFS=$as_save_IFS | |
1c710c3c | 8250 | |
ca9f4b81 AO |
8251 | fi |
8252 | fi | |
1c710c3c | 8253 | AS=$ac_cv_prog_AS |
2693c0b0 | 8254 | if test -n "$AS"; then |
5213506e RW |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8256 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8257 | else |
5213506e RW |
8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8259 | $as_echo "no" >&6; } | |
ca9f4b81 | 8260 | fi |
1c710c3c | 8261 | |
5213506e | 8262 | |
2693c0b0 PB |
8263 | fi |
8264 | test -n "$ac_cv_prog_AS" && break | |
8265 | done | |
8266 | ||
8267 | if test -z "$ac_cv_prog_AS" ; then | |
8268 | set dummy as | |
8269 | if test $build = $host ; then | |
8270 | AS="$2" | |
ca9f4b81 | 8271 | else |
2693c0b0 | 8272 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8273 | fi |
ca9f4b81 AO |
8274 | fi |
8275 | ||
278a7a38 AO |
8276 | |
8277 | ||
8278 | if test -n "$DLLTOOL"; then | |
8279 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8280 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8281 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8282 | fi | |
8283 | ||
8284 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8285 | for ncn_progname in dlltool; do | |
8286 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8287 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8289 | $as_echo_n "checking for $ac_word... " >&6; } | |
8290 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8291 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8292 | else |
8293 | if test -n "$DLLTOOL"; then | |
8294 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8295 | else | |
8296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8297 | for as_dir in $PATH | |
8298 | do | |
8299 | IFS=$as_save_IFS | |
8300 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8301 | for ac_exec_ext in '' $ac_executable_extensions; do |
8302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8303 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8305 | break 2 |
8306 | fi | |
8307 | done | |
5213506e RW |
8308 | done |
8309 | IFS=$as_save_IFS | |
278a7a38 AO |
8310 | |
8311 | fi | |
8312 | fi | |
8313 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8314 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8316 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8317 | else |
5213506e RW |
8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8319 | $as_echo "no" >&6; } | |
278a7a38 AO |
8320 | fi |
8321 | ||
5213506e | 8322 | |
278a7a38 AO |
8323 | done |
8324 | fi | |
8325 | ||
8326 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8327 | if test -n "$ncn_tool_prefix"; then |
8328 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8329 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8331 | $as_echo_n "checking for $ac_word... " >&6; } | |
8332 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8333 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8334 | else |
8335 | if test -n "$DLLTOOL"; then | |
8336 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8337 | else | |
1c710c3c DJ |
8338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8339 | for as_dir in $PATH | |
8340 | do | |
8341 | IFS=$as_save_IFS | |
8342 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8343 | for ac_exec_ext in '' $ac_executable_extensions; do |
8344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8345 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8347 | break 2 |
8348 | fi | |
8349 | done | |
5213506e RW |
8350 | done |
8351 | IFS=$as_save_IFS | |
1c710c3c | 8352 | |
ca9f4b81 AO |
8353 | fi |
8354 | fi | |
1c710c3c | 8355 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8356 | if test -n "$DLLTOOL"; then |
5213506e RW |
8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8358 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8359 | else |
5213506e RW |
8360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8361 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8362 | fi |
8363 | ||
5213506e | 8364 | |
2693c0b0 PB |
8365 | fi |
8366 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8367 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8368 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8370 | $as_echo_n "checking for $ac_word... " >&6; } | |
8371 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8372 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8373 | else |
2693c0b0 PB |
8374 | if test -n "$DLLTOOL"; then |
8375 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8376 | else |
1c710c3c DJ |
8377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8378 | for as_dir in $PATH | |
8379 | do | |
8380 | IFS=$as_save_IFS | |
8381 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8382 | for ac_exec_ext in '' $ac_executable_extensions; do |
8383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8384 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8386 | break 2 |
8387 | fi | |
8388 | done | |
5213506e RW |
8389 | done |
8390 | IFS=$as_save_IFS | |
1c710c3c | 8391 | |
ca9f4b81 AO |
8392 | fi |
8393 | fi | |
1c710c3c | 8394 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8395 | if test -n "$DLLTOOL"; then |
5213506e RW |
8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8397 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8398 | else |
5213506e RW |
8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8400 | $as_echo "no" >&6; } | |
ca9f4b81 | 8401 | fi |
1c710c3c | 8402 | |
5213506e | 8403 | |
2693c0b0 PB |
8404 | fi |
8405 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8406 | done | |
8407 | ||
8408 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8409 | set dummy dlltool | |
8410 | if test $build = $host ; then | |
8411 | DLLTOOL="$2" | |
ca9f4b81 | 8412 | else |
2693c0b0 | 8413 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8414 | fi |
ca9f4b81 AO |
8415 | fi |
8416 | ||
278a7a38 AO |
8417 | |
8418 | ||
8419 | if test -n "$LD"; then | |
8420 | ac_cv_prog_LD=$LD | |
8421 | elif test -n "$ac_cv_prog_LD"; then | |
8422 | LD=$ac_cv_prog_LD | |
8423 | fi | |
8424 | ||
8425 | if test -n "$ac_cv_prog_LD"; then | |
8426 | for ncn_progname in ld; do | |
8427 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8428 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8430 | $as_echo_n "checking for $ac_word... " >&6; } | |
8431 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8432 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8433 | else |
8434 | if test -n "$LD"; then | |
8435 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8436 | else | |
8437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8438 | for as_dir in $PATH | |
8439 | do | |
8440 | IFS=$as_save_IFS | |
8441 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8442 | for ac_exec_ext in '' $ac_executable_extensions; do |
8443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8444 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8446 | break 2 |
8447 | fi | |
8448 | done | |
5213506e RW |
8449 | done |
8450 | IFS=$as_save_IFS | |
278a7a38 AO |
8451 | |
8452 | fi | |
8453 | fi | |
8454 | LD=$ac_cv_prog_LD | |
8455 | if test -n "$LD"; then | |
5213506e RW |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8457 | $as_echo "$LD" >&6; } | |
278a7a38 | 8458 | else |
5213506e RW |
8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8460 | $as_echo "no" >&6; } | |
278a7a38 AO |
8461 | fi |
8462 | ||
5213506e | 8463 | |
278a7a38 AO |
8464 | done |
8465 | fi | |
8466 | ||
8467 | for ncn_progname in ld; do | |
2693c0b0 PB |
8468 | if test -n "$ncn_tool_prefix"; then |
8469 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8470 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8472 | $as_echo_n "checking for $ac_word... " >&6; } | |
8473 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8474 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8475 | else |
8476 | if test -n "$LD"; then | |
8477 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8478 | else | |
1c710c3c DJ |
8479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8480 | for as_dir in $PATH | |
8481 | do | |
8482 | IFS=$as_save_IFS | |
8483 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8484 | for ac_exec_ext in '' $ac_executable_extensions; do |
8485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8486 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8488 | break 2 |
8489 | fi | |
8490 | done | |
5213506e RW |
8491 | done |
8492 | IFS=$as_save_IFS | |
1c710c3c | 8493 | |
ca9f4b81 AO |
8494 | fi |
8495 | fi | |
1c710c3c | 8496 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8497 | if test -n "$LD"; then |
5213506e RW |
8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8499 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8500 | else |
5213506e RW |
8501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8502 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8503 | fi |
8504 | ||
5213506e | 8505 | |
2693c0b0 PB |
8506 | fi |
8507 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8508 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8509 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8511 | $as_echo_n "checking for $ac_word... " >&6; } | |
8512 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8513 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8514 | else |
2693c0b0 PB |
8515 | if test -n "$LD"; then |
8516 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8517 | else |
1c710c3c DJ |
8518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8519 | for as_dir in $PATH | |
8520 | do | |
8521 | IFS=$as_save_IFS | |
8522 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8523 | for ac_exec_ext in '' $ac_executable_extensions; do |
8524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8525 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8527 | break 2 |
8528 | fi | |
8529 | done | |
5213506e RW |
8530 | done |
8531 | IFS=$as_save_IFS | |
1c710c3c | 8532 | |
ca9f4b81 AO |
8533 | fi |
8534 | fi | |
1c710c3c | 8535 | LD=$ac_cv_prog_LD |
2693c0b0 | 8536 | if test -n "$LD"; then |
5213506e RW |
8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8538 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8539 | else |
5213506e RW |
8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8541 | $as_echo "no" >&6; } | |
ca9f4b81 | 8542 | fi |
1c710c3c | 8543 | |
5213506e | 8544 | |
2693c0b0 PB |
8545 | fi |
8546 | test -n "$ac_cv_prog_LD" && break | |
8547 | done | |
8548 | ||
8549 | if test -z "$ac_cv_prog_LD" ; then | |
8550 | set dummy ld | |
8551 | if test $build = $host ; then | |
8552 | LD="$2" | |
ca9f4b81 | 8553 | else |
2693c0b0 | 8554 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8555 | fi |
ca9f4b81 AO |
8556 | fi |
8557 | ||
278a7a38 AO |
8558 | |
8559 | ||
8560 | if test -n "$LIPO"; then | |
8561 | ac_cv_prog_LIPO=$LIPO | |
8562 | elif test -n "$ac_cv_prog_LIPO"; then | |
8563 | LIPO=$ac_cv_prog_LIPO | |
8564 | fi | |
8565 | ||
8566 | if test -n "$ac_cv_prog_LIPO"; then | |
8567 | for ncn_progname in lipo; do | |
8568 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8569 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8571 | $as_echo_n "checking for $ac_word... " >&6; } | |
8572 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8573 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8574 | else |
8575 | if test -n "$LIPO"; then | |
8576 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8577 | else | |
8578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8579 | for as_dir in $PATH | |
8580 | do | |
8581 | IFS=$as_save_IFS | |
8582 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8583 | for ac_exec_ext in '' $ac_executable_extensions; do |
8584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8585 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8587 | break 2 |
8588 | fi | |
8589 | done | |
5213506e RW |
8590 | done |
8591 | IFS=$as_save_IFS | |
278a7a38 AO |
8592 | |
8593 | fi | |
8594 | fi | |
8595 | LIPO=$ac_cv_prog_LIPO | |
8596 | if test -n "$LIPO"; then | |
5213506e RW |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8598 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8599 | else |
5213506e RW |
8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8601 | $as_echo "no" >&6; } | |
278a7a38 AO |
8602 | fi |
8603 | ||
5213506e | 8604 | |
278a7a38 AO |
8605 | done |
8606 | fi | |
8607 | ||
8608 | for ncn_progname in lipo; do | |
2abefe3d PB |
8609 | if test -n "$ncn_tool_prefix"; then |
8610 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8611 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8613 | $as_echo_n "checking for $ac_word... " >&6; } | |
8614 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8615 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8616 | else |
8617 | if test -n "$LIPO"; then | |
8618 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8619 | else | |
1c710c3c DJ |
8620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8621 | for as_dir in $PATH | |
8622 | do | |
8623 | IFS=$as_save_IFS | |
8624 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8625 | for ac_exec_ext in '' $ac_executable_extensions; do |
8626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8627 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8629 | break 2 |
8630 | fi | |
8631 | done | |
5213506e RW |
8632 | done |
8633 | IFS=$as_save_IFS | |
1c710c3c | 8634 | |
2abefe3d PB |
8635 | fi |
8636 | fi | |
1c710c3c | 8637 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8638 | if test -n "$LIPO"; then |
5213506e RW |
8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8640 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8641 | else |
5213506e RW |
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8643 | $as_echo "no" >&6; } | |
2abefe3d PB |
8644 | fi |
8645 | ||
5213506e | 8646 | |
2abefe3d PB |
8647 | fi |
8648 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8649 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8650 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8652 | $as_echo_n "checking for $ac_word... " >&6; } | |
8653 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8654 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8655 | else |
8656 | if test -n "$LIPO"; then | |
8657 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8658 | else | |
1c710c3c DJ |
8659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8660 | for as_dir in $PATH | |
8661 | do | |
8662 | IFS=$as_save_IFS | |
8663 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8664 | for ac_exec_ext in '' $ac_executable_extensions; do |
8665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8666 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8668 | break 2 |
8669 | fi | |
8670 | done | |
5213506e RW |
8671 | done |
8672 | IFS=$as_save_IFS | |
1c710c3c | 8673 | |
2abefe3d PB |
8674 | fi |
8675 | fi | |
1c710c3c | 8676 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8677 | if test -n "$LIPO"; then |
5213506e RW |
8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8679 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8680 | else |
5213506e RW |
8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8682 | $as_echo "no" >&6; } | |
2abefe3d | 8683 | fi |
1c710c3c | 8684 | |
5213506e | 8685 | |
2abefe3d PB |
8686 | fi |
8687 | test -n "$ac_cv_prog_LIPO" && break | |
8688 | done | |
8689 | ||
8690 | if test -z "$ac_cv_prog_LIPO" ; then | |
8691 | set dummy lipo | |
8692 | if test $build = $host ; then | |
8693 | LIPO="$2" | |
8694 | else | |
8695 | LIPO="${ncn_tool_prefix}$2" | |
8696 | fi | |
8697 | fi | |
8698 | ||
278a7a38 AO |
8699 | |
8700 | ||
8701 | if test -n "$NM"; then | |
8702 | ac_cv_prog_NM=$NM | |
8703 | elif test -n "$ac_cv_prog_NM"; then | |
8704 | NM=$ac_cv_prog_NM | |
8705 | fi | |
8706 | ||
8707 | if test -n "$ac_cv_prog_NM"; then | |
8708 | for ncn_progname in nm; do | |
8709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8710 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8712 | $as_echo_n "checking for $ac_word... " >&6; } | |
8713 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8714 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8715 | else |
8716 | if test -n "$NM"; then | |
8717 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8718 | else | |
1c710c3c DJ |
8719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8720 | for as_dir in $PATH | |
8721 | do | |
8722 | IFS=$as_save_IFS | |
8723 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8724 | for ac_exec_ext in '' $ac_executable_extensions; do |
8725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8726 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8728 | break 2 |
8729 | fi | |
8730 | done | |
5213506e RW |
8731 | done |
8732 | IFS=$as_save_IFS | |
1c710c3c | 8733 | |
ca9f4b81 AO |
8734 | fi |
8735 | fi | |
1c710c3c | 8736 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8737 | if test -n "$NM"; then |
5213506e RW |
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8739 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8740 | else |
5213506e RW |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8742 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8743 | fi |
8744 | ||
5213506e | 8745 | |
278a7a38 AO |
8746 | done |
8747 | fi | |
8748 | ||
8749 | for ncn_progname in nm; do | |
8750 | if test -n "$ncn_tool_prefix"; then | |
8751 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8752 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8754 | $as_echo_n "checking for $ac_word... " >&6; } | |
8755 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8756 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8757 | else |
2693c0b0 PB |
8758 | if test -n "$NM"; then |
8759 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8760 | else |
1c710c3c DJ |
8761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8762 | for as_dir in $PATH | |
8763 | do | |
8764 | IFS=$as_save_IFS | |
8765 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8766 | for ac_exec_ext in '' $ac_executable_extensions; do |
8767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8768 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8770 | break 2 |
8771 | fi | |
8772 | done | |
5213506e RW |
8773 | done |
8774 | IFS=$as_save_IFS | |
1c710c3c | 8775 | |
ca9f4b81 AO |
8776 | fi |
8777 | fi | |
1c710c3c | 8778 | NM=$ac_cv_prog_NM |
2693c0b0 | 8779 | if test -n "$NM"; then |
5213506e RW |
8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8781 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8782 | else |
5213506e RW |
8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8784 | $as_echo "no" >&6; } | |
ca9f4b81 | 8785 | fi |
1c710c3c | 8786 | |
5213506e | 8787 | |
2693c0b0 | 8788 | fi |
278a7a38 AO |
8789 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8790 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8791 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8793 | $as_echo_n "checking for $ac_word... " >&6; } | |
8794 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8795 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8796 | else |
8797 | if test -n "$NM"; then | |
8798 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8799 | else | |
8800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8801 | for as_dir in $PATH | |
8802 | do | |
8803 | IFS=$as_save_IFS | |
8804 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8805 | for ac_exec_ext in '' $ac_executable_extensions; do |
8806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8807 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8809 | break 2 |
8810 | fi | |
8811 | done | |
5213506e RW |
8812 | done |
8813 | IFS=$as_save_IFS | |
278a7a38 AO |
8814 | |
8815 | fi | |
8816 | fi | |
8817 | NM=$ac_cv_prog_NM | |
8818 | if test -n "$NM"; then | |
5213506e RW |
8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8820 | $as_echo "$NM" >&6; } | |
278a7a38 | 8821 | else |
5213506e RW |
8822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8823 | $as_echo "no" >&6; } | |
278a7a38 AO |
8824 | fi |
8825 | ||
5213506e | 8826 | |
278a7a38 AO |
8827 | fi |
8828 | test -n "$ac_cv_prog_NM" && break | |
8829 | done | |
8830 | ||
8831 | if test -z "$ac_cv_prog_NM" ; then | |
8832 | set dummy nm | |
8833 | if test $build = $host ; then | |
8834 | NM="$2" | |
8835 | else | |
8836 | NM="${ncn_tool_prefix}$2" | |
8837 | fi | |
8838 | fi | |
8839 | ||
8840 | ||
8841 | ||
8842 | if test -n "$RANLIB"; then | |
8843 | ac_cv_prog_RANLIB=$RANLIB | |
8844 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8845 | RANLIB=$ac_cv_prog_RANLIB | |
8846 | fi | |
8847 | ||
8848 | if test -n "$ac_cv_prog_RANLIB"; then | |
8849 | for ncn_progname in ranlib; do | |
8850 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8851 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8853 | $as_echo_n "checking for $ac_word... " >&6; } | |
8854 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8855 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8856 | else |
8857 | if test -n "$RANLIB"; then | |
8858 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8859 | else | |
8860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8861 | for as_dir in $PATH | |
8862 | do | |
8863 | IFS=$as_save_IFS | |
8864 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8865 | for ac_exec_ext in '' $ac_executable_extensions; do |
8866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8867 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8869 | break 2 |
8870 | fi | |
8871 | done | |
5213506e RW |
8872 | done |
8873 | IFS=$as_save_IFS | |
278a7a38 AO |
8874 | |
8875 | fi | |
8876 | fi | |
8877 | RANLIB=$ac_cv_prog_RANLIB | |
8878 | if test -n "$RANLIB"; then | |
5213506e RW |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8880 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 8881 | else |
5213506e RW |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8883 | $as_echo "no" >&6; } | |
278a7a38 AO |
8884 | fi |
8885 | ||
5213506e | 8886 | |
278a7a38 AO |
8887 | done |
8888 | fi | |
ca9f4b81 | 8889 | |
278a7a38 | 8890 | for ncn_progname in ranlib; do |
2693c0b0 PB |
8891 | if test -n "$ncn_tool_prefix"; then |
8892 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8893 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8895 | $as_echo_n "checking for $ac_word... " >&6; } | |
8896 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8897 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8898 | else |
8899 | if test -n "$RANLIB"; then | |
8900 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8901 | else | |
1c710c3c DJ |
8902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8903 | for as_dir in $PATH | |
8904 | do | |
8905 | IFS=$as_save_IFS | |
8906 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8907 | for ac_exec_ext in '' $ac_executable_extensions; do |
8908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8909 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8911 | break 2 |
8912 | fi | |
8913 | done | |
5213506e RW |
8914 | done |
8915 | IFS=$as_save_IFS | |
1c710c3c | 8916 | |
ca9f4b81 AO |
8917 | fi |
8918 | fi | |
1c710c3c | 8919 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 8920 | if test -n "$RANLIB"; then |
5213506e RW |
8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8922 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8923 | else |
5213506e RW |
8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8925 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8926 | fi |
8927 | ||
5213506e | 8928 | |
2693c0b0 PB |
8929 | fi |
8930 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8931 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8932 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8934 | $as_echo_n "checking for $ac_word... " >&6; } | |
8935 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8936 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8937 | else |
2693c0b0 PB |
8938 | if test -n "$RANLIB"; then |
8939 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 8940 | else |
1c710c3c DJ |
8941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8942 | for as_dir in $PATH | |
8943 | do | |
8944 | IFS=$as_save_IFS | |
8945 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8946 | for ac_exec_ext in '' $ac_executable_extensions; do |
8947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8948 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8950 | break 2 |
8951 | fi | |
8952 | done | |
5213506e RW |
8953 | done |
8954 | IFS=$as_save_IFS | |
1c710c3c | 8955 | |
ca9f4b81 AO |
8956 | fi |
8957 | fi | |
1c710c3c | 8958 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 8959 | if test -n "$RANLIB"; then |
5213506e RW |
8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8961 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8962 | else |
5213506e RW |
8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8964 | $as_echo "no" >&6; } | |
ca9f4b81 | 8965 | fi |
1c710c3c | 8966 | |
5213506e | 8967 | |
ca9f4b81 | 8968 | fi |
2693c0b0 PB |
8969 | test -n "$ac_cv_prog_RANLIB" && break |
8970 | done | |
8971 | ||
8972 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 8973 | RANLIB="true" |
ca9f4b81 AO |
8974 | fi |
8975 | ||
278a7a38 AO |
8976 | |
8977 | ||
8978 | if test -n "$STRIP"; then | |
8979 | ac_cv_prog_STRIP=$STRIP | |
8980 | elif test -n "$ac_cv_prog_STRIP"; then | |
8981 | STRIP=$ac_cv_prog_STRIP | |
8982 | fi | |
8983 | ||
8984 | if test -n "$ac_cv_prog_STRIP"; then | |
8985 | for ncn_progname in strip; do | |
8986 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8987 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8989 | $as_echo_n "checking for $ac_word... " >&6; } | |
8990 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8991 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8992 | else |
8993 | if test -n "$STRIP"; then | |
8994 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8995 | else | |
8996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8997 | for as_dir in $PATH | |
8998 | do | |
8999 | IFS=$as_save_IFS | |
9000 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9001 | for ac_exec_ext in '' $ac_executable_extensions; do |
9002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9003 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9005 | break 2 |
9006 | fi | |
9007 | done | |
5213506e RW |
9008 | done |
9009 | IFS=$as_save_IFS | |
278a7a38 AO |
9010 | |
9011 | fi | |
9012 | fi | |
9013 | STRIP=$ac_cv_prog_STRIP | |
9014 | if test -n "$STRIP"; then | |
5213506e RW |
9015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9016 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 9017 | else |
5213506e RW |
9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9019 | $as_echo "no" >&6; } | |
278a7a38 AO |
9020 | fi |
9021 | ||
5213506e | 9022 | |
278a7a38 AO |
9023 | done |
9024 | fi | |
9025 | ||
9026 | for ncn_progname in strip; do | |
2abefe3d PB |
9027 | if test -n "$ncn_tool_prefix"; then |
9028 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9029 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9031 | $as_echo_n "checking for $ac_word... " >&6; } | |
9032 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9033 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9034 | else |
9035 | if test -n "$STRIP"; then | |
9036 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9037 | else | |
1c710c3c DJ |
9038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9039 | for as_dir in $PATH | |
9040 | do | |
9041 | IFS=$as_save_IFS | |
9042 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9043 | for ac_exec_ext in '' $ac_executable_extensions; do |
9044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9045 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9047 | break 2 |
9048 | fi | |
9049 | done | |
5213506e RW |
9050 | done |
9051 | IFS=$as_save_IFS | |
1c710c3c | 9052 | |
2abefe3d PB |
9053 | fi |
9054 | fi | |
1c710c3c | 9055 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9056 | if test -n "$STRIP"; then |
5213506e RW |
9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9058 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9059 | else |
5213506e RW |
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9061 | $as_echo "no" >&6; } | |
2abefe3d PB |
9062 | fi |
9063 | ||
5213506e | 9064 | |
2abefe3d PB |
9065 | fi |
9066 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9067 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9068 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9070 | $as_echo_n "checking for $ac_word... " >&6; } | |
9071 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9072 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9073 | else |
9074 | if test -n "$STRIP"; then | |
9075 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9076 | else | |
1c710c3c DJ |
9077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9078 | for as_dir in $PATH | |
9079 | do | |
9080 | IFS=$as_save_IFS | |
9081 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9082 | for ac_exec_ext in '' $ac_executable_extensions; do |
9083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9084 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9086 | break 2 |
9087 | fi | |
9088 | done | |
5213506e RW |
9089 | done |
9090 | IFS=$as_save_IFS | |
1c710c3c | 9091 | |
2abefe3d PB |
9092 | fi |
9093 | fi | |
1c710c3c | 9094 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9095 | if test -n "$STRIP"; then |
5213506e RW |
9096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9097 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9098 | else |
5213506e RW |
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9100 | $as_echo "no" >&6; } | |
2abefe3d | 9101 | fi |
1c710c3c | 9102 | |
5213506e | 9103 | |
2abefe3d PB |
9104 | fi |
9105 | test -n "$ac_cv_prog_STRIP" && break | |
9106 | done | |
9107 | ||
9108 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9109 | STRIP="true" |
2abefe3d PB |
9110 | fi |
9111 | ||
278a7a38 AO |
9112 | |
9113 | ||
9114 | if test -n "$WINDRES"; then | |
9115 | ac_cv_prog_WINDRES=$WINDRES | |
9116 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9117 | WINDRES=$ac_cv_prog_WINDRES | |
9118 | fi | |
9119 | ||
9120 | if test -n "$ac_cv_prog_WINDRES"; then | |
9121 | for ncn_progname in windres; do | |
9122 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9123 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9125 | $as_echo_n "checking for $ac_word... " >&6; } | |
9126 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9127 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9128 | else |
9129 | if test -n "$WINDRES"; then | |
9130 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9131 | else | |
9132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9133 | for as_dir in $PATH | |
9134 | do | |
9135 | IFS=$as_save_IFS | |
9136 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9137 | for ac_exec_ext in '' $ac_executable_extensions; do |
9138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9139 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9141 | break 2 |
9142 | fi | |
9143 | done | |
5213506e RW |
9144 | done |
9145 | IFS=$as_save_IFS | |
278a7a38 AO |
9146 | |
9147 | fi | |
9148 | fi | |
9149 | WINDRES=$ac_cv_prog_WINDRES | |
9150 | if test -n "$WINDRES"; then | |
5213506e RW |
9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9152 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9153 | else |
5213506e RW |
9154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9155 | $as_echo "no" >&6; } | |
278a7a38 AO |
9156 | fi |
9157 | ||
5213506e | 9158 | |
278a7a38 AO |
9159 | done |
9160 | fi | |
9161 | ||
9162 | for ncn_progname in windres; do | |
2693c0b0 PB |
9163 | if test -n "$ncn_tool_prefix"; then |
9164 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9165 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9167 | $as_echo_n "checking for $ac_word... " >&6; } | |
9168 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9169 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9170 | else |
9171 | if test -n "$WINDRES"; then | |
9172 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9173 | else | |
1c710c3c DJ |
9174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9175 | for as_dir in $PATH | |
9176 | do | |
9177 | IFS=$as_save_IFS | |
9178 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9179 | for ac_exec_ext in '' $ac_executable_extensions; do |
9180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9181 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9183 | break 2 |
9184 | fi | |
9185 | done | |
5213506e RW |
9186 | done |
9187 | IFS=$as_save_IFS | |
1c710c3c | 9188 | |
ca9f4b81 AO |
9189 | fi |
9190 | fi | |
1c710c3c | 9191 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9192 | if test -n "$WINDRES"; then |
5213506e RW |
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9194 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9195 | else |
5213506e RW |
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9197 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9198 | fi |
9199 | ||
5213506e | 9200 | |
2693c0b0 PB |
9201 | fi |
9202 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9203 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9204 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9206 | $as_echo_n "checking for $ac_word... " >&6; } | |
9207 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9208 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9209 | else |
2693c0b0 PB |
9210 | if test -n "$WINDRES"; then |
9211 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9212 | else |
1c710c3c DJ |
9213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9214 | for as_dir in $PATH | |
9215 | do | |
9216 | IFS=$as_save_IFS | |
9217 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9218 | for ac_exec_ext in '' $ac_executable_extensions; do |
9219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9220 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9222 | break 2 |
9223 | fi | |
9224 | done | |
5213506e RW |
9225 | done |
9226 | IFS=$as_save_IFS | |
1c710c3c | 9227 | |
ca9f4b81 AO |
9228 | fi |
9229 | fi | |
1c710c3c | 9230 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9231 | if test -n "$WINDRES"; then |
5213506e RW |
9232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9233 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9234 | else |
5213506e RW |
9235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9236 | $as_echo "no" >&6; } | |
ca9f4b81 | 9237 | fi |
1c710c3c | 9238 | |
5213506e | 9239 | |
2693c0b0 PB |
9240 | fi |
9241 | test -n "$ac_cv_prog_WINDRES" && break | |
9242 | done | |
9243 | ||
9244 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9245 | set dummy windres | |
9246 | if test $build = $host ; then | |
9247 | WINDRES="$2" | |
ca9f4b81 | 9248 | else |
2693c0b0 | 9249 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9250 | fi |
ca9f4b81 AO |
9251 | fi |
9252 | ||
278a7a38 AO |
9253 | |
9254 | ||
901119ae KT |
9255 | if test -n "$WINDMC"; then |
9256 | ac_cv_prog_WINDMC=$WINDMC | |
9257 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9258 | WINDMC=$ac_cv_prog_WINDMC | |
9259 | fi | |
9260 | ||
9261 | if test -n "$ac_cv_prog_WINDMC"; then | |
9262 | for ncn_progname in windmc; do | |
9263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9264 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9266 | $as_echo_n "checking for $ac_word... " >&6; } | |
9267 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9268 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9269 | else |
9270 | if test -n "$WINDMC"; then | |
9271 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9272 | else | |
9273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9274 | for as_dir in $PATH | |
9275 | do | |
9276 | IFS=$as_save_IFS | |
9277 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9278 | for ac_exec_ext in '' $ac_executable_extensions; do |
9279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9280 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9282 | break 2 |
9283 | fi | |
9284 | done | |
5213506e RW |
9285 | done |
9286 | IFS=$as_save_IFS | |
901119ae KT |
9287 | |
9288 | fi | |
9289 | fi | |
9290 | WINDMC=$ac_cv_prog_WINDMC | |
9291 | if test -n "$WINDMC"; then | |
5213506e RW |
9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9293 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9294 | else |
5213506e RW |
9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9296 | $as_echo "no" >&6; } | |
901119ae KT |
9297 | fi |
9298 | ||
5213506e | 9299 | |
901119ae KT |
9300 | done |
9301 | fi | |
9302 | ||
9303 | for ncn_progname in windmc; do | |
9304 | if test -n "$ncn_tool_prefix"; then | |
9305 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9306 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9308 | $as_echo_n "checking for $ac_word... " >&6; } | |
9309 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9310 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9311 | else |
9312 | if test -n "$WINDMC"; then | |
9313 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9314 | else | |
9315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9316 | for as_dir in $PATH | |
9317 | do | |
9318 | IFS=$as_save_IFS | |
9319 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9320 | for ac_exec_ext in '' $ac_executable_extensions; do |
9321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9322 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9324 | break 2 |
9325 | fi | |
9326 | done | |
5213506e RW |
9327 | done |
9328 | IFS=$as_save_IFS | |
901119ae KT |
9329 | |
9330 | fi | |
9331 | fi | |
9332 | WINDMC=$ac_cv_prog_WINDMC | |
9333 | if test -n "$WINDMC"; then | |
5213506e RW |
9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9335 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9336 | else |
5213506e RW |
9337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9338 | $as_echo "no" >&6; } | |
901119ae KT |
9339 | fi |
9340 | ||
5213506e | 9341 | |
901119ae KT |
9342 | fi |
9343 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9344 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9345 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9347 | $as_echo_n "checking for $ac_word... " >&6; } | |
9348 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9349 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9350 | else |
9351 | if test -n "$WINDMC"; then | |
9352 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9353 | else | |
9354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9355 | for as_dir in $PATH | |
9356 | do | |
9357 | IFS=$as_save_IFS | |
9358 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9359 | for ac_exec_ext in '' $ac_executable_extensions; do |
9360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9361 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9363 | break 2 |
9364 | fi | |
9365 | done | |
5213506e RW |
9366 | done |
9367 | IFS=$as_save_IFS | |
901119ae KT |
9368 | |
9369 | fi | |
9370 | fi | |
9371 | WINDMC=$ac_cv_prog_WINDMC | |
9372 | if test -n "$WINDMC"; then | |
5213506e RW |
9373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9374 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9375 | else |
5213506e RW |
9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9377 | $as_echo "no" >&6; } | |
901119ae KT |
9378 | fi |
9379 | ||
5213506e | 9380 | |
901119ae KT |
9381 | fi |
9382 | test -n "$ac_cv_prog_WINDMC" && break | |
9383 | done | |
9384 | ||
9385 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9386 | set dummy windmc | |
9387 | if test $build = $host ; then | |
9388 | WINDMC="$2" | |
9389 | else | |
9390 | WINDMC="${ncn_tool_prefix}$2" | |
9391 | fi | |
9392 | fi | |
9393 | ||
9394 | ||
9395 | ||
278a7a38 AO |
9396 | if test -n "$OBJCOPY"; then |
9397 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9398 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9399 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9400 | fi | |
9401 | ||
9402 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9403 | for ncn_progname in objcopy; do | |
9404 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9405 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9407 | $as_echo_n "checking for $ac_word... " >&6; } | |
9408 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9409 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9410 | else |
9411 | if test -n "$OBJCOPY"; then | |
9412 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9413 | else | |
9414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9415 | for as_dir in $PATH | |
9416 | do | |
9417 | IFS=$as_save_IFS | |
9418 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9419 | for ac_exec_ext in '' $ac_executable_extensions; do |
9420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9421 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9423 | break 2 |
9424 | fi | |
9425 | done | |
5213506e RW |
9426 | done |
9427 | IFS=$as_save_IFS | |
278a7a38 AO |
9428 | |
9429 | fi | |
9430 | fi | |
9431 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9432 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9434 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9435 | else |
5213506e RW |
9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9437 | $as_echo "no" >&6; } | |
278a7a38 AO |
9438 | fi |
9439 | ||
5213506e | 9440 | |
278a7a38 AO |
9441 | done |
9442 | fi | |
9443 | ||
9444 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9445 | if test -n "$ncn_tool_prefix"; then |
9446 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9447 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9449 | $as_echo_n "checking for $ac_word... " >&6; } | |
9450 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9451 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9452 | else |
9453 | if test -n "$OBJCOPY"; then | |
9454 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9455 | else | |
1c710c3c DJ |
9456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9457 | for as_dir in $PATH | |
9458 | do | |
9459 | IFS=$as_save_IFS | |
9460 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9461 | for ac_exec_ext in '' $ac_executable_extensions; do |
9462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9463 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9465 | break 2 |
9466 | fi | |
9467 | done | |
5213506e RW |
9468 | done |
9469 | IFS=$as_save_IFS | |
1c710c3c | 9470 | |
ca9f4b81 AO |
9471 | fi |
9472 | fi | |
1c710c3c | 9473 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9474 | if test -n "$OBJCOPY"; then |
5213506e RW |
9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9476 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9477 | else |
5213506e RW |
9478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9479 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9480 | fi |
9481 | ||
5213506e | 9482 | |
2693c0b0 PB |
9483 | fi |
9484 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9485 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9486 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9488 | $as_echo_n "checking for $ac_word... " >&6; } | |
9489 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9490 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9491 | else |
2693c0b0 PB |
9492 | if test -n "$OBJCOPY"; then |
9493 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9494 | else |
1c710c3c DJ |
9495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9496 | for as_dir in $PATH | |
9497 | do | |
9498 | IFS=$as_save_IFS | |
9499 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9500 | for ac_exec_ext in '' $ac_executable_extensions; do |
9501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9502 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9504 | break 2 |
9505 | fi | |
9506 | done | |
5213506e RW |
9507 | done |
9508 | IFS=$as_save_IFS | |
1c710c3c | 9509 | |
ca9f4b81 AO |
9510 | fi |
9511 | fi | |
1c710c3c | 9512 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9513 | if test -n "$OBJCOPY"; then |
5213506e RW |
9514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9515 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9516 | else |
5213506e RW |
9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9518 | $as_echo "no" >&6; } | |
ca9f4b81 | 9519 | fi |
1c710c3c | 9520 | |
5213506e | 9521 | |
2693c0b0 PB |
9522 | fi |
9523 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9524 | done | |
9525 | ||
9526 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9527 | set dummy objcopy | |
9528 | if test $build = $host ; then | |
9529 | OBJCOPY="$2" | |
ca9f4b81 | 9530 | else |
2693c0b0 | 9531 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9532 | fi |
ca9f4b81 AO |
9533 | fi |
9534 | ||
278a7a38 AO |
9535 | |
9536 | ||
9537 | if test -n "$OBJDUMP"; then | |
9538 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9539 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9540 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9541 | fi | |
9542 | ||
9543 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9544 | for ncn_progname in objdump; do | |
9545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9546 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9548 | $as_echo_n "checking for $ac_word... " >&6; } | |
9549 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9550 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9551 | else |
9552 | if test -n "$OBJDUMP"; then | |
9553 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9554 | else | |
9555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9556 | for as_dir in $PATH | |
9557 | do | |
9558 | IFS=$as_save_IFS | |
9559 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9560 | for ac_exec_ext in '' $ac_executable_extensions; do |
9561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9562 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9564 | break 2 |
9565 | fi | |
9566 | done | |
5213506e RW |
9567 | done |
9568 | IFS=$as_save_IFS | |
278a7a38 AO |
9569 | |
9570 | fi | |
9571 | fi | |
9572 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9573 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9575 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9576 | else |
5213506e RW |
9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9578 | $as_echo "no" >&6; } | |
278a7a38 AO |
9579 | fi |
9580 | ||
5213506e | 9581 | |
278a7a38 AO |
9582 | done |
9583 | fi | |
9584 | ||
9585 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9586 | if test -n "$ncn_tool_prefix"; then |
9587 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9588 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9590 | $as_echo_n "checking for $ac_word... " >&6; } | |
9591 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9592 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9593 | else |
9594 | if test -n "$OBJDUMP"; then | |
9595 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9596 | else | |
1c710c3c DJ |
9597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9598 | for as_dir in $PATH | |
9599 | do | |
9600 | IFS=$as_save_IFS | |
9601 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9602 | for ac_exec_ext in '' $ac_executable_extensions; do |
9603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9604 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9606 | break 2 |
9607 | fi | |
9608 | done | |
5213506e RW |
9609 | done |
9610 | IFS=$as_save_IFS | |
1c710c3c | 9611 | |
ca9f4b81 AO |
9612 | fi |
9613 | fi | |
1c710c3c | 9614 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9615 | if test -n "$OBJDUMP"; then |
5213506e RW |
9616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9617 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9618 | else |
5213506e RW |
9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9620 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9621 | fi |
9622 | ||
5213506e | 9623 | |
2693c0b0 PB |
9624 | fi |
9625 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9626 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9627 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9629 | $as_echo_n "checking for $ac_word... " >&6; } | |
9630 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9631 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9632 | else |
2693c0b0 PB |
9633 | if test -n "$OBJDUMP"; then |
9634 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9635 | else |
1c710c3c DJ |
9636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9637 | for as_dir in $PATH | |
9638 | do | |
9639 | IFS=$as_save_IFS | |
9640 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9641 | for ac_exec_ext in '' $ac_executable_extensions; do |
9642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9643 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9645 | break 2 |
9646 | fi | |
9647 | done | |
5213506e RW |
9648 | done |
9649 | IFS=$as_save_IFS | |
1c710c3c | 9650 | |
ca9f4b81 AO |
9651 | fi |
9652 | fi | |
1c710c3c | 9653 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9654 | if test -n "$OBJDUMP"; then |
5213506e RW |
9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9656 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9657 | else |
5213506e RW |
9658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9659 | $as_echo "no" >&6; } | |
ca9f4b81 | 9660 | fi |
1c710c3c | 9661 | |
5213506e | 9662 | |
2693c0b0 PB |
9663 | fi |
9664 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9665 | done | |
9666 | ||
9667 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9668 | set dummy objdump | |
9669 | if test $build = $host ; then | |
9670 | OBJDUMP="$2" | |
ca9f4b81 | 9671 | else |
2693c0b0 | 9672 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9673 | fi |
ca9f4b81 AO |
9674 | fi |
9675 | ||
671aa708 NN |
9676 | |
9677 | ||
e7a82751 RM |
9678 | if test -n "$READELF"; then |
9679 | ac_cv_prog_READELF=$READELF | |
9680 | elif test -n "$ac_cv_prog_READELF"; then | |
9681 | READELF=$ac_cv_prog_READELF | |
9682 | fi | |
9683 | ||
9684 | if test -n "$ac_cv_prog_READELF"; then | |
9685 | for ncn_progname in readelf; do | |
9686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9687 | set dummy ${ncn_progname}; ac_word=$2 | |
9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9689 | $as_echo_n "checking for $ac_word... " >&6; } | |
9690 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9691 | $as_echo_n "(cached) " >&6 | |
9692 | else | |
9693 | if test -n "$READELF"; then | |
9694 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9695 | else | |
9696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9697 | for as_dir in $PATH | |
9698 | do | |
9699 | IFS=$as_save_IFS | |
9700 | test -z "$as_dir" && as_dir=. | |
9701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9703 | ac_cv_prog_READELF="${ncn_progname}" | |
9704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9705 | break 2 | |
9706 | fi | |
9707 | done | |
9708 | done | |
9709 | IFS=$as_save_IFS | |
9710 | ||
9711 | fi | |
9712 | fi | |
9713 | READELF=$ac_cv_prog_READELF | |
9714 | if test -n "$READELF"; then | |
9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9716 | $as_echo "$READELF" >&6; } | |
9717 | else | |
9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9719 | $as_echo "no" >&6; } | |
9720 | fi | |
9721 | ||
9722 | ||
9723 | done | |
9724 | fi | |
9725 | ||
9726 | for ncn_progname in readelf; do | |
9727 | if test -n "$ncn_tool_prefix"; then | |
9728 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9729 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9731 | $as_echo_n "checking for $ac_word... " >&6; } | |
9732 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9733 | $as_echo_n "(cached) " >&6 | |
9734 | else | |
9735 | if test -n "$READELF"; then | |
9736 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9737 | else | |
9738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9739 | for as_dir in $PATH | |
9740 | do | |
9741 | IFS=$as_save_IFS | |
9742 | test -z "$as_dir" && as_dir=. | |
9743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9745 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9747 | break 2 | |
9748 | fi | |
9749 | done | |
9750 | done | |
9751 | IFS=$as_save_IFS | |
9752 | ||
9753 | fi | |
9754 | fi | |
9755 | READELF=$ac_cv_prog_READELF | |
9756 | if test -n "$READELF"; then | |
9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9758 | $as_echo "$READELF" >&6; } | |
9759 | else | |
9760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9761 | $as_echo "no" >&6; } | |
9762 | fi | |
9763 | ||
9764 | ||
9765 | fi | |
9766 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9768 | set dummy ${ncn_progname}; ac_word=$2 | |
9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9770 | $as_echo_n "checking for $ac_word... " >&6; } | |
9771 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9772 | $as_echo_n "(cached) " >&6 | |
9773 | else | |
9774 | if test -n "$READELF"; then | |
9775 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9776 | else | |
9777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9778 | for as_dir in $PATH | |
9779 | do | |
9780 | IFS=$as_save_IFS | |
9781 | test -z "$as_dir" && as_dir=. | |
9782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9784 | ac_cv_prog_READELF="${ncn_progname}" | |
9785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9786 | break 2 | |
9787 | fi | |
9788 | done | |
9789 | done | |
9790 | IFS=$as_save_IFS | |
9791 | ||
9792 | fi | |
9793 | fi | |
9794 | READELF=$ac_cv_prog_READELF | |
9795 | if test -n "$READELF"; then | |
9796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9797 | $as_echo "$READELF" >&6; } | |
9798 | else | |
9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9800 | $as_echo "no" >&6; } | |
9801 | fi | |
9802 | ||
9803 | ||
9804 | fi | |
9805 | test -n "$ac_cv_prog_READELF" && break | |
9806 | done | |
9807 | ||
9808 | if test -z "$ac_cv_prog_READELF" ; then | |
9809 | set dummy readelf | |
9810 | if test $build = $host ; then | |
9811 | READELF="$2" | |
9812 | else | |
9813 | READELF="${ncn_tool_prefix}$2" | |
9814 | fi | |
9815 | fi | |
9816 | ||
9817 | ||
9818 | ||
671aa708 NN |
9819 | |
9820 | ||
9821 | ||
2abefe3d | 9822 | # Target tools. |
1c710c3c | 9823 | |
5213506e RW |
9824 | # Check whether --with-build-time-tools was given. |
9825 | if test "${with_build_time_tools+set}" = set; then : | |
9826 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
9827 | x/*) ;; |
9828 | *) | |
9829 | with_build_time_tools= | |
5213506e RW |
9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9831 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
9832 | ;; |
9833 | esac | |
ca9f4b81 | 9834 | else |
e8b05380 | 9835 | with_build_time_tools= |
5213506e RW |
9836 | fi |
9837 | ||
ca9f4b81 | 9838 | |
278a7a38 AO |
9839 | |
9840 | ||
9841 | if test -n "$CC_FOR_TARGET"; then | |
9842 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9843 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9844 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9845 | fi | |
9846 | ||
9847 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9848 | for ncn_progname in cc gcc; do | |
9849 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9850 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9852 | $as_echo_n "checking for $ac_word... " >&6; } | |
9853 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9854 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9855 | else |
9856 | if test -n "$CC_FOR_TARGET"; then | |
9857 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9858 | else | |
9859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9860 | for as_dir in $PATH | |
9861 | do | |
9862 | IFS=$as_save_IFS | |
9863 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9864 | for ac_exec_ext in '' $ac_executable_extensions; do |
9865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9866 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9868 | break 2 |
9869 | fi | |
9870 | done | |
5213506e RW |
9871 | done |
9872 | IFS=$as_save_IFS | |
278a7a38 AO |
9873 | |
9874 | fi | |
9875 | fi | |
9876 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9877 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9879 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 9880 | else |
5213506e RW |
9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9882 | $as_echo "no" >&6; } | |
278a7a38 AO |
9883 | fi |
9884 | ||
5213506e | 9885 | |
278a7a38 AO |
9886 | done |
9887 | fi | |
9888 | ||
9889 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9890 | for ncn_progname in cc gcc; do |
5213506e RW |
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9892 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9893 | if test -x $with_build_time_tools/${ncn_progname}; then |
9894 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9896 | $as_echo "yes" >&6; } | |
72a7ab82 | 9897 | break |
e8b05380 | 9898 | else |
5213506e RW |
9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9900 | $as_echo "no" >&6; } | |
72a7ab82 AP |
9901 | fi |
9902 | done | |
4de997d1 PB |
9903 | fi |
9904 | ||
e8b05380 PB |
9905 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9906 | for ncn_progname in cc gcc; do | |
9907 | if test -n "$ncn_target_tool_prefix"; then | |
9908 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9909 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9911 | $as_echo_n "checking for $ac_word... " >&6; } | |
9912 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9913 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9914 | else |
9915 | if test -n "$CC_FOR_TARGET"; then | |
9916 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9917 | else | |
1c710c3c DJ |
9918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9919 | for as_dir in $PATH | |
9920 | do | |
9921 | IFS=$as_save_IFS | |
9922 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9923 | for ac_exec_ext in '' $ac_executable_extensions; do |
9924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9925 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9927 | break 2 |
9928 | fi | |
9929 | done | |
5213506e RW |
9930 | done |
9931 | IFS=$as_save_IFS | |
1c710c3c | 9932 | |
4de997d1 PB |
9933 | fi |
9934 | fi | |
1c710c3c | 9935 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 9936 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9938 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9939 | else |
5213506e RW |
9940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9941 | $as_echo "no" >&6; } | |
4de997d1 PB |
9942 | fi |
9943 | ||
5213506e | 9944 | |
e8b05380 PB |
9945 | fi |
9946 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9947 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9948 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9950 | $as_echo_n "checking for $ac_word... " >&6; } | |
9951 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9952 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 9953 | else |
2693c0b0 PB |
9954 | if test -n "$CC_FOR_TARGET"; then |
9955 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9956 | else |
1c710c3c DJ |
9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9958 | for as_dir in $PATH | |
9959 | do | |
9960 | IFS=$as_save_IFS | |
9961 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9962 | for ac_exec_ext in '' $ac_executable_extensions; do |
9963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9964 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9966 | break 2 |
9967 | fi | |
9968 | done | |
5213506e RW |
9969 | done |
9970 | IFS=$as_save_IFS | |
1c710c3c | 9971 | |
4de997d1 PB |
9972 | fi |
9973 | fi | |
1c710c3c | 9974 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 9975 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9977 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9978 | else |
5213506e RW |
9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9980 | $as_echo "no" >&6; } | |
4de997d1 | 9981 | fi |
1c710c3c | 9982 | |
5213506e | 9983 | |
e8b05380 PB |
9984 | fi |
9985 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9986 | done | |
9987 | fi | |
1c710c3c | 9988 | |
2693c0b0 PB |
9989 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9990 | set dummy cc gcc | |
9991 | if test $build = $target ; then | |
9992 | CC_FOR_TARGET="$2" | |
4de997d1 | 9993 | else |
2693c0b0 | 9994 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 9995 | fi |
1c00b503 PB |
9996 | else |
9997 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
9998 | fi |
9999 | ||
278a7a38 AO |
10000 | |
10001 | ||
10002 | if test -n "$CXX_FOR_TARGET"; then | |
10003 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10004 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10005 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10006 | fi | |
10007 | ||
10008 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10009 | for ncn_progname in c++ g++ cxx gxx; do | |
10010 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10011 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10013 | $as_echo_n "checking for $ac_word... " >&6; } | |
10014 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10015 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10016 | else |
10017 | if test -n "$CXX_FOR_TARGET"; then | |
10018 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10019 | else | |
10020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10021 | for as_dir in $PATH | |
10022 | do | |
10023 | IFS=$as_save_IFS | |
10024 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10025 | for ac_exec_ext in '' $ac_executable_extensions; do |
10026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10027 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10029 | break 2 |
10030 | fi | |
10031 | done | |
5213506e RW |
10032 | done |
10033 | IFS=$as_save_IFS | |
278a7a38 AO |
10034 | |
10035 | fi | |
10036 | fi | |
10037 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10038 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10040 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 10041 | else |
5213506e RW |
10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10043 | $as_echo "no" >&6; } | |
278a7a38 AO |
10044 | fi |
10045 | ||
5213506e | 10046 | |
278a7a38 AO |
10047 | done |
10048 | fi | |
10049 | ||
10050 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10051 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10053 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10054 | if test -x $with_build_time_tools/${ncn_progname}; then |
10055 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10057 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10058 | break |
10059 | else | |
5213506e RW |
10060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10061 | $as_echo "no" >&6; } | |
e8b05380 PB |
10062 | fi |
10063 | done | |
10064 | fi | |
10065 | ||
10066 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10067 | for ncn_progname in c++ g++ cxx gxx; do | |
10068 | if test -n "$ncn_target_tool_prefix"; then | |
10069 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10070 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10072 | $as_echo_n "checking for $ac_word... " >&6; } | |
10073 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10074 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
10075 | else |
10076 | if test -n "$CXX_FOR_TARGET"; then | |
10077 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10078 | else | |
1c710c3c DJ |
10079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10080 | for as_dir in $PATH | |
10081 | do | |
10082 | IFS=$as_save_IFS | |
10083 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10084 | for ac_exec_ext in '' $ac_executable_extensions; do |
10085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10086 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10088 | break 2 |
10089 | fi | |
10090 | done | |
5213506e RW |
10091 | done |
10092 | IFS=$as_save_IFS | |
1c710c3c | 10093 | |
4de997d1 PB |
10094 | fi |
10095 | fi | |
1c710c3c | 10096 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10097 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10099 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10100 | else |
5213506e RW |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10102 | $as_echo "no" >&6; } | |
4de997d1 PB |
10103 | fi |
10104 | ||
5213506e | 10105 | |
e8b05380 PB |
10106 | fi |
10107 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10108 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10109 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10111 | $as_echo_n "checking for $ac_word... " >&6; } | |
10112 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10113 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10114 | else |
2693c0b0 PB |
10115 | if test -n "$CXX_FOR_TARGET"; then |
10116 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10117 | else |
1c710c3c DJ |
10118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10119 | for as_dir in $PATH | |
10120 | do | |
10121 | IFS=$as_save_IFS | |
10122 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10123 | for ac_exec_ext in '' $ac_executable_extensions; do |
10124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10125 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10127 | break 2 |
10128 | fi | |
10129 | done | |
5213506e RW |
10130 | done |
10131 | IFS=$as_save_IFS | |
1c710c3c | 10132 | |
4de997d1 PB |
10133 | fi |
10134 | fi | |
1c710c3c | 10135 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10136 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10138 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10139 | else |
5213506e RW |
10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10141 | $as_echo "no" >&6; } | |
4de997d1 | 10142 | fi |
1c710c3c | 10143 | |
5213506e | 10144 | |
e8b05380 PB |
10145 | fi |
10146 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10147 | done | |
10148 | fi | |
1c710c3c | 10149 | |
2693c0b0 PB |
10150 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10151 | set dummy c++ g++ cxx gxx | |
10152 | if test $build = $target ; then | |
10153 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10154 | else |
2693c0b0 | 10155 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10156 | fi |
1c00b503 PB |
10157 | else |
10158 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10159 | fi |
10160 | ||
278a7a38 AO |
10161 | |
10162 | ||
10163 | if test -n "$GCC_FOR_TARGET"; then | |
10164 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10165 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10166 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10167 | fi | |
10168 | ||
10169 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10170 | for ncn_progname in gcc; do | |
10171 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10172 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10174 | $as_echo_n "checking for $ac_word... " >&6; } | |
10175 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10176 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10177 | else |
10178 | if test -n "$GCC_FOR_TARGET"; then | |
10179 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10180 | else | |
10181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10182 | for as_dir in $PATH | |
10183 | do | |
10184 | IFS=$as_save_IFS | |
10185 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10186 | for ac_exec_ext in '' $ac_executable_extensions; do |
10187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10188 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10190 | break 2 |
10191 | fi | |
10192 | done | |
5213506e RW |
10193 | done |
10194 | IFS=$as_save_IFS | |
278a7a38 AO |
10195 | |
10196 | fi | |
10197 | fi | |
10198 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10199 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10201 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 10202 | else |
5213506e RW |
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10204 | $as_echo "no" >&6; } | |
278a7a38 AO |
10205 | fi |
10206 | ||
5213506e | 10207 | |
278a7a38 AO |
10208 | done |
10209 | fi | |
10210 | ||
10211 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10212 | for ncn_progname in gcc; do |
5213506e RW |
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10214 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10215 | if test -x $with_build_time_tools/${ncn_progname}; then |
10216 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10218 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10219 | break |
10220 | else | |
5213506e RW |
10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10222 | $as_echo "no" >&6; } | |
e8b05380 PB |
10223 | fi |
10224 | done | |
10225 | fi | |
10226 | ||
10227 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10228 | for ncn_progname in gcc; do | |
10229 | if test -n "$ncn_target_tool_prefix"; then | |
10230 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10231 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10233 | $as_echo_n "checking for $ac_word... " >&6; } | |
10234 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10235 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10236 | else |
e8b05380 PB |
10237 | if test -n "$GCC_FOR_TARGET"; then |
10238 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10239 | else |
1c710c3c DJ |
10240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10241 | for as_dir in $PATH | |
10242 | do | |
10243 | IFS=$as_save_IFS | |
10244 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10245 | for ac_exec_ext in '' $ac_executable_extensions; do |
10246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10247 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10249 | break 2 |
10250 | fi | |
10251 | done | |
5213506e RW |
10252 | done |
10253 | IFS=$as_save_IFS | |
1c710c3c | 10254 | |
ca9f4b81 AO |
10255 | fi |
10256 | fi | |
1c710c3c | 10257 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10258 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10260 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10261 | else |
5213506e RW |
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10263 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10264 | fi |
10265 | ||
5213506e | 10266 | |
e8b05380 PB |
10267 | fi |
10268 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10269 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10270 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10272 | $as_echo_n "checking for $ac_word... " >&6; } | |
10273 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10274 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10275 | else |
e8b05380 PB |
10276 | if test -n "$GCC_FOR_TARGET"; then |
10277 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10278 | else |
1c710c3c DJ |
10279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10280 | for as_dir in $PATH | |
10281 | do | |
10282 | IFS=$as_save_IFS | |
10283 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10284 | for ac_exec_ext in '' $ac_executable_extensions; do |
10285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10286 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10288 | break 2 |
10289 | fi | |
10290 | done | |
5213506e RW |
10291 | done |
10292 | IFS=$as_save_IFS | |
1c710c3c | 10293 | |
ca9f4b81 AO |
10294 | fi |
10295 | fi | |
1c710c3c | 10296 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10297 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10299 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10300 | else |
5213506e RW |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10302 | $as_echo "no" >&6; } | |
ca9f4b81 | 10303 | fi |
1c710c3c | 10304 | |
5213506e | 10305 | |
e8b05380 PB |
10306 | fi |
10307 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10308 | done | |
10309 | fi | |
1c710c3c | 10310 | |
e8b05380 PB |
10311 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10312 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10313 | else |
10314 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10315 | fi |
10316 | ||
278a7a38 AO |
10317 | |
10318 | ||
10319 | if test -n "$GCJ_FOR_TARGET"; then | |
10320 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10321 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10322 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10323 | fi | |
10324 | ||
10325 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10326 | for ncn_progname in gcj; do | |
10327 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10328 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10330 | $as_echo_n "checking for $ac_word... " >&6; } | |
10331 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10332 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10333 | else |
10334 | if test -n "$GCJ_FOR_TARGET"; then | |
10335 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10336 | else | |
10337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10338 | for as_dir in $PATH | |
10339 | do | |
10340 | IFS=$as_save_IFS | |
10341 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10342 | for ac_exec_ext in '' $ac_executable_extensions; do |
10343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10344 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10346 | break 2 |
10347 | fi | |
10348 | done | |
5213506e RW |
10349 | done |
10350 | IFS=$as_save_IFS | |
278a7a38 AO |
10351 | |
10352 | fi | |
10353 | fi | |
10354 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10355 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10357 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10358 | else |
5213506e RW |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10360 | $as_echo "no" >&6; } | |
278a7a38 AO |
10361 | fi |
10362 | ||
5213506e | 10363 | |
278a7a38 AO |
10364 | done |
10365 | fi | |
10366 | ||
10367 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10368 | for ncn_progname in gcj; do |
5213506e RW |
10369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10370 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10371 | if test -x $with_build_time_tools/${ncn_progname}; then |
10372 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10374 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10375 | break |
10376 | else | |
5213506e RW |
10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10378 | $as_echo "no" >&6; } | |
e8b05380 PB |
10379 | fi |
10380 | done | |
10381 | fi | |
10382 | ||
10383 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10384 | for ncn_progname in gcj; do | |
10385 | if test -n "$ncn_target_tool_prefix"; then | |
10386 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10387 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10389 | $as_echo_n "checking for $ac_word... " >&6; } | |
10390 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10391 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10392 | else |
fb0103e5 RG |
10393 | if test -n "$GCJ_FOR_TARGET"; then |
10394 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10395 | else | |
1c710c3c DJ |
10396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10397 | for as_dir in $PATH | |
10398 | do | |
10399 | IFS=$as_save_IFS | |
10400 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10401 | for ac_exec_ext in '' $ac_executable_extensions; do |
10402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10403 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10405 | break 2 |
10406 | fi | |
10407 | done | |
5213506e RW |
10408 | done |
10409 | IFS=$as_save_IFS | |
1c710c3c | 10410 | |
e8b05380 PB |
10411 | fi |
10412 | fi | |
278a7a38 AO |
10413 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10414 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10416 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10417 | else |
5213506e RW |
10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10419 | $as_echo "no" >&6; } | |
278a7a38 AO |
10420 | fi |
10421 | ||
5213506e | 10422 | |
278a7a38 AO |
10423 | fi |
10424 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10425 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10426 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10428 | $as_echo_n "checking for $ac_word... " >&6; } | |
10429 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10430 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10431 | else |
10432 | if test -n "$GCJ_FOR_TARGET"; then | |
10433 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10434 | else | |
10435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10436 | for as_dir in $PATH | |
10437 | do | |
10438 | IFS=$as_save_IFS | |
10439 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10440 | for ac_exec_ext in '' $ac_executable_extensions; do |
10441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10442 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10444 | break 2 |
10445 | fi | |
10446 | done | |
5213506e RW |
10447 | done |
10448 | IFS=$as_save_IFS | |
278a7a38 AO |
10449 | |
10450 | fi | |
10451 | fi | |
10452 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10453 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10455 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10456 | else |
5213506e RW |
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10458 | $as_echo "no" >&6; } | |
278a7a38 AO |
10459 | fi |
10460 | ||
5213506e | 10461 | |
278a7a38 AO |
10462 | fi |
10463 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10464 | done | |
10465 | fi | |
10466 | ||
10467 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10468 | set dummy gcj | |
10469 | if test $build = $target ; then | |
10470 | GCJ_FOR_TARGET="$2" | |
10471 | else | |
10472 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10473 | fi | |
1c00b503 PB |
10474 | else |
10475 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
278a7a38 AO |
10476 | fi |
10477 | ||
10478 | ||
10479 | ||
10480 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10481 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10482 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10483 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10484 | fi |
10485 | ||
278a7a38 AO |
10486 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10487 | for ncn_progname in gfortran; do | |
10488 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10489 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10491 | $as_echo_n "checking for $ac_word... " >&6; } | |
10492 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10493 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10494 | else |
278a7a38 AO |
10495 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10496 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10497 | else |
1c710c3c DJ |
10498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10499 | for as_dir in $PATH | |
10500 | do | |
10501 | IFS=$as_save_IFS | |
10502 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10503 | for ac_exec_ext in '' $ac_executable_extensions; do |
10504 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10505 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10507 | break 2 |
10508 | fi | |
10509 | done | |
5213506e RW |
10510 | done |
10511 | IFS=$as_save_IFS | |
1c710c3c | 10512 | |
e8b05380 PB |
10513 | fi |
10514 | fi | |
278a7a38 AO |
10515 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10516 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10518 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10519 | else |
5213506e RW |
10520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10521 | $as_echo "no" >&6; } | |
e8b05380 | 10522 | fi |
1c710c3c | 10523 | |
5213506e | 10524 | |
e8b05380 PB |
10525 | done |
10526 | fi | |
1c710c3c | 10527 | |
278a7a38 | 10528 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10529 | for ncn_progname in gfortran; do |
5213506e RW |
10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10531 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10532 | if test -x $with_build_time_tools/${ncn_progname}; then |
10533 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10535 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10536 | break |
10537 | else | |
5213506e RW |
10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10539 | $as_echo "no" >&6; } | |
e8b05380 PB |
10540 | fi |
10541 | done | |
10542 | fi | |
10543 | ||
10544 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10545 | for ncn_progname in gfortran; do | |
10546 | if test -n "$ncn_target_tool_prefix"; then | |
10547 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10548 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10550 | $as_echo_n "checking for $ac_word... " >&6; } | |
10551 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10552 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10553 | else |
10554 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10555 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10556 | else | |
10557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10558 | for as_dir in $PATH | |
10559 | do | |
10560 | IFS=$as_save_IFS | |
10561 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10562 | for ac_exec_ext in '' $ac_executable_extensions; do |
10563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10564 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10566 | break 2 |
10567 | fi | |
10568 | done | |
5213506e RW |
10569 | done |
10570 | IFS=$as_save_IFS | |
1c710c3c | 10571 | |
e8b05380 PB |
10572 | fi |
10573 | fi | |
1c710c3c | 10574 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10575 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10577 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10578 | else |
5213506e RW |
10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10580 | $as_echo "no" >&6; } | |
e8b05380 PB |
10581 | fi |
10582 | ||
5213506e | 10583 | |
e8b05380 PB |
10584 | fi |
10585 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10586 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10587 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10589 | $as_echo_n "checking for $ac_word... " >&6; } | |
10590 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10591 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10592 | else |
10593 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10594 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10595 | else | |
1c710c3c DJ |
10596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10597 | for as_dir in $PATH | |
10598 | do | |
10599 | IFS=$as_save_IFS | |
10600 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10601 | for ac_exec_ext in '' $ac_executable_extensions; do |
10602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10603 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10605 | break 2 |
10606 | fi | |
10607 | done | |
5213506e RW |
10608 | done |
10609 | IFS=$as_save_IFS | |
1c710c3c | 10610 | |
e8b05380 PB |
10611 | fi |
10612 | fi | |
1c710c3c | 10613 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10614 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10616 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10617 | else |
5213506e RW |
10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10619 | $as_echo "no" >&6; } | |
e8b05380 | 10620 | fi |
1c710c3c | 10621 | |
5213506e | 10622 | |
e8b05380 PB |
10623 | fi |
10624 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10625 | done | |
10626 | fi | |
1c710c3c | 10627 | |
e8b05380 PB |
10628 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10629 | set dummy gfortran | |
2693c0b0 | 10630 | if test $build = $target ; then |
e8b05380 | 10631 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10632 | else |
e8b05380 PB |
10633 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10634 | fi | |
1c00b503 PB |
10635 | else |
10636 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10637 | fi |
10638 | ||
10639 | ||
10640 | ||
632e2a07 ILT |
10641 | if test -n "$GOC_FOR_TARGET"; then |
10642 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10643 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10644 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10645 | fi | |
10646 | ||
10647 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10648 | for ncn_progname in gccgo; do | |
10649 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10650 | set dummy ${ncn_progname}; ac_word=$2 | |
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10652 | $as_echo_n "checking for $ac_word... " >&6; } | |
10653 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10654 | $as_echo_n "(cached) " >&6 | |
10655 | else | |
10656 | if test -n "$GOC_FOR_TARGET"; then | |
10657 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10658 | else | |
10659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10660 | for as_dir in $PATH | |
10661 | do | |
10662 | IFS=$as_save_IFS | |
10663 | test -z "$as_dir" && as_dir=. | |
10664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10666 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10668 | break 2 | |
10669 | fi | |
10670 | done | |
10671 | done | |
10672 | IFS=$as_save_IFS | |
10673 | ||
10674 | fi | |
10675 | fi | |
10676 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10677 | if test -n "$GOC_FOR_TARGET"; then | |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10679 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10680 | else | |
10681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10682 | $as_echo "no" >&6; } | |
10683 | fi | |
10684 | ||
10685 | ||
10686 | done | |
10687 | fi | |
10688 | ||
10689 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10690 | for ncn_progname in gccgo; do | |
10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10692 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10693 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10694 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10696 | $as_echo "yes" >&6; } | |
10697 | break | |
10698 | else | |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10700 | $as_echo "no" >&6; } | |
10701 | fi | |
10702 | done | |
10703 | fi | |
10704 | ||
10705 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10706 | for ncn_progname in gccgo; do | |
10707 | if test -n "$ncn_target_tool_prefix"; then | |
10708 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10709 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10711 | $as_echo_n "checking for $ac_word... " >&6; } | |
10712 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10713 | $as_echo_n "(cached) " >&6 | |
10714 | else | |
10715 | if test -n "$GOC_FOR_TARGET"; then | |
10716 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10717 | else | |
10718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10719 | for as_dir in $PATH | |
10720 | do | |
10721 | IFS=$as_save_IFS | |
10722 | test -z "$as_dir" && as_dir=. | |
10723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10725 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10727 | break 2 | |
10728 | fi | |
10729 | done | |
10730 | done | |
10731 | IFS=$as_save_IFS | |
10732 | ||
10733 | fi | |
10734 | fi | |
10735 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10736 | if test -n "$GOC_FOR_TARGET"; then | |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10738 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10739 | else | |
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10741 | $as_echo "no" >&6; } | |
10742 | fi | |
10743 | ||
10744 | ||
10745 | fi | |
10746 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10747 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10748 | set dummy ${ncn_progname}; ac_word=$2 | |
10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10750 | $as_echo_n "checking for $ac_word... " >&6; } | |
10751 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10752 | $as_echo_n "(cached) " >&6 | |
10753 | else | |
10754 | if test -n "$GOC_FOR_TARGET"; then | |
10755 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10756 | else | |
10757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10758 | for as_dir in $PATH | |
10759 | do | |
10760 | IFS=$as_save_IFS | |
10761 | test -z "$as_dir" && as_dir=. | |
10762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10764 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10766 | break 2 | |
10767 | fi | |
10768 | done | |
10769 | done | |
10770 | IFS=$as_save_IFS | |
10771 | ||
10772 | fi | |
10773 | fi | |
10774 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10775 | if test -n "$GOC_FOR_TARGET"; then | |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10777 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10778 | else | |
10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10780 | $as_echo "no" >&6; } | |
10781 | fi | |
10782 | ||
10783 | ||
10784 | fi | |
10785 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10786 | done | |
10787 | fi | |
10788 | ||
10789 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10790 | set dummy gccgo | |
10791 | if test $build = $target ; then | |
10792 | GOC_FOR_TARGET="$2" | |
10793 | else | |
10794 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10795 | fi | |
10796 | else | |
10797 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10798 | fi | |
10799 | ||
10800 | ||
10801 | ||
e8b05380 PB |
10802 | cat > conftest.c << \EOF |
10803 | #ifdef __GNUC__ | |
10804 | gcc_yay; | |
10805 | #endif | |
10806 | EOF | |
10807 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10808 | have_gcc_for_target=yes | |
10809 | else | |
10810 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10811 | have_gcc_for_target=no | |
10812 | fi | |
10813 | rm conftest.c | |
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10819 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10821 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10822 | if test -x $with_build_time_tools/ar; then |
10823 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10824 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10826 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 10827 | else |
5213506e RW |
10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10829 | $as_echo "no" >&6; } | |
d1f8db0c | 10830 | fi |
e8b05380 PB |
10831 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10832 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
10833 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10834 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
10835 | fi |
10836 | fi | |
3e19841a | 10837 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10838 | # Extract the first word of "ar", so it can be a program name with args. |
10839 | set dummy ar; ac_word=$2 | |
5213506e RW |
10840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10841 | $as_echo_n "checking for $ac_word... " >&6; } | |
10842 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10843 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10844 | else |
1c710c3c DJ |
10845 | case $AR_FOR_TARGET in |
10846 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10847 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10848 | ;; | |
e8b05380 | 10849 | *) |
1c710c3c DJ |
10850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10851 | for as_dir in $gcc_cv_tool_dirs | |
10852 | do | |
10853 | IFS=$as_save_IFS | |
10854 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10855 | for ac_exec_ext in '' $ac_executable_extensions; do |
10856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10857 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10859 | break 2 |
10860 | fi | |
10861 | done | |
5213506e RW |
10862 | done |
10863 | IFS=$as_save_IFS | |
1c710c3c | 10864 | |
e8b05380 PB |
10865 | ;; |
10866 | esac | |
10867 | fi | |
1c710c3c | 10868 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 10869 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10871 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10872 | else |
5213506e RW |
10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10874 | $as_echo "no" >&6; } | |
4de997d1 PB |
10875 | fi |
10876 | ||
5213506e | 10877 | |
e8b05380 PB |
10878 | fi |
10879 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
10880 | |
10881 | ||
10882 | if test -n "$AR_FOR_TARGET"; then | |
10883 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10884 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10885 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10886 | fi | |
10887 | ||
10888 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10889 | for ncn_progname in ar; do | |
10890 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10891 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10893 | $as_echo_n "checking for $ac_word... " >&6; } | |
10894 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10895 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10896 | else |
10897 | if test -n "$AR_FOR_TARGET"; then | |
10898 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10899 | else | |
10900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10901 | for as_dir in $PATH | |
10902 | do | |
10903 | IFS=$as_save_IFS | |
10904 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10905 | for ac_exec_ext in '' $ac_executable_extensions; do |
10906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10907 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10909 | break 2 |
10910 | fi | |
10911 | done | |
5213506e RW |
10912 | done |
10913 | IFS=$as_save_IFS | |
278a7a38 AO |
10914 | |
10915 | fi | |
10916 | fi | |
10917 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10918 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10920 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 10921 | else |
5213506e RW |
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10923 | $as_echo "no" >&6; } | |
278a7a38 AO |
10924 | fi |
10925 | ||
5213506e | 10926 | |
278a7a38 AO |
10927 | done |
10928 | fi | |
10929 | ||
10930 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10931 | for ncn_progname in ar; do |
5213506e RW |
10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10933 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10934 | if test -x $with_build_time_tools/${ncn_progname}; then |
10935 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10937 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10938 | break |
10939 | else | |
5213506e RW |
10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10941 | $as_echo "no" >&6; } | |
e8b05380 PB |
10942 | fi |
10943 | done | |
10944 | fi | |
10945 | ||
10946 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10947 | for ncn_progname in ar; do | |
10948 | if test -n "$ncn_target_tool_prefix"; then | |
10949 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10950 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10952 | $as_echo_n "checking for $ac_word... " >&6; } | |
10953 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10954 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10955 | else |
e8b05380 PB |
10956 | if test -n "$AR_FOR_TARGET"; then |
10957 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10958 | else |
1c710c3c DJ |
10959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10960 | for as_dir in $PATH | |
10961 | do | |
10962 | IFS=$as_save_IFS | |
10963 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10964 | for ac_exec_ext in '' $ac_executable_extensions; do |
10965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10966 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10968 | break 2 |
10969 | fi | |
10970 | done | |
5213506e RW |
10971 | done |
10972 | IFS=$as_save_IFS | |
1c710c3c | 10973 | |
4de997d1 PB |
10974 | fi |
10975 | fi | |
1c710c3c | 10976 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10977 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10979 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 10980 | else |
5213506e RW |
10981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10982 | $as_echo "no" >&6; } | |
4de997d1 PB |
10983 | fi |
10984 | ||
5213506e | 10985 | |
e8b05380 PB |
10986 | fi |
10987 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10988 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10989 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10991 | $as_echo_n "checking for $ac_word... " >&6; } | |
10992 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10993 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10994 | else |
10995 | if test -n "$AR_FOR_TARGET"; then | |
10996 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10997 | else | |
1c710c3c DJ |
10998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10999 | for as_dir in $PATH | |
11000 | do | |
11001 | IFS=$as_save_IFS | |
11002 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11003 | for ac_exec_ext in '' $ac_executable_extensions; do |
11004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11005 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11007 | break 2 |
11008 | fi | |
11009 | done | |
5213506e RW |
11010 | done |
11011 | IFS=$as_save_IFS | |
1c710c3c | 11012 | |
e8b05380 PB |
11013 | fi |
11014 | fi | |
1c710c3c | 11015 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11016 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11018 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11019 | else |
5213506e RW |
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11021 | $as_echo "no" >&6; } | |
e8b05380 | 11022 | fi |
1c710c3c | 11023 | |
5213506e | 11024 | |
e8b05380 PB |
11025 | fi |
11026 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11027 | done | |
11028 | fi | |
1c710c3c | 11029 | |
e8b05380 PB |
11030 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11031 | set dummy ar | |
11032 | if test $build = $target ; then | |
11033 | AR_FOR_TARGET="$2" | |
11034 | else | |
11035 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 11036 | fi |
1c00b503 PB |
11037 | else |
11038 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
11039 | fi |
11040 | ||
d1f8db0c PB |
11041 | else |
11042 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
11043 | fi |
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11049 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11051 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11052 | if test -x $with_build_time_tools/as; then |
11053 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11054 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11056 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 11057 | else |
5213506e RW |
11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11059 | $as_echo "no" >&6; } | |
d1f8db0c | 11060 | fi |
e8b05380 PB |
11061 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11062 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
11063 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11064 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
11065 | fi |
11066 | fi | |
3e19841a | 11067 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11068 | # Extract the first word of "as", so it can be a program name with args. |
11069 | set dummy as; ac_word=$2 | |
5213506e RW |
11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11071 | $as_echo_n "checking for $ac_word... " >&6; } | |
11072 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11073 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11074 | else |
1c710c3c DJ |
11075 | case $AS_FOR_TARGET in |
11076 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11077 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11078 | ;; | |
e8b05380 | 11079 | *) |
1c710c3c DJ |
11080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11081 | for as_dir in $gcc_cv_tool_dirs | |
11082 | do | |
11083 | IFS=$as_save_IFS | |
11084 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11085 | for ac_exec_ext in '' $ac_executable_extensions; do |
11086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11087 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11089 | break 2 |
11090 | fi | |
11091 | done | |
5213506e RW |
11092 | done |
11093 | IFS=$as_save_IFS | |
1c710c3c | 11094 | |
e8b05380 PB |
11095 | ;; |
11096 | esac | |
11097 | fi | |
1c710c3c | 11098 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 11099 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11101 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11102 | else |
5213506e RW |
11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11104 | $as_echo "no" >&6; } | |
e8b05380 PB |
11105 | fi |
11106 | ||
5213506e | 11107 | |
e8b05380 PB |
11108 | fi |
11109 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11110 | |
11111 | ||
11112 | if test -n "$AS_FOR_TARGET"; then | |
11113 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11114 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11115 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11116 | fi | |
11117 | ||
11118 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11119 | for ncn_progname in as; do | |
11120 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11121 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11123 | $as_echo_n "checking for $ac_word... " >&6; } | |
11124 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11125 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11126 | else |
11127 | if test -n "$AS_FOR_TARGET"; then | |
11128 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11129 | else | |
11130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11131 | for as_dir in $PATH | |
11132 | do | |
11133 | IFS=$as_save_IFS | |
11134 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11135 | for ac_exec_ext in '' $ac_executable_extensions; do |
11136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11137 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11139 | break 2 |
11140 | fi | |
11141 | done | |
5213506e RW |
11142 | done |
11143 | IFS=$as_save_IFS | |
278a7a38 AO |
11144 | |
11145 | fi | |
11146 | fi | |
11147 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11148 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11150 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 11151 | else |
5213506e RW |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11153 | $as_echo "no" >&6; } | |
278a7a38 AO |
11154 | fi |
11155 | ||
5213506e | 11156 | |
278a7a38 AO |
11157 | done |
11158 | fi | |
11159 | ||
11160 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11161 | for ncn_progname in as; do |
5213506e RW |
11162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11163 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11164 | if test -x $with_build_time_tools/${ncn_progname}; then |
11165 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11167 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11168 | break |
11169 | else | |
5213506e RW |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11171 | $as_echo "no" >&6; } | |
e8b05380 PB |
11172 | fi |
11173 | done | |
11174 | fi | |
11175 | ||
11176 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11177 | for ncn_progname in as; do | |
11178 | if test -n "$ncn_target_tool_prefix"; then | |
11179 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11180 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11182 | $as_echo_n "checking for $ac_word... " >&6; } | |
11183 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11184 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
11185 | else |
11186 | if test -n "$AS_FOR_TARGET"; then | |
11187 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11188 | else | |
1c710c3c DJ |
11189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11190 | for as_dir in $PATH | |
11191 | do | |
11192 | IFS=$as_save_IFS | |
11193 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11194 | for ac_exec_ext in '' $ac_executable_extensions; do |
11195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11196 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11198 | break 2 |
11199 | fi | |
11200 | done | |
5213506e RW |
11201 | done |
11202 | IFS=$as_save_IFS | |
1c710c3c | 11203 | |
e8b05380 PB |
11204 | fi |
11205 | fi | |
1c710c3c | 11206 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11207 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11209 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11210 | else |
5213506e RW |
11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11212 | $as_echo "no" >&6; } | |
e8b05380 PB |
11213 | fi |
11214 | ||
5213506e | 11215 | |
e8b05380 PB |
11216 | fi |
11217 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11218 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11219 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11221 | $as_echo_n "checking for $ac_word... " >&6; } | |
11222 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11223 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11224 | else |
e8b05380 PB |
11225 | if test -n "$AS_FOR_TARGET"; then |
11226 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11227 | else |
1c710c3c DJ |
11228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11229 | for as_dir in $PATH | |
11230 | do | |
11231 | IFS=$as_save_IFS | |
11232 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11233 | for ac_exec_ext in '' $ac_executable_extensions; do |
11234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11235 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11237 | break 2 |
11238 | fi | |
11239 | done | |
5213506e RW |
11240 | done |
11241 | IFS=$as_save_IFS | |
1c710c3c | 11242 | |
4de997d1 PB |
11243 | fi |
11244 | fi | |
1c710c3c | 11245 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11246 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11248 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11249 | else |
5213506e RW |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11251 | $as_echo "no" >&6; } | |
4de997d1 | 11252 | fi |
1c710c3c | 11253 | |
5213506e | 11254 | |
e8b05380 PB |
11255 | fi |
11256 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11257 | done | |
11258 | fi | |
1c710c3c | 11259 | |
e8b05380 PB |
11260 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11261 | set dummy as | |
11262 | if test $build = $target ; then | |
11263 | AS_FOR_TARGET="$2" | |
11264 | else | |
11265 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11266 | fi |
1c00b503 PB |
11267 | else |
11268 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11269 | fi |
2693c0b0 | 11270 | |
d1f8db0c PB |
11271 | else |
11272 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11273 | fi |
11274 | ||
e8b05380 PB |
11275 | |
11276 | ||
11277 | ||
11278 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11279 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11281 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11282 | if test -x $with_build_time_tools/dlltool; then |
11283 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11284 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11286 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11287 | else |
5213506e RW |
11288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11289 | $as_echo "no" >&6; } | |
d1f8db0c | 11290 | fi |
e8b05380 PB |
11291 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11292 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11293 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11294 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11295 | fi |
11296 | fi | |
3e19841a | 11297 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11298 | # Extract the first word of "dlltool", so it can be a program name with args. |
11299 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11301 | $as_echo_n "checking for $ac_word... " >&6; } | |
11302 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11303 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11304 | else |
1c710c3c DJ |
11305 | case $DLLTOOL_FOR_TARGET in |
11306 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11307 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11308 | ;; | |
e8b05380 | 11309 | *) |
1c710c3c DJ |
11310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11311 | for as_dir in $gcc_cv_tool_dirs | |
11312 | do | |
11313 | IFS=$as_save_IFS | |
11314 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11315 | for ac_exec_ext in '' $ac_executable_extensions; do |
11316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11317 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11319 | break 2 |
11320 | fi | |
11321 | done | |
5213506e RW |
11322 | done |
11323 | IFS=$as_save_IFS | |
1c710c3c | 11324 | |
e8b05380 PB |
11325 | ;; |
11326 | esac | |
4de997d1 | 11327 | fi |
1c710c3c | 11328 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11329 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11331 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11332 | else |
5213506e RW |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11334 | $as_echo "no" >&6; } | |
4de997d1 PB |
11335 | fi |
11336 | ||
5213506e | 11337 | |
e8b05380 PB |
11338 | fi |
11339 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11340 | |
11341 | ||
11342 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11343 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11344 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11345 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11346 | fi | |
11347 | ||
11348 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11349 | for ncn_progname in dlltool; do | |
11350 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11351 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11353 | $as_echo_n "checking for $ac_word... " >&6; } | |
11354 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11355 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11356 | else |
11357 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11358 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11359 | else | |
11360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11361 | for as_dir in $PATH | |
11362 | do | |
11363 | IFS=$as_save_IFS | |
11364 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11365 | for ac_exec_ext in '' $ac_executable_extensions; do |
11366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11367 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11369 | break 2 |
11370 | fi | |
11371 | done | |
5213506e RW |
11372 | done |
11373 | IFS=$as_save_IFS | |
278a7a38 AO |
11374 | |
11375 | fi | |
11376 | fi | |
11377 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11378 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11380 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11381 | else |
5213506e RW |
11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11383 | $as_echo "no" >&6; } | |
278a7a38 AO |
11384 | fi |
11385 | ||
5213506e | 11386 | |
278a7a38 AO |
11387 | done |
11388 | fi | |
11389 | ||
11390 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11391 | for ncn_progname in dlltool; do |
5213506e RW |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11393 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11394 | if test -x $with_build_time_tools/${ncn_progname}; then |
11395 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11397 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11398 | break |
11399 | else | |
5213506e RW |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11401 | $as_echo "no" >&6; } | |
e8b05380 PB |
11402 | fi |
11403 | done | |
11404 | fi | |
11405 | ||
11406 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11407 | for ncn_progname in dlltool; do | |
11408 | if test -n "$ncn_target_tool_prefix"; then | |
11409 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11410 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11412 | $as_echo_n "checking for $ac_word... " >&6; } | |
11413 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11414 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11415 | else |
e8b05380 PB |
11416 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11417 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11418 | else |
1c710c3c DJ |
11419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11420 | for as_dir in $PATH | |
11421 | do | |
11422 | IFS=$as_save_IFS | |
11423 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11424 | for ac_exec_ext in '' $ac_executable_extensions; do |
11425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11426 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11428 | break 2 |
11429 | fi | |
11430 | done | |
5213506e RW |
11431 | done |
11432 | IFS=$as_save_IFS | |
1c710c3c | 11433 | |
4de997d1 PB |
11434 | fi |
11435 | fi | |
1c710c3c | 11436 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11437 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11439 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11440 | else |
5213506e RW |
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11442 | $as_echo "no" >&6; } | |
4de997d1 | 11443 | fi |
4de997d1 | 11444 | |
5213506e | 11445 | |
e8b05380 PB |
11446 | fi |
11447 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11448 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11449 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11451 | $as_echo_n "checking for $ac_word... " >&6; } | |
11452 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11453 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11454 | else |
e8b05380 PB |
11455 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11456 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11457 | else |
1c710c3c DJ |
11458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11459 | for as_dir in $PATH | |
11460 | do | |
11461 | IFS=$as_save_IFS | |
11462 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11463 | for ac_exec_ext in '' $ac_executable_extensions; do |
11464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11465 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11467 | break 2 |
11468 | fi | |
11469 | done | |
5213506e RW |
11470 | done |
11471 | IFS=$as_save_IFS | |
1c710c3c | 11472 | |
4de997d1 PB |
11473 | fi |
11474 | fi | |
1c710c3c | 11475 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11476 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11478 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11479 | else |
5213506e RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11481 | $as_echo "no" >&6; } | |
4de997d1 | 11482 | fi |
1c710c3c | 11483 | |
5213506e | 11484 | |
e8b05380 PB |
11485 | fi |
11486 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11487 | done | |
11488 | fi | |
1c710c3c | 11489 | |
e8b05380 PB |
11490 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11491 | set dummy dlltool | |
11492 | if test $build = $target ; then | |
11493 | DLLTOOL_FOR_TARGET="$2" | |
11494 | else | |
11495 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11496 | fi | |
1c00b503 PB |
11497 | else |
11498 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11499 | fi |
11500 | ||
d1f8db0c PB |
11501 | else |
11502 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11503 | fi |
11504 | ||
4de997d1 | 11505 | |
e8b05380 PB |
11506 | |
11507 | ||
11508 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11509 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11511 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11512 | if test -x $with_build_time_tools/ld; then |
11513 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11514 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11516 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11517 | else |
5213506e RW |
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11519 | $as_echo "no" >&6; } | |
d1f8db0c | 11520 | fi |
e8b05380 PB |
11521 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11522 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11523 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11524 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11525 | fi |
e8b05380 | 11526 | fi |
3e19841a | 11527 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11528 | # Extract the first word of "ld", so it can be a program name with args. |
11529 | set dummy ld; ac_word=$2 | |
5213506e RW |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11531 | $as_echo_n "checking for $ac_word... " >&6; } | |
11532 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11533 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11534 | else |
1c710c3c DJ |
11535 | case $LD_FOR_TARGET in |
11536 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11537 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11538 | ;; | |
e8b05380 | 11539 | *) |
1c710c3c DJ |
11540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11541 | for as_dir in $gcc_cv_tool_dirs | |
11542 | do | |
11543 | IFS=$as_save_IFS | |
11544 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11545 | for ac_exec_ext in '' $ac_executable_extensions; do |
11546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11547 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11549 | break 2 |
11550 | fi | |
11551 | done | |
5213506e RW |
11552 | done |
11553 | IFS=$as_save_IFS | |
1c710c3c | 11554 | |
e8b05380 PB |
11555 | ;; |
11556 | esac | |
4de997d1 | 11557 | fi |
1c710c3c | 11558 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11559 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11561 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11562 | else |
5213506e RW |
11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11564 | $as_echo "no" >&6; } | |
4de997d1 | 11565 | fi |
2693c0b0 | 11566 | |
5213506e | 11567 | |
e8b05380 PB |
11568 | fi |
11569 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11570 | |
11571 | ||
11572 | if test -n "$LD_FOR_TARGET"; then | |
11573 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11574 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11575 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11576 | fi | |
11577 | ||
11578 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11579 | for ncn_progname in ld; do | |
11580 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11581 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11583 | $as_echo_n "checking for $ac_word... " >&6; } | |
11584 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11585 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11586 | else |
11587 | if test -n "$LD_FOR_TARGET"; then | |
11588 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11589 | else | |
11590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11591 | for as_dir in $PATH | |
11592 | do | |
11593 | IFS=$as_save_IFS | |
11594 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11595 | for ac_exec_ext in '' $ac_executable_extensions; do |
11596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11597 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11599 | break 2 |
11600 | fi | |
11601 | done | |
5213506e RW |
11602 | done |
11603 | IFS=$as_save_IFS | |
278a7a38 AO |
11604 | |
11605 | fi | |
11606 | fi | |
11607 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11608 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11610 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 11611 | else |
5213506e RW |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11613 | $as_echo "no" >&6; } | |
278a7a38 AO |
11614 | fi |
11615 | ||
5213506e | 11616 | |
278a7a38 AO |
11617 | done |
11618 | fi | |
11619 | ||
11620 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11621 | for ncn_progname in ld; do |
5213506e RW |
11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11623 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11624 | if test -x $with_build_time_tools/${ncn_progname}; then |
11625 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11627 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11628 | break |
11629 | else | |
5213506e RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11631 | $as_echo "no" >&6; } | |
e8b05380 PB |
11632 | fi |
11633 | done | |
ca9f4b81 AO |
11634 | fi |
11635 | ||
e8b05380 PB |
11636 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11637 | for ncn_progname in ld; do | |
11638 | if test -n "$ncn_target_tool_prefix"; then | |
11639 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11640 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11642 | $as_echo_n "checking for $ac_word... " >&6; } | |
11643 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11644 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11645 | else |
4de997d1 PB |
11646 | if test -n "$LD_FOR_TARGET"; then |
11647 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11648 | else |
1c710c3c DJ |
11649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11650 | for as_dir in $PATH | |
11651 | do | |
11652 | IFS=$as_save_IFS | |
11653 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11654 | for ac_exec_ext in '' $ac_executable_extensions; do |
11655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11656 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11658 | break 2 |
11659 | fi | |
11660 | done | |
5213506e RW |
11661 | done |
11662 | IFS=$as_save_IFS | |
1c710c3c | 11663 | |
ca9f4b81 AO |
11664 | fi |
11665 | fi | |
1c710c3c | 11666 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11667 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11669 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11670 | else |
5213506e RW |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11672 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11673 | fi |
11674 | ||
5213506e | 11675 | |
e8b05380 PB |
11676 | fi |
11677 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11678 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11679 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11681 | $as_echo_n "checking for $ac_word... " >&6; } | |
11682 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11683 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11684 | else |
2693c0b0 PB |
11685 | if test -n "$LD_FOR_TARGET"; then |
11686 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11687 | else |
1c710c3c DJ |
11688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11689 | for as_dir in $PATH | |
11690 | do | |
11691 | IFS=$as_save_IFS | |
11692 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11693 | for ac_exec_ext in '' $ac_executable_extensions; do |
11694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11695 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11697 | break 2 |
11698 | fi | |
11699 | done | |
5213506e RW |
11700 | done |
11701 | IFS=$as_save_IFS | |
1c710c3c | 11702 | |
ca9f4b81 AO |
11703 | fi |
11704 | fi | |
1c710c3c | 11705 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 11706 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11708 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11709 | else |
5213506e RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11711 | $as_echo "no" >&6; } | |
ca9f4b81 | 11712 | fi |
1c710c3c | 11713 | |
5213506e | 11714 | |
e8b05380 PB |
11715 | fi |
11716 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11717 | done | |
11718 | fi | |
1c710c3c | 11719 | |
2693c0b0 PB |
11720 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11721 | set dummy ld | |
11722 | if test $build = $target ; then | |
11723 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 11724 | else |
2693c0b0 | 11725 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11726 | fi |
1c00b503 PB |
11727 | else |
11728 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
11729 | fi |
11730 | ||
d1f8db0c PB |
11731 | else |
11732 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
11733 | fi |
11734 | ||
11735 | ||
11736 | ||
11737 | ||
11738 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11739 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11741 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11742 | if test -x $with_build_time_tools/lipo; then |
11743 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11744 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11746 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 11747 | else |
5213506e RW |
11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11749 | $as_echo "no" >&6; } | |
d1f8db0c | 11750 | fi |
e8b05380 PB |
11751 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11752 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
11753 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11754 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
11755 | fi |
11756 | fi | |
278a7a38 AO |
11757 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11758 | # Extract the first word of "lipo", so it can be a program name with args. | |
11759 | set dummy lipo; ac_word=$2 | |
5213506e RW |
11760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11761 | $as_echo_n "checking for $ac_word... " >&6; } | |
11762 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11763 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11764 | else |
11765 | case $LIPO_FOR_TARGET in | |
11766 | [\\/]* | ?:[\\/]*) | |
11767 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11768 | ;; | |
11769 | *) | |
11770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11771 | for as_dir in $gcc_cv_tool_dirs | |
11772 | do | |
11773 | IFS=$as_save_IFS | |
11774 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11775 | for ac_exec_ext in '' $ac_executable_extensions; do |
11776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11777 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11779 | break 2 |
11780 | fi | |
11781 | done | |
5213506e RW |
11782 | done |
11783 | IFS=$as_save_IFS | |
278a7a38 AO |
11784 | |
11785 | ;; | |
11786 | esac | |
11787 | fi | |
11788 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 11789 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11791 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 11792 | else |
5213506e RW |
11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11794 | $as_echo "no" >&6; } | |
278a7a38 AO |
11795 | fi |
11796 | ||
5213506e | 11797 | |
278a7a38 AO |
11798 | fi |
11799 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11800 | ||
11801 | ||
11802 | if test -n "$LIPO_FOR_TARGET"; then | |
11803 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11804 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11805 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11806 | fi | |
11807 | ||
11808 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11809 | for ncn_progname in lipo; do | |
11810 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11811 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11813 | $as_echo_n "checking for $ac_word... " >&6; } | |
11814 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11815 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11816 | else |
278a7a38 AO |
11817 | if test -n "$LIPO_FOR_TARGET"; then |
11818 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11819 | else | |
11820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11821 | for as_dir in $PATH | |
1c710c3c DJ |
11822 | do |
11823 | IFS=$as_save_IFS | |
11824 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11825 | for ac_exec_ext in '' $ac_executable_extensions; do |
11826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11827 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11829 | break 2 |
11830 | fi | |
11831 | done | |
5213506e RW |
11832 | done |
11833 | IFS=$as_save_IFS | |
1c710c3c | 11834 | |
e8b05380 | 11835 | fi |
278a7a38 AO |
11836 | fi |
11837 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 11838 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11840 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 11841 | else |
5213506e RW |
11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11843 | $as_echo "no" >&6; } | |
e8b05380 PB |
11844 | fi |
11845 | ||
5213506e | 11846 | |
278a7a38 | 11847 | done |
e8b05380 | 11848 | fi |
278a7a38 AO |
11849 | |
11850 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11851 | for ncn_progname in lipo; do |
5213506e RW |
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11853 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11854 | if test -x $with_build_time_tools/${ncn_progname}; then |
11855 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11857 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11858 | break |
11859 | else | |
5213506e RW |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11861 | $as_echo "no" >&6; } | |
e8b05380 PB |
11862 | fi |
11863 | done | |
11864 | fi | |
11865 | ||
11866 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11867 | for ncn_progname in lipo; do | |
11868 | if test -n "$ncn_target_tool_prefix"; then | |
11869 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11870 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11872 | $as_echo_n "checking for $ac_word... " >&6; } | |
11873 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11874 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11875 | else |
11876 | if test -n "$LIPO_FOR_TARGET"; then | |
11877 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11878 | else | |
1c710c3c DJ |
11879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11880 | for as_dir in $PATH | |
11881 | do | |
11882 | IFS=$as_save_IFS | |
11883 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11884 | for ac_exec_ext in '' $ac_executable_extensions; do |
11885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11886 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11888 | break 2 |
11889 | fi | |
11890 | done | |
5213506e RW |
11891 | done |
11892 | IFS=$as_save_IFS | |
1c710c3c | 11893 | |
040b1c5a GK |
11894 | fi |
11895 | fi | |
1c710c3c | 11896 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11897 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11899 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11900 | else |
5213506e RW |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11902 | $as_echo "no" >&6; } | |
040b1c5a GK |
11903 | fi |
11904 | ||
5213506e | 11905 | |
e8b05380 PB |
11906 | fi |
11907 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11908 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11909 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11911 | $as_echo_n "checking for $ac_word... " >&6; } | |
11912 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11913 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11914 | else |
11915 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
11916 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11917 | else | |
1c710c3c DJ |
11918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11919 | for as_dir in $PATH | |
11920 | do | |
11921 | IFS=$as_save_IFS | |
11922 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11923 | for ac_exec_ext in '' $ac_executable_extensions; do |
11924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11925 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11927 | break 2 |
11928 | fi | |
11929 | done | |
5213506e RW |
11930 | done |
11931 | IFS=$as_save_IFS | |
1c710c3c | 11932 | |
040b1c5a GK |
11933 | fi |
11934 | fi | |
1c710c3c | 11935 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11936 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11938 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11939 | else |
5213506e RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11941 | $as_echo "no" >&6; } | |
040b1c5a | 11942 | fi |
1c710c3c | 11943 | |
5213506e | 11944 | |
e8b05380 PB |
11945 | fi |
11946 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11947 | done | |
11948 | fi | |
1c710c3c | 11949 | |
040b1c5a GK |
11950 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11951 | set dummy lipo | |
11952 | if test $build = $target ; then | |
11953 | LIPO_FOR_TARGET="$2" | |
11954 | else | |
11955 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11956 | fi | |
1c00b503 PB |
11957 | else |
11958 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
11959 | fi |
11960 | ||
d1f8db0c PB |
11961 | else |
11962 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
11963 | fi |
11964 | ||
11965 | ||
11966 | ||
11967 | ||
11968 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11969 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11971 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11972 | if test -x $with_build_time_tools/nm; then |
11973 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11974 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11976 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 11977 | else |
5213506e RW |
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11979 | $as_echo "no" >&6; } | |
d1f8db0c | 11980 | fi |
e8b05380 PB |
11981 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11982 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
11983 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11984 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
11985 | fi |
11986 | fi | |
3e19841a | 11987 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11988 | # Extract the first word of "nm", so it can be a program name with args. |
11989 | set dummy nm; ac_word=$2 | |
5213506e RW |
11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11991 | $as_echo_n "checking for $ac_word... " >&6; } | |
11992 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11993 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11994 | else |
1c710c3c DJ |
11995 | case $NM_FOR_TARGET in |
11996 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11997 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11998 | ;; | |
e8b05380 | 11999 | *) |
1c710c3c DJ |
12000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12001 | for as_dir in $gcc_cv_tool_dirs | |
12002 | do | |
12003 | IFS=$as_save_IFS | |
12004 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12005 | for ac_exec_ext in '' $ac_executable_extensions; do |
12006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12007 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12009 | break 2 |
12010 | fi | |
12011 | done | |
5213506e RW |
12012 | done |
12013 | IFS=$as_save_IFS | |
1c710c3c | 12014 | |
e8b05380 PB |
12015 | ;; |
12016 | esac | |
12017 | fi | |
1c710c3c | 12018 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 12019 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12021 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 12022 | else |
5213506e RW |
12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12024 | $as_echo "no" >&6; } | |
e8b05380 PB |
12025 | fi |
12026 | ||
5213506e | 12027 | |
e8b05380 PB |
12028 | fi |
12029 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
12030 | |
12031 | ||
12032 | if test -n "$NM_FOR_TARGET"; then | |
12033 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12034 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12035 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12036 | fi | |
12037 | ||
12038 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12039 | for ncn_progname in nm; do | |
12040 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12041 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12043 | $as_echo_n "checking for $ac_word... " >&6; } | |
12044 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12045 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12046 | else |
12047 | if test -n "$NM_FOR_TARGET"; then | |
12048 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12049 | else | |
12050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12051 | for as_dir in $PATH | |
12052 | do | |
12053 | IFS=$as_save_IFS | |
12054 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12055 | for ac_exec_ext in '' $ac_executable_extensions; do |
12056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12057 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12059 | break 2 |
12060 | fi | |
12061 | done | |
5213506e RW |
12062 | done |
12063 | IFS=$as_save_IFS | |
278a7a38 AO |
12064 | |
12065 | fi | |
12066 | fi | |
12067 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12068 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12070 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 12071 | else |
5213506e RW |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12073 | $as_echo "no" >&6; } | |
278a7a38 AO |
12074 | fi |
12075 | ||
5213506e | 12076 | |
278a7a38 AO |
12077 | done |
12078 | fi | |
12079 | ||
12080 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12081 | for ncn_progname in nm; do |
5213506e RW |
12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12083 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12084 | if test -x $with_build_time_tools/${ncn_progname}; then |
12085 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12087 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12088 | break |
12089 | else | |
5213506e RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12091 | $as_echo "no" >&6; } | |
e8b05380 PB |
12092 | fi |
12093 | done | |
12094 | fi | |
12095 | ||
12096 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12097 | for ncn_progname in nm; do | |
12098 | if test -n "$ncn_target_tool_prefix"; then | |
12099 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12100 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12102 | $as_echo_n "checking for $ac_word... " >&6; } | |
12103 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12104 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12105 | else |
4de997d1 PB |
12106 | if test -n "$NM_FOR_TARGET"; then |
12107 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12108 | else |
1c710c3c DJ |
12109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12110 | for as_dir in $PATH | |
12111 | do | |
12112 | IFS=$as_save_IFS | |
12113 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12114 | for ac_exec_ext in '' $ac_executable_extensions; do |
12115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12116 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12118 | break 2 |
12119 | fi | |
12120 | done | |
5213506e RW |
12121 | done |
12122 | IFS=$as_save_IFS | |
1c710c3c | 12123 | |
ca9f4b81 AO |
12124 | fi |
12125 | fi | |
1c710c3c | 12126 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12127 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12129 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12130 | else |
5213506e RW |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12132 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12133 | fi |
12134 | ||
5213506e | 12135 | |
e8b05380 PB |
12136 | fi |
12137 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12138 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12139 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12141 | $as_echo_n "checking for $ac_word... " >&6; } | |
12142 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12143 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12144 | else |
2693c0b0 PB |
12145 | if test -n "$NM_FOR_TARGET"; then |
12146 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12147 | else |
1c710c3c DJ |
12148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12149 | for as_dir in $PATH | |
12150 | do | |
12151 | IFS=$as_save_IFS | |
12152 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12153 | for ac_exec_ext in '' $ac_executable_extensions; do |
12154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12155 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12157 | break 2 |
12158 | fi | |
12159 | done | |
5213506e RW |
12160 | done |
12161 | IFS=$as_save_IFS | |
1c710c3c | 12162 | |
ca9f4b81 AO |
12163 | fi |
12164 | fi | |
1c710c3c | 12165 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12166 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12168 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12169 | else |
5213506e RW |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12171 | $as_echo "no" >&6; } | |
ca9f4b81 | 12172 | fi |
1c710c3c | 12173 | |
5213506e | 12174 | |
e8b05380 PB |
12175 | fi |
12176 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12177 | done | |
12178 | fi | |
1c710c3c | 12179 | |
2693c0b0 PB |
12180 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12181 | set dummy nm | |
12182 | if test $build = $target ; then | |
12183 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 12184 | else |
2693c0b0 | 12185 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12186 | fi |
1c00b503 PB |
12187 | else |
12188 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
12189 | fi |
12190 | ||
d1f8db0c PB |
12191 | else |
12192 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
12193 | fi |
12194 | ||
12195 | ||
12196 | ||
12197 | ||
9bccfdf5 AP |
12198 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12199 | if test -n "$with_build_time_tools"; then | |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12201 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12202 | if test -x $with_build_time_tools/objcopy; then | |
12203 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12204 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12206 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12207 | else | |
12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12209 | $as_echo "no" >&6; } | |
12210 | fi | |
12211 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12212 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12213 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12214 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12215 | fi | |
12216 | fi | |
12217 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12218 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12219 | set dummy objcopy; ac_word=$2 | |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12221 | $as_echo_n "checking for $ac_word... " >&6; } | |
12222 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12223 | $as_echo_n "(cached) " >&6 | |
12224 | else | |
12225 | case $OBJCOPY_FOR_TARGET in | |
12226 | [\\/]* | ?:[\\/]*) | |
12227 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12228 | ;; | |
12229 | *) | |
12230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12231 | for as_dir in $gcc_cv_tool_dirs | |
12232 | do | |
12233 | IFS=$as_save_IFS | |
12234 | test -z "$as_dir" && as_dir=. | |
12235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12237 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12239 | break 2 | |
12240 | fi | |
12241 | done | |
12242 | done | |
12243 | IFS=$as_save_IFS | |
12244 | ||
12245 | ;; | |
12246 | esac | |
12247 | fi | |
12248 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12249 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12251 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12252 | else | |
12253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12254 | $as_echo "no" >&6; } | |
12255 | fi | |
12256 | ||
12257 | ||
12258 | fi | |
12259 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12260 | ||
12261 | ||
12262 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12263 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12264 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12265 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12266 | fi | |
12267 | ||
12268 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12269 | for ncn_progname in objcopy; do | |
12270 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12271 | set dummy ${ncn_progname}; ac_word=$2 | |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12273 | $as_echo_n "checking for $ac_word... " >&6; } | |
12274 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12275 | $as_echo_n "(cached) " >&6 | |
12276 | else | |
12277 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12278 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12279 | else | |
12280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12281 | for as_dir in $PATH | |
12282 | do | |
12283 | IFS=$as_save_IFS | |
12284 | test -z "$as_dir" && as_dir=. | |
12285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12287 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12289 | break 2 | |
12290 | fi | |
12291 | done | |
12292 | done | |
12293 | IFS=$as_save_IFS | |
12294 | ||
12295 | fi | |
12296 | fi | |
12297 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12298 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12300 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12301 | else | |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12303 | $as_echo "no" >&6; } | |
12304 | fi | |
12305 | ||
12306 | ||
12307 | done | |
12308 | fi | |
12309 | ||
12310 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12311 | for ncn_progname in objcopy; do | |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12313 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12314 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12315 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12317 | $as_echo "yes" >&6; } | |
12318 | break | |
12319 | else | |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12321 | $as_echo "no" >&6; } | |
12322 | fi | |
12323 | done | |
12324 | fi | |
12325 | ||
12326 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12327 | for ncn_progname in objcopy; do | |
12328 | if test -n "$ncn_target_tool_prefix"; then | |
12329 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12330 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12332 | $as_echo_n "checking for $ac_word... " >&6; } | |
12333 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12334 | $as_echo_n "(cached) " >&6 | |
12335 | else | |
12336 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12337 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12338 | else | |
12339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12340 | for as_dir in $PATH | |
12341 | do | |
12342 | IFS=$as_save_IFS | |
12343 | test -z "$as_dir" && as_dir=. | |
12344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12346 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12348 | break 2 | |
12349 | fi | |
12350 | done | |
12351 | done | |
12352 | IFS=$as_save_IFS | |
12353 | ||
12354 | fi | |
12355 | fi | |
12356 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12357 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12359 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12360 | else | |
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12362 | $as_echo "no" >&6; } | |
12363 | fi | |
12364 | ||
12365 | ||
12366 | fi | |
12367 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12368 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12369 | set dummy ${ncn_progname}; ac_word=$2 | |
12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12371 | $as_echo_n "checking for $ac_word... " >&6; } | |
12372 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12373 | $as_echo_n "(cached) " >&6 | |
12374 | else | |
12375 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12376 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12377 | else | |
12378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12379 | for as_dir in $PATH | |
12380 | do | |
12381 | IFS=$as_save_IFS | |
12382 | test -z "$as_dir" && as_dir=. | |
12383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12385 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12387 | break 2 | |
12388 | fi | |
12389 | done | |
12390 | done | |
12391 | IFS=$as_save_IFS | |
12392 | ||
12393 | fi | |
12394 | fi | |
12395 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12396 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12398 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12399 | else | |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12401 | $as_echo "no" >&6; } | |
12402 | fi | |
12403 | ||
12404 | ||
12405 | fi | |
12406 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12407 | done | |
12408 | fi | |
12409 | ||
12410 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12411 | set dummy objcopy | |
12412 | if test $build = $target ; then | |
12413 | OBJCOPY_FOR_TARGET="$2" | |
12414 | else | |
12415 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12416 | fi | |
12417 | else | |
12418 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12419 | fi | |
12420 | ||
12421 | else | |
12422 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12423 | fi | |
12424 | ||
12425 | ||
12426 | ||
12427 | ||
e8b05380 PB |
12428 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12429 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12431 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12432 | if test -x $with_build_time_tools/objdump; then |
12433 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12434 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12436 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 12437 | else |
5213506e RW |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12439 | $as_echo "no" >&6; } | |
d1f8db0c | 12440 | fi |
e8b05380 PB |
12441 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12442 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
12443 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12444 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12445 | fi |
12446 | fi | |
3e19841a | 12447 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12448 | # Extract the first word of "objdump", so it can be a program name with args. |
12449 | set dummy objdump; ac_word=$2 | |
5213506e RW |
12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12451 | $as_echo_n "checking for $ac_word... " >&6; } | |
12452 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12453 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12454 | else |
1c710c3c DJ |
12455 | case $OBJDUMP_FOR_TARGET in |
12456 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12457 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12458 | ;; | |
e8b05380 | 12459 | *) |
1c710c3c DJ |
12460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12461 | for as_dir in $gcc_cv_tool_dirs | |
12462 | do | |
12463 | IFS=$as_save_IFS | |
12464 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12465 | for ac_exec_ext in '' $ac_executable_extensions; do |
12466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12467 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12469 | break 2 |
12470 | fi | |
12471 | done | |
5213506e RW |
12472 | done |
12473 | IFS=$as_save_IFS | |
1c710c3c | 12474 | |
e8b05380 PB |
12475 | ;; |
12476 | esac | |
12477 | fi | |
1c710c3c | 12478 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12479 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12481 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12482 | else |
5213506e RW |
12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12484 | $as_echo "no" >&6; } | |
e8b05380 PB |
12485 | fi |
12486 | ||
5213506e | 12487 | |
e8b05380 PB |
12488 | fi |
12489 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12490 | |
12491 | ||
12492 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12493 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12494 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12495 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12496 | fi | |
12497 | ||
12498 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12499 | for ncn_progname in objdump; do | |
12500 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12501 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12503 | $as_echo_n "checking for $ac_word... " >&6; } | |
12504 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12505 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12506 | else |
12507 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12508 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12509 | else | |
12510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12511 | for as_dir in $PATH | |
12512 | do | |
12513 | IFS=$as_save_IFS | |
12514 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12515 | for ac_exec_ext in '' $ac_executable_extensions; do |
12516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12517 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12519 | break 2 |
12520 | fi | |
12521 | done | |
5213506e RW |
12522 | done |
12523 | IFS=$as_save_IFS | |
278a7a38 AO |
12524 | |
12525 | fi | |
12526 | fi | |
12527 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12528 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12530 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12531 | else |
5213506e RW |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12533 | $as_echo "no" >&6; } | |
278a7a38 AO |
12534 | fi |
12535 | ||
5213506e | 12536 | |
278a7a38 AO |
12537 | done |
12538 | fi | |
12539 | ||
12540 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12541 | for ncn_progname in objdump; do |
5213506e RW |
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12543 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12544 | if test -x $with_build_time_tools/${ncn_progname}; then |
12545 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12547 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12548 | break |
12549 | else | |
5213506e RW |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12551 | $as_echo "no" >&6; } | |
e8b05380 PB |
12552 | fi |
12553 | done | |
12554 | fi | |
12555 | ||
12556 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12557 | for ncn_progname in objdump; do | |
12558 | if test -n "$ncn_target_tool_prefix"; then | |
12559 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12560 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12562 | $as_echo_n "checking for $ac_word... " >&6; } | |
12563 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12564 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12565 | else |
12566 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12567 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12568 | else | |
1c710c3c DJ |
12569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12570 | for as_dir in $PATH | |
12571 | do | |
12572 | IFS=$as_save_IFS | |
12573 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12574 | for ac_exec_ext in '' $ac_executable_extensions; do |
12575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12576 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12578 | break 2 |
12579 | fi | |
12580 | done | |
5213506e RW |
12581 | done |
12582 | IFS=$as_save_IFS | |
1c710c3c | 12583 | |
d739199a DJ |
12584 | fi |
12585 | fi | |
1c710c3c | 12586 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12587 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12589 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12590 | else |
5213506e RW |
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12592 | $as_echo "no" >&6; } | |
d739199a DJ |
12593 | fi |
12594 | ||
5213506e | 12595 | |
e8b05380 PB |
12596 | fi |
12597 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12598 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12599 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12601 | $as_echo_n "checking for $ac_word... " >&6; } | |
12602 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12603 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12604 | else |
12605 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12606 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12607 | else | |
1c710c3c DJ |
12608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12609 | for as_dir in $PATH | |
12610 | do | |
12611 | IFS=$as_save_IFS | |
12612 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12613 | for ac_exec_ext in '' $ac_executable_extensions; do |
12614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12615 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12617 | break 2 |
12618 | fi | |
12619 | done | |
5213506e RW |
12620 | done |
12621 | IFS=$as_save_IFS | |
1c710c3c | 12622 | |
d739199a DJ |
12623 | fi |
12624 | fi | |
1c710c3c | 12625 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12626 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12628 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12629 | else |
5213506e RW |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12631 | $as_echo "no" >&6; } | |
d739199a | 12632 | fi |
1c710c3c | 12633 | |
5213506e | 12634 | |
e8b05380 PB |
12635 | fi |
12636 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12637 | done | |
12638 | fi | |
1c710c3c | 12639 | |
d739199a DJ |
12640 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12641 | set dummy objdump | |
12642 | if test $build = $target ; then | |
12643 | OBJDUMP_FOR_TARGET="$2" | |
12644 | else | |
12645 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12646 | fi | |
1c00b503 PB |
12647 | else |
12648 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12649 | fi |
12650 | ||
d1f8db0c PB |
12651 | else |
12652 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12653 | fi |
12654 | ||
12655 | ||
12656 | ||
12657 | ||
12658 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12659 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12661 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12662 | if test -x $with_build_time_tools/ranlib; then |
12663 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12664 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12666 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 12667 | else |
5213506e RW |
12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12669 | $as_echo "no" >&6; } | |
d1f8db0c | 12670 | fi |
e8b05380 PB |
12671 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12672 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
12673 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12674 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
12675 | fi |
12676 | fi | |
3e19841a | 12677 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12678 | # Extract the first word of "ranlib", so it can be a program name with args. |
12679 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
12680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12681 | $as_echo_n "checking for $ac_word... " >&6; } | |
12682 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12683 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12684 | else |
1c710c3c DJ |
12685 | case $RANLIB_FOR_TARGET in |
12686 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12687 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12688 | ;; | |
e8b05380 | 12689 | *) |
1c710c3c DJ |
12690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12691 | for as_dir in $gcc_cv_tool_dirs | |
12692 | do | |
12693 | IFS=$as_save_IFS | |
12694 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12695 | for ac_exec_ext in '' $ac_executable_extensions; do |
12696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12697 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12699 | break 2 |
12700 | fi | |
12701 | done | |
5213506e RW |
12702 | done |
12703 | IFS=$as_save_IFS | |
1c710c3c | 12704 | |
e8b05380 PB |
12705 | ;; |
12706 | esac | |
12707 | fi | |
1c710c3c | 12708 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 12709 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12711 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 12712 | else |
5213506e RW |
12713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12714 | $as_echo "no" >&6; } | |
e8b05380 PB |
12715 | fi |
12716 | ||
5213506e | 12717 | |
e8b05380 PB |
12718 | fi |
12719 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
12720 | |
12721 | ||
12722 | if test -n "$RANLIB_FOR_TARGET"; then | |
12723 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12724 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12725 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12726 | fi | |
12727 | ||
12728 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12729 | for ncn_progname in ranlib; do | |
12730 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12731 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12733 | $as_echo_n "checking for $ac_word... " >&6; } | |
12734 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12735 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12736 | else |
12737 | if test -n "$RANLIB_FOR_TARGET"; then | |
12738 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12739 | else | |
12740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12741 | for as_dir in $PATH | |
12742 | do | |
12743 | IFS=$as_save_IFS | |
12744 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12745 | for ac_exec_ext in '' $ac_executable_extensions; do |
12746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12747 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12749 | break 2 |
12750 | fi | |
12751 | done | |
5213506e RW |
12752 | done |
12753 | IFS=$as_save_IFS | |
278a7a38 AO |
12754 | |
12755 | fi | |
12756 | fi | |
12757 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12758 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12760 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 12761 | else |
5213506e RW |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12763 | $as_echo "no" >&6; } | |
278a7a38 AO |
12764 | fi |
12765 | ||
5213506e | 12766 | |
278a7a38 AO |
12767 | done |
12768 | fi | |
12769 | ||
12770 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12771 | for ncn_progname in ranlib; do |
5213506e RW |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12773 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12774 | if test -x $with_build_time_tools/${ncn_progname}; then |
12775 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12777 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12778 | break |
12779 | else | |
5213506e RW |
12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12781 | $as_echo "no" >&6; } | |
e8b05380 PB |
12782 | fi |
12783 | done | |
12784 | fi | |
12785 | ||
12786 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12787 | for ncn_progname in ranlib; do | |
12788 | if test -n "$ncn_target_tool_prefix"; then | |
12789 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 12790 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12792 | $as_echo_n "checking for $ac_word... " >&6; } | |
12793 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12794 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12795 | else |
4de997d1 PB |
12796 | if test -n "$RANLIB_FOR_TARGET"; then |
12797 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12798 | else |
1c710c3c DJ |
12799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12800 | for as_dir in $PATH | |
12801 | do | |
12802 | IFS=$as_save_IFS | |
12803 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12804 | for ac_exec_ext in '' $ac_executable_extensions; do |
12805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12806 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12808 | break 2 |
12809 | fi | |
12810 | done | |
5213506e RW |
12811 | done |
12812 | IFS=$as_save_IFS | |
1c710c3c | 12813 | |
ca9f4b81 AO |
12814 | fi |
12815 | fi | |
1c710c3c | 12816 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 12817 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12819 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12820 | else |
5213506e RW |
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12822 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12823 | fi |
12824 | ||
5213506e | 12825 | |
e8b05380 PB |
12826 | fi |
12827 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12828 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12829 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12831 | $as_echo_n "checking for $ac_word... " >&6; } | |
12832 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12833 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12834 | else |
2693c0b0 PB |
12835 | if test -n "$RANLIB_FOR_TARGET"; then |
12836 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12837 | else |
1c710c3c DJ |
12838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12839 | for as_dir in $PATH | |
12840 | do | |
12841 | IFS=$as_save_IFS | |
12842 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12843 | for ac_exec_ext in '' $ac_executable_extensions; do |
12844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12845 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12847 | break 2 |
12848 | fi | |
12849 | done | |
5213506e RW |
12850 | done |
12851 | IFS=$as_save_IFS | |
1c710c3c | 12852 | |
ca9f4b81 AO |
12853 | fi |
12854 | fi | |
1c710c3c | 12855 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 12856 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12858 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12859 | else |
5213506e RW |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12861 | $as_echo "no" >&6; } | |
ca9f4b81 | 12862 | fi |
1c710c3c | 12863 | |
5213506e | 12864 | |
e8b05380 PB |
12865 | fi |
12866 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12867 | done | |
12868 | fi | |
1c710c3c | 12869 | |
e8b05380 PB |
12870 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12871 | set dummy ranlib | |
12872 | if test $build = $target ; then | |
12873 | RANLIB_FOR_TARGET="$2" | |
12874 | else | |
12875 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 12876 | fi |
1c00b503 PB |
12877 | else |
12878 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 12879 | fi |
2693c0b0 | 12880 | |
d1f8db0c PB |
12881 | else |
12882 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
12883 | fi |
12884 | ||
e8b05380 PB |
12885 | |
12886 | ||
12887 | ||
e7a82751 RM |
12888 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12889 | if test -n "$with_build_time_tools"; then | |
12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12891 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12892 | if test -x $with_build_time_tools/readelf; then | |
12893 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12894 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12896 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12897 | else | |
12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12899 | $as_echo "no" >&6; } | |
12900 | fi | |
12901 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12902 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12903 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12904 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12905 | fi | |
12906 | fi | |
12907 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12908 | # Extract the first word of "readelf", so it can be a program name with args. | |
12909 | set dummy readelf; ac_word=$2 | |
12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12911 | $as_echo_n "checking for $ac_word... " >&6; } | |
12912 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12913 | $as_echo_n "(cached) " >&6 | |
12914 | else | |
12915 | case $READELF_FOR_TARGET in | |
12916 | [\\/]* | ?:[\\/]*) | |
12917 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12918 | ;; | |
12919 | *) | |
12920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12921 | for as_dir in $gcc_cv_tool_dirs | |
12922 | do | |
12923 | IFS=$as_save_IFS | |
12924 | test -z "$as_dir" && as_dir=. | |
12925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12927 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12929 | break 2 | |
12930 | fi | |
12931 | done | |
12932 | done | |
12933 | IFS=$as_save_IFS | |
12934 | ||
12935 | ;; | |
12936 | esac | |
12937 | fi | |
12938 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12939 | if test -n "$READELF_FOR_TARGET"; then | |
12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12941 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12942 | else | |
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12944 | $as_echo "no" >&6; } | |
12945 | fi | |
12946 | ||
12947 | ||
12948 | fi | |
12949 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12950 | ||
12951 | ||
12952 | if test -n "$READELF_FOR_TARGET"; then | |
12953 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12954 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12955 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12956 | fi | |
12957 | ||
12958 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12959 | for ncn_progname in readelf; do | |
12960 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12961 | set dummy ${ncn_progname}; ac_word=$2 | |
12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12963 | $as_echo_n "checking for $ac_word... " >&6; } | |
12964 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12965 | $as_echo_n "(cached) " >&6 | |
12966 | else | |
12967 | if test -n "$READELF_FOR_TARGET"; then | |
12968 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12969 | else | |
12970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12971 | for as_dir in $PATH | |
12972 | do | |
12973 | IFS=$as_save_IFS | |
12974 | test -z "$as_dir" && as_dir=. | |
12975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12977 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12979 | break 2 | |
12980 | fi | |
12981 | done | |
12982 | done | |
12983 | IFS=$as_save_IFS | |
12984 | ||
12985 | fi | |
12986 | fi | |
12987 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12988 | if test -n "$READELF_FOR_TARGET"; then | |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12990 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12991 | else | |
12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12993 | $as_echo "no" >&6; } | |
12994 | fi | |
12995 | ||
12996 | ||
12997 | done | |
12998 | fi | |
12999 | ||
13000 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13001 | for ncn_progname in readelf; do | |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13003 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13004 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13005 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13007 | $as_echo "yes" >&6; } | |
13008 | break | |
13009 | else | |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13011 | $as_echo "no" >&6; } | |
13012 | fi | |
13013 | done | |
13014 | fi | |
13015 | ||
13016 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13017 | for ncn_progname in readelf; do | |
13018 | if test -n "$ncn_target_tool_prefix"; then | |
13019 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13020 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13022 | $as_echo_n "checking for $ac_word... " >&6; } | |
13023 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13024 | $as_echo_n "(cached) " >&6 | |
13025 | else | |
13026 | if test -n "$READELF_FOR_TARGET"; then | |
13027 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13028 | else | |
13029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13030 | for as_dir in $PATH | |
13031 | do | |
13032 | IFS=$as_save_IFS | |
13033 | test -z "$as_dir" && as_dir=. | |
13034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13036 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13038 | break 2 | |
13039 | fi | |
13040 | done | |
13041 | done | |
13042 | IFS=$as_save_IFS | |
13043 | ||
13044 | fi | |
13045 | fi | |
13046 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13047 | if test -n "$READELF_FOR_TARGET"; then | |
13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13049 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13050 | else | |
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13052 | $as_echo "no" >&6; } | |
13053 | fi | |
13054 | ||
13055 | ||
13056 | fi | |
13057 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13058 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13059 | set dummy ${ncn_progname}; ac_word=$2 | |
13060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13061 | $as_echo_n "checking for $ac_word... " >&6; } | |
13062 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13063 | $as_echo_n "(cached) " >&6 | |
13064 | else | |
13065 | if test -n "$READELF_FOR_TARGET"; then | |
13066 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13067 | else | |
13068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13069 | for as_dir in $PATH | |
13070 | do | |
13071 | IFS=$as_save_IFS | |
13072 | test -z "$as_dir" && as_dir=. | |
13073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13075 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13077 | break 2 | |
13078 | fi | |
13079 | done | |
13080 | done | |
13081 | IFS=$as_save_IFS | |
13082 | ||
13083 | fi | |
13084 | fi | |
13085 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13086 | if test -n "$READELF_FOR_TARGET"; then | |
13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13088 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13089 | else | |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13091 | $as_echo "no" >&6; } | |
13092 | fi | |
13093 | ||
13094 | ||
13095 | fi | |
13096 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13097 | done | |
13098 | fi | |
13099 | ||
13100 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13101 | set dummy readelf | |
13102 | if test $build = $target ; then | |
13103 | READELF_FOR_TARGET="$2" | |
13104 | else | |
13105 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13106 | fi | |
13107 | else | |
13108 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13109 | fi | |
13110 | ||
13111 | else | |
13112 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13113 | fi | |
13114 | ||
13115 | ||
13116 | ||
13117 | ||
e8b05380 PB |
13118 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13119 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13121 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13122 | if test -x $with_build_time_tools/strip; then |
13123 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13124 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13126 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 13127 | else |
5213506e RW |
13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13129 | $as_echo "no" >&6; } | |
d1f8db0c | 13130 | fi |
e8b05380 PB |
13131 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13132 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
13133 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13134 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
13135 | fi |
13136 | fi | |
3e19841a | 13137 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13138 | # Extract the first word of "strip", so it can be a program name with args. |
13139 | set dummy strip; ac_word=$2 | |
5213506e RW |
13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13141 | $as_echo_n "checking for $ac_word... " >&6; } | |
13142 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13143 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13144 | else |
1c710c3c DJ |
13145 | case $STRIP_FOR_TARGET in |
13146 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13147 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13148 | ;; | |
e8b05380 | 13149 | *) |
1c710c3c DJ |
13150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13151 | for as_dir in $gcc_cv_tool_dirs | |
13152 | do | |
13153 | IFS=$as_save_IFS | |
13154 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13155 | for ac_exec_ext in '' $ac_executable_extensions; do |
13156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13157 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13159 | break 2 |
13160 | fi | |
13161 | done | |
5213506e RW |
13162 | done |
13163 | IFS=$as_save_IFS | |
1c710c3c | 13164 | |
e8b05380 PB |
13165 | ;; |
13166 | esac | |
13167 | fi | |
1c710c3c | 13168 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 13169 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13171 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 13172 | else |
5213506e RW |
13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13174 | $as_echo "no" >&6; } | |
e8b05380 PB |
13175 | fi |
13176 | ||
5213506e | 13177 | |
e8b05380 PB |
13178 | fi |
13179 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
13180 | |
13181 | ||
13182 | if test -n "$STRIP_FOR_TARGET"; then | |
13183 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13184 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13185 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13186 | fi | |
13187 | ||
13188 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13189 | for ncn_progname in strip; do | |
13190 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13191 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13193 | $as_echo_n "checking for $ac_word... " >&6; } | |
13194 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13195 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
13196 | else |
13197 | if test -n "$STRIP_FOR_TARGET"; then | |
13198 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13199 | else | |
13200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13201 | for as_dir in $PATH | |
13202 | do | |
13203 | IFS=$as_save_IFS | |
13204 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13205 | for ac_exec_ext in '' $ac_executable_extensions; do |
13206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 13207 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13209 | break 2 |
13210 | fi | |
13211 | done | |
5213506e RW |
13212 | done |
13213 | IFS=$as_save_IFS | |
278a7a38 AO |
13214 | |
13215 | fi | |
13216 | fi | |
13217 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13218 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13220 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 13221 | else |
5213506e RW |
13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13223 | $as_echo "no" >&6; } | |
278a7a38 AO |
13224 | fi |
13225 | ||
5213506e | 13226 | |
278a7a38 AO |
13227 | done |
13228 | fi | |
13229 | ||
13230 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13231 | for ncn_progname in strip; do |
5213506e RW |
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13233 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13234 | if test -x $with_build_time_tools/${ncn_progname}; then |
13235 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13237 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13238 | break |
13239 | else | |
5213506e RW |
13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13241 | $as_echo "no" >&6; } | |
e8b05380 PB |
13242 | fi |
13243 | done | |
13244 | fi | |
13245 | ||
13246 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13247 | for ncn_progname in strip; do | |
13248 | if test -n "$ncn_target_tool_prefix"; then | |
13249 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13250 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13252 | $as_echo_n "checking for $ac_word... " >&6; } | |
13253 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13254 | $as_echo_n "(cached) " >&6 | |
af71363e AS |
13255 | else |
13256 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
13257 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13258 | else | |
13259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13260 | for as_dir in $PATH | |
13261 | do | |
13262 | IFS=$as_save_IFS | |
13263 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13264 | for ac_exec_ext in '' $ac_executable_extensions; do |
13265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13266 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13268 | break 2 |
13269 | fi | |
13270 | done | |
5213506e RW |
13271 | done |
13272 | IFS=$as_save_IFS | |
1c710c3c | 13273 | |
040b1c5a GK |
13274 | fi |
13275 | fi | |
1c710c3c | 13276 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13277 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13279 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13280 | else |
5213506e RW |
13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13282 | $as_echo "no" >&6; } | |
040b1c5a GK |
13283 | fi |
13284 | ||
5213506e | 13285 | |
e8b05380 PB |
13286 | fi |
13287 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13288 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13289 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13291 | $as_echo_n "checking for $ac_word... " >&6; } | |
13292 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13293 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
13294 | else |
13295 | if test -n "$STRIP_FOR_TARGET"; then | |
13296 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13297 | else | |
1c710c3c DJ |
13298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13299 | for as_dir in $PATH | |
13300 | do | |
13301 | IFS=$as_save_IFS | |
13302 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13303 | for ac_exec_ext in '' $ac_executable_extensions; do |
13304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13305 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13307 | break 2 |
13308 | fi | |
13309 | done | |
5213506e RW |
13310 | done |
13311 | IFS=$as_save_IFS | |
1c710c3c | 13312 | |
040b1c5a GK |
13313 | fi |
13314 | fi | |
1c710c3c | 13315 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13316 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13318 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13319 | else |
5213506e RW |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13321 | $as_echo "no" >&6; } | |
040b1c5a | 13322 | fi |
1c710c3c | 13323 | |
5213506e | 13324 | |
e8b05380 PB |
13325 | fi |
13326 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13327 | done | |
13328 | fi | |
1c710c3c | 13329 | |
040b1c5a GK |
13330 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13331 | set dummy strip | |
13332 | if test $build = $target ; then | |
13333 | STRIP_FOR_TARGET="$2" | |
13334 | else | |
13335 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13336 | fi | |
1c00b503 PB |
13337 | else |
13338 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
13339 | fi |
13340 | ||
d1f8db0c PB |
13341 | else |
13342 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
13343 | fi |
13344 | ||
13345 | ||
13346 | ||
13347 | ||
13348 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13349 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13351 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13352 | if test -x $with_build_time_tools/windres; then |
13353 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13354 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13356 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 13357 | else |
5213506e RW |
13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13359 | $as_echo "no" >&6; } | |
d1f8db0c | 13360 | fi |
e8b05380 PB |
13361 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13362 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
13363 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13364 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
13365 | fi |
13366 | fi | |
3e19841a | 13367 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13368 | # Extract the first word of "windres", so it can be a program name with args. |
13369 | set dummy windres; ac_word=$2 | |
5213506e RW |
13370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13371 | $as_echo_n "checking for $ac_word... " >&6; } | |
13372 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13373 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13374 | else |
1c710c3c DJ |
13375 | case $WINDRES_FOR_TARGET in |
13376 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13377 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13378 | ;; | |
e8b05380 | 13379 | *) |
1c710c3c DJ |
13380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13381 | for as_dir in $gcc_cv_tool_dirs | |
13382 | do | |
13383 | IFS=$as_save_IFS | |
13384 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13385 | for ac_exec_ext in '' $ac_executable_extensions; do |
13386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13387 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13389 | break 2 |
13390 | fi | |
13391 | done | |
5213506e RW |
13392 | done |
13393 | IFS=$as_save_IFS | |
1c710c3c | 13394 | |
e8b05380 PB |
13395 | ;; |
13396 | esac | |
13397 | fi | |
1c710c3c | 13398 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 13399 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13401 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 13402 | else |
5213506e RW |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13404 | $as_echo "no" >&6; } | |
e8b05380 PB |
13405 | fi |
13406 | ||
5213506e | 13407 | |
e8b05380 PB |
13408 | fi |
13409 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
13410 | |
13411 | ||
13412 | if test -n "$WINDRES_FOR_TARGET"; then | |
13413 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13414 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13415 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13416 | fi | |
13417 | ||
13418 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13419 | for ncn_progname in windres; do | |
13420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13421 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13423 | $as_echo_n "checking for $ac_word... " >&6; } | |
13424 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13425 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
13426 | else |
13427 | if test -n "$WINDRES_FOR_TARGET"; then | |
13428 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13429 | else | |
13430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13431 | for as_dir in $PATH | |
13432 | do | |
13433 | IFS=$as_save_IFS | |
13434 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13435 | for ac_exec_ext in '' $ac_executable_extensions; do |
13436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 13437 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13439 | break 2 |
13440 | fi | |
13441 | done | |
5213506e RW |
13442 | done |
13443 | IFS=$as_save_IFS | |
278a7a38 AO |
13444 | |
13445 | fi | |
13446 | fi | |
13447 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13448 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13450 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 13451 | else |
5213506e RW |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13453 | $as_echo "no" >&6; } | |
278a7a38 AO |
13454 | fi |
13455 | ||
5213506e | 13456 | |
278a7a38 AO |
13457 | done |
13458 | fi | |
13459 | ||
13460 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13461 | for ncn_progname in windres; do |
5213506e RW |
13462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13463 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13464 | if test -x $with_build_time_tools/${ncn_progname}; then |
13465 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13467 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13468 | break |
13469 | else | |
5213506e RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13471 | $as_echo "no" >&6; } | |
e8b05380 PB |
13472 | fi |
13473 | done | |
13474 | fi | |
13475 | ||
13476 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13477 | for ncn_progname in windres; do | |
13478 | if test -n "$ncn_target_tool_prefix"; then | |
13479 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13480 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13482 | $as_echo_n "checking for $ac_word... " >&6; } | |
13483 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13484 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13485 | else |
4de997d1 PB |
13486 | if test -n "$WINDRES_FOR_TARGET"; then |
13487 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13488 | else |
1c710c3c DJ |
13489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13490 | for as_dir in $PATH | |
13491 | do | |
13492 | IFS=$as_save_IFS | |
13493 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13494 | for ac_exec_ext in '' $ac_executable_extensions; do |
13495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13496 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13498 | break 2 |
13499 | fi | |
13500 | done | |
5213506e RW |
13501 | done |
13502 | IFS=$as_save_IFS | |
1c710c3c | 13503 | |
ca9f4b81 AO |
13504 | fi |
13505 | fi | |
1c710c3c | 13506 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 13507 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13509 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13510 | else |
5213506e RW |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13512 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13513 | fi |
13514 | ||
5213506e | 13515 | |
e8b05380 PB |
13516 | fi |
13517 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13518 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13519 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13521 | $as_echo_n "checking for $ac_word... " >&6; } | |
13522 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13523 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13524 | else |
2693c0b0 PB |
13525 | if test -n "$WINDRES_FOR_TARGET"; then |
13526 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13527 | else |
1c710c3c DJ |
13528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13529 | for as_dir in $PATH | |
13530 | do | |
13531 | IFS=$as_save_IFS | |
13532 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13533 | for ac_exec_ext in '' $ac_executable_extensions; do |
13534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13535 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13537 | break 2 |
13538 | fi | |
13539 | done | |
5213506e RW |
13540 | done |
13541 | IFS=$as_save_IFS | |
1c710c3c | 13542 | |
ca9f4b81 AO |
13543 | fi |
13544 | fi | |
1c710c3c | 13545 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 13546 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13548 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13549 | else |
5213506e RW |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13551 | $as_echo "no" >&6; } | |
ca9f4b81 | 13552 | fi |
1c710c3c | 13553 | |
5213506e | 13554 | |
e8b05380 PB |
13555 | fi |
13556 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13557 | done | |
13558 | fi | |
1c710c3c | 13559 | |
2693c0b0 PB |
13560 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13561 | set dummy windres | |
13562 | if test $build = $target ; then | |
13563 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 13564 | else |
2693c0b0 | 13565 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13566 | fi |
1c00b503 PB |
13567 | else |
13568 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
13569 | fi |
13570 | ||
d1f8db0c PB |
13571 | else |
13572 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
13573 | fi |
13574 | ||
4977bab6 | 13575 | |
901119ae KT |
13576 | |
13577 | ||
13578 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13579 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13581 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
13582 | if test -x $with_build_time_tools/windmc; then |
13583 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13584 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13586 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13587 | else |
5213506e RW |
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13589 | $as_echo "no" >&6; } | |
901119ae KT |
13590 | fi |
13591 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13592 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
13593 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13594 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
13595 | fi |
13596 | fi | |
13597 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13598 | # Extract the first word of "windmc", so it can be a program name with args. | |
13599 | set dummy windmc; ac_word=$2 | |
5213506e RW |
13600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13601 | $as_echo_n "checking for $ac_word... " >&6; } | |
13602 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13603 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13604 | else |
13605 | case $WINDMC_FOR_TARGET in | |
13606 | [\\/]* | ?:[\\/]*) | |
13607 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13608 | ;; | |
13609 | *) | |
13610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13611 | for as_dir in $gcc_cv_tool_dirs | |
13612 | do | |
13613 | IFS=$as_save_IFS | |
13614 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13615 | for ac_exec_ext in '' $ac_executable_extensions; do |
13616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13617 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13619 | break 2 |
13620 | fi | |
13621 | done | |
5213506e RW |
13622 | done |
13623 | IFS=$as_save_IFS | |
901119ae KT |
13624 | |
13625 | ;; | |
13626 | esac | |
13627 | fi | |
13628 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 13629 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13631 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13632 | else |
5213506e RW |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13634 | $as_echo "no" >&6; } | |
901119ae KT |
13635 | fi |
13636 | ||
5213506e | 13637 | |
901119ae KT |
13638 | fi |
13639 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13640 | ||
13641 | ||
13642 | if test -n "$WINDMC_FOR_TARGET"; then | |
13643 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13644 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13645 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13646 | fi | |
13647 | ||
13648 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13649 | for ncn_progname in windmc; do | |
13650 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13651 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13653 | $as_echo_n "checking for $ac_word... " >&6; } | |
13654 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13655 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13656 | else |
13657 | if test -n "$WINDMC_FOR_TARGET"; then | |
13658 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13659 | else | |
13660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13661 | for as_dir in $PATH | |
13662 | do | |
13663 | IFS=$as_save_IFS | |
13664 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13665 | for ac_exec_ext in '' $ac_executable_extensions; do |
13666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13667 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13669 | break 2 |
13670 | fi | |
13671 | done | |
5213506e RW |
13672 | done |
13673 | IFS=$as_save_IFS | |
901119ae KT |
13674 | |
13675 | fi | |
13676 | fi | |
13677 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13678 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13680 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13681 | else |
5213506e RW |
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13683 | $as_echo "no" >&6; } | |
901119ae KT |
13684 | fi |
13685 | ||
5213506e | 13686 | |
901119ae KT |
13687 | done |
13688 | fi | |
13689 | ||
13690 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13691 | for ncn_progname in windmc; do | |
5213506e RW |
13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13693 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
13694 | if test -x $with_build_time_tools/${ncn_progname}; then |
13695 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13697 | $as_echo "yes" >&6; } | |
901119ae KT |
13698 | break |
13699 | else | |
5213506e RW |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13701 | $as_echo "no" >&6; } | |
901119ae KT |
13702 | fi |
13703 | done | |
13704 | fi | |
13705 | ||
13706 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13707 | for ncn_progname in windmc; do | |
13708 | if test -n "$ncn_target_tool_prefix"; then | |
13709 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13710 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13712 | $as_echo_n "checking for $ac_word... " >&6; } | |
13713 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13714 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13715 | else |
13716 | if test -n "$WINDMC_FOR_TARGET"; then | |
13717 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13718 | else | |
13719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13720 | for as_dir in $PATH | |
13721 | do | |
13722 | IFS=$as_save_IFS | |
13723 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13724 | for ac_exec_ext in '' $ac_executable_extensions; do |
13725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13726 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13728 | break 2 |
13729 | fi | |
13730 | done | |
5213506e RW |
13731 | done |
13732 | IFS=$as_save_IFS | |
901119ae KT |
13733 | |
13734 | fi | |
13735 | fi | |
13736 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13737 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13739 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13740 | else |
5213506e RW |
13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13742 | $as_echo "no" >&6; } | |
901119ae KT |
13743 | fi |
13744 | ||
5213506e | 13745 | |
901119ae KT |
13746 | fi |
13747 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13748 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13749 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13751 | $as_echo_n "checking for $ac_word... " >&6; } | |
13752 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13753 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13754 | else |
13755 | if test -n "$WINDMC_FOR_TARGET"; then | |
13756 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13757 | else | |
13758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13759 | for as_dir in $PATH | |
13760 | do | |
13761 | IFS=$as_save_IFS | |
13762 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13763 | for ac_exec_ext in '' $ac_executable_extensions; do |
13764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13765 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13767 | break 2 |
13768 | fi | |
13769 | done | |
5213506e RW |
13770 | done |
13771 | IFS=$as_save_IFS | |
901119ae KT |
13772 | |
13773 | fi | |
13774 | fi | |
13775 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13776 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13778 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13779 | else |
5213506e RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13781 | $as_echo "no" >&6; } | |
901119ae KT |
13782 | fi |
13783 | ||
5213506e | 13784 | |
901119ae KT |
13785 | fi |
13786 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13787 | done | |
13788 | fi | |
13789 | ||
13790 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13791 | set dummy windmc | |
13792 | if test $build = $target ; then | |
13793 | WINDMC_FOR_TARGET="$2" | |
13794 | else | |
13795 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13796 | fi | |
1c00b503 PB |
13797 | else |
13798 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
13799 | fi |
13800 | ||
13801 | else | |
13802 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13803 | fi | |
13804 | ||
13805 | ||
2abefe3d PB |
13806 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13807 | ||
5213506e RW |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13809 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 13810 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13811 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13812 | # We already found the complete path | |
172e41aa | 13813 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13815 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13816 | else |
13817 | # Canadian cross, just use what we found | |
5213506e RW |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13819 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13820 | fi |
2abefe3d PB |
13821 | else |
13822 | ok=yes | |
13823 | case " ${configdirs} " in | |
13824 | *" binutils "*) ;; | |
13825 | *) ok=no ;; | |
13826 | esac | |
1c710c3c | 13827 | |
2abefe3d PB |
13828 | if test $ok = yes; then |
13829 | # An in-tree tool is available and we can use it | |
13830 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13832 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13833 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13834 | # We already found the complete path | |
172e41aa | 13835 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13837 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13838 | elif test "x$target" = "x$host"; then |
13839 | # We can use an host tool | |
13840 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13842 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13843 | else |
13844 | # We need a cross tool | |
5213506e RW |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13846 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13847 | fi |
13848 | fi | |
0b0dc272 | 13849 | |
5213506e RW |
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13851 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 13852 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13853 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13854 | # We already found the complete path | |
172e41aa | 13855 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13857 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13858 | else |
13859 | # Canadian cross, just use what we found | |
5213506e RW |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13861 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13862 | fi |
2abefe3d PB |
13863 | else |
13864 | ok=yes | |
13865 | case " ${configdirs} " in | |
13866 | *" gas "*) ;; | |
13867 | *) ok=no ;; | |
13868 | esac | |
1c710c3c | 13869 | |
2abefe3d PB |
13870 | if test $ok = yes; then |
13871 | # An in-tree tool is available and we can use it | |
13872 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13874 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13875 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13876 | # We already found the complete path | |
172e41aa | 13877 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13879 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13880 | elif test "x$target" = "x$host"; then |
13881 | # We can use an host tool | |
13882 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13884 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13885 | else |
13886 | # We need a cross tool | |
5213506e RW |
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13888 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13889 | fi |
13890 | fi | |
0b0dc272 | 13891 | |
5213506e RW |
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13893 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 13894 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13895 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13896 | # We already found the complete path | |
172e41aa | 13897 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13899 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13900 | else |
13901 | # Canadian cross, just use what we found | |
5213506e RW |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13903 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13904 | fi |
2abefe3d PB |
13905 | else |
13906 | ok=yes | |
13907 | case " ${configdirs} " in | |
13908 | *" gcc "*) ;; | |
13909 | *) ok=no ;; | |
13910 | esac | |
1c710c3c | 13911 | |
2abefe3d PB |
13912 | if test $ok = yes; then |
13913 | # An in-tree tool is available and we can use it | |
13914 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13916 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13917 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13918 | # We already found the complete path | |
172e41aa | 13919 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13921 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13922 | elif test "x$target" = "x$host"; then |
13923 | # We can use an host tool | |
13924 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13926 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13927 | else |
13928 | # We need a cross tool | |
5213506e RW |
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13930 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13931 | fi |
13932 | fi | |
0b0dc272 | 13933 | |
5213506e RW |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13935 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 13936 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13937 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13938 | # We already found the complete path | |
172e41aa | 13939 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13941 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13942 | else |
13943 | # Canadian cross, just use what we found | |
5213506e RW |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13945 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13946 | fi |
2abefe3d PB |
13947 | else |
13948 | ok=yes | |
13949 | case " ${configdirs} " in | |
13950 | *" gcc "*) ;; | |
13951 | *) ok=no ;; | |
13952 | esac | |
13953 | case ,${enable_languages}, in | |
13954 | *,c++,*) ;; | |
13955 | *) ok=no ;; | |
13956 | esac | |
13957 | if test $ok = yes; then | |
13958 | # An in-tree tool is available and we can use it | |
2077db1b | 13959 | 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 |
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13961 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13962 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13963 | # We already found the complete path | |
172e41aa | 13964 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13966 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13967 | elif test "x$target" = "x$host"; then |
13968 | # We can use an host tool | |
13969 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13971 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13972 | else |
13973 | # We need a cross tool | |
5213506e RW |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13975 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13976 | fi |
13977 | fi | |
0b0dc272 | 13978 | |
5213506e RW |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13980 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 13981 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13982 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13983 | # We already found the complete path | |
172e41aa | 13984 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13986 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13987 | else |
13988 | # Canadian cross, just use what we found | |
5213506e RW |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13990 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13991 | fi |
2abefe3d PB |
13992 | else |
13993 | ok=yes | |
13994 | case " ${configdirs} " in | |
13995 | *" gcc "*) ;; | |
13996 | *) ok=no ;; | |
13997 | esac | |
13998 | case ,${enable_languages}, in | |
13999 | *,c++,*) ;; | |
14000 | *) ok=no ;; | |
14001 | esac | |
14002 | if test $ok = yes; then | |
14003 | # An in-tree tool is available and we can use it | |
2077db1b | 14004 | 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 |
14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14006 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14007 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14008 | # We already found the complete path | |
172e41aa | 14009 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14011 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14012 | elif test "x$target" = "x$host"; then |
14013 | # We can use an host tool | |
14014 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14016 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14017 | else |
14018 | # We need a cross tool | |
5213506e RW |
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14020 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14021 | fi |
14022 | fi | |
0b0dc272 | 14023 | |
5213506e RW |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14025 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 14026 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14027 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14028 | # We already found the complete path | |
172e41aa | 14029 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14031 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14032 | else |
14033 | # Canadian cross, just use what we found | |
5213506e RW |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14035 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14036 | fi |
2abefe3d PB |
14037 | else |
14038 | ok=yes | |
14039 | case " ${configdirs} " in | |
14040 | *" binutils "*) ;; | |
14041 | *) ok=no ;; | |
14042 | esac | |
1c710c3c | 14043 | |
2abefe3d PB |
14044 | if test $ok = yes; then |
14045 | # An in-tree tool is available and we can use it | |
14046 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14048 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14049 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14050 | # We already found the complete path | |
172e41aa | 14051 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14053 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14054 | elif test "x$target" = "x$host"; then |
14055 | # We can use an host tool | |
14056 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14058 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14059 | else |
14060 | # We need a cross tool | |
5213506e RW |
14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14062 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14063 | fi |
14064 | fi | |
0b0dc272 | 14065 | |
5213506e RW |
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14067 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 14068 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14069 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14070 | # We already found the complete path | |
172e41aa | 14071 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14073 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14074 | else |
14075 | # Canadian cross, just use what we found | |
5213506e RW |
14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14077 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14078 | fi |
2abefe3d PB |
14079 | else |
14080 | ok=yes | |
14081 | case " ${configdirs} " in | |
14082 | *" gcc "*) ;; | |
14083 | *) ok=no ;; | |
14084 | esac | |
1c710c3c | 14085 | |
2abefe3d PB |
14086 | if test $ok = yes; then |
14087 | # An in-tree tool is available and we can use it | |
14088 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14090 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14091 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14092 | # We already found the complete path | |
172e41aa | 14093 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14095 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14096 | elif test "x$target" = "x$host"; then |
14097 | # We can use an host tool | |
14098 | GCC_FOR_TARGET='$()' | |
5213506e RW |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14100 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14101 | else |
14102 | # We need a cross tool | |
5213506e RW |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14104 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14105 | fi |
14106 | fi | |
0b0dc272 | 14107 | |
5213506e RW |
14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14109 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 14110 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14111 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14112 | # We already found the complete path | |
172e41aa | 14113 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14115 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14116 | else |
14117 | # Canadian cross, just use what we found | |
5213506e RW |
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14119 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14120 | fi |
2abefe3d PB |
14121 | else |
14122 | ok=yes | |
14123 | case " ${configdirs} " in | |
14124 | *" gcc "*) ;; | |
14125 | *) ok=no ;; | |
14126 | esac | |
14127 | case ,${enable_languages}, in | |
14128 | *,fortran,*) ;; | |
14129 | *) ok=no ;; | |
14130 | esac | |
14131 | if test $ok = yes; then | |
14132 | # An in-tree tool is available and we can use it | |
14133 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14135 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14136 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14137 | # We already found the complete path | |
172e41aa | 14138 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14140 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14141 | elif test "x$target" = "x$host"; then |
14142 | # We can use an host tool | |
14143 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14145 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14146 | else |
14147 | # We need a cross tool | |
5213506e RW |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14149 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14150 | fi |
14151 | fi | |
0b0dc272 | 14152 | |
632e2a07 ILT |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14154 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14155 | if test "x${build}" != "x${host}" ; then | |
14156 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14157 | # We already found the complete path | |
14158 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14160 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14161 | else | |
14162 | # Canadian cross, just use what we found | |
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14164 | $as_echo "pre-installed" >&6; } | |
14165 | fi | |
14166 | else | |
14167 | ok=yes | |
14168 | case " ${configdirs} " in | |
14169 | *" gcc "*) ;; | |
14170 | *) ok=no ;; | |
14171 | esac | |
14172 | case ,${enable_languages}, in | |
14173 | *,go,*) ;; | |
14174 | *) ok=no ;; | |
14175 | esac | |
14176 | if test $ok = yes; then | |
14177 | # An in-tree tool is available and we can use it | |
14178 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14180 | $as_echo "just compiled" >&6; } | |
14181 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14182 | # We already found the complete path | |
14183 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14185 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14186 | elif test "x$target" = "x$host"; then | |
14187 | # We can use an host tool | |
14188 | GOC_FOR_TARGET='$(GOC)' | |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14190 | $as_echo "host tool" >&6; } | |
14191 | else | |
14192 | # We need a cross tool | |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14194 | $as_echo "pre-installed" >&6; } | |
14195 | fi | |
14196 | fi | |
14197 | ||
5213506e RW |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14199 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 14200 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14201 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14202 | # We already found the complete path | |
172e41aa | 14203 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14205 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14206 | else |
14207 | # Canadian cross, just use what we found | |
5213506e RW |
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14209 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14210 | fi |
2abefe3d PB |
14211 | else |
14212 | ok=yes | |
14213 | case " ${configdirs} " in | |
14214 | *" ld "*) ;; | |
14215 | *) ok=no ;; | |
14216 | esac | |
1c710c3c | 14217 | |
2abefe3d PB |
14218 | if test $ok = yes; then |
14219 | # An in-tree tool is available and we can use it | |
14220 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14222 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14223 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14224 | # We already found the complete path | |
172e41aa | 14225 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14227 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14228 | elif test "x$target" = "x$host"; then |
14229 | # We can use an host tool | |
14230 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14232 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14233 | else |
14234 | # We need a cross tool | |
5213506e RW |
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14236 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14237 | fi |
14238 | fi | |
0b0dc272 | 14239 | |
5213506e RW |
14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14241 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 14242 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14243 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14244 | # We already found the complete path | |
172e41aa | 14245 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14247 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14248 | else |
14249 | # Canadian cross, just use what we found | |
5213506e RW |
14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14251 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14252 | fi |
2abefe3d | 14253 | else |
e8b05380 PB |
14254 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14255 | # We already found the complete path | |
172e41aa | 14256 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14258 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 14259 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
14260 | # We can use an host tool |
14261 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14263 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14264 | else |
14265 | # We need a cross tool | |
5213506e RW |
14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14267 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14268 | fi |
14269 | fi | |
0b0dc272 | 14270 | |
5213506e RW |
14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14272 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 14273 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14274 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14275 | # We already found the complete path | |
172e41aa | 14276 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14278 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14279 | else |
14280 | # Canadian cross, just use what we found | |
5213506e RW |
14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14282 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14283 | fi |
2abefe3d PB |
14284 | else |
14285 | ok=yes | |
14286 | case " ${configdirs} " in | |
14287 | *" binutils "*) ;; | |
14288 | *) ok=no ;; | |
14289 | esac | |
1c710c3c | 14290 | |
2abefe3d PB |
14291 | if test $ok = yes; then |
14292 | # An in-tree tool is available and we can use it | |
14293 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
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$NM_FOR_TARGET" : "x/" > /dev/null; then |
14297 | # We already found the complete path | |
172e41aa | 14298 | ac_dir=`dirname $NM_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 | NM_FOR_TARGET='$(NM)' | |
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 | |
9bccfdf5 AP |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14314 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14315 | if test "x${build}" != "x${host}" ; then | |
14316 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14317 | # We already found the complete path | |
14318 | ac_dir=`dirname $OBJCOPY_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 | *" binutils "*) ;; | |
14330 | *) ok=no ;; | |
14331 | esac | |
14332 | ||
14333 | if test $ok = yes; then | |
14334 | # An in-tree tool is available and we can use it | |
14335 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14337 | $as_echo "just compiled" >&6; } | |
14338 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14339 | # We already found the complete path | |
14340 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14342 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14343 | elif test "x$target" = "x$host"; then | |
14344 | # We can use an host tool | |
ec8fd1c0 | 14345 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14347 | $as_echo "host tool" >&6; } | |
14348 | else | |
14349 | # We need a cross tool | |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14351 | $as_echo "pre-installed" >&6; } | |
14352 | fi | |
14353 | fi | |
14354 | ||
5213506e RW |
14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14356 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 14357 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14358 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14359 | # We already found the complete path | |
172e41aa | 14360 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14362 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14363 | else |
14364 | # Canadian cross, just use what we found | |
5213506e RW |
14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14366 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14367 | fi |
2abefe3d PB |
14368 | else |
14369 | ok=yes | |
14370 | case " ${configdirs} " in | |
14371 | *" binutils "*) ;; | |
14372 | *) ok=no ;; | |
14373 | esac | |
1c710c3c | 14374 | |
2abefe3d PB |
14375 | if test $ok = yes; then |
14376 | # An in-tree tool is available and we can use it | |
14377 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14379 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14380 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14381 | # We already found the complete path | |
172e41aa | 14382 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14384 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14385 | elif test "x$target" = "x$host"; then |
14386 | # We can use an host tool | |
14387 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14389 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14390 | else |
14391 | # We need a cross tool | |
5213506e RW |
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14393 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14394 | fi |
14395 | fi | |
0b0dc272 | 14396 | |
5213506e RW |
14397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14398 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 14399 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14400 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14401 | # We already found the complete path | |
172e41aa | 14402 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14404 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14405 | else |
14406 | # Canadian cross, just use what we found | |
5213506e RW |
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14408 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14409 | fi |
2abefe3d PB |
14410 | else |
14411 | ok=yes | |
14412 | case " ${configdirs} " in | |
14413 | *" binutils "*) ;; | |
14414 | *) ok=no ;; | |
14415 | esac | |
1c710c3c | 14416 | |
2abefe3d PB |
14417 | if test $ok = yes; then |
14418 | # An in-tree tool is available and we can use it | |
14419 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14421 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14422 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14423 | # We already found the complete path | |
172e41aa | 14424 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14426 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14427 | elif test "x$target" = "x$host"; then |
14428 | # We can use an host tool | |
14429 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14431 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14432 | else |
14433 | # We need a cross tool | |
5213506e RW |
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14435 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14436 | fi |
14437 | fi | |
0b0dc272 | 14438 | |
e7a82751 RM |
14439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14440 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14441 | if test "x${build}" != "x${host}" ; then | |
14442 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14443 | # We already found the complete path | |
14444 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14446 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14447 | else | |
14448 | # Canadian cross, just use what we found | |
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14450 | $as_echo "pre-installed" >&6; } | |
14451 | fi | |
14452 | else | |
14453 | ok=yes | |
14454 | case " ${configdirs} " in | |
14455 | *" binutils "*) ;; | |
14456 | *) ok=no ;; | |
14457 | esac | |
14458 | ||
14459 | if test $ok = yes; then | |
14460 | # An in-tree tool is available and we can use it | |
14461 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14463 | $as_echo "just compiled" >&6; } | |
14464 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14465 | # We already found the complete path | |
14466 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14468 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14469 | elif test "x$target" = "x$host"; then | |
14470 | # We can use an host tool | |
14471 | READELF_FOR_TARGET='$(READELF)' | |
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14473 | $as_echo "host tool" >&6; } | |
14474 | else | |
14475 | # We need a cross tool | |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14477 | $as_echo "pre-installed" >&6; } | |
14478 | fi | |
14479 | fi | |
14480 | ||
5213506e RW |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14482 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 14483 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14484 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14485 | # We already found the complete path | |
172e41aa | 14486 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14488 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14489 | else |
14490 | # Canadian cross, just use what we found | |
5213506e RW |
14491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14492 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14493 | fi |
2abefe3d PB |
14494 | else |
14495 | ok=yes | |
14496 | case " ${configdirs} " in | |
14497 | *" binutils "*) ;; | |
14498 | *) ok=no ;; | |
14499 | esac | |
1c710c3c | 14500 | |
2abefe3d PB |
14501 | if test $ok = yes; then |
14502 | # An in-tree tool is available and we can use it | |
455c8f48 | 14503 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14505 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14506 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14507 | # We already found the complete path | |
172e41aa | 14508 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14510 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14511 | elif test "x$target" = "x$host"; then |
14512 | # We can use an host tool | |
14513 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14515 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14516 | else |
14517 | # We need a cross tool | |
5213506e RW |
14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14519 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14520 | fi |
14521 | fi | |
0b0dc272 | 14522 | |
5213506e RW |
14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14524 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 14525 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14526 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14527 | # We already found the complete path | |
172e41aa | 14528 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14530 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14531 | else |
14532 | # Canadian cross, just use what we found | |
5213506e RW |
14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14534 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14535 | fi |
2abefe3d PB |
14536 | else |
14537 | ok=yes | |
14538 | case " ${configdirs} " in | |
14539 | *" binutils "*) ;; | |
14540 | *) ok=no ;; | |
14541 | esac | |
1c710c3c | 14542 | |
2abefe3d PB |
14543 | if test $ok = yes; then |
14544 | # An in-tree tool is available and we can use it | |
14545 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14547 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14548 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14549 | # We already found the complete path | |
172e41aa | 14550 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14552 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14553 | elif test "x$target" = "x$host"; then |
14554 | # We can use an host tool | |
14555 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14557 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14558 | else |
14559 | # We need a cross tool | |
5213506e RW |
14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14561 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 14562 | fi |
671aa708 | 14563 | fi |
be912515 | 14564 | |
5213506e RW |
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14566 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
14567 | if test "x${build}" != "x${host}" ; then |
14568 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14569 | # We already found the complete path | |
14570 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14572 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14573 | else |
14574 | # Canadian cross, just use what we found | |
5213506e RW |
14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14576 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14577 | fi |
14578 | else | |
14579 | ok=yes | |
14580 | case " ${configdirs} " in | |
14581 | *" binutils "*) ;; | |
14582 | *) ok=no ;; | |
14583 | esac | |
14584 | ||
14585 | if test $ok = yes; then | |
14586 | # An in-tree tool is available and we can use it | |
14587 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
14588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14589 | $as_echo "just compiled" >&6; } | |
901119ae KT |
14590 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14591 | # We already found the complete path | |
14592 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14594 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14595 | elif test "x$target" = "x$host"; then |
14596 | # We can use an host tool | |
14597 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14599 | $as_echo "host tool" >&6; } | |
901119ae KT |
14600 | else |
14601 | # We need a cross tool | |
5213506e RW |
14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14603 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14604 | fi |
14605 | fi | |
14606 | ||
be912515 NN |
14607 | |
14608 | ||
2abefe3d | 14609 | |
0b0dc272 | 14610 | |
671aa708 NN |
14611 | # Certain tools may need extra flags. |
14612 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14613 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14614 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14615 | ||
2abefe3d PB |
14616 | # When building target libraries, except in a Canadian cross, we use |
14617 | # the same toolchain as the compiler we just built. | |
14618 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14619 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14620 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14621 | if test $host = $build; then | |
14622 | case " $configdirs " in | |
14623 | *" gcc "*) | |
14624 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14625 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14626 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14627 | ;; | |
14628 | esac | |
14629 | fi | |
14630 | ||
14631 | ||
14632 | ||
14633 | ||
14634 | ||
5213506e RW |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14636 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14637 | # Check whether --enable-maintainer-mode was given. | |
14638 | if test "${enable_maintainer_mode+set}" = set; then : | |
14639 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
14640 | else |
14641 | USE_MAINTAINER_MODE=no | |
5213506e RW |
14642 | fi |
14643 | ||
14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14645 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
14646 | |
14647 | ||
14648 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14649 | MAINTAINER_MODE_TRUE= | |
14650 | MAINTAINER_MODE_FALSE='#' | |
14651 | else | |
14652 | MAINTAINER_MODE_TRUE='#' | |
14653 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 14654 | fi |
ee03dc5e AO |
14655 | MAINT=$MAINTAINER_MODE_TRUE |
14656 | ||
2805b53a NN |
14657 | # --------------------- |
14658 | # GCC bootstrap support | |
14659 | # --------------------- | |
14660 | ||
14661 | # Stage specific cflags for build. | |
14662 | stage1_cflags="-g" | |
14663 | case $build in | |
14664 | vax-*-*) | |
14665 | case ${GCC} in | |
14666 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14667 | *) stage1_cflags="-g -J" ;; | |
14668 | esac ;; | |
2805b53a NN |
14669 | esac |
14670 | ||
0b50988a | 14671 | |
2805b53a | 14672 | |
8efea775 | 14673 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
14674 | # Check whether --enable-stage1-checking was given. |
14675 | if test "${enable_stage1_checking+set}" = set; then : | |
14676 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 14677 | else |
e643dc23 | 14678 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
14679 | # For --disable-checking or implicit --enable-checking=release, avoid |
14680 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14681 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
14682 | case $BUILD_CONFIG in |
14683 | *lto*) | |
7db11a5a JJ |
14684 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14685 | *) | |
14686 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 14687 | esac |
7db11a5a JJ |
14688 | if test "x$enable_checking" = x && \ |
14689 | test -d ${srcdir}/gcc && \ | |
14690 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 14691 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 14692 | fi |
8efea775 | 14693 | else |
e643dc23 | 14694 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 14695 | fi |
5213506e | 14696 | fi |
8efea775 PB |
14697 | |
14698 | ||
2aeb72e9 | 14699 | |
5213506e RW |
14700 | # Enable -Werror in bootstrap stage2 and later. |
14701 | # Check whether --enable-werror was given. | |
14702 | if test "${enable_werror+set}" = set; then : | |
14703 | enableval=$enable_werror; | |
2805b53a | 14704 | else |
416cfb5e | 14705 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 14706 | enable_werror=yes |
88fceb68 PB |
14707 | else |
14708 | enable_werror=no | |
14709 | fi | |
5213506e RW |
14710 | fi |
14711 | ||
09a9c095 NN |
14712 | case ${enable_werror} in |
14713 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14714 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
14715 | esac |
14716 | ||
14717 | ||
459260ec DM |
14718 | # Enable --enable-host-shared. |
14719 | # Check whether --enable-host-shared was given. | |
14720 | if test "${enable_host_shared+set}" = set; then : | |
14721 | enableval=$enable_host_shared; host_shared=$enableval | |
14722 | else | |
14723 | host_shared=no | |
14724 | fi | |
14725 | ||
14726 | ||
14727 | ||
231d020b DM |
14728 | # PR jit/64780: Require the user to explicitly specify |
14729 | # --enable-host-shared if the jit is enabled, hinting | |
14730 | # that they might want to do a separate configure/build of | |
14731 | # the jit, to avoid users from slowing down the rest of the | |
14732 | # compiler by enabling the jit. | |
14733 | if test ${host_shared} = "no" ; then | |
14734 | case "${enable_languages}" in | |
14735 | *jit*) | |
14736 | as_fn_error " | |
14737 | Enabling language \"jit\" requires --enable-host-shared. | |
14738 | ||
14739 | --enable-host-shared typically slows the rest of the compiler down by | |
14740 | a few %, so you must explicitly enable it. | |
14741 | ||
14742 | If you want to build both the jit and the regular compiler, it is often | |
14743 | best to do this via two separate configure/builds, in separate | |
14744 | directories, to avoid imposing the performance cost of | |
14745 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14746 | ;; | |
14747 | *) | |
14748 | ;; | |
14749 | esac | |
14750 | fi | |
14751 | ||
f2689b09 SE |
14752 | # Specify what files to not compare during bootstrap. |
14753 | ||
14754 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14755 | case "$target" in | |
14756 | hppa*64*-*-hpux*) ;; | |
14757 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
d91491e5 | 14758 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
f2689b09 SE |
14759 | esac |
14760 | ||
14761 | ||
5213506e RW |
14762 | ac_config_files="$ac_config_files Makefile" |
14763 | ||
1c710c3c | 14764 | cat >confcache <<\_ACEOF |
671aa708 NN |
14765 | # This file is a shell script that caches the results of configure |
14766 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
14767 | # scripts and configure runs, see configure's option --config-cache. |
14768 | # It is not useful on other systems. If it contains results you don't | |
14769 | # want to keep, you may remove or edit it. | |
671aa708 | 14770 | # |
1c710c3c DJ |
14771 | # config.status only pays attention to the cache file if you give it |
14772 | # the --recheck option to rerun configure. | |
671aa708 | 14773 | # |
1c710c3c DJ |
14774 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14775 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14776 | # following values. | |
14777 | ||
14778 | _ACEOF | |
14779 | ||
671aa708 NN |
14780 | # The following way of writing the cache mishandles newlines in values, |
14781 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 14782 | # So, we kill variables containing newlines. |
671aa708 NN |
14783 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14784 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
14785 | ( |
14786 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14787 | eval ac_val=\$$ac_var | |
14788 | case $ac_val in #( | |
14789 | *${as_nl}*) | |
14790 | case $ac_var in #( | |
14791 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14792 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14793 | esac | |
14794 | case $ac_var in #( | |
14795 | _ | IFS | as_nl) ;; #( | |
14796 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14797 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14798 | esac ;; | |
14799 | esac | |
14800 | done | |
14801 | ||
1c710c3c | 14802 | (set) 2>&1 | |
5213506e RW |
14803 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14804 | *${as_nl}ac_space=\ *) | |
14805 | # `set' does not quote correctly, so add quotes: double-quote | |
14806 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
14807 | sed -n \ |
14808 | "s/'/'\\\\''/g; | |
14809 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 14810 | ;; #( |
1c710c3c DJ |
14811 | *) |
14812 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 14813 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 14814 | ;; |
5213506e RW |
14815 | esac | |
14816 | sort | |
14817 | ) | | |
1c710c3c | 14818 | sed ' |
5213506e | 14819 | /^ac_cv_env_/b end |
1c710c3c | 14820 | t clear |
5213506e | 14821 | :clear |
1c710c3c DJ |
14822 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14823 | t end | |
5213506e RW |
14824 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14825 | :end' >>confcache | |
14826 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14827 | if test -w "$cache_file"; then | |
14828 | test "x$cache_file" != "x/dev/null" && | |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14830 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 14831 | cat confcache >$cache_file |
671aa708 | 14832 | else |
5213506e RW |
14833 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14834 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 14835 | fi |
4977bab6 | 14836 | fi |
671aa708 | 14837 | rm -f confcache |
79c06341 | 14838 | |
671aa708 NN |
14839 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14840 | # Let make expand exec_prefix. | |
14841 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 14842 | |
671aa708 NN |
14843 | # Transform confdefs.h into DEFS. |
14844 | # Protect against shell expansion while executing Makefile rules. | |
14845 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
14846 | # |
14847 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 14848 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 14849 | # look for a macro that doesn't take arguments. |
5213506e RW |
14850 | ac_script=' |
14851 | :mline | |
14852 | /\\$/{ | |
14853 | N | |
14854 | s,\\\n,, | |
14855 | b mline | |
14856 | } | |
1c710c3c | 14857 | t clear |
5213506e RW |
14858 | :clear |
14859 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 14860 | t quote |
5213506e | 14861 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 14862 | t quote |
5213506e RW |
14863 | b any |
14864 | :quote | |
14865 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14866 | s/\[/\\&/g | |
14867 | s/\]/\\&/g | |
14868 | s/\$/$$/g | |
14869 | H | |
14870 | :any | |
14871 | ${ | |
14872 | g | |
14873 | s/^\n// | |
14874 | s/\n/ /g | |
14875 | p | |
14876 | } | |
14877 | ' | |
14878 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
14879 | |
14880 | ||
14881 | ac_libobjs= | |
14882 | ac_ltlibobjs= | |
14883 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14884 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
14885 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14886 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14887 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14888 | # will be set to the directory where LIBOBJS objects are built. | |
14889 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14890 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
14891 | done |
14892 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 14893 | |
1c710c3c | 14894 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 14895 | |
af71363e | 14896 | |
1c710c3c DJ |
14897 | |
14898 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 14899 | ac_write_fail=0 |
1c710c3c DJ |
14900 | ac_clean_files_save=$ac_clean_files |
14901 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14903 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14904 | as_write_fail=0 | |
14905 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
14906 | #! $SHELL |
14907 | # Generated by $as_me. | |
671aa708 | 14908 | # Run this file to recreate the current configuration. |
671aa708 | 14909 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 14910 | # configure, is in config.log if it exists. |
0b0dc272 | 14911 | |
1c710c3c DJ |
14912 | debug=false |
14913 | ac_cs_recheck=false | |
14914 | ac_cs_silent=false | |
1c710c3c | 14915 | |
5213506e RW |
14916 | SHELL=\${CONFIG_SHELL-$SHELL} |
14917 | export SHELL | |
14918 | _ASEOF | |
14919 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14920 | ## -------------------- ## | |
14921 | ## M4sh Initialization. ## | |
14922 | ## -------------------- ## | |
14923 | ||
14924 | # Be more Bourne compatible | |
14925 | DUALCASE=1; export DUALCASE # for MKS sh | |
14926 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
14927 | emulate sh |
14928 | NULLCMD=: | |
5213506e | 14929 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
14930 | # is contrary to our usage. Disable this feature. |
14931 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
14932 | setopt NO_GLOB_SUBST |
14933 | else | |
14934 | case `(set -o) 2>/dev/null` in #( | |
14935 | *posix*) : | |
14936 | set -o posix ;; #( | |
14937 | *) : | |
14938 | ;; | |
14939 | esac | |
1c710c3c | 14940 | fi |
1c710c3c | 14941 | |
5213506e RW |
14942 | |
14943 | as_nl=' | |
14944 | ' | |
14945 | export as_nl | |
14946 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14947 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14948 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14949 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14950 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14951 | # but without wasting forks for bash or zsh. | |
14952 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14953 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14954 | as_echo='print -r --' | |
14955 | as_echo_n='print -rn --' | |
14956 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14957 | as_echo='printf %s\n' | |
14958 | as_echo_n='printf %s' | |
14959 | else | |
14960 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14961 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14962 | as_echo_n='/usr/ucb/echo -n' | |
14963 | else | |
14964 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14965 | as_echo_n_body='eval | |
14966 | arg=$1; | |
14967 | case $arg in #( | |
14968 | *"$as_nl"*) | |
14969 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14970 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14971 | esac; | |
14972 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14973 | ' | |
14974 | export as_echo_n_body | |
14975 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14976 | fi | |
14977 | export as_echo_body | |
14978 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
14979 | fi |
14980 | ||
5213506e RW |
14981 | # The user is always right. |
14982 | if test "${PATH_SEPARATOR+set}" != set; then | |
14983 | PATH_SEPARATOR=: | |
14984 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14985 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14986 | PATH_SEPARATOR=';' | |
14987 | } | |
14988 | fi | |
14989 | ||
14990 | ||
14991 | # IFS | |
14992 | # We need space, tab and new line, in precisely that order. Quoting is | |
14993 | # there to prevent editors from complaining about space-tab. | |
14994 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14995 | # splitting by setting IFS to empty value.) | |
14996 | IFS=" "" $as_nl" | |
14997 | ||
14998 | # Find who we are. Look in the path if we contain no directory separator. | |
14999 | case $0 in #(( | |
15000 | *[\\/]* ) as_myself=$0 ;; | |
15001 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15002 | for as_dir in $PATH | |
15003 | do | |
15004 | IFS=$as_save_IFS | |
15005 | test -z "$as_dir" && as_dir=. | |
15006 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15007 | done | |
15008 | IFS=$as_save_IFS | |
15009 | ||
15010 | ;; | |
15011 | esac | |
15012 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15013 | # in which case we are not to be found in the path. | |
15014 | if test "x$as_myself" = x; then | |
15015 | as_myself=$0 | |
15016 | fi | |
15017 | if test ! -f "$as_myself"; then | |
15018 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15019 | exit 1 | |
15020 | fi | |
1c710c3c | 15021 | |
5213506e RW |
15022 | # Unset variables that we do not need and which cause bugs (e.g. in |
15023 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15024 | # suppresses any "Segmentation fault" message there. '((' could | |
15025 | # trigger a bug in pdksh 5.2.14. | |
15026 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15027 | do eval test x\${$as_var+set} = xset \ | |
15028 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15029 | done | |
1c710c3c DJ |
15030 | PS1='$ ' |
15031 | PS2='> ' | |
15032 | PS4='+ ' | |
15033 | ||
15034 | # NLS nuisances. | |
5213506e RW |
15035 | LC_ALL=C |
15036 | export LC_ALL | |
15037 | LANGUAGE=C | |
15038 | export LANGUAGE | |
15039 | ||
15040 | # CDPATH. | |
15041 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15042 | ||
15043 | ||
15044 | # as_fn_error ERROR [LINENO LOG_FD] | |
15045 | # --------------------------------- | |
15046 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15047 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15048 | # script with status $?, using 1 if that was 0. | |
15049 | as_fn_error () | |
15050 | { | |
15051 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15052 | if test "$3"; then | |
15053 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15054 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1c710c3c | 15055 | fi |
5213506e RW |
15056 | $as_echo "$as_me: error: $1" >&2 |
15057 | as_fn_exit $as_status | |
15058 | } # as_fn_error | |
15059 | ||
15060 | ||
15061 | # as_fn_set_status STATUS | |
15062 | # ----------------------- | |
15063 | # Set $? to STATUS, without forking. | |
15064 | as_fn_set_status () | |
15065 | { | |
15066 | return $1 | |
15067 | } # as_fn_set_status | |
15068 | ||
15069 | # as_fn_exit STATUS | |
15070 | # ----------------- | |
15071 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15072 | as_fn_exit () | |
15073 | { | |
15074 | set +e | |
15075 | as_fn_set_status $1 | |
15076 | exit $1 | |
15077 | } # as_fn_exit | |
15078 | ||
15079 | # as_fn_unset VAR | |
15080 | # --------------- | |
15081 | # Portably unset VAR. | |
15082 | as_fn_unset () | |
15083 | { | |
15084 | { eval $1=; unset $1;} | |
15085 | } | |
15086 | as_unset=as_fn_unset | |
15087 | # as_fn_append VAR VALUE | |
15088 | # ---------------------- | |
15089 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15090 | # advantage of any shell optimizations that allow amortized linear growth over | |
15091 | # repeated appends, instead of the typical quadratic growth present in naive | |
15092 | # implementations. | |
15093 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15094 | eval 'as_fn_append () | |
15095 | { | |
15096 | eval $1+=\$2 | |
15097 | }' | |
15098 | else | |
15099 | as_fn_append () | |
15100 | { | |
15101 | eval $1=\$$1\$2 | |
15102 | } | |
15103 | fi # as_fn_append | |
15104 | ||
15105 | # as_fn_arith ARG... | |
15106 | # ------------------ | |
15107 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15108 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15109 | # must be portable across $(()) and expr. | |
15110 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15111 | eval 'as_fn_arith () | |
15112 | { | |
15113 | as_val=$(( $* )) | |
15114 | }' | |
15115 | else | |
15116 | as_fn_arith () | |
15117 | { | |
15118 | as_val=`expr "$@" || test $? -eq 1` | |
15119 | } | |
15120 | fi # as_fn_arith | |
15121 | ||
1c710c3c | 15122 | |
5213506e RW |
15123 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15124 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
15125 | as_expr=expr |
15126 | else | |
15127 | as_expr=false | |
15128 | fi | |
15129 | ||
5213506e | 15130 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
15131 | as_basename=basename |
15132 | else | |
15133 | as_basename=false | |
15134 | fi | |
15135 | ||
5213506e RW |
15136 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15137 | as_dirname=dirname | |
15138 | else | |
15139 | as_dirname=false | |
15140 | fi | |
1c710c3c | 15141 | |
5213506e | 15142 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
15143 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15144 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
15145 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15146 | $as_echo X/"$0" | | |
15147 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15148 | s//\1/ | |
15149 | q | |
15150 | } | |
15151 | /^X\/\(\/\/\)$/{ | |
15152 | s//\1/ | |
15153 | q | |
15154 | } | |
15155 | /^X\/\(\/\).*/{ | |
15156 | s//\1/ | |
15157 | q | |
15158 | } | |
15159 | s/.*/./; q'` | |
2aeb72e9 | 15160 | |
2aeb72e9 DD |
15161 | # Avoid depending upon Character Ranges. |
15162 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15163 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15164 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15165 | as_cr_digits='0123456789' | |
15166 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15167 | ||
5213506e RW |
15168 | ECHO_C= ECHO_N= ECHO_T= |
15169 | case `echo -n x` in #((((( | |
15170 | -n*) | |
15171 | case `echo 'xy\c'` in | |
15172 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15173 | xy) ECHO_C='\c';; | |
15174 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15175 | ECHO_T=' ';; | |
15176 | esac;; | |
15177 | *) | |
15178 | ECHO_N='-n';; | |
1c710c3c DJ |
15179 | esac |
15180 | ||
5213506e RW |
15181 | rm -f conf$$ conf$$.exe conf$$.file |
15182 | if test -d conf$$.dir; then | |
15183 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 15184 | else |
5213506e RW |
15185 | rm -f conf$$.dir |
15186 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 15187 | fi |
5213506e RW |
15188 | if (echo >conf$$.file) 2>/dev/null; then |
15189 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 15190 | as_ln_s='ln -s' |
5213506e RW |
15191 | # ... but there are two gotchas: |
15192 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15193 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15194 | # In both cases, we have to default to `cp -p'. | |
15195 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15196 | as_ln_s='cp -p' | |
15197 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15198 | as_ln_s=ln | |
15199 | else | |
15200 | as_ln_s='cp -p' | |
2aeb72e9 | 15201 | fi |
1c710c3c DJ |
15202 | else |
15203 | as_ln_s='cp -p' | |
15204 | fi | |
5213506e RW |
15205 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15206 | rmdir conf$$.dir 2>/dev/null | |
15207 | ||
15208 | ||
15209 | # as_fn_mkdir_p | |
15210 | # ------------- | |
15211 | # Create "$as_dir" as a directory, including parents if necessary. | |
15212 | as_fn_mkdir_p () | |
15213 | { | |
15214 | ||
15215 | case $as_dir in #( | |
15216 | -*) as_dir=./$as_dir;; | |
15217 | esac | |
15218 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15219 | as_dirs= | |
15220 | while :; do | |
15221 | case $as_dir in #( | |
15222 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15223 | *) as_qdir=$as_dir;; | |
15224 | esac | |
15225 | as_dirs="'$as_qdir' $as_dirs" | |
15226 | as_dir=`$as_dirname -- "$as_dir" || | |
15227 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15228 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15229 | X"$as_dir" : 'X\(//\)$' \| \ | |
15230 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15231 | $as_echo X"$as_dir" | | |
15232 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15233 | s//\1/ | |
15234 | q | |
15235 | } | |
15236 | /^X\(\/\/\)[^/].*/{ | |
15237 | s//\1/ | |
15238 | q | |
15239 | } | |
15240 | /^X\(\/\/\)$/{ | |
15241 | s//\1/ | |
15242 | q | |
15243 | } | |
15244 | /^X\(\/\).*/{ | |
15245 | s//\1/ | |
15246 | q | |
15247 | } | |
15248 | s/.*/./; q'` | |
15249 | test -d "$as_dir" && break | |
15250 | done | |
15251 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15252 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15253 | ||
1c710c3c | 15254 | |
5213506e | 15255 | } # as_fn_mkdir_p |
1c710c3c | 15256 | if mkdir -p . 2>/dev/null; then |
5213506e | 15257 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
15258 | else |
15259 | test -d ./-p && rmdir ./-p | |
15260 | as_mkdir_p=false | |
15261 | fi | |
15262 | ||
5213506e RW |
15263 | if test -x / >/dev/null 2>&1; then |
15264 | as_test_x='test -x' | |
15265 | else | |
15266 | if ls -dL / >/dev/null 2>&1; then | |
15267 | as_ls_L_option=L | |
15268 | else | |
15269 | as_ls_L_option= | |
15270 | fi | |
15271 | as_test_x=' | |
15272 | eval sh -c '\'' | |
15273 | if test -d "$1"; then | |
15274 | test -d "$1/."; | |
15275 | else | |
15276 | case $1 in #( | |
15277 | -*)set "./$1";; | |
15278 | esac; | |
15279 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15280 | ???[sx]*):;;*)false;;esac;fi | |
15281 | '\'' sh | |
15282 | ' | |
15283 | fi | |
15284 | as_executable_p=$as_test_x | |
1c710c3c DJ |
15285 | |
15286 | # Sed expression to map a string onto a valid CPP name. | |
15287 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15288 | ||
15289 | # Sed expression to map a string onto a valid variable name. | |
15290 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15291 | ||
15292 | ||
1c710c3c | 15293 | exec 6>&1 |
5213506e RW |
15294 | ## ----------------------------------- ## |
15295 | ## Main body of $CONFIG_STATUS script. ## | |
15296 | ## ----------------------------------- ## | |
15297 | _ASEOF | |
15298 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15299 | ||
15300 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15301 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 15302 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
15303 | # values after options handling. |
15304 | ac_log=" | |
1c710c3c | 15305 | This file was extended by $as_me, which was |
5213506e | 15306 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
15307 | |
15308 | CONFIG_FILES = $CONFIG_FILES | |
15309 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15310 | CONFIG_LINKS = $CONFIG_LINKS | |
15311 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15312 | $ $0 $@ | |
15313 | ||
5213506e RW |
15314 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15315 | " | |
15316 | ||
1c710c3c DJ |
15317 | _ACEOF |
15318 | ||
5213506e RW |
15319 | case $ac_config_files in *" |
15320 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15321 | esac | |
1c710c3c | 15322 | |
2aeb72e9 | 15323 | |
2aeb72e9 | 15324 | |
5213506e RW |
15325 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15326 | # Files that config.status was made for. | |
15327 | config_files="$ac_config_files" | |
1c710c3c | 15328 | |
5213506e | 15329 | _ACEOF |
2aeb72e9 | 15330 | |
5213506e | 15331 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 15332 | ac_cs_usage="\ |
5213506e RW |
15333 | \`$as_me' instantiates files and other configuration actions |
15334 | from templates according to the current configuration. Unless the files | |
15335 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 15336 | |
5213506e | 15337 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
15338 | |
15339 | -h, --help print this help, then exit | |
5213506e RW |
15340 | -V, --version print version number and configuration settings, then exit |
15341 | -q, --quiet, --silent | |
15342 | do not print progress messages | |
1c710c3c DJ |
15343 | -d, --debug don't remove temporary files |
15344 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
15345 | --file=FILE[:TEMPLATE] |
15346 | instantiate the configuration file FILE | |
1c710c3c DJ |
15347 | |
15348 | Configuration files: | |
15349 | $config_files | |
15350 | ||
5213506e | 15351 | Report bugs to the package provider." |
2aeb72e9 | 15352 | |
5213506e RW |
15353 | _ACEOF |
15354 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1c710c3c DJ |
15355 | ac_cs_version="\\ |
15356 | config.status | |
5213506e RW |
15357 | configured by $0, generated by GNU Autoconf 2.64, |
15358 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 15359 | |
5213506e | 15360 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
15361 | This config.status script is free software; the Free Software Foundation |
15362 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
15363 | |
15364 | ac_pwd='$ac_pwd' | |
15365 | srcdir='$srcdir' | |
15366 | INSTALL='$INSTALL' | |
87264276 | 15367 | AWK='$AWK' |
5213506e | 15368 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
15369 | _ACEOF |
15370 | ||
5213506e RW |
15371 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15372 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
15373 | ac_need_defaults=: |
15374 | while test $# != 0 | |
a4b9e93e | 15375 | do |
1c710c3c DJ |
15376 | case $1 in |
15377 | --*=*) | |
5213506e RW |
15378 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15379 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
15380 | ac_shift=: |
15381 | ;; | |
5213506e | 15382 | *) |
1c710c3c DJ |
15383 | ac_option=$1 |
15384 | ac_optarg=$2 | |
15385 | ac_shift=shift | |
15386 | ;; | |
1c710c3c DJ |
15387 | esac |
15388 | ||
15389 | case $ac_option in | |
15390 | # Handling of the options. | |
671aa708 | 15391 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 15392 | ac_cs_recheck=: ;; |
5213506e RW |
15393 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15394 | $as_echo "$ac_cs_version"; exit ;; | |
15395 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
15396 | debug=: ;; |
15397 | --file | --fil | --fi | --f ) | |
15398 | $ac_shift | |
5213506e RW |
15399 | case $ac_optarg in |
15400 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15401 | esac | |
15402 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 15403 | ac_need_defaults=false;; |
5213506e RW |
15404 | --he | --h | --help | --hel | -h ) |
15405 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
15406 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15407 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15408 | ac_cs_silent=: ;; | |
15409 | ||
15410 | # This is an error. | |
5213506e RW |
15411 | -*) as_fn_error "unrecognized option: \`$1' |
15412 | Try \`$0 --help' for more information." ;; | |
1c710c3c | 15413 | |
5213506e RW |
15414 | *) as_fn_append ac_config_targets " $1" |
15415 | ac_need_defaults=false ;; | |
1c710c3c | 15416 | |
0b0dc272 | 15417 | esac |
1c710c3c | 15418 | shift |
0b0dc272 AM |
15419 | done |
15420 | ||
1c710c3c | 15421 | ac_configure_extra_args= |
0b0dc272 | 15422 | |
1c710c3c DJ |
15423 | if $ac_cs_silent; then |
15424 | exec 6>/dev/null | |
15425 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15426 | fi | |
0b0dc272 | 15427 | |
1c710c3c | 15428 | _ACEOF |
5213506e | 15429 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 15430 | if \$ac_cs_recheck; then |
5213506e RW |
15431 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15432 | shift | |
15433 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15434 | CONFIG_SHELL='$SHELL' | |
15435 | export CONFIG_SHELL | |
15436 | exec "\$@" | |
1c710c3c DJ |
15437 | fi |
15438 | ||
15439 | _ACEOF | |
5213506e RW |
15440 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15441 | exec 5>>config.log | |
15442 | { | |
15443 | echo | |
15444 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15445 | ## Running $as_me. ## | |
15446 | _ASBOX | |
15447 | $as_echo "$ac_log" | |
15448 | } >&5 | |
1c710c3c | 15449 | |
5213506e RW |
15450 | _ACEOF |
15451 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
15452 | # |
15453 | # INIT-COMMANDS | |
15454 | # | |
15455 | extrasub_build="$extrasub_build" | |
15456 | extrasub_host="$extrasub_host" | |
15457 | extrasub_target="$extrasub_target" | |
15458 | ||
5213506e | 15459 | _ACEOF |
1c710c3c | 15460 | |
5213506e | 15461 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 15462 | |
5213506e | 15463 | # Handling of arguments. |
1c710c3c DJ |
15464 | for ac_config_target in $ac_config_targets |
15465 | do | |
5213506e RW |
15466 | case $ac_config_target in |
15467 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15468 | ||
15469 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1c710c3c DJ |
15470 | esac |
15471 | done | |
15472 | ||
5213506e | 15473 | |
1c710c3c DJ |
15474 | # If the user did not use the arguments to specify the items to instantiate, |
15475 | # then the envvar interface is used. Set only those that are not. | |
15476 | # We use the long form for the default assignment because of an extremely | |
15477 | # bizarre bug on SunOS 4.1.3. | |
15478 | if $ac_need_defaults; then | |
15479 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15480 | fi | |
15481 | ||
15482 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 15483 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 15484 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
15485 | # Hook for its removal unless debugging. |
15486 | # Note that there is a small window in which the directory will not be cleaned: | |
15487 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
15488 | $debug || |
15489 | { | |
5213506e RW |
15490 | tmp= |
15491 | trap 'exit_status=$? | |
15492 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15493 | ' 0 | |
15494 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 15495 | } |
1c710c3c DJ |
15496 | # Create a (secure) tmp directory for tmp files. |
15497 | ||
15498 | { | |
5213506e | 15499 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
15500 | test -n "$tmp" && test -d "$tmp" |
15501 | } || | |
15502 | { | |
5213506e RW |
15503 | tmp=./conf$$-$RANDOM |
15504 | (umask 077 && mkdir "$tmp") | |
15505 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15506 | ||
15507 | # Set up the scripts for CONFIG_FILES section. | |
15508 | # No need to generate them if there are no CONFIG_FILES. | |
15509 | # This happens for instance with `./config.status config.h'. | |
15510 | if test -n "$CONFIG_FILES"; then | |
15511 | ||
15512 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15513 | ac_cs_awk_getline=: | |
15514 | ac_cs_awk_pipe_init= | |
15515 | ac_cs_awk_read_file=' | |
15516 | while ((getline aline < (F[key])) > 0) | |
15517 | print(aline) | |
15518 | close(F[key])' | |
15519 | ac_cs_awk_pipe_fini= | |
15520 | else | |
15521 | ac_cs_awk_getline=false | |
15522 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15523 | ac_cs_awk_read_file=' | |
15524 | print "|#_!!_#|" | |
15525 | print "cat " F[key] " &&" | |
15526 | '$ac_cs_awk_pipe_init | |
15527 | # The final `:' finishes the AND list. | |
15528 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15529 | fi | |
15530 | ac_cr=`echo X | tr X '\015'` | |
15531 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15532 | # But we know of no other shell where ac_cr would be empty at this | |
15533 | # point, so we can use a bashism as a fallback. | |
15534 | if test "x$ac_cr" = x; then | |
15535 | eval ac_cr=\$\'\\r\' | |
15536 | fi | |
15537 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15538 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15539 | ac_cs_awk_cr='\r' | |
15540 | else | |
15541 | ac_cs_awk_cr=$ac_cr | |
15542 | fi | |
15543 | ||
15544 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15545 | _ACEOF | |
15546 | ||
15547 | # Create commands to substitute file output variables. | |
1c710c3c | 15548 | { |
5213506e RW |
15549 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15550 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15551 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15552 | echo "_ACAWK" && | |
15553 | echo "_ACEOF" | |
15554 | } >conf$$files.sh && | |
15555 | . ./conf$$files.sh || | |
15556 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15557 | rm -f conf$$files.sh | |
1c710c3c | 15558 | |
5213506e RW |
15559 | { |
15560 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15561 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15562 | echo "_ACEOF" | |
15563 | } >conf$$subs.sh || | |
15564 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15565 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15566 | ac_delim='%!_!# ' | |
15567 | for ac_last_try in false false false false false :; do | |
15568 | . ./conf$$subs.sh || | |
15569 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15570 | ||
15571 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15572 | if test $ac_delim_n = $ac_delim_num; then | |
15573 | break | |
15574 | elif $ac_last_try; then | |
15575 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15576 | else | |
15577 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15578 | fi | |
15579 | done | |
15580 | rm -f conf$$subs.sh | |
15581 | ||
15582 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15583 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
2aeb72e9 | 15584 | _ACEOF |
5213506e RW |
15585 | sed -n ' |
15586 | h | |
15587 | s/^/S["/; s/!.*/"]=/ | |
15588 | p | |
15589 | g | |
15590 | s/^[^!]*!// | |
15591 | :repl | |
15592 | t repl | |
15593 | s/'"$ac_delim"'$// | |
15594 | t delim | |
15595 | :nl | |
15596 | h | |
15597 | s/\(.\{148\}\).*/\1/ | |
15598 | t more1 | |
15599 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15600 | p | |
15601 | n | |
15602 | b repl | |
15603 | :more1 | |
15604 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15605 | p | |
15606 | g | |
15607 | s/.\{148\}// | |
15608 | t nl | |
15609 | :delim | |
15610 | h | |
15611 | s/\(.\{148\}\).*/\1/ | |
15612 | t more2 | |
15613 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15614 | p | |
15615 | b | |
15616 | :more2 | |
15617 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15618 | p | |
15619 | g | |
15620 | s/.\{148\}// | |
15621 | t delim | |
15622 | ' <conf$$subs.awk | sed ' | |
15623 | /^[^""]/{ | |
15624 | N | |
15625 | s/\n// | |
15626 | } | |
15627 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15628 | rm -f conf$$subs.awk | |
15629 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15630 | _ACAWK | |
15631 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15632 | for (key in S) S_is_set[key] = 1 | |
15633 | FS = "\a" | |
15634 | \$ac_cs_awk_pipe_init | |
15635 | } | |
15636 | { | |
15637 | line = $ 0 | |
15638 | nfields = split(line, field, "@") | |
15639 | substed = 0 | |
15640 | len = length(field[1]) | |
15641 | for (i = 2; i < nfields; i++) { | |
15642 | key = field[i] | |
15643 | keylen = length(key) | |
15644 | if (S_is_set[key]) { | |
15645 | value = S[key] | |
15646 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15647 | len += length(value) + length(field[++i]) | |
15648 | substed = 1 | |
15649 | } else | |
15650 | len += 1 + keylen | |
15651 | } | |
15652 | if (nfields == 3 && !substed) { | |
15653 | key = field[2] | |
15654 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15655 | \$ac_cs_awk_read_file | |
15656 | next | |
15657 | } | |
15658 | } | |
15659 | print line | |
15660 | } | |
15661 | \$ac_cs_awk_pipe_fini | |
15662 | _ACAWK | |
15663 | _ACEOF | |
15664 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15665 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15666 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15667 | else | |
15668 | cat | |
15669 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15670 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15671 | _ACEOF | |
15672 | ||
15673 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15674 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15675 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15676 | # (actually we leave an empty line to preserve line numbers). | |
15677 | if test "x$srcdir" = x.; then | |
15678 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15679 | s/:*\$(srcdir):*/:/ | |
15680 | s/:*\${srcdir}:*/:/ | |
15681 | s/:*@srcdir@:*/:/ | |
15682 | s/^\([^=]*=[ ]*\):*/\1/ | |
15683 | s/:*$// | |
15684 | s/^[^=]*=[ ]*$// | |
15685 | }' | |
15686 | fi | |
2aeb72e9 | 15687 | |
5213506e RW |
15688 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15689 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 15690 | |
1c710c3c | 15691 | |
5213506e RW |
15692 | eval set X " :F $CONFIG_FILES " |
15693 | shift | |
15694 | for ac_tag | |
15695 | do | |
15696 | case $ac_tag in | |
15697 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15698 | esac | |
15699 | case $ac_mode$ac_tag in | |
15700 | :[FHL]*:*);; | |
15701 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15702 | :[FH]-) ac_tag=-:-;; | |
15703 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15704 | esac | |
15705 | ac_save_IFS=$IFS | |
15706 | IFS=: | |
15707 | set x $ac_tag | |
15708 | IFS=$ac_save_IFS | |
15709 | shift | |
15710 | ac_file=$1 | |
15711 | shift | |
79c06341 | 15712 | |
5213506e RW |
15713 | case $ac_mode in |
15714 | :L) ac_source=$1;; | |
15715 | :[FH]) | |
15716 | ac_file_inputs= | |
15717 | for ac_f | |
15718 | do | |
15719 | case $ac_f in | |
15720 | -) ac_f="$tmp/stdin";; | |
15721 | *) # Look for the file first in the build tree, then in the source tree | |
15722 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15723 | # because $ac_f cannot contain `:'. | |
15724 | test -f "$ac_f" || | |
15725 | case $ac_f in | |
15726 | [\\/$]*) false;; | |
15727 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15728 | esac || | |
15729 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15730 | esac | |
15731 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15732 | as_fn_append ac_file_inputs " '$ac_f'" | |
15733 | done | |
1c710c3c | 15734 | |
5213506e RW |
15735 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15736 | # use $as_me), people would be surprised to read: | |
15737 | # /* config.h. Generated by config.status. */ | |
15738 | configure_input='Generated from '` | |
15739 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15740 | `' by configure.' | |
15741 | if test x"$ac_file" != x-; then | |
15742 | configure_input="$ac_file. $configure_input" | |
15743 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15744 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 15745 | fi |
5213506e RW |
15746 | # Neutralize special characters interpreted by sed in replacement strings. |
15747 | case $configure_input in #( | |
15748 | *\&* | *\|* | *\\* ) | |
15749 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15750 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15751 | *) ac_sed_conf_input=$configure_input;; | |
15752 | esac | |
11a67599 | 15753 | |
5213506e RW |
15754 | case $ac_tag in |
15755 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15756 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15757 | esac | |
15758 | ;; | |
11a67599 ZW |
15759 | esac |
15760 | ||
5213506e | 15761 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
15762 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15763 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15764 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
15765 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15766 | $as_echo X"$ac_file" | | |
15767 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15768 | s//\1/ | |
15769 | q | |
15770 | } | |
15771 | /^X\(\/\/\)[^/].*/{ | |
15772 | s//\1/ | |
15773 | q | |
15774 | } | |
15775 | /^X\(\/\/\)$/{ | |
15776 | s//\1/ | |
15777 | q | |
15778 | } | |
15779 | /^X\(\/\).*/{ | |
15780 | s//\1/ | |
15781 | q | |
15782 | } | |
15783 | s/.*/./; q'` | |
15784 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 15785 | ac_builddir=. |
0b0dc272 | 15786 | |
5213506e RW |
15787 | case "$ac_dir" in |
15788 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15789 | *) | |
15790 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15791 | # A ".." for each directory in $ac_dir_suffix. | |
15792 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15793 | case $ac_top_builddir_sub in | |
15794 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15795 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15796 | esac ;; | |
15797 | esac | |
15798 | ac_abs_top_builddir=$ac_pwd | |
15799 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15800 | # for backward compatibility: | |
15801 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
15802 | |
15803 | case $srcdir in | |
5213506e | 15804 | .) # We are building in place. |
1c710c3c | 15805 | ac_srcdir=. |
5213506e RW |
15806 | ac_top_srcdir=$ac_top_builddir_sub |
15807 | ac_abs_top_srcdir=$ac_pwd ;; | |
15808 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 15809 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
15810 | ac_top_srcdir=$srcdir |
15811 | ac_abs_top_srcdir=$srcdir ;; | |
15812 | *) # Relative name. | |
15813 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15814 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15815 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 15816 | esac |
5213506e | 15817 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 15818 | |
0b0dc272 | 15819 | |
5213506e RW |
15820 | case $ac_mode in |
15821 | :F) | |
15822 | # | |
15823 | # CONFIG_FILE | |
15824 | # | |
1c710c3c DJ |
15825 | |
15826 | case $INSTALL in | |
15827 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 15828 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 15829 | esac |
5213506e | 15830 | _ACEOF |
11a67599 | 15831 | |
5213506e RW |
15832 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15833 | # If the template does not know about datarootdir, expand it. | |
15834 | # FIXME: This hack should be removed a few years after 2.60. | |
15835 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15836 | ac_sed_dataroot=' | |
15837 | /datarootdir/ { | |
15838 | p | |
15839 | q | |
15840 | } | |
15841 | /@datadir@/p | |
15842 | /@docdir@/p | |
15843 | /@infodir@/p | |
15844 | /@localedir@/p | |
15845 | /@mandir@/p' | |
15846 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15847 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15848 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15850 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 15851 | _ACEOF |
5213506e RW |
15852 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15853 | ac_datarootdir_hack=' | |
15854 | s&@datadir@&$datadir&g | |
15855 | s&@docdir@&$docdir&g | |
15856 | s&@infodir@&$infodir&g | |
15857 | s&@localedir@&$localedir&g | |
15858 | s&@mandir@&$mandir&g | |
15859 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15860 | esac | |
15861 | _ACEOF | |
15862 | ||
15863 | # Neutralize VPATH when `$srcdir' = `.'. | |
15864 | # Shell code in configure.ac might set extrasub. | |
15865 | # FIXME: do we really want to maintain this feature? | |
15866 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15867 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
15868 | $extrasub |
15869 | _ACEOF | |
5213506e | 15870 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
15871 | :t |
15872 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
15873 | s|@configure_input@|$ac_sed_conf_input|;t t |
15874 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15875 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15876 | s&@srcdir@&$ac_srcdir&;t t | |
15877 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15878 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15879 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15880 | s&@builddir@&$ac_builddir&;t t | |
15881 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15882 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15883 | s&@INSTALL@&$ac_INSTALL&;t t | |
15884 | $ac_datarootdir_hack | |
15885 | " | |
15886 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15887 | if $ac_cs_awk_getline; then | |
15888 | $AWK -f "$tmp/subs.awk" | |
15889 | else | |
15890 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15891 | fi >$tmp/out \ | |
15892 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15893 | ||
15894 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15895 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15896 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15898 | which seems to be undefined. Please make sure it is defined." >&5 | |
15899 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15900 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15901 | ||
15902 | rm -f "$tmp/stdin" | |
15903 | case $ac_file in | |
15904 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15905 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15906 | esac \ | |
15907 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15908 | ;; | |
11a67599 | 15909 | |
11a67599 | 15910 | |
79c06341 | 15911 | |
5213506e RW |
15912 | esac |
15913 | ||
3e54529c RW |
15914 | |
15915 | case $ac_file$ac_mode in | |
15916 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15917 | sed "$extrasub_host" | | |
15918 | sed "$extrasub_target" > mf$$ | |
15919 | mv -f mf$$ Makefile ;; | |
15920 | ||
15921 | esac | |
5213506e RW |
15922 | done # for ac_tag |
15923 | ||
15924 | ||
15925 | as_fn_exit 0 | |
1c710c3c | 15926 | _ACEOF |
1c710c3c DJ |
15927 | ac_clean_files=$ac_clean_files_save |
15928 | ||
5213506e RW |
15929 | test $ac_write_fail = 0 || |
15930 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15931 | ||
1c710c3c DJ |
15932 | |
15933 | # configure is writing to config.log, and then calls config.status. | |
15934 | # config.status does its own redirection, appending to config.log. | |
15935 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15936 | # by configure, so config.status won't be able to write to it; its | |
15937 | # output is simply discarded. So we exec the FD to /dev/null, | |
15938 | # effectively closing config.log, so it can be properly (re)opened and | |
15939 | # appended to by config.status. When coming back to configure, we | |
15940 | # need to make the FD available again. | |
15941 | if test "$no_create" != yes; then | |
15942 | ac_cs_success=: | |
15943 | ac_config_status_args= | |
15944 | test "$silent" = yes && | |
15945 | ac_config_status_args="$ac_config_status_args --quiet" | |
15946 | exec 5>/dev/null | |
15947 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15948 | exec 5>>config.log | |
15949 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15950 | # would make configure fail if this is the last instruction. | |
5213506e RW |
15951 | $ac_cs_success || as_fn_exit $? |
15952 | fi | |
15953 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15955 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 15956 | fi |
79c06341 | 15957 |