]>
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 |
5213506e | 653 | poststage1_ldflags |
ed2eaa9f | 654 | poststage1_libs |
5213506e | 655 | stage1_ldflags |
0b21f5d3 | 656 | stage1_libs |
0ff2d841 | 657 | extra_isl_gmp_configure_flags |
5213506e RW |
658 | extra_mpc_mpfr_configure_flags |
659 | extra_mpc_gmp_configure_flags | |
660 | extra_mpfr_configure_flags | |
661 | gmpinc | |
662 | gmplibs | |
663 | do_compare | |
664 | GNATMAKE | |
665 | GNATBIND | |
666 | ac_ct_CXX | |
667 | CXXFLAGS | |
668 | CXX | |
669 | OBJEXT | |
670 | EXEEXT | |
671 | ac_ct_CC | |
672 | CPPFLAGS | |
673 | LDFLAGS | |
674 | CFLAGS | |
675 | CC | |
a4a2c37d | 676 | EXTRA_CONFIGARGS_LIBJAVA |
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 | |
85c64bbe BS |
751 | enable_as_accelerator_for |
752 | enable_offload_targets | |
5213506e | 753 | enable_gold |
21539e2e | 754 | enable_ld |
87e6d9dc TB |
755 | enable_libquadmath |
756 | enable_libquadmath_support | |
5213506e RW |
757 | enable_libada |
758 | enable_libssp | |
1873ec0c | 759 | enable_libstdcxx |
5f520819 | 760 | enable_liboffloadmic |
a4a2c37d | 761 | enable_static_libjava |
ff3ac0f4 | 762 | enable_bootstrap |
5213506e RW |
763 | with_mpc |
764 | with_mpc_include | |
765 | with_mpc_lib | |
766 | with_mpfr_dir | |
767 | with_mpfr | |
768 | with_mpfr_include | |
769 | with_mpfr_lib | |
770 | with_gmp_dir | |
771 | with_gmp | |
772 | with_gmp_include | |
773 | with_gmp_lib | |
774 | with_host_libstdcxx | |
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 RW |
786 | enable_stage1_languages |
787 | enable_objc_gc | |
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}] |
87e6d9dc TB |
1479 | --disable-libquadmath do not build libquadmath directory |
1480 | --disable-libquadmath-support | |
1481 | disable libquadmath support for Fortran | |
30b74385 RW |
1482 | --enable-libada build libada directory |
1483 | --enable-libssp build libssp directory | |
1873ec0c | 1484 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1485 | --enable-liboffloadmic=ARG |
1486 | build liboffloadmic [ARG={no,host,target}] | |
a4a2c37d MK |
1487 | --enable-static-libjava[=ARG] |
1488 | build static libjava [default=no] | |
ff3ac0f4 | 1489 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 RG |
1490 | --disable-isl-version-check |
1491 | disable check for ISL version | |
d7f09764 | 1492 | --enable-lto enable link time optimization support |
45b3824d TS |
1493 | --enable-linker-plugin-configure-flags=FLAGS |
1494 | additional flags for configuring linker plugins | |
1495 | [none] | |
1496 | --enable-linker-plugin-flags=FLAGS | |
1497 | additional flags for configuring and building linker | |
1498 | plugins [none] | |
33e39b66 AS |
1499 | --enable-stage1-languages[=all] |
1500 | choose additional languages to build during stage1. | |
1501 | Mostly useful for compiler development | |
1502 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1503 | Objective-C runtime | |
318a4e6d | 1504 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1505 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1506 | force sequential configuration of sub-packages for |
1507 | the host, target or build machine, or all | |
1508 | sub-packages | |
1509 | --enable-maintainer-mode | |
1510 | enable make rules and dependencies not useful (and | |
1511 | sometimes confusing) to the casual installer | |
1512 | --enable-stage1-checking[=all] | |
1513 | choose additional checking for stage1 of the | |
1514 | compiler | |
1c710c3c | 1515 | --enable-werror enable -Werror in bootstrap stage2 and later |
459260ec | 1516 | --enable-host-shared build host code as shared libraries |
1c710c3c DJ |
1517 | |
1518 | Optional Packages: | |
1519 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1520 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1521 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
33e39b66 AS |
1522 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1523 | Equivalent to --with-mpc-include=PATH/include plus | |
1524 | --with-mpc-lib=PATH/lib | |
1525 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1526 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1527 | --with-mpfr-dir=PATH this option has been REMOVED |
1528 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1529 | Equivalent to --with-mpfr-include=PATH/include plus |
1530 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1531 | --with-mpfr-include=PATH |
30b74385 RW |
1532 | specify directory for installed MPFR include files |
1533 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1534 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1535 | --with-gmp=PATH specify prefix directory for the installed GMP |
1536 | package. Equivalent to | |
1537 | --with-gmp-include=PATH/include plus | |
1538 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1539 | --with-gmp-include=PATH specify directory for installed GMP include files |
1540 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
33e39b66 AS |
1541 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1542 | linking with PPL | |
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 | |
33ad93b9 | 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 | |
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 NN |
2734 | |
2735 | # libgcj represents the runtime libraries only used by gcj. | |
2736 | libgcj="target-libffi \ | |
671aa708 | 2737 | target-zlib \ |
671aa708 NN |
2738 | target-libjava" |
2739 | ||
2740 | # these libraries are built for the target environment, and are built after | |
2741 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2742 | # Note that libiberty is not a target library. |
291f172e | 2743 | target_libraries="target-libgcc \ |
eff02e4f | 2744 | target-libbacktrace \ |
671aa708 NN |
2745 | target-libgloss \ |
2746 | target-newlib \ | |
6d3b5aea | 2747 | target-libgomp \ |
3038054c | 2748 | target-libcilkrts \ |
5f520819 | 2749 | target-liboffloadmic \ |
48310492 | 2750 | target-libatomic \ |
0a35513e | 2751 | target-libitm \ |
cb543528 | 2752 | target-libstdc++-v3 \ |
f35db108 | 2753 | target-libsanitizer \ |
2077db1b | 2754 | target-libvtv \ |
5373cd33 | 2755 | target-libmpx \ |
77008252 | 2756 | target-libssp \ |
1ec601bf | 2757 | target-libquadmath \ |
6de9cd9a | 2758 | target-libgfortran \ |
7cd0cf9c | 2759 | target-boehm-gc \ |
77d187bc | 2760 | ${libgcj} \ |
d9cdb878 | 2761 | target-libobjc \ |
632e2a07 ILT |
2762 | target-libada \ |
2763 | target-libgo" | |
671aa708 | 2764 | |
4dbda6f0 NN |
2765 | # these tools are built using the target libraries, and are intended to |
2766 | # run only in the target environment | |
671aa708 | 2767 | # |
4dbda6f0 | 2768 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2769 | # list belongs in this list. |
671aa708 | 2770 | # |
85bfb75e | 2771 | target_tools="target-rda" |
79c06341 | 2772 | |
671aa708 | 2773 | ################################################################################ |
79c06341 | 2774 | |
671aa708 NN |
2775 | ## All tools belong in one of the four categories, and are assigned above |
2776 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2777 | ## is important because configure will choke if they ever get through. | |
2778 | ## ${configdirs} is directories we build using the host tools. | |
2779 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2780 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2781 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2782 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2783 | |
ac9e6043 RW |
2784 | |
2785 | ||
671aa708 | 2786 | ################################################################################ |
79c06341 | 2787 | |
671aa708 | 2788 | srcname="gnu development package" |
79c06341 | 2789 | |
671aa708 NN |
2790 | # This gets set non-empty for some net releases of packages. |
2791 | appdirs="" | |
79c06341 | 2792 | |
671aa708 NN |
2793 | # Define is_cross_compiler to save on calls to 'test'. |
2794 | is_cross_compiler= | |
2795 | if test x"${host}" = x"${target}" ; then | |
2796 | is_cross_compiler=no | |
79c06341 | 2797 | else |
671aa708 | 2798 | is_cross_compiler=yes |
1c710c3c | 2799 | fi |
79c06341 | 2800 | |
b4acb5ef | 2801 | # Find the build and target subdir names. |
8b87bb96 | 2802 | |
2e9e6f68 DJ |
2803 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2804 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2805 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2806 | # However, they still use the build modules, because the corresponding | |
2807 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2808 | # finishes. So: | |
2809 | # - build_subdir is where we find build modules, and never changes. | |
2810 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2811 | ||
2812 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2813 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2814 | |
5213506e RW |
2815 | # Check whether --with-build-libsubdir was given. |
2816 | if test "${with_build_libsubdir+set}" = set; then : | |
2817 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2818 | else |
2819 | build_libsubdir="$build_subdir" | |
5213506e RW |
2820 | fi |
2821 | ||
215c351a PB |
2822 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2823 | if ( test $srcdir = . && test -d gcc ) \ | |
2824 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2825 | host_subdir="host-${host_noncanonical}" | |
2826 | else | |
2827 | host_subdir=. | |
2828 | fi | |
8b87bb96 NN |
2829 | # No prefix. |
2830 | target_subdir=${target_noncanonical} | |
1c710c3c | 2831 | |
0db770bd RW |
2832 | # Be sure to cover against remnants of an in-tree build. |
2833 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2834 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2835 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2836 | fi | |
79c06341 | 2837 | |
671aa708 NN |
2838 | # Skipdirs are removed silently. |
2839 | skipdirs= | |
2840 | # Noconfigdirs are removed loudly. | |
2841 | noconfigdirs="" | |
79c06341 | 2842 | |
671aa708 NN |
2843 | use_gnu_ld= |
2844 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2845 | if test x$with_gnu_ld = xno ; then | |
2846 | use_gnu_ld=no | |
5afab7ad | 2847 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2848 | fi |
2849 | ||
671aa708 NN |
2850 | use_gnu_as= |
2851 | # Make sure we don't let GNU as be added if we didn't want it. | |
2852 | if test x$with_gnu_as = xno ; then | |
2853 | use_gnu_as=no | |
2854 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2855 | fi |
2856 | ||
d7f09764 DN |
2857 | use_included_zlib= |
2858 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2859 | if test x$with_system_zlib = xyes ; then | |
2860 | use_included_zlib=no | |
2861 | noconfigdirs="$noconfigdirs zlib" | |
2862 | fi | |
2863 | ||
1c710c3c | 2864 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2865 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2866 | |
671aa708 NN |
2867 | case ${with_x} in |
2868 | yes | "") ;; # the default value for this tree is that X11 is available | |
2869 | no) | |
b4f96efe | 2870 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2871 | # We won't be able to build gdbtk without X. |
1c710c3c | 2872 | enable_gdbtk=no |
671aa708 NN |
2873 | ;; |
2874 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2875 | esac | |
79c06341 | 2876 | |
1bcce263 | 2877 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2878 | # Remove these if host=target. |
2879 | cross_only="target-libgloss target-newlib target-opcodes" | |
2880 | ||
2881 | case $is_cross_compiler in | |
2882 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2883 | esac |
79c06341 | 2884 | |
671aa708 NN |
2885 | # If both --with-headers and --with-libs are specified, default to |
2886 | # --without-newlib. | |
ee6a22df L |
2887 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2888 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2889 | if test x"${with_newlib}" = x ; then |
2890 | with_newlib=no | |
2891 | fi | |
79c06341 JL |
2892 | fi |
2893 | ||
671aa708 NN |
2894 | # Recognize --with-newlib/--without-newlib. |
2895 | case ${with_newlib} in | |
2896 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2897 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2898 | esac | |
79c06341 | 2899 | |
85c64bbe BS |
2900 | # Check whether --enable-as-accelerator-for was given. |
2901 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2902 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2903 | fi |
2904 | ||
2905 | ||
2906 | # Check whether --enable-offload-targets was given. | |
2907 | if test "${enable_offload_targets+set}" = set; then : | |
2908 | enableval=$enable_offload_targets; | |
2909 | if test x"$enable_offload_targets" = x; then | |
2910 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2911 | fi | |
2912 | ||
2913 | else | |
2914 | enable_offload_targets= | |
2915 | fi | |
2916 | ||
2917 | ||
21539e2e MK |
2918 | # Handle --enable-gold, --enable-ld. |
2919 | # --disable-gold [--enable-ld] | |
2920 | # Build only ld. Default option. | |
9580395f L |
2921 | # --enable-gold [--enable-ld] |
2922 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2923 | # as "ld.bfd" and "ld". | |
2924 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2925 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2926 | # install ld as "ld.bfd". | |
2927 | # --enable-gold[=default] --disable-ld | |
2928 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2929 | # --enable-gold --enable-ld=default | |
9580395f L |
2930 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2931 | # and ld.bfd). | |
21539e2e MK |
2932 | # In other words, ld is default |
2933 | # --enable-gold=default --enable-ld=default | |
2934 | # Error. | |
2935 | ||
2936 | default_ld= | |
5213506e RW |
2937 | # Check whether --enable-gold was given. |
2938 | if test "${enable_gold+set}" = set; then : | |
2939 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2940 | else |
2941 | ENABLE_GOLD=no | |
5213506e RW |
2942 | fi |
2943 | ||
21539e2e MK |
2944 | case "${ENABLE_GOLD}" in |
2945 | yes|default) | |
38e3d868 RM |
2946 | # Check for ELF target. |
2947 | is_elf=no | |
2948 | case "${target}" in | |
2949 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 2950 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 2951 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 2952 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
2953 | case "${target}" in |
2954 | *-*-linux*aout* | *-*-linux*oldld*) | |
2955 | ;; | |
2956 | *) | |
2957 | is_elf=yes | |
2958 | ;; | |
2959 | esac | |
2960 | esac | |
2961 | ||
2962 | if test "$is_elf" = "yes"; then | |
2963 | # Check for target supported by gold. | |
5afab7ad | 2964 | case "${target}" in |
7705dfd1 JY |
2965 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
2966 | | aarch64*-*-* | tilegx*-*-*) | |
21539e2e MK |
2967 | configdirs="$configdirs gold" |
2968 | if test x${ENABLE_GOLD} = xdefault; then | |
2969 | default_ld=gold | |
2970 | fi | |
38e3d868 | 2971 | ENABLE_GOLD=yes |
5afab7ad ILT |
2972 | ;; |
2973 | esac | |
38e3d868 RM |
2974 | fi |
2975 | ;; | |
2976 | no) | |
2977 | ;; | |
2978 | *) | |
2979 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2980 | ;; | |
21539e2e MK |
2981 | esac |
2982 | ||
2983 | # Check whether --enable-ld was given. | |
2984 | if test "${enable_ld+set}" = set; then : | |
2985 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2986 | else | |
2987 | ENABLE_LD=yes | |
2988 | fi | |
2989 | ||
2990 | ||
2991 | case "${ENABLE_LD}" in | |
2992 | default) | |
9580395f | 2993 | if test x${default_ld} != x; then |
21539e2e MK |
2994 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2995 | fi | |
2996 | ;; | |
2997 | yes) | |
2998 | ;; | |
2999 | no) | |
3000 | if test x${ENABLE_GOLD} != xyes; then | |
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3002 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3003 | fi | |
3004 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3005 | ;; | |
3006 | *) | |
3007 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3008 | ;; | |
3009 | esac | |
5afab7ad | 3010 | |
671aa708 | 3011 | # Configure extra directories which are host specific |
79c06341 | 3012 | |
671aa708 NN |
3013 | case "${host}" in |
3014 | *-cygwin*) | |
3015 | configdirs="$configdirs libtermcap" ;; | |
3016 | esac | |
79c06341 | 3017 | |
4fab7234 HPN |
3018 | # A target can indicate whether a language isn't supported for some reason. |
3019 | # Only spaces may be used in this macro; not newlines or tabs. | |
3020 | unsupported_languages= | |
3021 | ||
1c710c3c | 3022 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3023 | # target this usually means that a port of the program doesn't |
3024 | # exist yet. | |
ec8d6ddc | 3025 | |
671aa708 | 3026 | case "${host}" in |
111eeb6e | 3027 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3028 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3029 | ;; |
671aa708 | 3030 | esac |
ec8d6ddc | 3031 | |
6de9cd9a | 3032 | |
87e6d9dc TB |
3033 | # Check whether --enable-libquadmath was given. |
3034 | if test "${enable_libquadmath+set}" = set; then : | |
3035 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3036 | else | |
3037 | ENABLE_LIBQUADMATH=yes | |
3038 | fi | |
3039 | ||
3040 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3041 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3042 | fi | |
3043 | ||
3044 | ||
3045 | # Check whether --enable-libquadmath-support was given. | |
3046 | if test "${enable_libquadmath_support+set}" = set; then : | |
3047 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3048 | else | |
3049 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3050 | fi | |
3051 | ||
3052 | enable_libquadmath_support= | |
3053 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3054 | enable_libquadmath_support=no | |
3055 | fi | |
3056 | ||
3057 | ||
5213506e RW |
3058 | # Check whether --enable-libada was given. |
3059 | if test "${enable_libada+set}" = set; then : | |
3060 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3061 | else |
3062 | ENABLE_LIBADA=yes | |
5213506e RW |
3063 | fi |
3064 | ||
d9cdb878 | 3065 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3066 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3067 | fi |
3068 | ||
5213506e RW |
3069 | # Check whether --enable-libssp was given. |
3070 | if test "${enable_libssp+set}" = set; then : | |
3071 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3072 | else |
3073 | ENABLE_LIBSSP=yes | |
5213506e RW |
3074 | fi |
3075 | ||
ef0087a7 | 3076 | |
1873ec0c L |
3077 | # Check whether --enable-libstdcxx was given. |
3078 | if test "${enable_libstdcxx+set}" = set; then : | |
3079 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3080 | else | |
3081 | ENABLE_LIBSTDCXX=default | |
3082 | fi | |
3083 | ||
3084 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3085 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3086 | fi |
3087 | ||
5f520819 KY |
3088 | # If this is accelerator compiler and its target is intelmic we enable |
3089 | # target liboffloadmic by default. If this is compiler with offloading | |
3090 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3091 | # liboffloadmic is disabled by default. | |
3092 | # Check whether --enable-liboffloadmic was given. | |
3093 | if test "${enable_liboffloadmic+set}" = set; then : | |
3094 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3095 | no | host | target) | |
3096 | enable_liboffloadmic=$enableval ;; | |
3097 | *) | |
3098 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3099 | esac | |
3100 | else | |
4b4f2e35 | 3101 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3102 | case "${target}" in |
3103 | *-intelmic-* | *-intelmicemul-*) | |
3104 | enable_liboffloadmic=target | |
3105 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3106 | ;; | |
3107 | *) | |
3108 | enable_liboffloadmic=no | |
3109 | ;; | |
3110 | esac | |
3111 | else | |
3112 | case "${enable_offload_targets}" in | |
3113 | *-intelmic-* | *-intelmicemul-*) | |
3114 | enable_liboffloadmic=host | |
3115 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3116 | ;; | |
3117 | *) | |
3118 | enable_liboffloadmic=no | |
3119 | ;; | |
3120 | esac | |
3121 | fi | |
3122 | fi | |
3123 | ||
3124 | ||
3125 | ||
671aa708 NN |
3126 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3127 | # front-end isn't enabled, we still get libgcj disabled. | |
3128 | libgcj_saved=$libgcj | |
3129 | case $enable_libgcj in | |
3130 | yes) | |
3131 | # If we reset it here, it won't get added to noconfigdirs in the | |
3132 | # target-specific build rules, so it will be forcibly enabled | |
3133 | # (unless the Java language itself isn't enabled). | |
3134 | libgcj= | |
3135 | ;; | |
3136 | no) | |
3137 | # Make sure we get it printed in the list of not supported target libs. | |
4da3b0f8 ILT |
3138 | # Don't disable libffi, though, other languages use it. |
3139 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
d479b128 ILT |
3140 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3141 | # built. | |
3142 | libgcj_saved= | |
671aa708 NN |
3143 | ;; |
3144 | esac | |
ec8d6ddc | 3145 | |
a4a2c37d MK |
3146 | # Check whether --enable-static-libjava was given. |
3147 | if test "${enable_static_libjava+set}" = set; then : | |
3148 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3149 | else | |
3150 | ENABLE_STATIC_LIBJAVA=no | |
3151 | fi | |
3152 | ||
3153 | enable_static_libjava= | |
3154 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3155 | enable_static_libjava=yes | |
3156 | fi | |
3157 | ||
3158 | if test x$enable_static_libjava != xyes ; then | |
3159 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3160 | fi | |
3161 | ||
6de9cd9a | 3162 | |
27079765 AH |
3163 | # Disable libgomp on non POSIX hosted systems. |
3164 | if test x$enable_libgomp = x ; then | |
953ff289 DN |
3165 | # Enable libgomp by default on hosted POSIX systems. |
3166 | case "${target}" in | |
416ac4d4 | 3167 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3168 | ;; |
8c6d158a | 3169 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3170 | ;; |
b24513a1 | 3171 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3172 | ;; |
cac90078 | 3173 | *-*-darwin* | *-*-aix*) |
953ff289 DN |
3174 | ;; |
3175 | *) | |
3176 | noconfigdirs="$noconfigdirs target-libgomp" | |
3177 | ;; | |
3178 | esac | |
27079765 | 3179 | fi |
953ff289 | 3180 | |
48310492 RH |
3181 | # Disable libatomic on unsupported systems. |
3182 | if test -d ${srcdir}/libatomic; then | |
3183 | if test x$enable_libatomic = x; then | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3185 | $as_echo_n "checking for libatomic support... " >&6; } | |
3186 | if (srcdir=${srcdir}/libatomic; \ | |
3187 | . ${srcdir}/configure.tgt; \ | |
3188 | test -n "$UNSUPPORTED") | |
3189 | then | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3191 | $as_echo "no" >&6; } | |
3192 | noconfigdirs="$noconfigdirs target-libatomic" | |
3193 | else | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3195 | $as_echo "yes" >&6; } | |
3196 | fi | |
3197 | fi | |
3198 | fi | |
3199 | ||
3038054c BI |
3200 | # Disable libcilkrts on unsupported systems. |
3201 | if test -d ${srcdir}/libcilkrts; then | |
3202 | if test x$enable_libcilkrts = x; then | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3204 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3205 | if (srcdir=${srcdir}/libcilkrts; \ | |
3206 | . ${srcdir}/configure.tgt; \ | |
3207 | test -n "$UNSUPPORTED") | |
3208 | then | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3210 | $as_echo "no" >&6; } | |
3211 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3212 | else | |
3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3214 | $as_echo "yes" >&6; } | |
3215 | fi | |
3216 | fi | |
3217 | fi | |
3218 | ||
5f520819 KY |
3219 | # Disable liboffloadmic on unsupported systems. |
3220 | if test -d ${srcdir}/liboffloadmic; then | |
3221 | if test x$enable_liboffloadmic != xno; then | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3223 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3224 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3225 | . ${srcdir}/configure.tgt; \ | |
3226 | test -n "$UNSUPPORTED") | |
3227 | then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3229 | $as_echo "no" >&6; } | |
3230 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3231 | else | |
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3233 | $as_echo "yes" >&6; } | |
3234 | fi | |
3235 | fi | |
3236 | fi | |
3237 | ||
e948157d RH |
3238 | # Disable libitm on unsupported systems. |
3239 | if test -d ${srcdir}/libitm; then | |
3240 | if test x$enable_libitm = x; then | |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3242 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3243 | if (srcdir=${srcdir}/libitm; \ |
3244 | . ${srcdir}/configure.tgt; \ | |
3245 | test -n "$UNSUPPORTED") | |
3246 | then | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3248 | $as_echo "no" >&6; } |
e948157d RH |
3249 | noconfigdirs="$noconfigdirs target-libitm" |
3250 | else | |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3252 | $as_echo "yes" >&6; } |
e948157d RH |
3253 | fi |
3254 | fi | |
0a35513e AH |
3255 | fi |
3256 | ||
93bf5390 RH |
3257 | # Disable libsanitizer on unsupported systems. |
3258 | if test -d ${srcdir}/libsanitizer; then | |
3259 | if test x$enable_libsanitizer = x; then | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3261 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3262 | if (srcdir=${srcdir}/libsanitizer; \ | |
3263 | . ${srcdir}/configure.tgt; \ | |
3264 | test -n "$UNSUPPORTED") | |
3265 | then | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3267 | $as_echo "no" >&6; } | |
3268 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3269 | else | |
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3271 | $as_echo "yes" >&6; } | |
3272 | fi | |
3273 | fi | |
3274 | fi | |
3275 | ||
2077db1b CT |
3276 | # Disable libvtv on unsupported systems. |
3277 | if test -d ${srcdir}/libvtv; then | |
3278 | if test x$enable_libvtv = x; then | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3280 | $as_echo_n "checking for libvtv support... " >&6; } | |
3281 | if (srcdir=${srcdir}/libvtv; \ | |
3282 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3283 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3284 | then |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3286 | $as_echo "no" >&6; } | |
3287 | noconfigdirs="$noconfigdirs target-libvtv" | |
3288 | else | |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3290 | $as_echo "yes" >&6; } | |
3291 | fi | |
3292 | fi | |
3293 | fi | |
3294 | ||
5373cd33 IE |
3295 | |
3296 | # Enable libmpx on supported systems by request. | |
3297 | if test -d ${srcdir}/libmpx; then | |
3298 | if test x$enable_libmpx = xyes; then | |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 | |
3300 | $as_echo_n "checking for libmpx support... " >&6; } | |
3301 | if (srcdir=${srcdir}/libmpx; \ | |
3302 | . ${srcdir}/configure.tgt; \ | |
3303 | test "$LIBMPX_SUPPORTED" != "yes") | |
3304 | then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3306 | $as_echo "no" >&6; } | |
3307 | noconfigdirs="$noconfigdirs target-libmpx" | |
3308 | else | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3310 | $as_echo "yes" >&6; } | |
3311 | fi | |
3312 | else | |
3313 | noconfigdirs="$noconfigdirs target-libmpx" | |
3314 | fi | |
3315 | fi | |
3316 | ||
3317 | ||
3318 | ||
d91491e5 SE |
3319 | # Disable libquadmath for some systems. |
3320 | case "${target}" in | |
e7fae550 DE |
3321 | avr-*-*) |
3322 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3323 | ;; | |
d91491e5 SE |
3324 | # libquadmath is unused on AIX and libquadmath build process use of |
3325 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3326 | powerpc-*-aix* | rs6000-*-aix*) | |
3327 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3328 | ;; | |
3329 | esac | |
3330 | ||
1e9e0e23 JM |
3331 | # Disable libssp for some systems. |
3332 | case "${target}" in | |
3333 | avr-*-*) | |
b318fb4b | 3334 | # No hosted I/O support. |
1e9e0e23 JM |
3335 | noconfigdirs="$noconfigdirs target-libssp" |
3336 | ;; | |
3337 | powerpc-*-aix* | rs6000-*-aix*) | |
3338 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e DD |
3339 | ;; |
3340 | rl78-*-*) | |
7cb62ef1 EB |
3341 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3342 | # doesn't fault for those - instead, it gives a build-time error | |
3343 | # for explicit misaligned loads. | |
85b8555e | 3344 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3345 | ;; |
0969ec7d EB |
3346 | visium-*-*) |
3347 | # No hosted I/O support. | |
3348 | noconfigdirs="$noconfigdirs target-libssp" | |
3349 | ;; | |
1e9e0e23 JM |
3350 | esac |
3351 | ||
1e9e0e23 | 3352 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3353 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3354 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3355 | case "${target}" in | |
3356 | *-*-vxworks*) | |
3357 | # VxWorks uses the Dinkumware C++ library. | |
3358 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3359 | ;; | |
3360 | arm*-wince-pe*) | |
3361 | # the C++ libraries don't build on top of CE's C libraries | |
3362 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3363 | ;; | |
3364 | avr-*-*) | |
3365 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3366 | ;; | |
fef939d6 JB |
3367 | ft32-*-*) |
3368 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3369 | ;; | |
1873ec0c L |
3370 | esac |
3371 | fi | |
1e9e0e23 JM |
3372 | |
3373 | # Disable Fortran for some systems. | |
3374 | case "${target}" in | |
3375 | mmix-*-*) | |
3376 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3377 | unsupported_languages="$unsupported_languages fortran" | |
3378 | ;; | |
3379 | esac | |
3380 | ||
80f81134 | 3381 | # Disable Java if libffi is not supported. |
2909494b | 3382 | case "${target}" in |
eb7062cf AS |
3383 | aarch64-*-*) |
3384 | ;; | |
80f81134 JM |
3385 | alpha*-*-*) |
3386 | ;; | |
3387 | arm*-*-*) | |
3388 | ;; | |
3389 | cris-*-*) | |
3390 | ;; | |
3391 | frv-*-*) | |
3392 | ;; | |
3393 | hppa*-*-linux*) | |
3394 | ;; | |
3395 | hppa*-*-hpux*) | |
3396 | ;; | |
3397 | i?86-*-*) | |
3398 | ;; | |
3399 | ia64*-*-*) | |
3400 | ;; | |
3401 | m32r*-*-*) | |
3402 | ;; | |
3403 | m68k-*-*) | |
3404 | ;; | |
b24513a1 | 3405 | mips*-*-rtems*) |
80f81134 JM |
3406 | ;; |
3407 | mips*-*-linux*) | |
3408 | ;; | |
3409 | powerpc*-*-linux*) | |
3410 | ;; | |
3411 | powerpc-*-darwin*) | |
3412 | ;; | |
3413 | powerpc-*-aix* | rs6000-*-aix*) | |
3414 | ;; | |
3415 | powerpc-*-freebsd*) | |
3416 | ;; | |
3417 | powerpc64-*-freebsd*) | |
3418 | ;; | |
3419 | powerpc*-*-rtems*) | |
2909494b | 3420 | ;; |
80f81134 JM |
3421 | s390-*-* | s390x-*-*) |
3422 | ;; | |
3423 | sh-*-* | sh[34]*-*-*) | |
3424 | ;; | |
3425 | sh64-*-* | sh5*-*-*) | |
3426 | ;; | |
3427 | sparc*-*-*) | |
3428 | ;; | |
3429 | x86_64-*-*) | |
3430 | ;; | |
3431 | *-*-*) | |
3432 | unsupported_languages="$unsupported_languages java" | |
3433 | ;; | |
3434 | esac | |
3435 | ||
3436 | # Disable Java, libgcj or related libraries for some systems. | |
3437 | case "${target}" in | |
2909494b JM |
3438 | powerpc-*-darwin*) |
3439 | ;; | |
3440 | i[3456789]86-*-darwin*) | |
3441 | ;; | |
3442 | x86_64-*-darwin[912]*) | |
3443 | ;; | |
3444 | *-*-darwin*) | |
3445 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3446 | ;; | |
2909494b JM |
3447 | *-*-netware*) |
3448 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3449 | ;; | |
3450 | *-*-rtems*) | |
3451 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3452 | ;; | |
3453 | *-*-tpf*) | |
3454 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3455 | ;; | |
3456 | *-*-uclinux*) | |
3457 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3458 | ;; | |
3459 | *-*-vxworks*) | |
3460 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3461 | ;; | |
2909494b JM |
3462 | alpha*-*-*vms*) |
3463 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3464 | ;; | |
82a19768 AT |
3465 | arm*-*-freebsd*) |
3466 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3467 | ;; | |
80f81134 | 3468 | arm-wince-pe) |
2909494b JM |
3469 | noconfigdirs="$noconfigdirs ${libgcj}" |
3470 | ;; | |
2909494b JM |
3471 | arm*-*-symbianelf*) |
3472 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3473 | ;; | |
2909494b | 3474 | bfin-*-*) |
2909494b JM |
3475 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3476 | ;; | |
2909494b JM |
3477 | cris-*-* | crisv32-*-*) |
3478 | unsupported_languages="$unsupported_languages java" | |
3479 | case "${target}" in | |
3480 | *-*-linux*) | |
3481 | ;; | |
3482 | *) # See PR46792 regarding target-libffi. | |
3483 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3484 | esac | |
3485 | ;; | |
2909494b JM |
3486 | hppa*64*-*-linux*) |
3487 | # In this case, it's because the hppa64-linux target is for | |
3488 | # the kernel only at this point and has no libc, and thus no | |
3489 | # headers, crt*.o, etc., all of which are needed by these. | |
fddf9ee7 | 3490 | unsupported_languages="$unsupported_languages java" |
2909494b | 3491 | ;; |
fddf9ee7 | 3492 | hppa*64*-*-hpux*) |
2909494b JM |
3493 | noconfigdirs="$noconfigdirs ${libgcj}" |
3494 | ;; | |
3495 | hppa*-hp-hpux11*) | |
3496 | ;; | |
fddf9ee7 | 3497 | hppa*-*-hpux*) |
2909494b JM |
3498 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3499 | # build on HP-UX 10.20. | |
3500 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3501 | ;; | |
2909494b JM |
3502 | ia64*-*-*vms*) |
3503 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3504 | ;; | |
2909494b JM |
3505 | i[3456789]86-w64-mingw*) |
3506 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3507 | ;; | |
3508 | i[3456789]86-*-mingw*) | |
3509 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3510 | ;; | |
3511 | x86_64-*-mingw*) | |
3512 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3513 | ;; | |
2909494b JM |
3514 | mmix-*-*) |
3515 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
2909494b JM |
3516 | ;; |
3517 | powerpc-*-aix*) | |
3518 | # copied from rs6000-*-* entry | |
3519 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3520 | ;; | |
2909494b JM |
3521 | rs6000-*-aix*) |
3522 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3523 | ;; | |
2909494b JM |
3524 | *-*-lynxos*) |
3525 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3526 | ;; | |
2909494b JM |
3527 | esac |
3528 | ||
1335a8ca JBG |
3529 | # Disable the go frontend on systems where it is known to not work. Please keep |
3530 | # this in sync with contrib/config-list.mk. | |
74cc5471 ILT |
3531 | case "${target}" in |
3532 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3533 | unsupported_languages="$unsupported_languages go" | |
3534 | ;; | |
3535 | esac | |
3536 | ||
cdbc9e92 ILT |
3537 | # Disable libgo for some systems where it is known to not work. |
3538 | # For testing, you can easily override this with --enable-libgo. | |
3539 | if test x$enable_libgo = x; then | |
3540 | case "${target}" in | |
3541 | *-*-darwin*) | |
3542 | # PR 46986 | |
3543 | noconfigdirs="$noconfigdirs target-libgo" | |
3544 | ;; | |
3545 | *-*-cygwin* | *-*-mingw*) | |
3546 | noconfigdirs="$noconfigdirs target-libgo" | |
3547 | ;; | |
3548 | *-*-aix*) | |
3549 | noconfigdirs="$noconfigdirs target-libgo" | |
3550 | ;; | |
3551 | esac | |
3552 | fi | |
3553 | ||
c03353e2 RIL |
3554 | # Default libgloss CPU subdirectory. |
3555 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3556 | |
fbcf0dca JM |
3557 | case "${target}" in |
3558 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3559 | libgloss_dir=wince | |
3560 | ;; | |
4dddfc74 YZ |
3561 | aarch64*-*-* ) |
3562 | libgloss_dir=aarch64 | |
3563 | ;; | |
fbcf0dca JM |
3564 | arm*-*-*) |
3565 | libgloss_dir=arm | |
3566 | ;; | |
3567 | cris-*-* | crisv32-*-*) | |
3568 | libgloss_dir=cris | |
3569 | ;; | |
3570 | hppa*-*-*) | |
3571 | libgloss_dir=pa | |
3572 | ;; | |
3573 | i[3456789]86-*-*) | |
3574 | libgloss_dir=i386 | |
3575 | ;; | |
3576 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3577 | libgloss_dir=m68hc11 | |
3578 | ;; | |
3579 | m68*-*-* | fido-*-*) | |
3580 | libgloss_dir=m68k | |
3581 | ;; | |
3582 | mips*-*-*) | |
3583 | libgloss_dir=mips | |
3584 | ;; | |
3585 | powerpc*-*-*) | |
3586 | libgloss_dir=rs6000 | |
3587 | ;; | |
3588 | sparc*-*-*) | |
3589 | libgloss_dir=sparc | |
3590 | ;; | |
3591 | esac | |
3592 | ||
6a789d5e | 3593 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3594 | case "${target}" in |
6a789d5e JM |
3595 | alpha*-dec-osf*) |
3596 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3597 | ;; | |
3598 | i[3456789]86-*-linux*) | |
3599 | # This section makes it possible to build newlib natively on linux. | |
3600 | # If we are using a cross compiler then don't configure newlib. | |
3601 | if test x${is_cross_compiler} != xno ; then | |
3602 | noconfigdirs="$noconfigdirs target-newlib" | |
3603 | fi | |
3604 | noconfigdirs="$noconfigdirs target-libgloss" | |
3605 | # If we are not using a cross compiler, do configure newlib. | |
3606 | # Note however, that newlib will only be configured in this situation | |
3607 | # if the --with-newlib option has been given, because otherwise | |
3608 | # 'target-newlib' will appear in skipdirs. | |
3609 | ;; | |
3610 | i[3456789]86-*-rdos*) | |
3611 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3612 | ;; | |
3613 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3614 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3615 | ;; | |
3616 | sparc-*-sunos4*) | |
3617 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3618 | ;; | |
3619 | *-*-aix*) | |
3620 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3621 | ;; | |
3622 | *-*-beos*) | |
3623 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3624 | ;; | |
671aa708 | 3625 | *-*-chorusos) |
0036370f | 3626 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3627 | ;; |
6a789d5e JM |
3628 | *-*-dragonfly*) |
3629 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3630 | ;; | |
3631 | *-*-freebsd*) | |
3632 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3633 | ;; | |
3634 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3635 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3636 | ;; | |
3637 | *-*-lynxos*) | |
3638 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3639 | ;; | |
3640 | *-*-mingw*) | |
3641 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3642 | ;; | |
3643 | *-*-netbsd*) | |
3644 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3645 | ;; | |
3646 | *-*-netware*) | |
3647 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3648 | ;; | |
3649 | *-*-tpf*) | |
3650 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3651 | ;; | |
3652 | *-*-uclinux*) | |
3653 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3654 | ;; | |
3655 | *-*-vxworks*) | |
3656 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3657 | ;; | |
3658 | esac | |
3659 | ||
3660 | case "${target}" in | |
3661 | *-*-chorusos) | |
3662 | ;; | |
75eeae1a | 3663 | powerpc-*-darwin*) |
e1514c3f | 3664 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3665 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3666 | ;; |
354ebf88 RW |
3667 | i[3456789]86-*-darwin*) |
3668 | noconfigdirs="$noconfigdirs ld gprof" | |
3669 | noconfigdirs="$noconfigdirs sim target-rda" | |
3670 | ;; | |
3671 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3672 | noconfigdirs="$noconfigdirs ld gas gprof" |
3673 | noconfigdirs="$noconfigdirs sim target-rda" | |
3674 | ;; | |
42c1cd8a AT |
3675 | *-*-darwin*) |
3676 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3677 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3678 | ;; |
8c6d158a | 3679 | *-*-dragonfly*) |
8c6d158a | 3680 | ;; |
c3f84f61 | 3681 | *-*-freebsd*) |
6de9cd9a DN |
3682 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3683 | && test -f /usr/local/include/gmp.h; then | |
3684 | with_gmp=/usr/local | |
3685 | fi | |
6de9cd9a | 3686 | ;; |
ef4e7569 US |
3687 | *-*-kaos*) |
3688 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3689 | noconfigdirs="$noconfigdirs target-libgloss" |
3690 | ;; | |
671aa708 | 3691 | *-*-netbsd*) |
671aa708 | 3692 | ;; |
61fec9ff | 3693 | *-*-netware*) |
671aa708 NN |
3694 | ;; |
3695 | *-*-rtems*) | |
2909494b | 3696 | noconfigdirs="$noconfigdirs target-libgloss" |
d896cc4d JBG |
3697 | # this is not caught below because this stanza matches earlier |
3698 | case $target in | |
3699 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3700 | esac | |
671aa708 | 3701 | ;; |
a8ba31f2 EC |
3702 | # The tpf target doesn't support gdb yet. |
3703 | *-*-tpf*) | |
6a789d5e | 3704 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3705 | ;; |
5785c0ed | 3706 | *-*-uclinux*) |
6a789d5e | 3707 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3708 | ;; |
671aa708 | 3709 | *-*-vxworks*) |
671aa708 NN |
3710 | ;; |
3711 | alpha*-dec-osf*) | |
3712 | # ld works, but does not support shared libraries. | |
671aa708 | 3713 | # gas doesn't generate exception information. |
6a789d5e | 3714 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3715 | ;; |
3716 | alpha*-*-*vms*) | |
2909494b | 3717 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3718 | ;; |
671aa708 NN |
3719 | alpha*-*-*) |
3720 | # newlib is not 64 bit ready | |
2909494b | 3721 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3722 | ;; |
671aa708 | 3723 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3724 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3725 | ;; |
53426f6c | 3726 | arc-*-*|arceb-*-*) |
ebb9f8b0 | 3727 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3728 | ;; |
671aa708 | 3729 | arm-*-pe*) |
2909494b | 3730 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3731 | ;; |
671aa708 | 3732 | arm-*-riscix*) |
0036370f | 3733 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3734 | ;; |
b588ae30 GJL |
3735 | avr-*-rtems*) |
3736 | ;; | |
3737 | avr-*-*) | |
3738 | if test x${with_avrlibc} != xno; then | |
3739 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3740 | fi | |
3741 | ;; | |
671aa708 | 3742 | c4x-*-* | tic4x-*-*) |
0036370f | 3743 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3744 | ;; |
0036370f JM |
3745 | tic54x-*-*) |
3746 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3747 | ;; |
671aa708 | 3748 | d10v-*-*) |
0036370f | 3749 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3750 | ;; |
3751 | d30v-*-*) | |
0036370f | 3752 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3753 | ;; |
3754 | fr30-*-elf*) | |
2909494b | 3755 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3756 | ;; |
55f2d967 | 3757 | moxie-*-*) |
55f2d967 AG |
3758 | noconfigdirs="$noconfigdirs gprof" |
3759 | ;; | |
671aa708 | 3760 | h8300*-*-*) |
2909494b | 3761 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3762 | ;; |
3763 | h8500-*-*) | |
0036370f | 3764 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3765 | ;; |
ee6a22df | 3766 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3767 | ;; |
4569f85e | 3768 | hppa*64*-*-linux*) |
671aa708 | 3769 | ;; |
56f8587a | 3770 | hppa*-*-linux*) |
3e732ba0 | 3771 | ;; |
671aa708 | 3772 | hppa*-*-*elf* | \ |
671aa708 NN |
3773 | hppa*-*-lites* | \ |
3774 | hppa*-*-openbsd* | \ | |
3775 | hppa*64*-*-*) | |
671aa708 | 3776 | ;; |
2a332582 | 3777 | hppa*-hp-hpux11*) |
1bcce263 | 3778 | noconfigdirs="$noconfigdirs ld" |
2a332582 | 3779 | ;; |
c03353e2 | 3780 | hppa*-*-pro*) |
c03353e2 | 3781 | ;; |
671aa708 | 3782 | hppa*-*-*) |
2909494b | 3783 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3784 | ;; |
fb87ad5d | 3785 | i960-*-*) |
0036370f | 3786 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3787 | ;; |
671aa708 NN |
3788 | ia64*-*-elf*) |
3789 | # No gdb support yet. | |
1bcce263 | 3790 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3791 | ;; |
3792 | ia64*-**-hpux*) | |
5a2931d1 | 3793 | # No ld support yet. |
2909494b | 3794 | noconfigdirs="$noconfigdirs libgui itcl ld" |
671aa708 | 3795 | ;; |
52535a64 | 3796 | ia64*-*-*vms*) |
091fe9ca TG |
3797 | # No ld support yet. |
3798 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3799 | ;; |
ef4c4300 | 3800 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3801 | ;; |
3802 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3803 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3804 | ;; |
671aa708 NN |
3805 | *-*-cygwin*) |
3806 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3807 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3808 | # always build newlib if winsup directory is present. |
b91f0a41 | 3809 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3810 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3811 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3812 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3813 | fi |
1c710c3c | 3814 | ;; |
f2a0e225 | 3815 | i[3456789]86-*-pe) |
ebb9f8b0 | 3816 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3817 | ;; |
f2a0e225 | 3818 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3819 | # The linker does not yet know about weak symbols in COFF, |
3820 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3821 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3822 | ;; |
f2a0e225 | 3823 | i[3456789]86-*-sco*) |
0036370f | 3824 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3825 | ;; |
fbdd5d87 | 3826 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3827 | noconfigdirs="$noconfigdirs target-libgloss" |
3828 | ;; | |
f2a0e225 | 3829 | i[3456789]86-*-sysv4*) |
0036370f | 3830 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3831 | ;; |
f2a0e225 | 3832 | i[3456789]86-*-beos*) |
6a789d5e | 3833 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3834 | ;; |
d1f8db0c | 3835 | i[3456789]86-*-rdos*) |
6a789d5e | 3836 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3837 | ;; |
671aa708 | 3838 | mmix-*-*) |
2909494b | 3839 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3840 | ;; |
ab34901f | 3841 | mt-*-*) |
79dd769c AH |
3842 | noconfigdirs="$noconfigdirs sim" |
3843 | ;; | |
671aa708 NN |
3844 | powerpc-*-aix*) |
3845 | # copied from rs6000-*-* entry | |
6a789d5e | 3846 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3847 | ;; |
4569f85e | 3848 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3849 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3850 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3851 | # always build newlib. |
3852 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3853 | ;; | |
3854 | # This is temporary until we can link against shared libraries | |
3855 | powerpcle-*-solaris*) | |
0036370f | 3856 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3857 | ;; |
3858 | powerpc-*-beos*) | |
6a789d5e | 3859 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3860 | ;; |
671aa708 | 3861 | rs6000-*-lynxos*) |
6a789d5e | 3862 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3863 | ;; |
3864 | rs6000-*-aix*) | |
6a789d5e | 3865 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3866 | ;; |
3867 | rs6000-*-*) | |
2909494b | 3868 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3869 | ;; |
3870 | m68k-apollo-*) | |
0036370f | 3871 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3872 | ;; |
ca9fe997 | 3873 | microblaze*) |
2909494b | 3874 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3875 | ;; |
d896cc4d | 3876 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3877 | if test x$with_newlib = xyes; then |
3878 | noconfigdirs="$noconfigdirs gprof" | |
3879 | fi | |
d9dced13 | 3880 | ;; |
671aa708 | 3881 | mips*-*-irix5*) |
0036370f | 3882 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3883 | ;; |
3884 | mips*-*-irix6*) | |
2909494b | 3885 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3886 | ;; |
671aa708 | 3887 | mips*-*-bsd*) |
bc98bcc4 | 3888 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3889 | ;; |
671aa708 | 3890 | mips*-*-linux*) |
671aa708 | 3891 | ;; |
bc98bcc4 JBG |
3892 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3893 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3894 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3895 | ;; | |
671aa708 | 3896 | mips*-*-*) |
2909494b | 3897 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3898 | ;; |
d896cc4d JBG |
3899 | nds32*-*-*) |
3900 | noconfigdirs="$noconfigdirs gdb" | |
3901 | ;; | |
738f2522 BS |
3902 | nvptx*-*-*) |
3903 | # nvptx is just a compiler | |
3904 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" | |
3905 | ;; | |
d896cc4d JBG |
3906 | or1k*-*-*) |
3907 | noconfigdirs="$noconfigdirs gdb" | |
3908 | ;; | |
669f01d8 | 3909 | sh-*-* | sh64-*-*) |
ea2002ba CB |
3910 | case "${target}" in |
3911 | sh*-*-elf) | |
2909494b | 3912 | ;; |
ea2002ba | 3913 | *) |
2909494b | 3914 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3915 | esac |
671aa708 | 3916 | ;; |
671aa708 | 3917 | sparc-*-sunos4*) |
6a789d5e | 3918 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3919 | use_gnu_ld=no |
3920 | fi | |
3921 | ;; | |
b42f0d7e | 3922 | tic6x-*-*) |
0d557ff8 | 3923 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3924 | ;; |
341c653c | 3925 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
3926 | noconfigdirs="$noconfigdirs sim" |
3927 | ;; | |
671aa708 | 3928 | v810-*-*) |
0036370f | 3929 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3930 | ;; |
3931 | vax-*-*) | |
2909494b | 3932 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3933 | ;; |
671aa708 | 3934 | esac |
79c06341 | 3935 | |
671aa708 NN |
3936 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3937 | # depends upon some newlib header files. | |
3938 | case "${noconfigdirs}" in | |
3939 | *target-libgloss*) ;; | |
3940 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3941 | esac | |
3942 | ||
671aa708 | 3943 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3944 | host_makefile_frag=/dev/null |
3945 | if test -d ${srcdir}/config ; then | |
3946 | case "${host}" in | |
f2a0e225 | 3947 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3948 | host_makefile_frag="config/mh-djgpp" |
3949 | ;; | |
3950 | *-cygwin*) | |
2a79c47f | 3951 | |
5213506e RW |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3953 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3954 | echo a >cygwin-cat-check |
e25a8c82 | 3955 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3956 | rm cygwin-cat-check |
5213506e RW |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3958 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3959 | else |
3960 | rm cygwin-cat-check | |
5213506e RW |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3962 | $as_echo "no" >&6; } | |
3963 | as_fn_error "The cat command does not ignore carriage return characters. | |
2a79c47f NC |
3964 | Please either mount the build directory in binary mode or run the following |
3965 | commands before running any configure script: | |
3966 | set -o igncr | |
3967 | export SHELLOPTS | |
5213506e | 3968 | " "$LINENO" 5 |
2a79c47f NC |
3969 | fi |
3970 | ||
671aa708 NN |
3971 | host_makefile_frag="config/mh-cygwin" |
3972 | ;; | |
c53a18d3 | 3973 | *-mingw*) |
1f5a6b84 | 3974 | host_makefile_frag="config/mh-mingw" |
95af8923 | 3975 | ;; |
cabb9d59 | 3976 | alpha*-linux*) |
13be44ed UB |
3977 | host_makefile_frag="config/mh-alpha-linux" |
3978 | ;; | |
efd41714 | 3979 | hppa*-hp-hpux10*) |
efd41714 | 3980 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 3981 | ;; |
111eeb6e | 3982 | hppa*-hp-hpux*) |
efd41714 PB |
3983 | host_makefile_frag="config/mh-pa" |
3984 | ;; | |
3985 | hppa*-*) | |
3986 | host_makefile_frag="config/mh-pa" | |
3987 | ;; | |
d8ed14ce IS |
3988 | *-*-darwin*) |
3989 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 3990 | ;; |
d19bca38 PB |
3991 | powerpc-*-aix*) |
3992 | host_makefile_frag="config/mh-ppc-aix" | |
3993 | ;; | |
3994 | rs6000-*-aix*) | |
3995 | host_makefile_frag="config/mh-ppc-aix" | |
3996 | ;; | |
671aa708 NN |
3997 | esac |
3998 | fi | |
3999 | ||
55ffb5ed | 4000 | if test "${build}" != "${host}" ; then |
0999159b PB |
4001 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4002 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4003 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b PB |
4004 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4005 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4006 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
632e2a07 | 4007 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
0999159b PB |
4008 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4009 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4010 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4011 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4012 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4013 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4014 | else | |
4015 | AR_FOR_BUILD="\$(AR)" | |
4016 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4017 | CC_FOR_BUILD="\$(CC)" |
0999159b PB |
4018 | CXX_FOR_BUILD="\$(CXX)" |
4019 | GCJ_FOR_BUILD="\$(GCJ)" | |
4020 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
632e2a07 | 4021 | GOC_FOR_BUILD="\$(GOC)" |
0999159b PB |
4022 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4023 | LD_FOR_BUILD="\$(LD)" | |
4024 | NM_FOR_BUILD="\$(NM)" | |
4025 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4026 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4027 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4028 | fi |
4029 | ||
4030 | ac_ext=c | |
1c710c3c DJ |
4031 | ac_cpp='$CPP $CPPFLAGS' |
4032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4035 | if test -n "$ac_tool_prefix"; then | |
4036 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4037 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4039 | $as_echo_n "checking for $ac_word... " >&6; } | |
4040 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4041 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
4042 | else |
4043 | if test -n "$CC"; then | |
4044 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4045 | else | |
4046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4047 | for as_dir in $PATH | |
4048 | do | |
4049 | IFS=$as_save_IFS | |
4050 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4051 | for ac_exec_ext in '' $ac_executable_extensions; do |
4052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4053 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4055 | break 2 |
4056 | fi | |
4057 | done | |
5213506e RW |
4058 | done |
4059 | IFS=$as_save_IFS | |
1c710c3c DJ |
4060 | |
4061 | fi | |
4062 | fi | |
4063 | CC=$ac_cv_prog_CC | |
4064 | if test -n "$CC"; then | |
5213506e RW |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4066 | $as_echo "$CC" >&6; } | |
1c710c3c | 4067 | else |
5213506e RW |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4069 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4070 | fi |
4071 | ||
5213506e | 4072 | |
1c710c3c DJ |
4073 | fi |
4074 | if test -z "$ac_cv_prog_CC"; then | |
4075 | ac_ct_CC=$CC | |
fb0103e5 RG |
4076 | # Extract the first word of "gcc", so it can be a program name with args. |
4077 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4079 | $as_echo_n "checking for $ac_word... " >&6; } | |
4080 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4081 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
4082 | else |
4083 | if test -n "$ac_ct_CC"; then | |
4084 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4085 | else | |
4086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4087 | for as_dir in $PATH | |
4088 | do | |
4089 | IFS=$as_save_IFS | |
4090 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4091 | for ac_exec_ext in '' $ac_executable_extensions; do |
4092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4093 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4095 | break 2 |
4096 | fi | |
4097 | done | |
5213506e RW |
4098 | done |
4099 | IFS=$as_save_IFS | |
1c710c3c DJ |
4100 | |
4101 | fi | |
4102 | fi | |
4103 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4104 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4106 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4107 | else |
5213506e RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4109 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4110 | fi |
4111 | ||
5213506e RW |
4112 | if test "x$ac_ct_CC" = x; then |
4113 | CC="" | |
4114 | else | |
4115 | case $cross_compiling:$ac_tool_warned in | |
4116 | yes:) | |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4118 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4119 | ac_tool_warned=yes ;; | |
4120 | esac | |
4121 | CC=$ac_ct_CC | |
4122 | fi | |
1c710c3c DJ |
4123 | else |
4124 | CC="$ac_cv_prog_CC" | |
4125 | fi | |
4126 | ||
4127 | if test -z "$CC"; then | |
5213506e RW |
4128 | if test -n "$ac_tool_prefix"; then |
4129 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4130 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4132 | $as_echo_n "checking for $ac_word... " >&6; } | |
4133 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4134 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4135 | else |
4136 | if test -n "$CC"; then | |
4137 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4138 | else | |
1c710c3c DJ |
4139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4140 | for as_dir in $PATH | |
4141 | do | |
4142 | IFS=$as_save_IFS | |
4143 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4144 | for ac_exec_ext in '' $ac_executable_extensions; do |
4145 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4146 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4148 | break 2 |
4149 | fi | |
4150 | done | |
5213506e RW |
4151 | done |
4152 | IFS=$as_save_IFS | |
1c710c3c | 4153 | |
0b0dc272 | 4154 | fi |
0b0dc272 | 4155 | fi |
1c710c3c | 4156 | CC=$ac_cv_prog_CC |
af71363e | 4157 | if test -n "$CC"; then |
5213506e RW |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4159 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4160 | else |
5213506e RW |
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4162 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4163 | fi |
4164 | ||
2aeb72e9 | 4165 | |
5213506e | 4166 | fi |
1c710c3c | 4167 | fi |
55ffb5ed NN |
4168 | if test -z "$CC"; then |
4169 | # Extract the first word of "cc", so it can be a program name with args. | |
4170 | set dummy cc; ac_word=$2 | |
5213506e RW |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4172 | $as_echo_n "checking for $ac_word... " >&6; } | |
4173 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4174 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4175 | else |
4176 | if test -n "$CC"; then | |
4177 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4178 | else | |
0b0dc272 | 4179 | ac_prog_rejected=no |
1c710c3c DJ |
4180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4181 | for as_dir in $PATH | |
4182 | do | |
4183 | IFS=$as_save_IFS | |
4184 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4185 | for ac_exec_ext in '' $ac_executable_extensions; do |
4186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c DJ |
4187 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4188 | ac_prog_rejected=yes | |
4189 | continue | |
4190 | fi | |
4191 | ac_cv_prog_CC="cc" | |
5213506e | 4192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4193 | break 2 |
4194 | fi | |
4195 | done | |
5213506e RW |
4196 | done |
4197 | IFS=$as_save_IFS | |
1c710c3c | 4198 | |
55ffb5ed NN |
4199 | if test $ac_prog_rejected = yes; then |
4200 | # We found a bogon in the path, so make sure we never use it. | |
4201 | set dummy $ac_cv_prog_CC | |
4202 | shift | |
1c710c3c | 4203 | if test $# != 0; then |
55ffb5ed NN |
4204 | # We chose a different compiler from the bogus one. |
4205 | # However, it has the same basename, so the bogon will be chosen | |
4206 | # first if we set CC to just the basename; use the full file name. | |
4207 | shift | |
1c710c3c | 4208 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4209 | fi |
4210 | fi | |
4211 | fi | |
4212 | fi | |
1c710c3c | 4213 | CC=$ac_cv_prog_CC |
55ffb5ed | 4214 | if test -n "$CC"; then |
5213506e RW |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4216 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4217 | else |
5213506e RW |
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4219 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4220 | fi |
4221 | ||
5213506e | 4222 | |
1c710c3c DJ |
4223 | fi |
4224 | if test -z "$CC"; then | |
4225 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4226 | for ac_prog in cl.exe |
1c710c3c DJ |
4227 | do |
4228 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4229 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4231 | $as_echo_n "checking for $ac_word... " >&6; } | |
4232 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4233 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4234 | else |
4235 | if test -n "$CC"; then | |
4236 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4237 | else | |
1c710c3c DJ |
4238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4239 | for as_dir in $PATH | |
4240 | do | |
4241 | IFS=$as_save_IFS | |
4242 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4243 | for ac_exec_ext in '' $ac_executable_extensions; do |
4244 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4245 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4247 | break 2 |
4248 | fi | |
4249 | done | |
5213506e RW |
4250 | done |
4251 | IFS=$as_save_IFS | |
1c710c3c | 4252 | |
55ffb5ed NN |
4253 | fi |
4254 | fi | |
1c710c3c | 4255 | CC=$ac_cv_prog_CC |
55ffb5ed | 4256 | if test -n "$CC"; then |
5213506e RW |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4258 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4259 | else |
5213506e RW |
4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4261 | $as_echo "no" >&6; } | |
fb0103e5 | 4262 | fi |
af71363e | 4263 | |
5213506e | 4264 | |
1c710c3c DJ |
4265 | test -n "$CC" && break |
4266 | done | |
af71363e | 4267 | fi |
1c710c3c DJ |
4268 | if test -z "$CC"; then |
4269 | ac_ct_CC=$CC | |
5213506e | 4270 | for ac_prog in cl.exe |
1c710c3c DJ |
4271 | do |
4272 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4273 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4275 | $as_echo_n "checking for $ac_word... " >&6; } | |
4276 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4277 | $as_echo_n "(cached) " >&6 | |
0b0dc272 | 4278 | else |
1c710c3c DJ |
4279 | if test -n "$ac_ct_CC"; then |
4280 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4281 | else |
1c710c3c DJ |
4282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4283 | for as_dir in $PATH | |
4284 | do | |
4285 | IFS=$as_save_IFS | |
4286 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4287 | for ac_exec_ext in '' $ac_executable_extensions; do |
4288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4289 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4291 | break 2 |
4292 | fi | |
4293 | done | |
5213506e RW |
4294 | done |
4295 | IFS=$as_save_IFS | |
1c710c3c | 4296 | |
af71363e AS |
4297 | fi |
4298 | fi | |
1c710c3c DJ |
4299 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4300 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4302 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4303 | else |
5213506e RW |
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4305 | $as_echo "no" >&6; } | |
af71363e | 4306 | fi |
0b0dc272 | 4307 | |
5213506e | 4308 | |
1c710c3c DJ |
4309 | test -n "$ac_ct_CC" && break |
4310 | done | |
4311 | ||
5213506e RW |
4312 | if test "x$ac_ct_CC" = x; then |
4313 | CC="" | |
4314 | else | |
4315 | case $cross_compiling:$ac_tool_warned in | |
4316 | yes:) | |
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4318 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4319 | ac_tool_warned=yes ;; | |
4320 | esac | |
4321 | CC=$ac_ct_CC | |
4322 | fi | |
1c710c3c DJ |
4323 | fi |
4324 | ||
4325 | fi | |
4326 | ||
4327 | ||
5213506e RW |
4328 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4329 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4330 | as_fn_error "no acceptable C compiler found in \$PATH | |
4331 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c DJ |
4332 | |
4333 | # Provide some information about the compiler. | |
5213506e RW |
4334 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4335 | set X $ac_compile | |
4336 | ac_compiler=$2 | |
4337 | for ac_option in --version -v -V -qversion; do | |
4338 | { { ac_try="$ac_compiler $ac_option >&5" | |
4339 | case "(($ac_try" in | |
4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4341 | *) ac_try_echo=$ac_try;; | |
4342 | esac | |
4343 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4344 | $as_echo "$ac_try_echo"; } >&5 | |
4345 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4346 | ac_status=$? |
5213506e RW |
4347 | if test -s conftest.err; then |
4348 | sed '10a\ | |
4349 | ... rest of stderr output deleted ... | |
4350 | 10q' conftest.err >conftest.er1 | |
4351 | cat conftest.er1 >&5 | |
4352 | rm -f conftest.er1 conftest.err | |
4353 | fi | |
4354 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4355 | test $ac_status = 0; } | |
4356 | done | |
1c710c3c | 4357 | |
5213506e | 4358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4359 | /* end confdefs.h. */ |
4360 | ||
4361 | int | |
4362 | main () | |
4363 | { | |
4364 | ||
4365 | ; | |
4366 | return 0; | |
4367 | } | |
4368 | _ACEOF | |
4369 | ac_clean_files_save=$ac_clean_files | |
5213506e | 4370 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
1c710c3c DJ |
4371 | # Try to create an executable without -o first, disregard a.out. |
4372 | # It will help us diagnose broken compilers, and finding out an intuition | |
4373 | # of exeext. | |
5213506e RW |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4375 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4376 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4377 | ||
4378 | # The possible output files: | |
4379 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4380 | ||
4381 | ac_rmfiles= | |
4382 | for ac_file in $ac_files | |
4383 | do | |
4384 | case $ac_file in | |
4385 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4386 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4387 | esac | |
4388 | done | |
4389 | rm -f $ac_rmfiles | |
4390 | ||
4391 | if { { ac_try="$ac_link_default" | |
4392 | case "(($ac_try" in | |
4393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4394 | *) ac_try_echo=$ac_try;; | |
4395 | esac | |
4396 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4397 | $as_echo "$ac_try_echo"; } >&5 | |
4398 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4399 | ac_status=$? |
5213506e RW |
4400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4401 | test $ac_status = 0; }; then : | |
4402 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4403 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4404 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4405 | # so that the user can short-circuit this test for compilers unknown to | |
4406 | # Autoconf. | |
4407 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4408 | do |
4409 | test -f "$ac_file" || continue | |
4410 | case $ac_file in | |
5213506e | 4411 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4412 | ;; |
4413 | [ab].out ) | |
4414 | # We found the default executable, but exeext='' is most | |
4415 | # certainly right. | |
4416 | break;; | |
4417 | *.* ) | |
5213506e RW |
4418 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4419 | then :; else | |
4420 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4421 | fi | |
4422 | # We set ac_cv_exeext here because the later test for it is not | |
4423 | # safe: cross compilers may not add the suffix if given an `-o' | |
4424 | # argument, so we may need to know it at that point already. | |
4425 | # Even if this section looks crufty: it has the advantage of | |
4426 | # actually working. | |
1c710c3c DJ |
4427 | break;; |
4428 | * ) | |
4429 | break;; | |
4430 | esac | |
4431 | done | |
5213506e RW |
4432 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4433 | ||
1c710c3c | 4434 | else |
5213506e RW |
4435 | ac_file='' |
4436 | fi | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4438 | $as_echo "$ac_file" >&6; } | |
4439 | if test -z "$ac_file"; then : | |
4440 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4441 | sed 's/^/| /' conftest.$ac_ext >&5 |
4442 | ||
5213506e RW |
4443 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4444 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4445 | { as_fn_set_status 77 | |
4446 | as_fn_error "C compiler cannot create executables | |
4447 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1c710c3c | 4448 | fi |
1c710c3c | 4449 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4450 | |
5213506e | 4451 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4452 | # the compiler is broken, or we cross compile. |
5213506e RW |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4454 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1c710c3c DJ |
4455 | # If not cross compiling, check that we can run a simple program. |
4456 | if test "$cross_compiling" != yes; then | |
4457 | if { ac_try='./$ac_file' | |
5213506e RW |
4458 | { { case "(($ac_try" in |
4459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4460 | *) ac_try_echo=$ac_try;; | |
4461 | esac | |
4462 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4463 | $as_echo "$ac_try_echo"; } >&5 | |
4464 | (eval "$ac_try") 2>&5 | |
1c710c3c | 4465 | ac_status=$? |
5213506e RW |
4466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4467 | test $ac_status = 0; }; }; then | |
1c710c3c DJ |
4468 | cross_compiling=no |
4469 | else | |
4470 | if test "$cross_compiling" = maybe; then | |
4471 | cross_compiling=yes | |
4472 | else | |
5213506e RW |
4473 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4475 | as_fn_error "cannot run C compiled programs. | |
1c710c3c | 4476 | If you meant to cross compile, use \`--host'. |
5213506e | 4477 | See \`config.log' for more details." "$LINENO" 5; } |
1c710c3c DJ |
4478 | fi |
4479 | fi | |
4480 | fi | |
5213506e RW |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4482 | $as_echo "yes" >&6; } | |
1c710c3c | 4483 | |
5213506e | 4484 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
1c710c3c | 4485 | ac_clean_files=$ac_clean_files_save |
5213506e | 4486 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4487 | # the compiler is broken, or we cross compile. |
5213506e RW |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4489 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4491 | $as_echo "$cross_compiling" >&6; } | |
4492 | ||
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4494 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4495 | if { { ac_try="$ac_link" | |
4496 | case "(($ac_try" in | |
4497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4498 | *) ac_try_echo=$ac_try;; | |
4499 | esac | |
4500 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4501 | $as_echo "$ac_try_echo"; } >&5 | |
4502 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4503 | ac_status=$? |
5213506e RW |
4504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4505 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4506 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4507 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4508 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4509 | # `rm'. | |
4510 | for ac_file in conftest.exe conftest conftest.*; do | |
4511 | test -f "$ac_file" || continue | |
4512 | case $ac_file in | |
5213506e | 4513 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4514 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4515 | break;; |
4516 | * ) break;; | |
4517 | esac | |
4518 | done | |
af71363e | 4519 | else |
5213506e RW |
4520 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4521 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4522 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4523 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4524 | fi |
1c710c3c | 4525 | rm -f conftest$ac_cv_exeext |
5213506e RW |
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4527 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4528 | |
4529 | rm -f conftest.$ac_ext | |
4530 | EXEEXT=$ac_cv_exeext | |
4531 | ac_exeext=$EXEEXT | |
5213506e RW |
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4533 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4534 | if test "${ac_cv_objext+set}" = set; then : | |
4535 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4536 | else |
5213506e | 4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4538 | /* end confdefs.h. */ |
4539 | ||
4540 | int | |
4541 | main () | |
4542 | { | |
4543 | ||
4544 | ; | |
4545 | return 0; | |
4546 | } | |
4547 | _ACEOF | |
4548 | rm -f conftest.o conftest.obj | |
5213506e RW |
4549 | if { { ac_try="$ac_compile" |
4550 | case "(($ac_try" in | |
4551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4552 | *) ac_try_echo=$ac_try;; | |
4553 | esac | |
4554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4555 | $as_echo "$ac_try_echo"; } >&5 | |
4556 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4557 | ac_status=$? |
5213506e RW |
4558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4559 | test $ac_status = 0; }; then : | |
4560 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4561 | test -f "$ac_file" || continue; | |
1c710c3c | 4562 | case $ac_file in |
5213506e | 4563 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4564 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4565 | break;; | |
4566 | esac | |
4567 | done | |
4568 | else | |
5213506e | 4569 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4570 | sed 's/^/| /' conftest.$ac_ext >&5 |
4571 | ||
5213506e RW |
4572 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4574 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4575 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4576 | fi |
1c710c3c DJ |
4577 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4578 | fi | |
5213506e RW |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4580 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4581 | OBJEXT=$ac_cv_objext |
4582 | ac_objext=$OBJEXT | |
5213506e RW |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4584 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4585 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4586 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4587 | else |
5213506e | 4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4589 | /* end confdefs.h. */ |
4590 | ||
4591 | int | |
4592 | main () | |
4593 | { | |
4594 | #ifndef __GNUC__ | |
4595 | choke me | |
4596 | #endif | |
4597 | ||
4598 | ; | |
4599 | return 0; | |
4600 | } | |
4601 | _ACEOF | |
5213506e | 4602 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4603 | ac_compiler_gnu=yes |
4604 | else | |
5213506e | 4605 | ac_compiler_gnu=no |
1c710c3c | 4606 | fi |
5213506e | 4607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4608 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4609 | ||
4610 | fi | |
5213506e RW |
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4612 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4613 | if test $ac_compiler_gnu = yes; then | |
4614 | GCC=yes | |
4615 | else | |
4616 | GCC= | |
4617 | fi | |
1c710c3c DJ |
4618 | ac_test_CFLAGS=${CFLAGS+set} |
4619 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4621 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4622 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4623 | $as_echo_n "(cached) " >&6 | |
4624 | else | |
4625 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4626 | ac_c_werror_flag=yes | |
4627 | ac_cv_prog_cc_g=no | |
4628 | CFLAGS="-g" | |
4629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4630 | /* end confdefs.h. */ |
4631 | ||
4632 | int | |
4633 | main () | |
4634 | { | |
4635 | ||
4636 | ; | |
4637 | return 0; | |
4638 | } | |
4639 | _ACEOF | |
5213506e | 4640 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4641 | ac_cv_prog_cc_g=yes |
4642 | else | |
5213506e RW |
4643 | CFLAGS="" |
4644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4645 | /* end confdefs.h. */ | |
4646 | ||
4647 | int | |
4648 | main () | |
4649 | { | |
4650 | ||
4651 | ; | |
4652 | return 0; | |
4653 | } | |
4654 | _ACEOF | |
4655 | if ac_fn_c_try_compile "$LINENO"; then : | |
4656 | ||
4657 | else | |
4658 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4659 | CFLAGS="-g" | |
4660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4661 | /* end confdefs.h. */ | |
af71363e | 4662 | |
5213506e RW |
4663 | int |
4664 | main () | |
4665 | { | |
4666 | ||
4667 | ; | |
4668 | return 0; | |
4669 | } | |
4670 | _ACEOF | |
4671 | if ac_fn_c_try_compile "$LINENO"; then : | |
4672 | ac_cv_prog_cc_g=yes | |
4673 | fi | |
4674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4675 | fi |
5213506e | 4676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4677 | fi |
5213506e RW |
4678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4679 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4680 | fi | |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4682 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4683 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4684 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4685 | elif test $ac_cv_prog_cc_g = yes; then |
4686 | if test "$GCC" = yes; then | |
4687 | CFLAGS="-g -O2" | |
4688 | else | |
4689 | CFLAGS="-g" | |
4690 | fi | |
4691 | else | |
4692 | if test "$GCC" = yes; then | |
4693 | CFLAGS="-O2" | |
4694 | else | |
4695 | CFLAGS= | |
4696 | fi | |
4697 | fi | |
5213506e RW |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4699 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4700 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4701 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4702 | else |
5213506e | 4703 | ac_cv_prog_cc_c89=no |
1c710c3c | 4704 | ac_save_CC=$CC |
5213506e | 4705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4706 | /* end confdefs.h. */ |
4707 | #include <stdarg.h> | |
4708 | #include <stdio.h> | |
4709 | #include <sys/types.h> | |
4710 | #include <sys/stat.h> | |
4711 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4712 | struct buf { int x; }; | |
4713 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4714 | static char *e (p, i) | |
4715 | char **p; | |
4716 | int i; | |
4717 | { | |
4718 | return p[i]; | |
4719 | } | |
4720 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4721 | { | |
4722 | char *s; | |
4723 | va_list v; | |
4724 | va_start (v,p); | |
4725 | s = g (p, va_arg (v,int)); | |
4726 | va_end (v); | |
4727 | return s; | |
4728 | } | |
4729 | ||
4730 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4731 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4732 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4733 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4734 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4735 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4736 | that's true only with -std. */ |
1c710c3c DJ |
4737 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4738 | ||
5213506e RW |
4739 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4740 | inside strings and character constants. */ | |
4741 | #define FOO(x) 'x' | |
4742 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4743 | ||
1c710c3c DJ |
4744 | int test (int i, double x); |
4745 | struct s1 {int (*f) (int a);}; | |
4746 | struct s2 {int (*f) (double a);}; | |
4747 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4748 | int argc; | |
4749 | char **argv; | |
4750 | int | |
4751 | main () | |
4752 | { | |
4753 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4754 | ; | |
4755 | return 0; | |
4756 | } | |
4757 | _ACEOF | |
5213506e RW |
4758 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4759 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4760 | do |
4761 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4762 | if ac_fn_c_try_compile "$LINENO"; then : |
4763 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4764 | fi |
5213506e RW |
4765 | rm -f core conftest.err conftest.$ac_objext |
4766 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4767 | done |
5213506e | 4768 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4769 | CC=$ac_save_CC |
4770 | ||
4771 | fi | |
5213506e RW |
4772 | # AC_CACHE_VAL |
4773 | case "x$ac_cv_prog_cc_c89" in | |
4774 | x) | |
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4776 | $as_echo "none needed" >&6; } ;; | |
4777 | xno) | |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4779 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4780 | *) |
5213506e RW |
4781 | CC="$CC $ac_cv_prog_cc_c89" |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4783 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4784 | esac |
5213506e | 4785 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4786 | |
2aeb72e9 DD |
4787 | fi |
4788 | ||
2aeb72e9 DD |
4789 | ac_ext=c |
4790 | ac_cpp='$CPP $CPPFLAGS' | |
4791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4794 | ||
5213506e | 4795 | ac_ext=cpp |
2aeb72e9 DD |
4796 | ac_cpp='$CXXCPP $CPPFLAGS' |
4797 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4798 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4799 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4800 | if test -z "$CXX"; then |
4801 | if test -n "$CCC"; then | |
4802 | CXX=$CCC | |
4803 | else | |
4804 | if test -n "$ac_tool_prefix"; then | |
4805 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4806 | do |
4807 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4808 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4810 | $as_echo_n "checking for $ac_word... " >&6; } | |
4811 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4812 | $as_echo_n "(cached) " >&6 | |
2aeb72e9 DD |
4813 | else |
4814 | if test -n "$CXX"; then | |
4815 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4816 | else | |
4817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4818 | for as_dir in $PATH | |
4819 | do | |
4820 | IFS=$as_save_IFS | |
4821 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4822 | for ac_exec_ext in '' $ac_executable_extensions; do |
4823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2aeb72e9 | 4824 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4826 | break 2 |
4827 | fi | |
4828 | done | |
5213506e RW |
4829 | done |
4830 | IFS=$as_save_IFS | |
55ffb5ed | 4831 | |
c3a86da9 DJ |
4832 | fi |
4833 | fi | |
4834 | CXX=$ac_cv_prog_CXX | |
4835 | if test -n "$CXX"; then | |
5213506e RW |
4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4837 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4838 | else |
5213506e RW |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4840 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4841 | fi |
4842 | ||
5213506e | 4843 | |
c3a86da9 DJ |
4844 | test -n "$CXX" && break |
4845 | done | |
4846 | fi | |
4847 | if test -z "$CXX"; then | |
4848 | ac_ct_CXX=$CXX | |
5213506e | 4849 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4850 | do |
4851 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4852 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4854 | $as_echo_n "checking for $ac_word... " >&6; } | |
4855 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4856 | $as_echo_n "(cached) " >&6 | |
c3a86da9 DJ |
4857 | else |
4858 | if test -n "$ac_ct_CXX"; then | |
4859 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4860 | else | |
4861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4862 | for as_dir in $PATH | |
4863 | do | |
4864 | IFS=$as_save_IFS | |
4865 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4866 | for ac_exec_ext in '' $ac_executable_extensions; do |
4867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c3a86da9 | 4868 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4870 | break 2 |
4871 | fi | |
4872 | done | |
5213506e RW |
4873 | done |
4874 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4875 | |
4876 | fi | |
4877 | fi | |
4878 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4879 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4881 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4882 | else |
5213506e RW |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4884 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4885 | fi |
4886 | ||
5213506e | 4887 | |
c3a86da9 DJ |
4888 | test -n "$ac_ct_CXX" && break |
4889 | done | |
c3a86da9 | 4890 | |
5213506e RW |
4891 | if test "x$ac_ct_CXX" = x; then |
4892 | CXX="g++" | |
4893 | else | |
4894 | case $cross_compiling:$ac_tool_warned in | |
4895 | yes:) | |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4897 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4898 | ac_tool_warned=yes ;; | |
4899 | esac | |
4900 | CXX=$ac_ct_CXX | |
4901 | fi | |
c3a86da9 DJ |
4902 | fi |
4903 | ||
5213506e RW |
4904 | fi |
4905 | fi | |
c3a86da9 | 4906 | # Provide some information about the compiler. |
5213506e RW |
4907 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4908 | set X $ac_compile | |
4909 | ac_compiler=$2 | |
4910 | for ac_option in --version -v -V -qversion; do | |
4911 | { { ac_try="$ac_compiler $ac_option >&5" | |
4912 | case "(($ac_try" in | |
4913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4914 | *) ac_try_echo=$ac_try;; | |
4915 | esac | |
4916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4917 | $as_echo "$ac_try_echo"; } >&5 | |
4918 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4919 | ac_status=$? |
5213506e RW |
4920 | if test -s conftest.err; then |
4921 | sed '10a\ | |
4922 | ... rest of stderr output deleted ... | |
4923 | 10q' conftest.err >conftest.er1 | |
4924 | cat conftest.er1 >&5 | |
4925 | rm -f conftest.er1 conftest.err | |
4926 | fi | |
4927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4928 | test $ac_status = 0; } | |
4929 | done | |
c3a86da9 | 4930 | |
5213506e RW |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4932 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4933 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4934 | $as_echo_n "(cached) " >&6 | |
c3a86da9 | 4935 | else |
5213506e | 4936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4937 | /* end confdefs.h. */ |
4938 | ||
4939 | int | |
4940 | main () | |
4941 | { | |
4942 | #ifndef __GNUC__ | |
4943 | choke me | |
4944 | #endif | |
4945 | ||
4946 | ; | |
4947 | return 0; | |
4948 | } | |
4949 | _ACEOF | |
5213506e | 4950 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4951 | ac_compiler_gnu=yes |
4952 | else | |
5213506e | 4953 | ac_compiler_gnu=no |
c3a86da9 | 4954 | fi |
5213506e | 4955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4956 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4957 | ||
4958 | fi | |
5213506e RW |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4960 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4961 | if test $ac_compiler_gnu = yes; then | |
4962 | GXX=yes | |
4963 | else | |
4964 | GXX= | |
4965 | fi | |
c3a86da9 DJ |
4966 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4967 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4969 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4970 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4971 | $as_echo_n "(cached) " >&6 | |
4972 | else | |
4973 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4974 | ac_cxx_werror_flag=yes | |
4975 | ac_cv_prog_cxx_g=no | |
4976 | CXXFLAGS="-g" | |
4977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
4978 | /* end confdefs.h. */ |
4979 | ||
4980 | int | |
4981 | main () | |
4982 | { | |
4983 | ||
4984 | ; | |
4985 | return 0; | |
4986 | } | |
4987 | _ACEOF | |
5213506e | 4988 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4989 | ac_cv_prog_cxx_g=yes |
4990 | else | |
5213506e RW |
4991 | CXXFLAGS="" |
4992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4993 | /* end confdefs.h. */ |
5213506e | 4994 | |
c3a86da9 DJ |
4995 | int |
4996 | main () | |
4997 | { | |
5213506e | 4998 | |
c3a86da9 DJ |
4999 | ; |
5000 | return 0; | |
5001 | } | |
5002 | _ACEOF | |
5213506e | 5003 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5004 | |
5213506e RW |
5005 | else |
5006 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5007 | CXXFLAGS="-g" | |
5008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5009 | /* end confdefs.h. */ |
5213506e | 5010 | |
c3a86da9 DJ |
5011 | int |
5012 | main () | |
5013 | { | |
5213506e | 5014 | |
c3a86da9 DJ |
5015 | ; |
5016 | return 0; | |
5017 | } | |
5018 | _ACEOF | |
5213506e RW |
5019 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5020 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5021 | fi |
5213506e RW |
5022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5023 | fi | |
5024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5025 | fi | |
5026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5027 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5028 | fi | |
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5030 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5031 | if test "$ac_test_CXXFLAGS" = set; then | |
5032 | CXXFLAGS=$ac_save_CXXFLAGS | |
5033 | elif test $ac_cv_prog_cxx_g = yes; then | |
5034 | if test "$GXX" = yes; then | |
5035 | CXXFLAGS="-g -O2" | |
5036 | else | |
5037 | CXXFLAGS="-g" | |
5038 | fi | |
5039 | else | |
5040 | if test "$GXX" = yes; then | |
5041 | CXXFLAGS="-O2" | |
5042 | else | |
5043 | CXXFLAGS= | |
5044 | fi | |
c3a86da9 | 5045 | fi |
c3a86da9 DJ |
5046 | ac_ext=c |
5047 | ac_cpp='$CPP $CPPFLAGS' | |
5048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5051 | ||
5052 | ||
5053 | # We must set the default linker to the linker used by gcc for the correct | |
5054 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5055 | # set the LD default to the ld used by gcc. | |
5056 | if test -z "$LD"; then | |
5057 | if test "$GCC" = yes; then | |
5058 | case $build in | |
5059 | *-*-mingw*) | |
5060 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5061 | *) | |
5062 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5063 | esac | |
5064 | case $gcc_prog_ld in | |
5065 | # Accept absolute paths. | |
5066 | [\\/]* | [A-Za-z]:[\\/]*) | |
5067 | LD="$gcc_prog_ld" ;; | |
5068 | esac | |
5069 | fi | |
23f6b2f9 PB |
5070 | fi |
5071 | ||
0b21f5d3 EB |
5072 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5073 | have_static_libs=no | |
5074 | if test "$GCC" = yes; then | |
5075 | saved_LDFLAGS="$LDFLAGS" | |
5076 | ||
5077 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5079 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5080 | ac_ext=cpp | |
5081 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5082 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5083 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5084 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5085 | ||
5086 | ||
5087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5088 | /* end confdefs.h. */ | |
0d6414b2 EB |
5089 | |
5090 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5091 | #error -static-libstdc++ not implemented | |
5092 | #endif | |
0b21f5d3 EB |
5093 | int main() {} |
5094 | _ACEOF | |
5095 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5097 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5098 | else | |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5100 | $as_echo "no" >&6; } | |
5101 | fi | |
5102 | rm -f core conftest.err conftest.$ac_objext \ | |
5103 | conftest$ac_exeext conftest.$ac_ext | |
5104 | ac_ext=c | |
5105 | ac_cpp='$CPP $CPPFLAGS' | |
5106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5109 | ||
5110 | ||
5111 | LDFLAGS="$saved_LDFLAGS" | |
5112 | fi | |
5113 | ||
23f6b2f9 PB |
5114 | |
5115 | ||
55ffb5ed | 5116 | |
1c710c3c DJ |
5117 | if test -n "$ac_tool_prefix"; then |
5118 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5119 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5121 | $as_echo_n "checking for $ac_word... " >&6; } | |
5122 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5123 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5124 | else |
5125 | if test -n "$GNATBIND"; then | |
5126 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5127 | else | |
1c710c3c DJ |
5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5129 | for as_dir in $PATH | |
5130 | do | |
5131 | IFS=$as_save_IFS | |
5132 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5133 | for ac_exec_ext in '' $ac_executable_extensions; do |
5134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5135 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5137 | break 2 |
5138 | fi | |
5139 | done | |
5213506e RW |
5140 | done |
5141 | IFS=$as_save_IFS | |
1c710c3c | 5142 | |
55ffb5ed NN |
5143 | fi |
5144 | fi | |
1c710c3c | 5145 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5146 | if test -n "$GNATBIND"; then |
5213506e RW |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5148 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5149 | else |
5213506e RW |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5151 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5152 | fi |
5153 | ||
5213506e | 5154 | |
1c710c3c | 5155 | fi |
55ffb5ed | 5156 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5157 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5158 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5159 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5161 | $as_echo_n "checking for $ac_word... " >&6; } | |
5162 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5163 | $as_echo_n "(cached) " >&6 | |
55ffb5ed | 5164 | else |
1c710c3c DJ |
5165 | if test -n "$ac_ct_GNATBIND"; then |
5166 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5167 | else |
1c710c3c DJ |
5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5169 | for as_dir in $PATH | |
5170 | do | |
5171 | IFS=$as_save_IFS | |
5172 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5173 | for ac_exec_ext in '' $ac_executable_extensions; do |
5174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5175 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5177 | break 2 |
5178 | fi | |
5179 | done | |
5213506e RW |
5180 | done |
5181 | IFS=$as_save_IFS | |
1c710c3c | 5182 | |
55ffb5ed NN |
5183 | fi |
5184 | fi | |
1c710c3c DJ |
5185 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5186 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5188 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5189 | else |
5213506e RW |
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5191 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5192 | fi |
5193 | ||
5213506e RW |
5194 | if test "x$ac_ct_GNATBIND" = x; then |
5195 | GNATBIND="no" | |
5196 | else | |
5197 | case $cross_compiling:$ac_tool_warned in | |
5198 | yes:) | |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5200 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5201 | ac_tool_warned=yes ;; | |
5202 | esac | |
5203 | GNATBIND=$ac_ct_GNATBIND | |
5204 | fi | |
55ffb5ed | 5205 | else |
1c710c3c | 5206 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5207 | fi |
5208 | ||
1c710c3c DJ |
5209 | if test -n "$ac_tool_prefix"; then |
5210 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5211 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5213 | $as_echo_n "checking for $ac_word... " >&6; } | |
5214 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5215 | $as_echo_n "(cached) " >&6 | |
5305be7e RG |
5216 | else |
5217 | if test -n "$GNATMAKE"; then | |
5218 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5219 | else | |
1c710c3c DJ |
5220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5221 | for as_dir in $PATH | |
5222 | do | |
5223 | IFS=$as_save_IFS | |
5224 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5225 | for ac_exec_ext in '' $ac_executable_extensions; do |
5226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5227 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5229 | break 2 |
5230 | fi | |
5231 | done | |
5213506e RW |
5232 | done |
5233 | IFS=$as_save_IFS | |
1c710c3c | 5234 | |
5305be7e RG |
5235 | fi |
5236 | fi | |
1c710c3c | 5237 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5238 | if test -n "$GNATMAKE"; then |
5213506e RW |
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5240 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5241 | else |
5213506e RW |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5243 | $as_echo "no" >&6; } | |
5305be7e RG |
5244 | fi |
5245 | ||
5213506e | 5246 | |
1c710c3c | 5247 | fi |
5305be7e | 5248 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5249 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5250 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5251 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5253 | $as_echo_n "checking for $ac_word... " >&6; } | |
5254 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5255 | $as_echo_n "(cached) " >&6 | |
5305be7e | 5256 | else |
1c710c3c DJ |
5257 | if test -n "$ac_ct_GNATMAKE"; then |
5258 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5259 | else |
1c710c3c DJ |
5260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5261 | for as_dir in $PATH | |
5262 | do | |
5263 | IFS=$as_save_IFS | |
5264 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5265 | for ac_exec_ext in '' $ac_executable_extensions; do |
5266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5267 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5269 | break 2 |
5270 | fi | |
5271 | done | |
5213506e RW |
5272 | done |
5273 | IFS=$as_save_IFS | |
1c710c3c | 5274 | |
5305be7e RG |
5275 | fi |
5276 | fi | |
1c710c3c DJ |
5277 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5278 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5280 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5281 | else |
5213506e RW |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5283 | $as_echo "no" >&6; } | |
5305be7e RG |
5284 | fi |
5285 | ||
5213506e RW |
5286 | if test "x$ac_ct_GNATMAKE" = x; then |
5287 | GNATMAKE="no" | |
5288 | else | |
5289 | case $cross_compiling:$ac_tool_warned in | |
5290 | yes:) | |
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5292 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5293 | ac_tool_warned=yes ;; | |
5294 | esac | |
5295 | GNATMAKE=$ac_ct_GNATMAKE | |
5296 | fi | |
5305be7e | 5297 | else |
1c710c3c | 5298 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5299 | fi |
5300 | ||
5213506e RW |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5302 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5303 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5304 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5305 | else |
5306 | cat >conftest.adb <<EOF | |
5307 | procedure conftest is begin null; end conftest; | |
5308 | EOF | |
5309 | acx_cv_cc_gcc_supports_ada=no | |
5310 | # There is a bug in old released versions of GCC which causes the | |
5311 | # driver to exit successfully when the appropriate language module | |
5312 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5313 | # Therefore we must check for the error message as well as an | |
5314 | # unsuccessful exit. | |
1db673ca RO |
5315 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5316 | # given a .adb file, but produce no object file. So we must check | |
5317 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5318 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5319 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5320 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5321 | fi |
5322 | rm -f conftest.* | |
5323 | fi | |
5213506e RW |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5325 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5326 | |
7cb62ef1 | 5327 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5328 | have_gnat=yes |
5329 | else | |
5330 | have_gnat=no | |
5331 | fi | |
5332 | ||
5213506e RW |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5334 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5335 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5336 | $as_echo_n "(cached) " >&6 | |
a76494aa PB |
5337 | else |
5338 | echo abfoo >t1 | |
5339 | echo cdfoo >t2 | |
5340 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
5341 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5342 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5343 | : | |
5344 | else | |
5345 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5346 | fi | |
5347 | fi | |
a76494aa PB |
5348 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5349 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5350 | : |
a76494aa PB |
5351 | else |
5352 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5353 | fi | |
5354 | fi | |
5355 | rm t1 t2 | |
5356 | ||
5357 | fi | |
5213506e RW |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5359 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5360 | do_compare="$gcc_cv_prog_cmp_skip" |
5361 | ||
5362 | ||
55ffb5ed | 5363 | |
ff3ac0f4 ILT |
5364 | # Check whether --enable-bootstrap was given. |
5365 | if test "${enable_bootstrap+set}" = set; then : | |
5366 | enableval=$enable_bootstrap; | |
5367 | else | |
5368 | enable_bootstrap=default | |
5369 | fi | |
5370 | ||
5371 | ||
5372 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5373 | if test -r $srcdir/gcc/configure; then |
5374 | have_compiler=yes | |
5375 | else | |
5376 | have_compiler=no | |
5377 | fi | |
ff3ac0f4 ILT |
5378 | |
5379 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5380 | *:*:*:no) ;; | |
5381 | ||
5382 | # Default behavior. Enable bootstrap if we have a compiler | |
5383 | # and we are in a native configuration. | |
5384 | yes:$build:$build:default) | |
5385 | enable_bootstrap=yes ;; | |
5386 | ||
5387 | *:*:*:default) | |
5388 | enable_bootstrap=no ;; | |
5389 | ||
5390 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5391 | yes:$build:$build:yes) | |
5392 | ;; | |
5393 | ||
5394 | # Other configurations, but we have a compiler. Assume the user knows | |
5395 | # what he's doing. | |
5396 | yes:*:*:yes) | |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5398 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5399 | ;; | |
5400 | ||
5401 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5402 | no:*:*:yes) | |
5403 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5404 | ||
5405 | # Fail if wrong command line | |
5406 | *) | |
5407 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5408 | ;; | |
5409 | esac | |
5410 | ||
46070488 JM |
5411 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5412 | # C++98 compiler can still start the bootstrap. | |
5413 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
8ca528d9 | 5414 | CXX="$CXX -std=gnu++98" |
46070488 JM |
5415 | fi |
5416 | ||
592c90ff KG |
5417 | # Used for setting $lt_cv_objdir |
5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5419 | $as_echo_n "checking for objdir... " >&6; } | |
5420 | if test "${lt_cv_objdir+set}" = set; then : | |
5421 | $as_echo_n "(cached) " >&6 | |
5422 | else | |
5423 | rm -f .libs 2>/dev/null | |
5424 | mkdir .libs 2>/dev/null | |
5425 | if test -d .libs; then | |
5426 | lt_cv_objdir=.libs | |
5427 | else | |
5428 | # MS-DOS does not allow filenames that begin with a dot. | |
5429 | lt_cv_objdir=_libs | |
5430 | fi | |
5431 | rmdir .libs 2>/dev/null | |
5432 | fi | |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5434 | $as_echo "$lt_cv_objdir" >&6; } | |
5435 | objdir=$lt_cv_objdir | |
5436 | ||
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | cat >>confdefs.h <<_ACEOF | |
5442 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5443 | _ACEOF | |
5444 | ||
5445 | ||
5446 | ||
acd26225 | 5447 | # Check for GMP, MPFR and MPC |
3a5729ea | 5448 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5449 | gmpinc= |
e69bf64b | 5450 | have_gmp=no |
acd26225 KG |
5451 | |
5452 | # Specify a location for mpc | |
5453 | # check for this first so it ends up on the link line before mpfr. | |
5454 | ||
5213506e RW |
5455 | # Check whether --with-mpc was given. |
5456 | if test "${with_mpc+set}" = set; then : | |
5457 | withval=$with_mpc; | |
5458 | fi | |
acd26225 | 5459 | |
acd26225 | 5460 | |
9965e3cd | 5461 | # Check whether --with-mpc-include was given. |
5213506e RW |
5462 | if test "${with_mpc_include+set}" = set; then : |
5463 | withval=$with_mpc_include; | |
5464 | fi | |
acd26225 | 5465 | |
acd26225 | 5466 | |
9965e3cd | 5467 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5468 | if test "${with_mpc_lib+set}" = set; then : |
5469 | withval=$with_mpc_lib; | |
5470 | fi | |
acd26225 | 5471 | |
acd26225 KG |
5472 | |
5473 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5474 | gmplibs="-L$with_mpc/lib $gmplibs" |
5475 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5476 | fi |
5477 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5478 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5479 | fi |
5480 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5481 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5482 | fi |
5483 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5484 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5485 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5486 | # Do not test the mpc version. Assume that it is sufficient, since |
5487 | # it is in the source tree, and the library has not been built yet | |
5488 | # but it would be included on the link line in the version check below | |
5489 | # hence making the test fail. | |
3a5729ea | 5490 | have_gmp=yes |
acd26225 | 5491 | fi |
e69bf64b | 5492 | |
bebf829d PB |
5493 | # Specify a location for mpfr |
5494 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5495 | |
5213506e RW |
5496 | # Check whether --with-mpfr-dir was given. |
5497 | if test "${with_mpfr_dir+set}" = set; then : | |
5498 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5499 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5500 | fi | |
5501 | ||
bebf829d PB |
5502 | |
5503 | ||
5213506e RW |
5504 | # Check whether --with-mpfr was given. |
5505 | if test "${with_mpfr+set}" = set; then : | |
5506 | withval=$with_mpfr; | |
5507 | fi | |
1c710c3c | 5508 | |
bebf829d | 5509 | |
9965e3cd | 5510 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5511 | if test "${with_mpfr_include+set}" = set; then : |
5512 | withval=$with_mpfr_include; | |
5513 | fi | |
1c710c3c | 5514 | |
8a877c9c | 5515 | |
9965e3cd | 5516 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5517 | if test "${with_mpfr_lib+set}" = set; then : |
5518 | withval=$with_mpfr_lib; | |
5519 | fi | |
8a877c9c | 5520 | |
bebf829d PB |
5521 | |
5522 | if test "x$with_mpfr" != x; then | |
5523 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5524 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5525 | fi |
8a877c9c | 5526 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5527 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5528 | fi |
5529 | if test "x$with_mpfr_lib" != x; then | |
5530 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5531 | fi | |
e69bf64b | 5532 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
5b0d38e4 NC |
5533 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5534 | if test -d ${srcdir}/mpfr/src; then | |
5535 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5536 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5537 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5538 | else | |
5539 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5540 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5541 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5542 | fi | |
e69bf64b PB |
5543 | # Do not test the mpfr version. Assume that it is sufficient, since |
5544 | # it is in the source tree, and the library has not been built yet | |
5545 | # but it would be included on the link line in the version check below | |
5546 | # hence making the test fail. | |
5547 | have_gmp=yes | |
5548 | fi | |
bebf829d | 5549 | |
6de9cd9a | 5550 | # Specify a location for gmp |
1c710c3c | 5551 | |
5213506e RW |
5552 | # Check whether --with-gmp-dir was given. |
5553 | if test "${with_gmp_dir+set}" = set; then : | |
5554 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5555 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5556 | fi | |
5557 | ||
6de9cd9a | 5558 | |
6de9cd9a | 5559 | |
5213506e RW |
5560 | # Check whether --with-gmp was given. |
5561 | if test "${with_gmp+set}" = set; then : | |
5562 | withval=$with_gmp; | |
5563 | fi | |
1c710c3c | 5564 | |
6de9cd9a | 5565 | |
9965e3cd | 5566 | # Check whether --with-gmp-include was given. |
5213506e RW |
5567 | if test "${with_gmp_include+set}" = set; then : |
5568 | withval=$with_gmp_include; | |
5569 | fi | |
1c710c3c | 5570 | |
8a877c9c | 5571 | |
9965e3cd | 5572 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5573 | if test "${with_gmp_lib+set}" = set; then : |
5574 | withval=$with_gmp_lib; | |
5575 | fi | |
8a877c9c KG |
5576 | |
5577 | ||
6de9cd9a | 5578 | |
bebf829d PB |
5579 | if test "x$with_gmp" != x; then |
5580 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5581 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5582 | fi |
8a877c9c KG |
5583 | if test "x$with_gmp_include" != x; then |
5584 | gmpinc="-I$with_gmp_include $gmpinc" | |
5585 | fi | |
5586 | if test "x$with_gmp_lib" != x; then | |
5587 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5588 | fi | |
e69bf64b | 5589 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5590 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5591 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5592 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5593 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5594 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5595 | # Do not test the gmp version. Assume that it is sufficient, since |
5596 | # it is in the source tree, and the library has not been built yet | |
5597 | # but it would be included on the link line in the version check below | |
5598 | # hence making the test fail. | |
5599 | have_gmp=yes | |
5600 | fi | |
6de9cd9a | 5601 | |
d943d7c4 | 5602 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5603 | have_gmp=yes |
5604 | saved_CFLAGS="$CFLAGS" | |
5605 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5606 | # Check for the recommended and required versions of GMP. |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5608 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5609 | |
5610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5611 | /* end confdefs.h. */ |
5612 | #include "gmp.h" | |
5613 | int | |
5614 | main () | |
5615 | { | |
5616 | ||
5617 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5618 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5619 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5620 | choke me |
5621 | #endif | |
5622 | ||
5623 | ; | |
5624 | return 0; | |
5625 | } | |
5626 | _ACEOF | |
5627 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5629 | /* end confdefs.h. */ |
362c6d2f | 5630 | #include <gmp.h> |
1c710c3c DJ |
5631 | int |
5632 | main () | |
5633 | { | |
6de9cd9a | 5634 | |
362c6d2f KG |
5635 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5636 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5637 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5638 | choke me |
5639 | #endif | |
1c710c3c DJ |
5640 | |
5641 | ; | |
5642 | return 0; | |
5643 | } | |
5644 | _ACEOF | |
5213506e RW |
5645 | if ac_fn_c_try_compile "$LINENO"; then : |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5647 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5648 | else |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5650 | $as_echo "buggy but acceptable" >&6; } | |
5651 | fi | |
5652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5653 | else |
5213506e RW |
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5655 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5656 | fi |
5213506e | 5657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5658 | |
acd26225 | 5659 | # If we have GMP, check the MPFR version. |
e69bf64b | 5660 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5661 | # Check for the recommended and required versions of MPFR. |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5663 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5665 | /* end confdefs.h. */ |
70ec446f | 5666 | #include <gmp.h> |
e69bf64b | 5667 | #include <mpfr.h> |
1c710c3c DJ |
5668 | int |
5669 | main () | |
5670 | { | |
e48d66a9 | 5671 | |
f7d6bc01 | 5672 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
e69bf64b PB |
5673 | choke me |
5674 | #endif | |
1c710c3c DJ |
5675 | |
5676 | ; | |
5677 | return 0; | |
5678 | } | |
5679 | _ACEOF | |
5213506e RW |
5680 | if ac_fn_c_try_compile "$LINENO"; then : |
5681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5682 | /* end confdefs.h. */ |
a3993f33 | 5683 | #include <gmp.h> |
e69bf64b | 5684 | #include <mpfr.h> |
1c710c3c DJ |
5685 | int |
5686 | main () | |
5687 | { | |
a3993f33 | 5688 | |
362c6d2f | 5689 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5690 | choke me |
5691 | #endif | |
acd26225 KG |
5692 | |
5693 | ; | |
5694 | return 0; | |
5695 | } | |
5696 | _ACEOF | |
5213506e RW |
5697 | if ac_fn_c_try_compile "$LINENO"; then : |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5699 | $as_echo "yes" >&6; } | |
acd26225 | 5700 | else |
5213506e RW |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5702 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5703 | fi |
5213506e | 5704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5705 | else |
5213506e RW |
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5707 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5708 | fi |
5213506e | 5709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5710 | fi |
5711 | ||
5712 | # Check for the MPC header version. | |
3a5729ea | 5713 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5714 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5716 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5718 | /* end confdefs.h. */ |
5719 | #include <mpc.h> | |
5720 | int | |
5721 | main () | |
5722 | { | |
5723 | ||
362c6d2f KG |
5724 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5725 | choke me | |
5726 | #endif | |
5727 | ||
5728 | ; | |
5729 | return 0; | |
5730 | } | |
5731 | _ACEOF | |
5732 | if ac_fn_c_try_compile "$LINENO"; then : | |
5733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5734 | /* end confdefs.h. */ | |
5735 | #include <mpc.h> | |
5736 | int | |
5737 | main () | |
5738 | { | |
5739 | ||
5740 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5741 | choke me |
5742 | #endif | |
5743 | ||
5744 | ; | |
5745 | return 0; | |
5746 | } | |
5747 | _ACEOF | |
5213506e RW |
5748 | if ac_fn_c_try_compile "$LINENO"; then : |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5750 | $as_echo "yes" >&6; } |
362c6d2f KG |
5751 | else |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5753 | $as_echo "buggy but acceptable" >&6; } | |
5754 | fi | |
5755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5756 | else |
5213506e | 5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5758 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5759 | fi |
5213506e | 5760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5761 | fi |
5762 | ||
5763 | # Now check the MPFR library. | |
5764 | if test x"$have_gmp" = xyes; then | |
5765 | saved_LIBS="$LIBS" | |
5766 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5768 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5770 | /* end confdefs.h. */ |
3a5729ea | 5771 | #include <mpc.h> |
acd26225 KG |
5772 | int |
5773 | main () | |
5774 | { | |
5775 | ||
5776 | mpfr_t n; | |
5777 | mpfr_t x; | |
3a5729ea | 5778 | mpc_t c; |
acd26225 KG |
5779 | int t; |
5780 | mpfr_init (n); | |
5781 | mpfr_init (x); | |
5782 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5783 | mpfr_erfc (n, x, GMP_RNDN); | |
5784 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5785 | mpfr_clear(n); |
5786 | mpfr_clear(x); | |
5787 | mpc_init2 (c, 53); | |
5788 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5789 | mpc_cosh (c, c, MPC_RNDNN); | |
5790 | mpc_pow (c, c, c, MPC_RNDNN); | |
5791 | mpc_acosh (c, c, MPC_RNDNN); | |
5792 | mpc_clear (c); | |
1c710c3c DJ |
5793 | |
5794 | ; | |
5795 | return 0; | |
5796 | } | |
5797 | _ACEOF | |
5213506e RW |
5798 | if ac_fn_c_try_link "$LINENO"; then : |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5800 | $as_echo "yes" >&6; } | |
1c710c3c | 5801 | else |
5213506e RW |
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5803 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5804 | fi |
5213506e RW |
5805 | rm -f core conftest.err conftest.$ac_objext \ |
5806 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5807 | LIBS="$saved_LIBS" |
5808 | fi | |
5809 | ||
e69bf64b | 5810 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5811 | |
362c6d2f KG |
5812 | # The library versions listed in the error message below should match |
5813 | # the HARD-minimums enforced above. | |
e69bf64b | 5814 | if test x$have_gmp != xyes; then |
f7d6bc01 | 5815 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
3a5729ea KG |
5816 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5817 | their locations. Source code for these libraries can be found at | |
5818 | their respective hosting sites as well as at | |
5819 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5820 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5821 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5822 | make sure that you have installed both the libraries and the header | |
5823 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5824 | fi |
70ec446f KG |
5825 | fi |
5826 | ||
acd26225 KG |
5827 | # Flags needed for both GMP, MPFR and/or MPC. |
5828 | ||
5829 | ||
6de9cd9a DN |
5830 | |
5831 | ||
5832 | ||
9e3eba15 | 5833 | |
0ff2d841 | 5834 | |
f38095f3 JM |
5835 | # Allow host libstdc++ to be specified for static linking with PPL. |
5836 | ||
5213506e RW |
5837 | # Check whether --with-host-libstdcxx was given. |
5838 | if test "${with_host_libstdcxx+set}" = set; then : | |
5839 | withval=$with_host_libstdcxx; | |
5840 | fi | |
f38095f3 | 5841 | |
f38095f3 JM |
5842 | |
5843 | case $with_host_libstdcxx in | |
5844 | no|yes) | |
5213506e | 5845 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
f38095f3 JM |
5846 | ;; |
5847 | esac | |
f8bf9252 | 5848 | |
0b21f5d3 | 5849 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5850 | |
0b21f5d3 EB |
5851 | # Check whether --with-stage1-libs was given. |
5852 | if test "${with_stage1_libs+set}" = set; then : | |
5853 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5854 | stage1_libs= | |
00020c16 | 5855 | else |
0b21f5d3 | 5856 | stage1_libs=$withval |
00020c16 ILT |
5857 | fi |
5858 | else | |
0b21f5d3 | 5859 | stage1_libs=$with_host_libstdcxx |
5213506e RW |
5860 | fi |
5861 | ||
00020c16 ILT |
5862 | |
5863 | ||
0b21f5d3 | 5864 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5865 | |
0b21f5d3 EB |
5866 | # Check whether --with-stage1-ldflags was given. |
5867 | if test "${with_stage1_ldflags+set}" = set; then : | |
5868 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5869 | stage1_ldflags= | |
00020c16 | 5870 | else |
0b21f5d3 | 5871 | stage1_ldflags=$withval |
00020c16 ILT |
5872 | fi |
5873 | else | |
0b21f5d3 EB |
5874 | stage1_ldflags= |
5875 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5876 | # if supported. But if the user explicitly specified the libraries to use, | |
5877 | # trust that they are doing what they want. | |
5878 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5879 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5880 | fi | |
5213506e RW |
5881 | fi |
5882 | ||
00020c16 ILT |
5883 | |
5884 | ||
00020c16 ILT |
5885 | # Libraries to use for stage2 and later builds. This defaults to the |
5886 | # argument passed to --with-host-libstdcxx. | |
5887 | ||
5213506e RW |
5888 | # Check whether --with-boot-libs was given. |
5889 | if test "${with_boot_libs+set}" = set; then : | |
5890 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5891 | poststage1_libs= |
5892 | else | |
5893 | poststage1_libs=$withval | |
5894 | fi | |
5895 | else | |
00020c16 | 5896 | poststage1_libs=$with_host_libstdcxx |
5213506e RW |
5897 | fi |
5898 | ||
00020c16 ILT |
5899 | |
5900 | ||
ed2eaa9f ILT |
5901 | # Linker flags to use for stage2 and later builds. |
5902 | ||
5903 | # Check whether --with-boot-ldflags was given. | |
5904 | if test "${with_boot_ldflags+set}" = set; then : | |
5905 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5906 | poststage1_ldflags= | |
5907 | else | |
5908 | poststage1_ldflags=$withval | |
5909 | fi | |
5910 | else | |
5911 | poststage1_ldflags= | |
bec93d73 ILT |
5912 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5913 | # statically. But if the user explicitly specified the libraries to | |
5914 | # use, trust that they are doing what they want. | |
5915 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5916 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5917 | fi | |
5918 | fi | |
5919 | ||
5920 | ||
5921 | ||
4a9bb2aa TB |
5922 | # GCC GRAPHITE dependency ISL. |
5923 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
f8bf9252 SP |
5924 | |
5925 | ||
33ad93b9 RG |
5926 | # Check whether --with-isl was given. |
5927 | if test "${with_isl+set}" = set; then : | |
5928 | withval=$with_isl; | |
5213506e | 5929 | fi |
f8bf9252 | 5930 | |
f8bf9252 | 5931 | |
eae1a5d4 | 5932 | # Treat --without-isl as a request to disable |
625afa23 | 5933 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 5934 | if test "x$with_isl" != "xno"; then |
625afa23 RG |
5935 | # Check for ISL |
5936 | ||
5937 | ||
33ad93b9 RG |
5938 | # Check whether --with-isl-include was given. |
5939 | if test "${with_isl_include+set}" = set; then : | |
5940 | withval=$with_isl_include; | |
5213506e RW |
5941 | fi |
5942 | ||
f8bf9252 | 5943 | |
33ad93b9 RG |
5944 | # Check whether --with-isl-lib was given. |
5945 | if test "${with_isl_lib+set}" = set; then : | |
5946 | withval=$with_isl_lib; | |
5213506e | 5947 | fi |
f8bf9252 | 5948 | |
f8bf9252 | 5949 | |
33ad93b9 RG |
5950 | # Check whether --enable-isl-version-check was given. |
5951 | if test "${enable_isl_version_check+set}" = set; then : | |
5952 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5953 | else | |
5954 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
5955 | fi |
5956 | ||
5957 | ||
33ad93b9 RG |
5958 | # Initialize isllibs and islinc. |
5959 | case $with_isl in | |
5960 | no) | |
5961 | isllibs= | |
5962 | islinc= | |
5963 | ;; | |
5964 | "" | yes) | |
5965 | ;; | |
5966 | *) | |
5967 | isllibs="-L$with_isl/lib" | |
5968 | islinc="-I$with_isl/include" | |
5969 | ;; | |
5970 | esac | |
5971 | if test "x${with_isl_include}" != x ; then | |
5972 | islinc="-I$with_isl_include" | |
5973 | fi | |
5974 | if test "x${with_isl_lib}" != x; then | |
5975 | isllibs="-L$with_isl_lib" | |
5976 | fi | |
5977 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5978 | && test -d ${srcdir}/isl; then | |
5979 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5980 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5981 | ENABLE_ISL_CHECK=no | |
2869f0ff RB |
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5983 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
33ad93b9 | 5984 | fi |
7d32a440 | 5985 | |
eae1a5d4 RG |
5986 | isllibs="${isllibs} -lisl" |
5987 | ||
7d32a440 | 5988 | |
7d32a440 | 5989 | |
9847828b RB |
5990 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5991 | _isl_saved_CFLAGS=$CFLAGS | |
5992 | _isl_saved_LDFLAGS=$LDFLAGS | |
5993 | _isl_saved_LIBS=$LIBS | |
5994 | ||
5995 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5996 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5997 | LIBS="${_isl_saved_LIBS} -lisl" | |
5998 | ||
e0c0c325 SP |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5 |
6000 | $as_echo_n "checking for compatible ISL... " >&6; } | |
6001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
622dbadf | 6002 | /* end confdefs.h. */ |
e0c0c325 | 6003 | #include <isl/val.h> |
622dbadf BC |
6004 | int |
6005 | main () | |
6006 | { | |
e0c0c325 | 6007 | ; |
622dbadf BC |
6008 | ; |
6009 | return 0; | |
6010 | } | |
6011 | _ACEOF | |
6012 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 6013 | gcc_cv_isl=yes |
622dbadf BC |
6014 | else |
6015 | gcc_cv_isl=no | |
6016 | fi | |
6017 | rm -f core conftest.err conftest.$ac_objext \ | |
6018 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6020 | $as_echo "$gcc_cv_isl" >&6; } | |
6021 | ||
6022 | CFLAGS=$_isl_saved_CFLAGS | |
6023 | LDFLAGS=$_isl_saved_LDFLAGS | |
6024 | LIBS=$_isl_saved_LIBS | |
6025 | fi | |
6026 | ||
6027 | ||
f8bf9252 | 6028 | |
f8bf9252 | 6029 | |
33ad93b9 RG |
6030 | |
6031 | ||
33ad93b9 RG |
6032 | if test "x${with_isl}" = xno; then |
6033 | graphite_requested=no | |
6034 | elif test "x${with_isl}" != x \ | |
6035 | || test "x${with_isl_include}" != x \ | |
6036 | || test "x${with_isl_lib}" != x ; then | |
6037 | graphite_requested=yes | |
6038 | else | |
6039 | graphite_requested=no | |
7d32a440 | 6040 | fi |
d789184e | 6041 | |
d789184e SP |
6042 | |
6043 | ||
33ad93b9 RG |
6044 | if test "${gcc_cv_isl}" = no ; then |
6045 | isllibs= | |
6046 | islinc= | |
6047 | fi | |
6048 | ||
6049 | if test "${graphite_requested}" = yes \ | |
6050 | && test "x${isllibs}" = x \ | |
6051 | && test "x${islinc}" = x ; then | |
f8bf9252 | 6052 | |
33ad93b9 RG |
6053 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6054 | fi | |
f8bf9252 | 6055 | |
d32ef397 | 6056 | |
d32ef397 AS |
6057 | fi |
6058 | ||
4a9bb2aa | 6059 | # If the ISL check failed, disable builds of in-tree variant of ISL |
625afa23 | 6060 | if test "x$with_isl" = xno || |
625afa23 | 6061 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6062 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6063 | islinc= |
32d024bf RG |
6064 | fi |
6065 | ||
625afa23 RG |
6066 | |
6067 | ||
6068 | ||
d7f09764 DN |
6069 | # Check for LTO support. |
6070 | # Check whether --enable-lto was given. | |
6071 | if test "${enable_lto+set}" = set; then : | |
6072 | enableval=$enable_lto; enable_lto=$enableval | |
6073 | else | |
6074 | enable_lto=yes; default_enable_lto=yes | |
6075 | fi | |
6076 | ||
6077 | ||
7413962d | 6078 | |
9a02962b DK |
6079 | |
6080 | ||
6081 | target_elf=no | |
6082 | case $target in | |
6083 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6084 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8ae12d71 TS |
6085 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6086 | nvptx-*-none) | |
9a02962b DK |
6087 | target_elf=no |
6088 | ;; | |
6089 | *) | |
6090 | target_elf=yes | |
6091 | ;; | |
6092 | esac | |
6093 | ||
6094 | if test $target_elf = yes; then : | |
48215350 DK |
6095 | # ELF platforms build the lto-plugin always. |
6096 | build_lto_plugin=yes | |
9a02962b | 6097 | |
9a02962b DK |
6098 | else |
6099 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6100 | case $target in |
2cd815e7 | 6101 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
48215350 | 6102 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6103 | *) enable_lto=no ;; |
6104 | esac | |
9a02962b | 6105 | else |
db50fe7d IS |
6106 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6107 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6108 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6109 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6110 | # -flto it won't be needed until after installation anyway. | |
6111 | case $target in | |
1cd0b716 | 6112 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
9a02962b DK |
6113 | *) if test x"$enable_lto" = x"yes"; then |
6114 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6115 | fi | |
6116 | ;; | |
6117 | esac | |
6118 | fi | |
1cd0b716 | 6119 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6120 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6121 | case $target in |
48215350 | 6122 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6123 | *) ;; |
6124 | esac | |
48215350 | 6125 | |
9a02962b DK |
6126 | fi |
6127 | ||
d7f09764 | 6128 | |
45b3824d TS |
6129 | # Check whether --enable-linker-plugin-configure-flags was given. |
6130 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6131 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6132 | else | |
6133 | extra_linker_plugin_configure_flags= | |
6134 | fi | |
6135 | ||
6136 | ||
6137 | # Check whether --enable-linker-plugin-flags was given. | |
6138 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6139 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6140 | else | |
6141 | extra_linker_plugin_flags= | |
6142 | fi | |
6143 | ||
6144 | ||
6145 | ||
f8bf9252 | 6146 | |
0823efed | 6147 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6148 | stage1_languages=,c, |
2805b53a | 6149 | |
00020c16 | 6150 | # Target libraries that we bootstrap. |
ad1e5170 | 6151 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6152 | |
55ffb5ed NN |
6153 | # Figure out what language subdirectories are present. |
6154 | # Look if the user specified --enable-languages="..."; if not, use | |
6155 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6156 | # go away some day. | |
6157 | # NB: embedded tabs in this IF block -- do not untabify | |
6158 | if test -d ${srcdir}/gcc; then | |
6159 | if test x"${enable_languages+set}" != xset; then | |
6160 | if test x"${LANGUAGES+set}" = xset; then | |
6161 | enable_languages="${LANGUAGES}" | |
6162 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6163 | else | |
6164 | enable_languages=all | |
6165 | fi | |
6166 | else | |
6167 | if test x"${enable_languages}" = x || | |
6168 | test x"${enable_languages}" = xyes; | |
6169 | then | |
6170 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6171 | exit 1 | |
6172 | fi | |
6173 | fi | |
6174 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6175 | ||
7f26dfa3 FXC |
6176 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6177 | # and make the substitution. | |
6178 | case ,${enable_languages}, in | |
6179 | *,f95,*) | |
6180 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6181 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6182 | ;; | |
6183 | esac | |
6184 | ||
0823efed DN |
6185 | # If bootstrapping, C++ must be enabled. |
6186 | case ",$enable_languages,:$enable_bootstrap" in | |
6187 | *,c++,*:*) ;; | |
6188 | *:yes) | |
ff3ac0f4 ILT |
6189 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6190 | enable_languages="${enable_languages},c++" | |
6191 | else | |
0823efed | 6192 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6193 | fi |
6194 | ;; | |
6195 | esac | |
6196 | ||
55ffb5ed NN |
6197 | # First scan to see if an enabled language requires some other language. |
6198 | # We assume that a given config-lang.in will list all the language | |
6199 | # front ends it requires, even if some are required indirectly. | |
6200 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6201 | case ${lang_frag} in | |
6202 | ..) ;; | |
6203 | # The odd quoting in the next line works around | |
6204 | # an apparent bug in bash 1.12 on linux. | |
6205 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6206 | *) | |
69ecd18f ILT |
6207 | # From the config-lang.in, get $language, $lang_requires, and |
6208 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6209 | language= |
6210 | lang_requires= | |
69ecd18f | 6211 | lang_requires_boot_languages= |
55ffb5ed | 6212 | . ${lang_frag} |
69ecd18f | 6213 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6214 | case ,${enable_languages}, in |
6215 | *,$other,*) ;; | |
6216 | *,all,*) ;; | |
6217 | *,$language,*) | |
6218 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6219 | enable_languages="${enable_languages},${other}" | |
6220 | ;; | |
6221 | esac | |
6222 | done | |
69ecd18f ILT |
6223 | for other in ${lang_requires_boot_languages} ; do |
6224 | if test "$other" != "c"; then | |
6225 | case ,${enable_stage1_languages}, in | |
6226 | *,$other,*) ;; | |
6227 | *,all,*) ;; | |
6228 | *) | |
6229 | case ,${enable_languages}, in | |
6230 | *,$language,*) | |
6231 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6232 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6233 | ;; | |
6234 | esac | |
6235 | ;; | |
6236 | esac | |
6237 | fi | |
6238 | done | |
55ffb5ed NN |
6239 | ;; |
6240 | esac | |
6241 | done | |
6242 | ||
e1888513 | 6243 | new_enable_languages=,c, |
d7f09764 DN |
6244 | |
6245 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6246 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6247 | case ,${enable_languages}, in |
6248 | *,lto,*) ;; | |
6249 | *) enable_languages="${enable_languages},lto" ;; | |
6250 | esac | |
1cd0b716 | 6251 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6252 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6253 | fi |
6254 | fi | |
6255 | ||
426c1eb0 TS |
6256 | # If we're building an offloading compiler, add the LTO front end. |
6257 | if test x"$enable_as_accelerator_for" != x ; then | |
6258 | case ,${enable_languages}, in | |
6259 | *,lto,*) ;; | |
6260 | *) enable_languages="${enable_languages},lto" ;; | |
6261 | esac | |
6262 | fi | |
6263 | ||
55ffb5ed | 6264 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6265 | potential_languages=,c, |
55ffb5ed | 6266 | |
4da3b0f8 ILT |
6267 | enabled_target_libs= |
6268 | disabled_target_libs= | |
6269 | ||
55ffb5ed NN |
6270 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6271 | case ${lang_frag} in | |
6272 | ..) ;; | |
6273 | # The odd quoting in the next line works around | |
6274 | # an apparent bug in bash 1.12 on linux. | |
6275 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6276 | *) | |
1c710c3c | 6277 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6278 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6279 | language= |
6280 | target_libs= | |
6281 | lang_dirs= | |
1546bb64 | 6282 | subdir_requires= |
e1888513 PB |
6283 | boot_language=no |
6284 | build_by_default=yes | |
55ffb5ed | 6285 | . ${lang_frag} |
e1888513 PB |
6286 | if test x${language} = x; then |
6287 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6288 | exit 1 | |
6289 | fi | |
6290 | ||
78767fd9 | 6291 | if test "$language" = "c++"; then |
0823efed | 6292 | boot_language=yes |
00020c16 ILT |
6293 | fi |
6294 | ||
178f875a | 6295 | add_this_lang=no |
e1888513 PB |
6296 | case ,${enable_languages}, in |
6297 | *,${language},*) | |
d4a10d0a SB |
6298 | # Language was explicitly selected; include it |
6299 | # unless it is C, which is enabled by default. | |
6300 | if test "$language" != "c"; then | |
6301 | add_this_lang=yes | |
6302 | fi | |
55ffb5ed | 6303 | ;; |
e1888513 PB |
6304 | *,all,*) |
6305 | # 'all' was selected, select it if it is a default language | |
178f875a JM |
6306 | if test "$language" != "c"; then |
6307 | add_this_lang=${build_by_default} | |
6308 | fi | |
55ffb5ed NN |
6309 | ;; |
6310 | esac | |
6de9cd9a | 6311 | |
1546bb64 | 6312 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6313 | for i in $subdir_requires; do |
b6348cb3 | 6314 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
6315 | case ,${enable_languages}, in |
6316 | *,${language},*) | |
6317 | # Specifically requested language; tell them. | |
5213506e | 6318 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 PB |
6319 | ;; |
6320 | *) | |
6321 | # Silently disable. | |
e1888513 | 6322 | add_this_lang=unsupported |
1546bb64 PB |
6323 | ;; |
6324 | esac | |
6325 | done | |
6326 | ||
e1888513 PB |
6327 | # Disable Ada if no preexisting GNAT is available. |
6328 | case ,${enable_languages},:${language}:${have_gnat} in | |
6329 | *,${language},*:ada:no) | |
6330 | # Specifically requested language; tell them. | |
5213506e | 6331 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
e1888513 PB |
6332 | ;; |
6333 | *:ada:no) | |
6334 | # Silently disable. | |
6335 | add_this_lang=unsupported | |
6336 | ;; | |
6337 | esac | |
6338 | ||
4fab7234 HPN |
6339 | # Disable a language that is unsupported by the target. |
6340 | case " $unsupported_languages " in | |
6341 | *" $language "*) | |
e1888513 | 6342 | add_this_lang=unsupported |
4fab7234 HPN |
6343 | ;; |
6344 | esac | |
6345 | ||
6de9cd9a | 6346 | case $add_this_lang in |
e1888513 | 6347 | unsupported) |
55ffb5ed | 6348 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6349 | disabled_target_libs="$disabled_target_libs $target_libs" |
6350 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6351 | ;; |
e1888513 PB |
6352 | no) |
6353 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6354 | disabled_target_libs="$disabled_target_libs $target_libs" |
6355 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6356 | potential_languages="${potential_languages}${language}," |
6357 | ;; | |
6358 | yes) | |
6359 | new_enable_languages="${new_enable_languages}${language}," | |
6360 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6361 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6362 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6363 | case "${boot_language}:,$enable_stage1_languages," in |
6364 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6365 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6366 | case ",$stage1_languages," in |
6367 | *,$language,* | ,yes, | ,all,) ;; | |
6368 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6369 | esac | |
00020c16 ILT |
6370 | # We need to bootstrap any supporting libraries. |
6371 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6372 | ;; |
6373 | esac | |
6374 | ;; | |
55ffb5ed NN |
6375 | esac |
6376 | ;; | |
6377 | esac | |
6378 | done | |
6379 | ||
4da3b0f8 ILT |
6380 | # Add target libraries which are only needed for disabled languages |
6381 | # to noconfigdirs. | |
6382 | if test -n "$disabled_target_libs"; then | |
6383 | for dir in $disabled_target_libs; do | |
6384 | case " $enabled_target_libs " in | |
6385 | *" ${dir} "*) ;; | |
6386 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6387 | esac | |
6388 | done | |
6389 | fi | |
6390 | ||
5213506e RW |
6391 | # Check whether --enable-stage1-languages was given. |
6392 | if test "${enable_stage1_languages+set}" = set; then : | |
6393 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6394 | ,no,|,,) |
6395 | # Set it to something that will have no effect in the loop below | |
6396 | enable_stage1_languages=c ;; | |
6397 | ,yes,) | |
6398 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6399 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6400 | *,all,*) | |
6401 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6402 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6403 | esac | |
6404 | ||
6405 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6406 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6407 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6408 | case $potential_languages in | |
6409 | *,$i,*) | |
6410 | case $stage1_languages in | |
6411 | *,$i,*) ;; | |
6412 | *) stage1_languages="$stage1_languages$i," ;; | |
6413 | esac ;; | |
6414 | *) | |
6415 | case $missing_languages in | |
6416 | *,$i,*) ;; | |
6417 | *) missing_languages="$missing_languages$i," ;; | |
6418 | esac ;; | |
6419 | esac | |
6420 | done | |
5213506e RW |
6421 | fi |
6422 | ||
e1888513 PB |
6423 | |
6424 | # Remove leading/trailing commas that were added for simplicity | |
6425 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6426 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6427 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6428 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6429 | ||
55ffb5ed | 6430 | if test "x$missing_languages" != x; then |
5213506e | 6431 | as_fn_error " |
0cf085e4 | 6432 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6433 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6434 | fi |
55ffb5ed NN |
6435 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6436 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6437 | enable_languages="$new_enable_languages" |
55ffb5ed | 6438 | fi |
e1888513 | 6439 | |
1c710c3c | 6440 | |
b2eaac4a | 6441 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6442 | fi |
6443 | ||
27079765 AH |
6444 | # Handle --disable-<component> generically. |
6445 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6446 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6447 | varname=`echo $dirname | sed -e s/+/_/g` |
6448 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6449 | noconfigdirs="$noconfigdirs $dir" |
6450 | fi | |
6451 | done | |
6452 | ||
7cd0cf9c | 6453 | # Check for Boehm's garbage collector |
5213506e RW |
6454 | # Check whether --enable-objc-gc was given. |
6455 | if test "${enable_objc_gc+set}" = set; then : | |
6456 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
7cd0cf9c | 6457 | *,objc,*:*:yes:*target-boehm-gc*) |
5213506e | 6458 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
7cd0cf9c DA |
6459 | ;; |
6460 | esac | |
5213506e RW |
6461 | fi |
6462 | ||
7cd0cf9c DA |
6463 | |
6464 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
6465 | case ,${enable_languages},:${enable_objc_gc} in |
6466 | *,objc,*:yes) | |
7cd0cf9c DA |
6467 | # Keep target-boehm-gc if requested for Objective-C. |
6468 | ;; | |
7cd0cf9c | 6469 | *) |
2a79fd67 DA |
6470 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6471 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6472 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6473 | fi | |
7cd0cf9c DA |
6474 | ;; |
6475 | esac | |
6476 | ||
5f520819 | 6477 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6478 | case ,${enable_languages}, in |
1007a55c JW |
6479 | *,c++,*) |
6480 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6481 | case "${noconfigdirs}" in | |
6482 | *target-libstdc++-v3*) | |
6483 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6484 | ;; | |
6485 | *) ;; | |
6486 | esac | |
6487 | ;; | |
99776ebd | 6488 | *) |
5f520819 | 6489 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6490 | ;; |
6491 | esac | |
6492 | ||
ee6a22df L |
6493 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6494 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6495 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6496 | ||
6497 | notsupp="" | |
6498 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6499 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6500 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6501 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6502 | if test -r $srcdir/$dirname/configure ; then | |
6503 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6504 | true | |
6505 | else | |
6506 | notsupp="$notsupp $dir" | |
6507 | fi | |
6508 | fi | |
6509 | fi | |
ee6a22df L |
6510 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6511 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6512 | if test -r $srcdir/$dirname/configure ; then | |
6513 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6514 | true | |
6515 | else | |
6516 | notsupp="$notsupp $dir" | |
6517 | fi | |
6518 | fi | |
6519 | fi | |
55ffb5ed NN |
6520 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6521 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6522 | if test -r $srcdir/$dirname/configure ; then | |
6523 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6524 | true | |
6525 | else | |
6526 | notsupp="$notsupp $dir" | |
6527 | fi | |
6528 | fi | |
6529 | fi | |
6530 | done | |
6531 | ||
55ffb5ed NN |
6532 | # Quietly strip out all directories which aren't configurable in this tree. |
6533 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6534 | # is now the case. | |
23f6b2f9 PB |
6535 | build_configdirs_all="$build_configdirs" |
6536 | build_configdirs= | |
6537 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6538 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6539 | if test -f ${srcdir}/$j/configure ; then |
6540 | build_configdirs="${build_configdirs} $i" | |
6541 | fi | |
6542 | done | |
6543 | ||
55ffb5ed NN |
6544 | configdirs_all="$configdirs" |
6545 | configdirs= | |
6546 | for i in ${configdirs_all} ; do | |
6547 | if test -f ${srcdir}/$i/configure ; then | |
6548 | configdirs="${configdirs} $i" | |
6549 | fi | |
6550 | done | |
23f6b2f9 | 6551 | |
55ffb5ed NN |
6552 | target_configdirs_all="$target_configdirs" |
6553 | target_configdirs= | |
6554 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6555 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6556 | if test -f ${srcdir}/$j/configure ; then |
6557 | target_configdirs="${target_configdirs} $i" | |
6558 | fi | |
6559 | done | |
6560 | ||
45b3824d TS |
6561 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6562 | # so we have to add it after the preceding checks. | |
6563 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6564 | then | |
6565 | case " $configdirs " in | |
6566 | *" libiberty "*) | |
6567 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6568 | configdirs="$configdirs libiberty-linker-plugin" | |
6569 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6570 | --with-libiberty=../libiberty-linker-plugin";; | |
6571 | *) | |
6572 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6573 | esac | |
6574 | fi | |
6575 | ||
fca38047 TS |
6576 | # Sometimes we have special requirements for the host libiberty. |
6577 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 6578 | extra_host_zlib_configure_flags= |
fca38047 TS |
6579 | case " $configdirs " in |
6580 | *" lto-plugin "* | *" libcc1 "*) | |
6581 | # When these are to be built as shared libraries, the same applies to | |
6582 | # libiberty. | |
6583 | extra_host_libiberty_configure_flags=--enable-shared | |
6584 | ;; | |
1c01ebf6 L |
6585 | *" bfd "*) |
6586 | # When bfd is to be built as a shared library, the same applies to | |
6587 | # zlib. | |
6588 | if test "$enable_shared" = "yes"; then | |
6589 | extra_host_zlib_configure_flags=--enable-host-shared | |
6590 | fi | |
6591 | ;; | |
fca38047 TS |
6592 | esac |
6593 | ||
6594 | ||
1c01ebf6 | 6595 | |
55ffb5ed NN |
6596 | # Produce a warning message for the subdirs we can't configure. |
6597 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6598 | # FSF releases, it's important to let people know when their machine isn't | |
6599 | # supported by the one or two programs in a package. | |
6600 | ||
6601 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6602 | # If $appdirs is non-empty, at least one of those directories must still | |
6603 | # be configured, or we error out. (E.g., if the gas release supports a | |
6604 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6605 | # pretend that all is well.) | |
6606 | if test -n "$appdirs" ; then | |
6607 | for dir in $appdirs ; do | |
6608 | if test -r $dir/Makefile.in ; then | |
6609 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6610 | appdirs="" | |
6611 | break | |
6612 | fi | |
23f6b2f9 | 6613 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6614 | appdirs="" |
6615 | break | |
6616 | fi | |
6617 | fi | |
6618 | done | |
6619 | if test -n "$appdirs" ; then | |
6620 | echo "*** This configuration is not supported by this package." 1>&2 | |
6621 | exit 1 | |
6622 | fi | |
6623 | fi | |
6624 | # Okay, some application will build, or we don't care to check. Still | |
6625 | # notify of subdirs not getting built. | |
6626 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6627 | echo " ${notsupp}" 1>&2 | |
6628 | echo " (Any other directories should still work fine.)" 1>&2 | |
6629 | fi | |
6630 | ||
6631 | case "$host" in | |
6632 | *msdosdjgpp*) | |
6633 | enable_gdbtk=no ;; | |
6634 | esac | |
6635 | ||
c3a86da9 DJ |
6636 | # To find our prefix, in gcc_cv_tool_prefix. |
6637 | ||
6638 | # The user is always right. | |
6639 | if test "${PATH_SEPARATOR+set}" != set; then | |
6640 | echo "#! /bin/sh" >conf$$.sh | |
6641 | echo "exit 0" >>conf$$.sh | |
6642 | chmod +x conf$$.sh | |
6643 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6644 | PATH_SEPARATOR=';' | |
6645 | else | |
6646 | PATH_SEPARATOR=: | |
6647 | fi | |
6648 | rm -f conf$$.sh | |
6649 | fi | |
6650 | ||
6651 | ||
6652 | ||
6653 | if test "x$exec_prefix" = xNONE; then | |
6654 | if test "x$prefix" = xNONE; then | |
6655 | gcc_cv_tool_prefix=$ac_default_prefix | |
6656 | else | |
6657 | gcc_cv_tool_prefix=$prefix | |
6658 | fi | |
6659 | else | |
6660 | gcc_cv_tool_prefix=$exec_prefix | |
6661 | fi | |
6662 | ||
6663 | # If there is no compiler in the tree, use the PATH only. In any | |
6664 | # case, if there is no compiler in the tree nobody should use | |
6665 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6666 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6667 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6668 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6669 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6670 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6671 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6672 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6673 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6674 | else | |
6675 | gcc_cv_tool_dirs= | |
6676 | fi | |
6677 | ||
6678 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6679 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6680 | fi | |
6681 | ||
6682 | ||
6683 | ||
55ffb5ed NN |
6684 | copy_dirs= |
6685 | ||
1c710c3c | 6686 | |
5213506e RW |
6687 | # Check whether --with-build-sysroot was given. |
6688 | if test "${with_build_sysroot+set}" = set; then : | |
6689 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6690 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6691 | fi | |
6692 | else | |
6693 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6694 | fi |
526635cb MM |
6695 | |
6696 | ||
c8aea42c | 6697 | |
5213506e RW |
6698 | |
6699 | # Check whether --with-debug-prefix-map was given. | |
6700 | if test "${with_debug_prefix_map+set}" = set; then : | |
6701 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6702 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6703 | for debug_map in $withval; do | |
6704 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6705 | done | |
6706 | fi | |
6707 | else | |
6708 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6709 | fi |
6710 | ||
c8aea42c PB |
6711 | |
6712 | ||
1c8bd6a3 PB |
6713 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6714 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6715 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6716 | # We want to ensure that TARGET libraries (which we know are built with | |
6717 | # gcc) are built with "-O2 -g", so include those options when setting | |
6718 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6719 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6720 | if test "x${is_cross_compiler}" = xyes; then |
6721 | CFLAGS_FOR_TARGET="-g -O2" | |
6722 | else | |
6723 | CFLAGS_FOR_TARGET=$CFLAGS | |
6724 | case " $CFLAGS " in | |
6725 | *" -O2 "*) ;; | |
6726 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6727 | esac | |
6728 | case " $CFLAGS " in | |
6729 | *" -g "* | *" -g3 "*) ;; | |
6730 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6731 | esac | |
6732 | fi | |
1c8bd6a3 PB |
6733 | fi |
6734 | ||
6735 | ||
6736 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6737 | if test "x${is_cross_compiler}" = xyes; then |
6738 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6739 | else | |
6740 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6741 | case " $CXXFLAGS " in | |
6742 | *" -O2 "*) ;; | |
6743 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6744 | esac | |
6745 | case " $CXXFLAGS " in | |
6746 | *" -g "* | *" -g3 "*) ;; | |
6747 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6748 | esac | |
6749 | fi | |
1c8bd6a3 PB |
6750 | fi |
6751 | ||
6752 | ||
6f57bdf6 DK |
6753 | |
6754 | ||
55ffb5ed NN |
6755 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6756 | # the named directory are copied to $(tooldir)/sys-include. | |
6757 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6758 | if test x${is_cross_compiler} = xno ; then | |
6759 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6760 | exit 1 | |
6761 | fi | |
6762 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6763 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6764 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6765 | fi |
6766 | fi | |
6767 | ||
6768 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6769 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6770 | # are permitted. | |
6771 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6772 | if test x${is_cross_compiler} = xno ; then | |
6773 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6774 | exit 1 | |
6775 | fi | |
6776 | if test x"${with_libs}" != xyes ; then | |
6777 | # Copy the libraries in reverse order, so that files in the first named | |
6778 | # library override files in subsequent libraries. | |
c3a86da9 | 6779 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6780 | for l in ${with_libs}; do |
1c710c3c | 6781 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6782 | done |
6783 | fi | |
6784 | fi | |
6785 | ||
d7f09764 | 6786 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6787 | # |
6788 | # This is done by determining whether or not the appropriate directory | |
6789 | # is available, and by checking whether or not specific configurations | |
6790 | # have requested that this magic not happen. | |
1c710c3c DJ |
6791 | # |
6792 | # The command line options always override the explicit settings in | |
e8b05380 PB |
6793 | # configure.in, and the settings in configure.in override this magic. |
6794 | # | |
1c710c3c | 6795 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6796 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6797 | # --without-gnu-ld options for the configure script. Similarly, if |
6798 | # the default is to use the included zlib and you don't want to do that, | |
6799 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6800 | |
6801 | if test x${use_gnu_as} = x && | |
6802 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6803 | with_gnu_as=yes | |
6804 | extra_host_args="$extra_host_args --with-gnu-as" | |
6805 | fi | |
6806 | ||
6807 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6808 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6809 | with_gnu_ld=yes |
6810 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6811 | fi | |
6812 | ||
d7f09764 DN |
6813 | if test x${use_included_zlib} = x && |
6814 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6815 | : | |
6816 | else | |
6817 | with_system_zlib=yes | |
6818 | extra_host_args="$extra_host_args --with-system-zlib" | |
6819 | fi | |
6820 | ||
e8b05380 PB |
6821 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6822 | # can detect this case. | |
6823 | ||
6824 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6825 | with_newlib=yes | |
6826 | extra_host_args="$extra_host_args --with-newlib" | |
6827 | fi | |
6828 | ||
55ffb5ed NN |
6829 | # Handle ${copy_dirs} |
6830 | set fnord ${copy_dirs} | |
6831 | shift | |
6832 | while test $# != 0 ; do | |
6833 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6834 | : | |
6835 | else | |
6836 | echo Copying $1 to $2 | |
6837 | ||
6838 | # Use the install script to create the directory and all required | |
6839 | # parent directories. | |
6840 | if test -d $2 ; then | |
6841 | : | |
6842 | else | |
6843 | echo >config.temp | |
6844 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6845 | fi | |
6846 | ||
6847 | # Copy the directory, assuming we have tar. | |
6848 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6849 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6850 | ||
6851 | # It is the responsibility of the user to correctly adjust all | |
6852 | # symlinks. If somebody can figure out how to handle them correctly | |
6853 | # here, feel free to add the code. | |
6854 | ||
6855 | echo $1 > $2/COPIED | |
6856 | fi | |
6857 | shift; shift | |
6858 | done | |
6859 | ||
e8b05380 PB |
6860 | # Determine a target-dependent exec_prefix that the installed |
6861 | # gcc will search in. Keep this list sorted by triplet, with | |
6862 | # the *-*-osname triplets last. | |
6863 | md_exec_prefix= | |
6864 | case "${target}" in | |
30b74385 | 6865 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6866 | md_exec_prefix=/dev/env/DJDIR/bin |
6867 | ;; | |
e8b05380 | 6868 | *-*-hpux* | \ |
e8b05380 | 6869 | *-*-nto-qnx* | \ |
6de66370 | 6870 | *-*-solaris2*) |
e8b05380 PB |
6871 | md_exec_prefix=/usr/ccs/bin |
6872 | ;; | |
6873 | esac | |
6874 | ||
671aa708 NN |
6875 | extra_arflags_for_target= |
6876 | extra_nmflags_for_target= | |
6877 | extra_ranlibflags_for_target= | |
6878 | target_makefile_frag=/dev/null | |
6879 | case "${target}" in | |
58e24147 AM |
6880 | spu-*-*) |
6881 | target_makefile_frag="config/mt-spu" | |
6882 | ;; | |
d896cc4d | 6883 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
6884 | target_makefile_frag="config/mt-sde" |
6885 | ;; | |
1ec3b87b RS |
6886 | mipsisa*-*-elfoabi*) |
6887 | target_makefile_frag="config/mt-mips-elfoabi" | |
6888 | ;; | |
08d0963a RS |
6889 | mips*-*-*linux* | mips*-*-gnu*) |
6890 | target_makefile_frag="config/mt-mips-gnu" | |
6891 | ;; | |
707f1839 SL |
6892 | nios2-*-elf*) |
6893 | target_makefile_frag="config/mt-nios2-elf" | |
6894 | ;; | |
416ac4d4 | 6895 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 6896 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
6897 | ;; |
6898 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 6899 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
6900 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6901 | # harmless if we're using GNU nm or ar. | |
6902 | extra_arflags_for_target=" -X32_64" | |
6903 | extra_nmflags_for_target=" -B -X32_64" | |
6904 | ;; | |
671aa708 NN |
6905 | esac |
6906 | ||
6907 | alphaieee_frag=/dev/null | |
6908 | case $target in | |
6909 | alpha*-*-*) | |
6910 | # This just makes sure to use the -mieee option to build target libs. | |
6911 | # This should probably be set individually by each library. | |
6912 | alphaieee_frag="config/mt-alphaieee" | |
6913 | ;; | |
6914 | esac | |
6915 | ||
6916 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6917 | # the target libraries, similarly if it is not specified, use -Os | |
6918 | # on selected platforms. | |
6919 | ospace_frag=/dev/null | |
6920 | case "${enable_target_optspace}:${target}" in | |
6921 | yes:*) | |
6922 | ospace_frag="config/mt-ospace" | |
6923 | ;; | |
6924 | :d30v-*) | |
6925 | ospace_frag="config/mt-d30v" | |
6926 | ;; | |
d9063947 | 6927 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
6928 | ospace_frag="config/mt-ospace" |
6929 | ;; | |
6930 | no:* | :*) | |
6931 | ;; | |
6932 | *) | |
6933 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6934 | ;; | |
6935 | esac | |
6936 | ||
671aa708 NN |
6937 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6938 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 6939 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
6940 | build_tooldir=${tooldir} |
6941 | ||
671aa708 NN |
6942 | # Create a .gdbinit file which runs the one in srcdir |
6943 | # and tells GDB to look there for source files. | |
6944 | ||
6945 | if test -r ${srcdir}/.gdbinit ; then | |
6946 | case ${srcdir} in | |
6947 | .) ;; | |
6948 | *) cat > ./.gdbinit <<EOF | |
6949 | # ${NO_EDIT} | |
6950 | dir ${srcdir} | |
6951 | dir . | |
6952 | source ${srcdir}/.gdbinit | |
6953 | EOF | |
6954 | ;; | |
6955 | esac | |
6956 | fi | |
6957 | ||
671aa708 NN |
6958 | # Make sure that the compiler is able to generate an executable. If it |
6959 | # can't, we are probably in trouble. We don't care whether we can run the | |
6960 | # executable--we might be using a cross compiler--we only care whether it | |
6961 | # can be created. At this point the main configure script has set CC. | |
6962 | we_are_ok=no | |
6963 | echo "int main () { return 0; }" > conftest.c | |
6964 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6965 | if test $? = 0 ; then | |
6966 | if test -s conftest || test -s conftest.exe ; then | |
6967 | we_are_ok=yes | |
6968 | fi | |
1c710c3c | 6969 | fi |
671aa708 NN |
6970 | case $we_are_ok in |
6971 | no) | |
6972 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6973 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6974 | rm -f conftest* | |
6975 | exit 1 | |
6976 | ;; | |
6977 | esac | |
6978 | rm -f conftest* | |
6979 | ||
d89f0ad6 | 6980 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
6981 | case "${host}" in |
6982 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 6983 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 6984 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
6985 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6986 | esac | |
6987 | ||
d89f0ad6 AL |
6988 | # On systems where the dynamic library environment variable is PATH, |
6989 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6990 | # built executables to PATH. | |
6991 | if test "$RPATH_ENVVAR" = PATH; then | |
6992 | GCC_SHLIB_SUBDIR=/shlib | |
6993 | else | |
6994 | GCC_SHLIB_SUBDIR= | |
6995 | fi | |
6996 | ||
beeda1d9 JJ |
6997 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6998 | case $enable_bootstrap in | |
6999 | yes) | |
7000 | bootstrap_suffix=bootstrap | |
7001 | BUILD_CONFIG=bootstrap-debug | |
7002 | ;; | |
7003 | no) | |
7004 | bootstrap_suffix=no-bootstrap | |
7005 | BUILD_CONFIG= | |
7006 | ;; | |
7007 | esac | |
7008 | ||
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7010 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7011 | ||
7012 | ||
7013 | # Check whether --with-build-config was given. | |
7014 | if test "${with_build_config+set}" = set; then : | |
7015 | withval=$with_build_config; case $with_build_config in | |
7016 | yes) with_build_config= ;; | |
7017 | no) with_build_config= BUILD_CONFIG= ;; | |
7018 | esac | |
7019 | fi | |
7020 | ||
7021 | ||
7022 | if test "x${with_build_config}" != x; then | |
7023 | BUILD_CONFIG=$with_build_config | |
7024 | else | |
7025 | case $BUILD_CONFIG in | |
7026 | bootstrap-debug) | |
7027 | if echo "int f (void) { return 0; }" > conftest.c && | |
7028 | ${CC} -c conftest.c && | |
7029 | mv conftest.o conftest.o.g0 && | |
7030 | ${CC} -c -g conftest.c && | |
7031 | mv conftest.o conftest.o.g && | |
7032 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7033 | : | |
7034 | else | |
7035 | BUILD_CONFIG= | |
7036 | fi | |
7037 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7038 | ;; | |
7039 | esac | |
7040 | fi | |
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7042 | $as_echo "$BUILD_CONFIG" >&6; } | |
7043 | ||
7044 | ||
7045 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7047 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7048 | # Check whether --enable-vtable-verify was given. | |
7049 | if test "${enable_vtable_verify+set}" = set; then : | |
7050 | enableval=$enable_vtable_verify; case "$enableval" in | |
7051 | yes) enable_vtable_verify=yes ;; | |
7052 | no) enable_vtable_verify=no ;; | |
7053 | *) enable_vtable_verify=no;; | |
7054 | esac | |
7055 | else | |
7056 | enable_vtable_verify=no | |
7057 | fi | |
7058 | ||
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7060 | $as_echo "$enable_vtable_verify" >&6; } | |
7061 | ||
671aa708 NN |
7062 | # Record target_configdirs and the configure arguments for target and |
7063 | # build configuration in Makefile. | |
7064 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 7065 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 7066 | bootstrap_fixincludes=no |
671aa708 | 7067 | |
ad1e5170 JR |
7068 | # If we are building libgomp, bootstrap it. |
7069 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7070 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7071 | fi | |
7072 | ||
beeda1d9 JJ |
7073 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7074 | # or bootstrap-ubsan, bootstrap it. | |
7075 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7076 | case "$BUILD_CONFIG" in | |
7077 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7078 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7079 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7080 | ;; |
7081 | esac | |
ac8701fe L |
7082 | fi |
7083 | ||
beeda1d9 JJ |
7084 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7085 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7086 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7087 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7088 | fi | |
7089 | ||
5373cd33 IE |
7090 | # If we are building libmpx, bootstrap it. |
7091 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7092 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7093 | fi | |
7094 | ||
671aa708 NN |
7095 | # Determine whether gdb needs tk/tcl or not. |
7096 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7097 | # and in that case we want gdb to be built without tk. Ugh! | |
7098 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7099 | # so we should be able to put the 'maybe's in unconditionally and | |
7100 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7101 | # 100% sure that that's safe though. | |
e914a571 | 7102 | |
b4f96efe | 7103 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7104 | case "$enable_gdbtk" in |
7105 | no) | |
7106 | GDB_TK="" ;; | |
e914a571 AC |
7107 | yes) |
7108 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7109 | *) |
e914a571 AC |
7110 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7111 | # distro. Eventually someone will fix this and move Insight, nee | |
7112 | # gdbtk to a separate directory. | |
7113 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7114 | GDB_TK="${gdb_tk}" | |
7115 | else | |
7116 | GDB_TK="" | |
7117 | fi | |
7118 | ;; | |
671aa708 | 7119 | esac |
ef9db8d5 DJ |
7120 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7121 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7122 | |
60975492 | 7123 | # Strip out unwanted targets. |
8b87bb96 NN |
7124 | |
7125 | # While at that, we remove Makefiles if we were started for recursive | |
7126 | # configuration, so that the top-level Makefile reconfigures them, | |
7127 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7128 | |
3e54529c RW |
7129 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7130 | # but now we're fixing up the Makefile ourselves with the additional | |
7131 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7132 | # extrasub-{build,host,target} not because there is any reason to split | |
7133 | # the substitutions up that way, but only to remain below the limit of | |
7134 | # 99 commands in a script, for HP-UX sed. | |
7135 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 7136 | |
79cd2b23 RW |
7137 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7138 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7139 | yes:yes:*\ gold\ *:*) | |
7140 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7141 | ;; | |
7142 | esac | |
7143 | ||
3e54529c | 7144 | extrasub_build= |
23f6b2f9 | 7145 | for module in ${build_configdirs} ; do |
5607edfd PB |
7146 | if test -z "${no_recursion}" \ |
7147 | && test -f ${build_subdir}/${module}/Makefile; then | |
7148 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7149 | rm -f ${build_subdir}/${module}/Makefile | |
7150 | fi | |
3e54529c | 7151 | extrasub_build="$extrasub_build |
5607edfd PB |
7152 | /^@if build-$module\$/d |
7153 | /^@endif build-$module\$/d | |
7154 | /^@if build-$module-$bootstrap_suffix\$/d | |
7155 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7156 | done | |
3e54529c | 7157 | extrasub_host= |
5607edfd | 7158 | for module in ${configdirs} ; do |
a6fbc1e2 | 7159 | if test -z "${no_recursion}"; then |
f063a9ed | 7160 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7161 | if test -f ${file}; then |
7162 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7163 | rm -f ${file} | |
7164 | fi | |
7165 | done | |
5607edfd | 7166 | fi |
9e1c8fc1 JJ |
7167 | case ${module},${bootstrap_fixincludes} in |
7168 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7169 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7170 | esac | |
3e54529c | 7171 | extrasub_host="$extrasub_host |
5607edfd PB |
7172 | /^@if $module\$/d |
7173 | /^@endif $module\$/d | |
9e1c8fc1 JJ |
7174 | /^@if $module-$host_bootstrap_suffix\$/d |
7175 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7176 | done |
3e54529c | 7177 | extrasub_target= |
5607edfd PB |
7178 | for module in ${target_configdirs} ; do |
7179 | if test -z "${no_recursion}" \ | |
7180 | && test -f ${target_subdir}/${module}/Makefile; then | |
7181 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7182 | rm -f ${target_subdir}/${module}/Makefile | |
7183 | fi | |
00020c16 ILT |
7184 | |
7185 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7186 | case $bootstrap_target_libs in | |
7187 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7188 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7189 | esac | |
7190 | ||
3e54529c | 7191 | extrasub_target="$extrasub_target |
5607edfd PB |
7192 | /^@if target-$module\$/d |
7193 | /^@endif target-$module\$/d | |
00020c16 ILT |
7194 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7195 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7196 | done |
7197 | ||
3e54529c RW |
7198 | # Do the final fixup along with target modules. |
7199 | extrasub_target="$extrasub_target | |
60975492 | 7200 | /^@if /,/^@endif /d" |
671aa708 NN |
7201 | |
7202 | # Create the serialization dependencies. This uses a temporary file. | |
7203 | ||
5213506e RW |
7204 | # Check whether --enable-serial-configure was given. |
7205 | if test "${enable_serial_configure+set}" = set; then : | |
7206 | enableval=$enable_serial_configure; | |
7207 | fi | |
ade82b16 AO |
7208 | |
7209 | ||
bf1d3e81 NN |
7210 | case ${enable_serial_configure} in |
7211 | yes) | |
7212 | enable_serial_build_configure=yes | |
7213 | enable_serial_host_configure=yes | |
7214 | enable_serial_target_configure=yes | |
7215 | ;; | |
7216 | esac | |
7217 | ||
671aa708 NN |
7218 | # These force 'configure's to be done one at a time, to avoid problems |
7219 | # with contention over a shared config.cache. | |
7220 | rm -f serdep.tmp | |
ade82b16 | 7221 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7222 | olditem= |
bf1d3e81 | 7223 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7224 | for item in ${build_configdirs} ; do |
7225 | case ${olditem} in | |
7226 | "") ;; | |
ade82b16 | 7227 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7228 | esac |
7229 | olditem=${item} | |
7230 | done | |
7231 | olditem= | |
bf1d3e81 | 7232 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7233 | for item in ${configdirs} ; do |
7234 | case ${olditem} in | |
7235 | "") ;; | |
ade82b16 | 7236 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7237 | esac |
7238 | olditem=${item} | |
7239 | done | |
7240 | olditem= | |
bf1d3e81 | 7241 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7242 | for item in ${target_configdirs} ; do |
7243 | case ${olditem} in | |
7244 | "") ;; | |
ade82b16 | 7245 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7246 | esac |
7247 | olditem=${item} | |
7248 | done | |
7249 | serialization_dependencies=serdep.tmp | |
7250 | ||
7251 | ||
ade82b16 | 7252 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7253 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7254 | # might not want to pass down to subconfigures. The exception being |
7255 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7256 | # files altogether, and which should be passed on to subconfigures. | |
7257 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7258 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7259 | baseargs= |
29a63921 | 7260 | tbaseargs= |
1c710c3c DJ |
7261 | keep_next=no |
7262 | skip_next=no | |
7263 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7264 | for ac_arg |
7265 | do | |
1c710c3c DJ |
7266 | if test X"$skip_next" = X"yes"; then |
7267 | skip_next=no | |
7268 | continue | |
7269 | fi | |
7270 | if test X"$keep_next" = X"yes"; then | |
7271 | case $ac_arg in | |
7272 | *\'*) | |
7273 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7274 | esac | |
7275 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7276 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7277 | keep_next=no |
7278 | continue | |
7279 | fi | |
7280 | ||
7281 | # Handle separated arguments. Based on the logic generated by | |
7282 | # autoconf 2.59. | |
7283 | case $ac_arg in | |
7284 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7285 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7286 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7287 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7288 | separate_arg=no | |
7289 | ;; | |
7290 | -*) | |
7291 | separate_arg=yes | |
7292 | ;; | |
7293 | *) | |
7294 | separate_arg=no | |
7295 | ;; | |
7296 | esac | |
7297 | ||
29a63921 AO |
7298 | skip_targ=no |
7299 | case $ac_arg in | |
7300 | ||
7301 | --with-* | --without-*) | |
7302 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7303 | ||
7304 | case $libopt in | |
7305 | *[-_]include) | |
7306 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7307 | ;; | |
7308 | *[-_]lib) | |
7309 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7310 | ;; | |
7311 | *) | |
7312 | lib=$libopt | |
7313 | ;; | |
7314 | esac | |
7315 | ||
7316 | ||
7317 | case $lib in | |
4a9bb2aa | 7318 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7319 | # If we're processing --with-$lib, --with-$lib-include or |
7320 | # --with-$lib-lib, for one of the libs above, and target is | |
7321 | # different from host, don't pass the current argument to any | |
7322 | # target library's configure. | |
7323 | if test x$is_cross_compiler = xyes; then | |
7324 | skip_targ=yes | |
7325 | fi | |
7326 | ;; | |
7327 | esac | |
7328 | ;; | |
7329 | esac | |
7330 | ||
1c710c3c | 7331 | case "$ac_arg" in |
f1a036e4 NC |
7332 | --cache-file=/dev/null | \ |
7333 | -cache-file=/dev/null ) | |
7334 | # Handled here to avoid the test to skip args below. | |
7335 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7336 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7337 | # Assert: $separate_arg should always be no. |
7338 | keep_next=$separate_arg | |
7339 | ;; | |
1c710c3c DJ |
7340 | --no*) |
7341 | continue | |
7342 | ;; | |
7343 | --c* | \ | |
7344 | --sr* | \ | |
7345 | --ho* | \ | |
7346 | --bu* | \ | |
7347 | --t* | \ | |
7348 | --program-* | \ | |
7349 | -cache_file* | \ | |
7350 | -srcdir* | \ | |
7351 | -host* | \ | |
7352 | -build* | \ | |
7353 | -target* | \ | |
7354 | -program-prefix* | \ | |
7355 | -program-suffix* | \ | |
7356 | -program-transform-name* ) | |
7357 | skip_next=$separate_arg | |
7358 | continue | |
7359 | ;; | |
7360 | -*) | |
7361 | # An option. Add it. | |
7362 | case $ac_arg in | |
7363 | *\'*) | |
7364 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7365 | esac | |
7366 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7367 | if test X"$skip_targ" = Xno; then |
7368 | tbaseargs="$tbaseargs '$ac_arg'" | |
7369 | fi | |
1c710c3c DJ |
7370 | keep_next=$separate_arg |
7371 | ;; | |
7372 | *) | |
7373 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7374 | # pass it down; let the Makefile handle this. | |
7375 | continue | |
7376 | ;; | |
7377 | esac | |
7378 | done | |
7379 | # Remove the initial space we just introduced and, as these will be | |
7380 | # expanded by make, quote '$'. | |
7381 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7382 | |
43bb47c2 DJ |
7383 | # Add in --program-transform-name, after --program-prefix and |
7384 | # --program-suffix have been applied to it. Autoconf has already | |
7385 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7386 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7387 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7388 | # Also, because we want to override the logic in subdir configure scripts to |
7389 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7390 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7391 | ${program_transform_name} | |
7392 | EOF_SED | |
7393 | gcc_transform_name=`cat conftestsed.out` | |
7394 | rm -f conftestsed.out | |
7395 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7396 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7397 | if test "$silent" = yes; then |
7398 | baseargs="$baseargs --silent" | |
29a63921 | 7399 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7400 | fi |
0115d4a3 | 7401 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7402 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7403 | |
ffedf511 RW |
7404 | # Record and document user additions to sub configure arguments. |
7405 | ||
7406 | ||
7407 | ||
7408 | ||
671aa708 NN |
7409 | # For the build-side libraries, we just need to pretend we're native, |
7410 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7411 | # desired. We can't even use the same cache file for all build-side |
7412 | # libraries, as they're compiled differently; some with C, some with | |
7413 | # C++ or with different feature-enabling options. | |
7414 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7415 | |
7416 | # For host modules, accept cache file option, or specification as blank. | |
7417 | case "${cache_file}" in | |
7418 | "") # empty | |
7419 | cache_file_option="" ;; | |
7420 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7421 | cache_file_option="--cache-file=${cache_file}" ;; | |
7422 | *) # relative path | |
7423 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7424 | esac | |
7425 | ||
09438bde NN |
7426 | # Host dirs don't like to share a cache file either, horribly enough. |
7427 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7428 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7429 | |
29a63921 | 7430 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7431 | |
7432 | # Passing a --with-cross-host argument lets the target libraries know | |
7433 | # whether they are being built with a cross-compiler or being built | |
7434 | # native. However, it would be better to use other mechanisms to make the | |
7435 | # sorts of decisions they want to make on this basis. Please consider | |
7436 | # this option to be deprecated. FIXME. | |
7437 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7438 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7439 | fi |
7440 | ||
79e0604d FXC |
7441 | # Special user-friendly check for native x86_64-linux build, if |
7442 | # multilib is not explicitly enabled. | |
7443 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7444 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 7445 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
7446 | dev64=no |
7447 | echo "int main () { return 0; }" > conftest.c | |
7448 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7449 | if test $? = 0 ; then | |
7450 | if test -s conftest || test -s conftest.exe ; then | |
7451 | dev64=yes | |
7452 | fi | |
7453 | fi | |
7454 | rm -f conftest* | |
7455 | if test x${dev64} != xyes ; then | |
e640447c | 7456 | 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 |
7457 | fi |
7458 | ;; | |
7459 | esac | |
7460 | ||
dc683a3f RW |
7461 | # Default to --enable-multilib. |
7462 | if test x${enable_multilib} = x ; then | |
671aa708 | 7463 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7464 | fi |
671aa708 NN |
7465 | |
7466 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7467 | # changed from the earlier setting of with_newlib. | |
7468 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7469 | target_configargs="--with-newlib ${target_configargs}" | |
7470 | fi | |
7471 | ||
6b9eb62c NN |
7472 | # Different target subdirs use different values of certain variables |
7473 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7474 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7475 | # it doesn't automatically accept command-line overrides of them. | |
7476 | # This means it's not safe for target subdirs to share a cache file, | |
7477 | # which is disgusting, but there you have it. Hopefully this can be | |
7478 | # fixed in future. It's still worthwhile to use a cache file for each | |
7479 | # directory. I think. | |
7480 | ||
bebcd931 MS |
7481 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7482 | # We need to pass --target, as newer autoconf's requires consistency | |
7483 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7484 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7485 | |
671aa708 NN |
7486 | FLAGS_FOR_TARGET= |
7487 | case " $target_configdirs " in | |
7488 | *" newlib "*) | |
7489 | case " $target_configargs " in | |
7490 | *" --with-newlib "*) | |
7491 | case "$target" in | |
5d571eaa | 7492 | *-cygwin*) |
443e6238 | 7493 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7494 | ;; |
671aa708 NN |
7495 | esac |
7496 | ||
7497 | # If we're not building GCC, don't discard standard headers. | |
7498 | if test -d ${srcdir}/gcc; then | |
7499 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7500 | ||
7501 | if test "${build}" != "${host}"; then | |
7502 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7503 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7504 | # to it. This is right: we don't want to search that directory | |
7505 | # for binaries, but we want the header files in there, so add | |
7506 | # them explicitly. | |
0463992b | 7507 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7508 | |
7509 | # Someone might think of using the pre-installed headers on | |
7510 | # Canadian crosses, in case the installed compiler is not fully | |
7511 | # compatible with the compiler being built. In this case, it | |
7512 | # would be better to flag an error than risking having | |
7513 | # incompatible object files being constructed. We can't | |
7514 | # guarantee that an error will be flagged, but let's hope the | |
7515 | # compiler will do it, when presented with incompatible header | |
7516 | # files. | |
7517 | fi | |
7518 | fi | |
7519 | ||
7520 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7521 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7522 | # Here host == target, so we don't need to build gcc, |
7523 | # so we don't want to discard standard headers. | |
7524 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7525 | ;; | |
7526 | *) | |
7527 | # If we're building newlib, use its generic headers last, but search | |
7528 | # for any libc-related directories first (so make it the last -B | |
7529 | # switch). | |
7530 | 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 |
7531 | |
7532 | # If we're building libgloss, find the startup file, simulator library | |
7533 | # and linker script. | |
7534 | case " $target_configdirs " in | |
7535 | *" libgloss "*) | |
7536 | # Look for startup file, simulator library and maybe linker script. | |
7537 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7538 | # Look for libnosys.a in case the target needs it. | |
7539 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7540 | # Most targets have the linker script in the source directory. | |
7541 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7542 | ;; | |
7543 | esac | |
671aa708 NN |
7544 | ;; |
7545 | esac | |
7546 | ;; | |
7547 | esac | |
7548 | ;; | |
7549 | esac | |
5d571eaa | 7550 | |
b91f0a41 | 7551 | case "$target" in |
5d571eaa OS |
7552 | x86_64-*mingw* | *-w64-mingw*) |
7553 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7554 | # however, use a symlink named 'mingw' in ${prefix} . | |
7555 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7556 | ;; | |
7557 | *-mingw*) | |
7558 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7559 | 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' | |
7560 | ;; | |
b91f0a41 | 7561 | esac |
671aa708 | 7562 | |
6691a79e ME |
7563 | # Allow the user to override the flags for |
7564 | # our build compiler if desired. | |
f019adc1 MF |
7565 | if test x"${build}" = x"${host}" ; then |
7566 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7567 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7568 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7569 | fi | |
6691a79e | 7570 | |
671aa708 NN |
7571 | # On Canadian crosses, we'll be searching the right directories for |
7572 | # the previously-installed cross compiler, so don't bother to add | |
7573 | # flags for directories within the install tree of the compiler | |
7574 | # being built; programs in there won't even run. | |
7575 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7576 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7577 | 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 |
7578 | fi |
7579 | ||
7580 | if test "x${use_gnu_ld}" = x && | |
7581 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7582 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7583 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7584 | fi |
7585 | ||
e88a2c09 DD |
7586 | # Search for other target-specific linker scripts and such. |
7587 | case "${target}" in | |
3e19841a PB |
7588 | mep*) |
7589 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7590 | ;; | |
e88a2c09 DD |
7591 | esac |
7592 | ||
671aa708 | 7593 | # Makefile fragments. |
7b61653a PE |
7594 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7595 | do | |
7596 | eval fragval=\$$frag | |
7597 | if test $fragval != /dev/null; then | |
7598 | eval $frag=${srcdir}/$fragval | |
7599 | fi | |
7600 | done | |
671aa708 NN |
7601 | |
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | # Miscellanea: directories, flags, etc. | |
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
d89f0ad6 | 7614 | |
23f6b2f9 | 7615 | # Build module lists & subconfigure args. |
671aa708 NN |
7616 | |
7617 | ||
7618 | ||
2abefe3d PB |
7619 | # Host module lists & subconfigure args. |
7620 | ||
7621 | ||
7622 | ||
aae29963 | 7623 | |
2abefe3d PB |
7624 | # Target module lists & subconfigure args. |
7625 | ||
7626 | ||
7627 | ||
7628 | # Build tools. | |
7629 | ||
7630 | ||
7631 | ||
0999159b PB |
7632 | |
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | ||
7642 | ||
7643 | ||
7644 | ||
7645 | ||
2abefe3d PB |
7646 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7647 | # on the build machine. These are used if the Makefile can't locate these | |
7648 | # programs in objdir. | |
7649 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7650 | ||
7651 | for ac_prog in 'bison -y' byacc yacc | |
7652 | do | |
1c710c3c | 7653 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7654 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7656 | $as_echo_n "checking for $ac_word... " >&6; } | |
7657 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7658 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7659 | else |
7660 | if test -n "$YACC"; then | |
7661 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7662 | else | |
1c710c3c DJ |
7663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7664 | for as_dir in $PATH | |
7665 | do | |
7666 | IFS=$as_save_IFS | |
7667 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7668 | for ac_exec_ext in '' $ac_executable_extensions; do |
7669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7670 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7672 | break 2 |
7673 | fi | |
7674 | done | |
5213506e RW |
7675 | done |
7676 | IFS=$as_save_IFS | |
1c710c3c | 7677 | |
2abefe3d PB |
7678 | fi |
7679 | fi | |
1c710c3c | 7680 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7681 | if test -n "$YACC"; then |
5213506e RW |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7683 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7684 | else |
5213506e RW |
7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7686 | $as_echo "no" >&6; } | |
2abefe3d PB |
7687 | fi |
7688 | ||
5213506e | 7689 | |
1c710c3c | 7690 | test -n "$YACC" && break |
2abefe3d PB |
7691 | done |
7692 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7693 | ||
7694 | case " $build_configdirs " in | |
7695 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7696 | esac |
7697 | ||
7698 | for ac_prog in bison | |
7699 | do | |
1c710c3c | 7700 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7701 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7703 | $as_echo_n "checking for $ac_word... " >&6; } | |
7704 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7705 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7706 | else |
7707 | if test -n "$BISON"; then | |
7708 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7709 | else | |
1c710c3c DJ |
7710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7711 | for as_dir in $PATH | |
7712 | do | |
7713 | IFS=$as_save_IFS | |
7714 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7715 | for ac_exec_ext in '' $ac_executable_extensions; do |
7716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7717 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7719 | break 2 |
7720 | fi | |
7721 | done | |
5213506e RW |
7722 | done |
7723 | IFS=$as_save_IFS | |
1c710c3c | 7724 | |
2abefe3d PB |
7725 | fi |
7726 | fi | |
1c710c3c | 7727 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7728 | if test -n "$BISON"; then |
5213506e RW |
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7730 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7731 | else |
5213506e RW |
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7733 | $as_echo "no" >&6; } | |
2abefe3d PB |
7734 | fi |
7735 | ||
5213506e | 7736 | |
1c710c3c | 7737 | test -n "$BISON" && break |
2abefe3d PB |
7738 | done |
7739 | test -n "$BISON" || BISON="$MISSING bison" | |
7740 | ||
7741 | case " $build_configdirs " in | |
7742 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7743 | esac | |
7744 | ||
7745 | for ac_prog in gm4 gnum4 m4 | |
7746 | do | |
1c710c3c | 7747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7748 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7750 | $as_echo_n "checking for $ac_word... " >&6; } | |
7751 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7752 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7753 | else |
7754 | if test -n "$M4"; then | |
7755 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7756 | else | |
1c710c3c DJ |
7757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7758 | for as_dir in $PATH | |
7759 | do | |
7760 | IFS=$as_save_IFS | |
7761 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7762 | for ac_exec_ext in '' $ac_executable_extensions; do |
7763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7764 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7766 | break 2 |
7767 | fi | |
7768 | done | |
5213506e RW |
7769 | done |
7770 | IFS=$as_save_IFS | |
1c710c3c | 7771 | |
2abefe3d PB |
7772 | fi |
7773 | fi | |
1c710c3c | 7774 | M4=$ac_cv_prog_M4 |
2abefe3d | 7775 | if test -n "$M4"; then |
5213506e RW |
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7777 | $as_echo "$M4" >&6; } | |
2abefe3d | 7778 | else |
5213506e RW |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7780 | $as_echo "no" >&6; } | |
2abefe3d PB |
7781 | fi |
7782 | ||
5213506e | 7783 | |
1c710c3c | 7784 | test -n "$M4" && break |
2abefe3d PB |
7785 | done |
7786 | test -n "$M4" || M4="$MISSING m4" | |
7787 | ||
7788 | case " $build_configdirs " in | |
7789 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7790 | esac | |
7791 | ||
7792 | for ac_prog in flex lex | |
7793 | do | |
1c710c3c | 7794 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7795 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7797 | $as_echo_n "checking for $ac_word... " >&6; } | |
7798 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7799 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7800 | else |
7801 | if test -n "$LEX"; then | |
7802 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7803 | else | |
1c710c3c DJ |
7804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7805 | for as_dir in $PATH | |
7806 | do | |
7807 | IFS=$as_save_IFS | |
7808 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7809 | for ac_exec_ext in '' $ac_executable_extensions; do |
7810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7811 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7813 | break 2 |
7814 | fi | |
7815 | done | |
5213506e RW |
7816 | done |
7817 | IFS=$as_save_IFS | |
1c710c3c | 7818 | |
2abefe3d PB |
7819 | fi |
7820 | fi | |
1c710c3c | 7821 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7822 | if test -n "$LEX"; then |
5213506e RW |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7824 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7825 | else |
5213506e RW |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7827 | $as_echo "no" >&6; } | |
2abefe3d PB |
7828 | fi |
7829 | ||
5213506e | 7830 | |
1c710c3c | 7831 | test -n "$LEX" && break |
2abefe3d PB |
7832 | done |
7833 | test -n "$LEX" || LEX="$MISSING flex" | |
7834 | ||
7835 | case " $build_configdirs " in | |
7836 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7837 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7838 | esac | |
7839 | ||
7840 | for ac_prog in flex | |
7841 | do | |
1c710c3c | 7842 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7843 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7845 | $as_echo_n "checking for $ac_word... " >&6; } | |
7846 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7847 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7848 | else |
7849 | if test -n "$FLEX"; then | |
7850 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7851 | else | |
1c710c3c DJ |
7852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7853 | for as_dir in $PATH | |
7854 | do | |
7855 | IFS=$as_save_IFS | |
7856 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7857 | for ac_exec_ext in '' $ac_executable_extensions; do |
7858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7859 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7861 | break 2 |
7862 | fi | |
7863 | done | |
5213506e RW |
7864 | done |
7865 | IFS=$as_save_IFS | |
1c710c3c | 7866 | |
2abefe3d PB |
7867 | fi |
7868 | fi | |
1c710c3c | 7869 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7870 | if test -n "$FLEX"; then |
5213506e RW |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7872 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7873 | else |
5213506e RW |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7875 | $as_echo "no" >&6; } | |
2abefe3d PB |
7876 | fi |
7877 | ||
5213506e | 7878 | |
1c710c3c | 7879 | test -n "$FLEX" && break |
2abefe3d PB |
7880 | done |
7881 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7882 | ||
7883 | case " $build_configdirs " in | |
7884 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7885 | esac | |
7886 | ||
7887 | for ac_prog in makeinfo | |
7888 | do | |
1c710c3c | 7889 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7890 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7892 | $as_echo_n "checking for $ac_word... " >&6; } | |
7893 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7894 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7895 | else |
7896 | if test -n "$MAKEINFO"; then | |
7897 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7898 | else | |
1c710c3c DJ |
7899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7900 | for as_dir in $PATH | |
7901 | do | |
7902 | IFS=$as_save_IFS | |
7903 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7904 | for ac_exec_ext in '' $ac_executable_extensions; do |
7905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7906 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 7907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7908 | break 2 |
7909 | fi | |
7910 | done | |
5213506e RW |
7911 | done |
7912 | IFS=$as_save_IFS | |
1c710c3c | 7913 | |
2abefe3d PB |
7914 | fi |
7915 | fi | |
1c710c3c | 7916 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 7917 | if test -n "$MAKEINFO"; then |
5213506e RW |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7919 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 7920 | else |
5213506e RW |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7922 | $as_echo "no" >&6; } | |
2abefe3d PB |
7923 | fi |
7924 | ||
5213506e | 7925 | |
1c710c3c | 7926 | test -n "$MAKEINFO" && break |
2abefe3d PB |
7927 | done |
7928 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7929 | ||
7930 | case " $build_configdirs " in | |
7931 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7932 | *) | |
7933 | ||
d18ff35a | 7934 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
7935 | # higher, else we use the "missing" dummy. |
7936 | if ${MAKEINFO} --version \ | |
d18ff35a | 7937 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
7938 | : |
7939 | else | |
7940 | MAKEINFO="$MISSING makeinfo" | |
7941 | fi | |
7942 | ;; | |
7943 | ||
7944 | esac | |
671aa708 | 7945 | |
2abefe3d | 7946 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 7947 | |
2abefe3d PB |
7948 | for ac_prog in expect |
7949 | do | |
1c710c3c | 7950 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7951 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7953 | $as_echo_n "checking for $ac_word... " >&6; } | |
7954 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7955 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7956 | else |
7957 | if test -n "$EXPECT"; then | |
7958 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7959 | else | |
1c710c3c DJ |
7960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7961 | for as_dir in $PATH | |
7962 | do | |
7963 | IFS=$as_save_IFS | |
7964 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7965 | for ac_exec_ext in '' $ac_executable_extensions; do |
7966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7967 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 7968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7969 | break 2 |
7970 | fi | |
7971 | done | |
5213506e RW |
7972 | done |
7973 | IFS=$as_save_IFS | |
1c710c3c | 7974 | |
2abefe3d PB |
7975 | fi |
7976 | fi | |
1c710c3c | 7977 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 7978 | if test -n "$EXPECT"; then |
5213506e RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7980 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 7981 | else |
5213506e RW |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7983 | $as_echo "no" >&6; } | |
2abefe3d | 7984 | fi |
671aa708 | 7985 | |
5213506e | 7986 | |
1c710c3c | 7987 | test -n "$EXPECT" && break |
2abefe3d PB |
7988 | done |
7989 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 7990 | |
2abefe3d PB |
7991 | case " $configdirs " in |
7992 | *" expect "*) | |
7993 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7994 | ;; | |
7995 | esac | |
671aa708 | 7996 | |
2abefe3d PB |
7997 | for ac_prog in runtest |
7998 | do | |
1c710c3c | 7999 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8000 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8002 | $as_echo_n "checking for $ac_word... " >&6; } | |
8003 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8004 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8005 | else |
8006 | if test -n "$RUNTEST"; then | |
8007 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 8008 | else |
1c710c3c DJ |
8009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8010 | for as_dir in $PATH | |
8011 | do | |
8012 | IFS=$as_save_IFS | |
8013 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8014 | for ac_exec_ext in '' $ac_executable_extensions; do |
8015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8016 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 8017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8018 | break 2 |
8019 | fi | |
8020 | done | |
5213506e RW |
8021 | done |
8022 | IFS=$as_save_IFS | |
1c710c3c | 8023 | |
2abefe3d PB |
8024 | fi |
8025 | fi | |
1c710c3c | 8026 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 8027 | if test -n "$RUNTEST"; then |
5213506e RW |
8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8029 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 8030 | else |
5213506e RW |
8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8032 | $as_echo "no" >&6; } | |
2abefe3d | 8033 | fi |
671aa708 | 8034 | |
5213506e | 8035 | |
1c710c3c | 8036 | test -n "$RUNTEST" && break |
2abefe3d PB |
8037 | done |
8038 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 8039 | |
2abefe3d PB |
8040 | case " $configdirs " in |
8041 | *" dejagnu "*) | |
c394e891 | 8042 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
8043 | ;; |
8044 | esac | |
671aa708 NN |
8045 | |
8046 | ||
671aa708 | 8047 | # Host tools. |
ca9f4b81 AO |
8048 | ncn_tool_prefix= |
8049 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8050 | ncn_target_tool_prefix= | |
8051 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8052 | ||
278a7a38 AO |
8053 | |
8054 | ||
8055 | if test -n "$AR"; then | |
8056 | ac_cv_prog_AR=$AR | |
8057 | elif test -n "$ac_cv_prog_AR"; then | |
8058 | AR=$ac_cv_prog_AR | |
8059 | fi | |
8060 | ||
8061 | if test -n "$ac_cv_prog_AR"; then | |
8062 | for ncn_progname in ar; do | |
8063 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8064 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8066 | $as_echo_n "checking for $ac_word... " >&6; } | |
8067 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8068 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8069 | else |
8070 | if test -n "$AR"; then | |
8071 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8072 | else | |
8073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8074 | for as_dir in $PATH | |
8075 | do | |
8076 | IFS=$as_save_IFS | |
8077 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8078 | for ac_exec_ext in '' $ac_executable_extensions; do |
8079 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8080 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8082 | break 2 |
8083 | fi | |
8084 | done | |
5213506e RW |
8085 | done |
8086 | IFS=$as_save_IFS | |
278a7a38 AO |
8087 | |
8088 | fi | |
8089 | fi | |
8090 | AR=$ac_cv_prog_AR | |
8091 | if test -n "$AR"; then | |
5213506e RW |
8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8093 | $as_echo "$AR" >&6; } | |
278a7a38 | 8094 | else |
5213506e RW |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8096 | $as_echo "no" >&6; } | |
278a7a38 AO |
8097 | fi |
8098 | ||
5213506e | 8099 | |
278a7a38 AO |
8100 | done |
8101 | fi | |
8102 | ||
8103 | for ncn_progname in ar; do | |
2693c0b0 PB |
8104 | if test -n "$ncn_tool_prefix"; then |
8105 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8106 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8108 | $as_echo_n "checking for $ac_word... " >&6; } | |
8109 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8110 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8111 | else |
8112 | if test -n "$AR"; then | |
8113 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8114 | else | |
1c710c3c DJ |
8115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8116 | for as_dir in $PATH | |
8117 | do | |
8118 | IFS=$as_save_IFS | |
8119 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8120 | for ac_exec_ext in '' $ac_executable_extensions; do |
8121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8122 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8124 | break 2 |
8125 | fi | |
8126 | done | |
5213506e RW |
8127 | done |
8128 | IFS=$as_save_IFS | |
1c710c3c | 8129 | |
ca9f4b81 AO |
8130 | fi |
8131 | fi | |
1c710c3c | 8132 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8133 | if test -n "$AR"; then |
5213506e RW |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8135 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8136 | else |
5213506e RW |
8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8138 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8139 | fi |
8140 | ||
5213506e | 8141 | |
2693c0b0 PB |
8142 | fi |
8143 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8144 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8145 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8147 | $as_echo_n "checking for $ac_word... " >&6; } | |
8148 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8149 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8150 | else |
2693c0b0 | 8151 | if test -n "$AR"; then |
af71363e AS |
8152 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8153 | else | |
1c710c3c DJ |
8154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8155 | for as_dir in $PATH | |
8156 | do | |
8157 | IFS=$as_save_IFS | |
8158 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8159 | for ac_exec_ext in '' $ac_executable_extensions; do |
8160 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8161 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8163 | break 2 |
8164 | fi | |
8165 | done | |
5213506e RW |
8166 | done |
8167 | IFS=$as_save_IFS | |
1c710c3c | 8168 | |
ca9f4b81 AO |
8169 | fi |
8170 | fi | |
1c710c3c | 8171 | AR=$ac_cv_prog_AR |
2693c0b0 | 8172 | if test -n "$AR"; then |
5213506e RW |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8174 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8175 | else |
5213506e RW |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8177 | $as_echo "no" >&6; } | |
ca9f4b81 | 8178 | fi |
1c710c3c | 8179 | |
5213506e | 8180 | |
2693c0b0 PB |
8181 | fi |
8182 | test -n "$ac_cv_prog_AR" && break | |
8183 | done | |
8184 | ||
8185 | if test -z "$ac_cv_prog_AR" ; then | |
8186 | set dummy ar | |
8187 | if test $build = $host ; then | |
8188 | AR="$2" | |
ca9f4b81 | 8189 | else |
2693c0b0 | 8190 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8191 | fi |
ca9f4b81 AO |
8192 | fi |
8193 | ||
278a7a38 AO |
8194 | |
8195 | ||
8196 | if test -n "$AS"; then | |
8197 | ac_cv_prog_AS=$AS | |
8198 | elif test -n "$ac_cv_prog_AS"; then | |
8199 | AS=$ac_cv_prog_AS | |
8200 | fi | |
8201 | ||
8202 | if test -n "$ac_cv_prog_AS"; then | |
8203 | for ncn_progname in as; do | |
8204 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8205 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8207 | $as_echo_n "checking for $ac_word... " >&6; } | |
8208 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8209 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8210 | else |
8211 | if test -n "$AS"; then | |
8212 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8213 | else | |
8214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8215 | for as_dir in $PATH | |
8216 | do | |
8217 | IFS=$as_save_IFS | |
8218 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8219 | for ac_exec_ext in '' $ac_executable_extensions; do |
8220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8221 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8223 | break 2 |
8224 | fi | |
8225 | done | |
5213506e RW |
8226 | done |
8227 | IFS=$as_save_IFS | |
278a7a38 AO |
8228 | |
8229 | fi | |
8230 | fi | |
8231 | AS=$ac_cv_prog_AS | |
8232 | if test -n "$AS"; then | |
5213506e RW |
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8234 | $as_echo "$AS" >&6; } | |
278a7a38 | 8235 | else |
5213506e RW |
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8237 | $as_echo "no" >&6; } | |
278a7a38 AO |
8238 | fi |
8239 | ||
5213506e | 8240 | |
278a7a38 AO |
8241 | done |
8242 | fi | |
8243 | ||
8244 | for ncn_progname in as; do | |
2693c0b0 PB |
8245 | if test -n "$ncn_tool_prefix"; then |
8246 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8247 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8249 | $as_echo_n "checking for $ac_word... " >&6; } | |
8250 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8251 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8252 | else |
8253 | if test -n "$AS"; then | |
8254 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8255 | else |
1c710c3c DJ |
8256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8257 | for as_dir in $PATH | |
8258 | do | |
8259 | IFS=$as_save_IFS | |
8260 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8261 | for ac_exec_ext in '' $ac_executable_extensions; do |
8262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8263 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8265 | break 2 |
8266 | fi | |
8267 | done | |
5213506e RW |
8268 | done |
8269 | IFS=$as_save_IFS | |
1c710c3c | 8270 | |
ca9f4b81 AO |
8271 | fi |
8272 | fi | |
1c710c3c | 8273 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8274 | if test -n "$AS"; then |
5213506e RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8276 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8277 | else |
5213506e RW |
8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8279 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8280 | fi |
8281 | ||
5213506e | 8282 | |
2693c0b0 PB |
8283 | fi |
8284 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8285 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8286 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8288 | $as_echo_n "checking for $ac_word... " >&6; } | |
8289 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8290 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8291 | else |
2693c0b0 PB |
8292 | if test -n "$AS"; then |
8293 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8294 | else |
1c710c3c DJ |
8295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8296 | for as_dir in $PATH | |
8297 | do | |
8298 | IFS=$as_save_IFS | |
8299 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8300 | for ac_exec_ext in '' $ac_executable_extensions; do |
8301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8302 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8304 | break 2 |
8305 | fi | |
8306 | done | |
5213506e RW |
8307 | done |
8308 | IFS=$as_save_IFS | |
1c710c3c | 8309 | |
ca9f4b81 AO |
8310 | fi |
8311 | fi | |
1c710c3c | 8312 | AS=$ac_cv_prog_AS |
2693c0b0 | 8313 | if test -n "$AS"; then |
5213506e RW |
8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8315 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8316 | else |
5213506e RW |
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8318 | $as_echo "no" >&6; } | |
ca9f4b81 | 8319 | fi |
1c710c3c | 8320 | |
5213506e | 8321 | |
2693c0b0 PB |
8322 | fi |
8323 | test -n "$ac_cv_prog_AS" && break | |
8324 | done | |
8325 | ||
8326 | if test -z "$ac_cv_prog_AS" ; then | |
8327 | set dummy as | |
8328 | if test $build = $host ; then | |
8329 | AS="$2" | |
ca9f4b81 | 8330 | else |
2693c0b0 | 8331 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8332 | fi |
ca9f4b81 AO |
8333 | fi |
8334 | ||
278a7a38 AO |
8335 | |
8336 | ||
8337 | if test -n "$DLLTOOL"; then | |
8338 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8339 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8340 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8341 | fi | |
8342 | ||
8343 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8344 | for ncn_progname in dlltool; do | |
8345 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8346 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8348 | $as_echo_n "checking for $ac_word... " >&6; } | |
8349 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8350 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8351 | else |
8352 | if test -n "$DLLTOOL"; then | |
8353 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8354 | else | |
8355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8356 | for as_dir in $PATH | |
8357 | do | |
8358 | IFS=$as_save_IFS | |
8359 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8360 | for ac_exec_ext in '' $ac_executable_extensions; do |
8361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8362 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8364 | break 2 |
8365 | fi | |
8366 | done | |
5213506e RW |
8367 | done |
8368 | IFS=$as_save_IFS | |
278a7a38 AO |
8369 | |
8370 | fi | |
8371 | fi | |
8372 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8373 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8375 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8376 | else |
5213506e RW |
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8378 | $as_echo "no" >&6; } | |
278a7a38 AO |
8379 | fi |
8380 | ||
5213506e | 8381 | |
278a7a38 AO |
8382 | done |
8383 | fi | |
8384 | ||
8385 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8386 | if test -n "$ncn_tool_prefix"; then |
8387 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8388 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8390 | $as_echo_n "checking for $ac_word... " >&6; } | |
8391 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8392 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8393 | else |
8394 | if test -n "$DLLTOOL"; then | |
8395 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8396 | else | |
1c710c3c DJ |
8397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8398 | for as_dir in $PATH | |
8399 | do | |
8400 | IFS=$as_save_IFS | |
8401 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8402 | for ac_exec_ext in '' $ac_executable_extensions; do |
8403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8404 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8406 | break 2 |
8407 | fi | |
8408 | done | |
5213506e RW |
8409 | done |
8410 | IFS=$as_save_IFS | |
1c710c3c | 8411 | |
ca9f4b81 AO |
8412 | fi |
8413 | fi | |
1c710c3c | 8414 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8415 | if test -n "$DLLTOOL"; then |
5213506e RW |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8417 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8418 | else |
5213506e RW |
8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8420 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8421 | fi |
8422 | ||
5213506e | 8423 | |
2693c0b0 PB |
8424 | fi |
8425 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8426 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8427 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8429 | $as_echo_n "checking for $ac_word... " >&6; } | |
8430 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8431 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8432 | else |
2693c0b0 PB |
8433 | if test -n "$DLLTOOL"; then |
8434 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8435 | else |
1c710c3c DJ |
8436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8437 | for as_dir in $PATH | |
8438 | do | |
8439 | IFS=$as_save_IFS | |
8440 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8441 | for ac_exec_ext in '' $ac_executable_extensions; do |
8442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8443 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8445 | break 2 |
8446 | fi | |
8447 | done | |
5213506e RW |
8448 | done |
8449 | IFS=$as_save_IFS | |
1c710c3c | 8450 | |
ca9f4b81 AO |
8451 | fi |
8452 | fi | |
1c710c3c | 8453 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8454 | if test -n "$DLLTOOL"; then |
5213506e RW |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8456 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8457 | else |
5213506e RW |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8459 | $as_echo "no" >&6; } | |
ca9f4b81 | 8460 | fi |
1c710c3c | 8461 | |
5213506e | 8462 | |
2693c0b0 PB |
8463 | fi |
8464 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8465 | done | |
8466 | ||
8467 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8468 | set dummy dlltool | |
8469 | if test $build = $host ; then | |
8470 | DLLTOOL="$2" | |
ca9f4b81 | 8471 | else |
2693c0b0 | 8472 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8473 | fi |
ca9f4b81 AO |
8474 | fi |
8475 | ||
278a7a38 AO |
8476 | |
8477 | ||
8478 | if test -n "$LD"; then | |
8479 | ac_cv_prog_LD=$LD | |
8480 | elif test -n "$ac_cv_prog_LD"; then | |
8481 | LD=$ac_cv_prog_LD | |
8482 | fi | |
8483 | ||
8484 | if test -n "$ac_cv_prog_LD"; then | |
8485 | for ncn_progname in ld; do | |
8486 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8487 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8489 | $as_echo_n "checking for $ac_word... " >&6; } | |
8490 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8491 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8492 | else |
8493 | if test -n "$LD"; then | |
8494 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8495 | else | |
8496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8497 | for as_dir in $PATH | |
8498 | do | |
8499 | IFS=$as_save_IFS | |
8500 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8501 | for ac_exec_ext in '' $ac_executable_extensions; do |
8502 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8503 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8505 | break 2 |
8506 | fi | |
8507 | done | |
5213506e RW |
8508 | done |
8509 | IFS=$as_save_IFS | |
278a7a38 AO |
8510 | |
8511 | fi | |
8512 | fi | |
8513 | LD=$ac_cv_prog_LD | |
8514 | if test -n "$LD"; then | |
5213506e RW |
8515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8516 | $as_echo "$LD" >&6; } | |
278a7a38 | 8517 | else |
5213506e RW |
8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8519 | $as_echo "no" >&6; } | |
278a7a38 AO |
8520 | fi |
8521 | ||
5213506e | 8522 | |
278a7a38 AO |
8523 | done |
8524 | fi | |
8525 | ||
8526 | for ncn_progname in ld; do | |
2693c0b0 PB |
8527 | if test -n "$ncn_tool_prefix"; then |
8528 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8529 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8531 | $as_echo_n "checking for $ac_word... " >&6; } | |
8532 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8533 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8534 | else |
8535 | if test -n "$LD"; then | |
8536 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8537 | else | |
1c710c3c DJ |
8538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8539 | for as_dir in $PATH | |
8540 | do | |
8541 | IFS=$as_save_IFS | |
8542 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8543 | for ac_exec_ext in '' $ac_executable_extensions; do |
8544 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8545 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8547 | break 2 |
8548 | fi | |
8549 | done | |
5213506e RW |
8550 | done |
8551 | IFS=$as_save_IFS | |
1c710c3c | 8552 | |
ca9f4b81 AO |
8553 | fi |
8554 | fi | |
1c710c3c | 8555 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8556 | if test -n "$LD"; then |
5213506e RW |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8558 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8559 | else |
5213506e RW |
8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8561 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8562 | fi |
8563 | ||
5213506e | 8564 | |
2693c0b0 PB |
8565 | fi |
8566 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8567 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8568 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8570 | $as_echo_n "checking for $ac_word... " >&6; } | |
8571 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8572 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8573 | else |
2693c0b0 PB |
8574 | if test -n "$LD"; then |
8575 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8576 | else |
1c710c3c DJ |
8577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8578 | for as_dir in $PATH | |
8579 | do | |
8580 | IFS=$as_save_IFS | |
8581 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8582 | for ac_exec_ext in '' $ac_executable_extensions; do |
8583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8584 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8586 | break 2 |
8587 | fi | |
8588 | done | |
5213506e RW |
8589 | done |
8590 | IFS=$as_save_IFS | |
1c710c3c | 8591 | |
ca9f4b81 AO |
8592 | fi |
8593 | fi | |
1c710c3c | 8594 | LD=$ac_cv_prog_LD |
2693c0b0 | 8595 | if test -n "$LD"; then |
5213506e RW |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8597 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8598 | else |
5213506e RW |
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8600 | $as_echo "no" >&6; } | |
ca9f4b81 | 8601 | fi |
1c710c3c | 8602 | |
5213506e | 8603 | |
2693c0b0 PB |
8604 | fi |
8605 | test -n "$ac_cv_prog_LD" && break | |
8606 | done | |
8607 | ||
8608 | if test -z "$ac_cv_prog_LD" ; then | |
8609 | set dummy ld | |
8610 | if test $build = $host ; then | |
8611 | LD="$2" | |
ca9f4b81 | 8612 | else |
2693c0b0 | 8613 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8614 | fi |
ca9f4b81 AO |
8615 | fi |
8616 | ||
278a7a38 AO |
8617 | |
8618 | ||
8619 | if test -n "$LIPO"; then | |
8620 | ac_cv_prog_LIPO=$LIPO | |
8621 | elif test -n "$ac_cv_prog_LIPO"; then | |
8622 | LIPO=$ac_cv_prog_LIPO | |
8623 | fi | |
8624 | ||
8625 | if test -n "$ac_cv_prog_LIPO"; then | |
8626 | for ncn_progname in lipo; do | |
8627 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8628 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8630 | $as_echo_n "checking for $ac_word... " >&6; } | |
8631 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8632 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8633 | else |
8634 | if test -n "$LIPO"; then | |
8635 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8636 | else | |
8637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8638 | for as_dir in $PATH | |
8639 | do | |
8640 | IFS=$as_save_IFS | |
8641 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8642 | for ac_exec_ext in '' $ac_executable_extensions; do |
8643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8644 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8646 | break 2 |
8647 | fi | |
8648 | done | |
5213506e RW |
8649 | done |
8650 | IFS=$as_save_IFS | |
278a7a38 AO |
8651 | |
8652 | fi | |
8653 | fi | |
8654 | LIPO=$ac_cv_prog_LIPO | |
8655 | if test -n "$LIPO"; then | |
5213506e RW |
8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8657 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8658 | else |
5213506e RW |
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8660 | $as_echo "no" >&6; } | |
278a7a38 AO |
8661 | fi |
8662 | ||
5213506e | 8663 | |
278a7a38 AO |
8664 | done |
8665 | fi | |
8666 | ||
8667 | for ncn_progname in lipo; do | |
2abefe3d PB |
8668 | if test -n "$ncn_tool_prefix"; then |
8669 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8670 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8672 | $as_echo_n "checking for $ac_word... " >&6; } | |
8673 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8674 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8675 | else |
8676 | if test -n "$LIPO"; then | |
8677 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8678 | else | |
1c710c3c DJ |
8679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8680 | for as_dir in $PATH | |
8681 | do | |
8682 | IFS=$as_save_IFS | |
8683 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8684 | for ac_exec_ext in '' $ac_executable_extensions; do |
8685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8686 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8688 | break 2 |
8689 | fi | |
8690 | done | |
5213506e RW |
8691 | done |
8692 | IFS=$as_save_IFS | |
1c710c3c | 8693 | |
2abefe3d PB |
8694 | fi |
8695 | fi | |
1c710c3c | 8696 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8697 | if test -n "$LIPO"; then |
5213506e RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8699 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8700 | else |
5213506e RW |
8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8702 | $as_echo "no" >&6; } | |
2abefe3d PB |
8703 | fi |
8704 | ||
5213506e | 8705 | |
2abefe3d PB |
8706 | fi |
8707 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8708 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8709 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8711 | $as_echo_n "checking for $ac_word... " >&6; } | |
8712 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8713 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8714 | else |
8715 | if test -n "$LIPO"; then | |
8716 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8717 | else | |
1c710c3c DJ |
8718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8719 | for as_dir in $PATH | |
8720 | do | |
8721 | IFS=$as_save_IFS | |
8722 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8723 | for ac_exec_ext in '' $ac_executable_extensions; do |
8724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8725 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8727 | break 2 |
8728 | fi | |
8729 | done | |
5213506e RW |
8730 | done |
8731 | IFS=$as_save_IFS | |
1c710c3c | 8732 | |
2abefe3d PB |
8733 | fi |
8734 | fi | |
1c710c3c | 8735 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8736 | if test -n "$LIPO"; then |
5213506e RW |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8738 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8739 | else |
5213506e RW |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8741 | $as_echo "no" >&6; } | |
2abefe3d | 8742 | fi |
1c710c3c | 8743 | |
5213506e | 8744 | |
2abefe3d PB |
8745 | fi |
8746 | test -n "$ac_cv_prog_LIPO" && break | |
8747 | done | |
8748 | ||
8749 | if test -z "$ac_cv_prog_LIPO" ; then | |
8750 | set dummy lipo | |
8751 | if test $build = $host ; then | |
8752 | LIPO="$2" | |
8753 | else | |
8754 | LIPO="${ncn_tool_prefix}$2" | |
8755 | fi | |
8756 | fi | |
8757 | ||
278a7a38 AO |
8758 | |
8759 | ||
8760 | if test -n "$NM"; then | |
8761 | ac_cv_prog_NM=$NM | |
8762 | elif test -n "$ac_cv_prog_NM"; then | |
8763 | NM=$ac_cv_prog_NM | |
8764 | fi | |
8765 | ||
8766 | if test -n "$ac_cv_prog_NM"; then | |
8767 | for ncn_progname in nm; do | |
8768 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8769 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8771 | $as_echo_n "checking for $ac_word... " >&6; } | |
8772 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8773 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8774 | else |
8775 | if test -n "$NM"; then | |
8776 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8777 | else | |
1c710c3c DJ |
8778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8779 | for as_dir in $PATH | |
8780 | do | |
8781 | IFS=$as_save_IFS | |
8782 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8783 | for ac_exec_ext in '' $ac_executable_extensions; do |
8784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8785 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8787 | break 2 |
8788 | fi | |
8789 | done | |
5213506e RW |
8790 | done |
8791 | IFS=$as_save_IFS | |
1c710c3c | 8792 | |
ca9f4b81 AO |
8793 | fi |
8794 | fi | |
1c710c3c | 8795 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8796 | if test -n "$NM"; then |
5213506e RW |
8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8798 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8799 | else |
5213506e RW |
8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8801 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8802 | fi |
8803 | ||
5213506e | 8804 | |
278a7a38 AO |
8805 | done |
8806 | fi | |
8807 | ||
8808 | for ncn_progname in nm; do | |
8809 | if test -n "$ncn_tool_prefix"; then | |
8810 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8811 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8813 | $as_echo_n "checking for $ac_word... " >&6; } | |
8814 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8815 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8816 | else |
2693c0b0 PB |
8817 | if test -n "$NM"; then |
8818 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8819 | else |
1c710c3c DJ |
8820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8821 | for as_dir in $PATH | |
8822 | do | |
8823 | IFS=$as_save_IFS | |
8824 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8825 | for ac_exec_ext in '' $ac_executable_extensions; do |
8826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8827 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8829 | break 2 |
8830 | fi | |
8831 | done | |
5213506e RW |
8832 | done |
8833 | IFS=$as_save_IFS | |
1c710c3c | 8834 | |
ca9f4b81 AO |
8835 | fi |
8836 | fi | |
1c710c3c | 8837 | NM=$ac_cv_prog_NM |
2693c0b0 | 8838 | if test -n "$NM"; then |
5213506e RW |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8840 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8841 | else |
5213506e RW |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8843 | $as_echo "no" >&6; } | |
ca9f4b81 | 8844 | fi |
1c710c3c | 8845 | |
5213506e | 8846 | |
2693c0b0 | 8847 | fi |
278a7a38 AO |
8848 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8849 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8850 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8852 | $as_echo_n "checking for $ac_word... " >&6; } | |
8853 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8854 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8855 | else |
8856 | if test -n "$NM"; then | |
8857 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8858 | else | |
8859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8860 | for as_dir in $PATH | |
8861 | do | |
8862 | IFS=$as_save_IFS | |
8863 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8864 | for ac_exec_ext in '' $ac_executable_extensions; do |
8865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8866 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8868 | break 2 |
8869 | fi | |
8870 | done | |
5213506e RW |
8871 | done |
8872 | IFS=$as_save_IFS | |
278a7a38 AO |
8873 | |
8874 | fi | |
8875 | fi | |
8876 | NM=$ac_cv_prog_NM | |
8877 | if test -n "$NM"; then | |
5213506e RW |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8879 | $as_echo "$NM" >&6; } | |
278a7a38 | 8880 | else |
5213506e RW |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8882 | $as_echo "no" >&6; } | |
278a7a38 AO |
8883 | fi |
8884 | ||
5213506e | 8885 | |
278a7a38 AO |
8886 | fi |
8887 | test -n "$ac_cv_prog_NM" && break | |
8888 | done | |
8889 | ||
8890 | if test -z "$ac_cv_prog_NM" ; then | |
8891 | set dummy nm | |
8892 | if test $build = $host ; then | |
8893 | NM="$2" | |
8894 | else | |
8895 | NM="${ncn_tool_prefix}$2" | |
8896 | fi | |
8897 | fi | |
8898 | ||
8899 | ||
8900 | ||
8901 | if test -n "$RANLIB"; then | |
8902 | ac_cv_prog_RANLIB=$RANLIB | |
8903 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8904 | RANLIB=$ac_cv_prog_RANLIB | |
8905 | fi | |
8906 | ||
8907 | if test -n "$ac_cv_prog_RANLIB"; then | |
8908 | for ncn_progname in ranlib; do | |
8909 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8910 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8912 | $as_echo_n "checking for $ac_word... " >&6; } | |
8913 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8914 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8915 | else |
8916 | if test -n "$RANLIB"; then | |
8917 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8918 | else | |
8919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8920 | for as_dir in $PATH | |
8921 | do | |
8922 | IFS=$as_save_IFS | |
8923 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8924 | for ac_exec_ext in '' $ac_executable_extensions; do |
8925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8926 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8928 | break 2 |
8929 | fi | |
8930 | done | |
5213506e RW |
8931 | done |
8932 | IFS=$as_save_IFS | |
278a7a38 AO |
8933 | |
8934 | fi | |
8935 | fi | |
8936 | RANLIB=$ac_cv_prog_RANLIB | |
8937 | if test -n "$RANLIB"; then | |
5213506e RW |
8938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8939 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 8940 | else |
5213506e RW |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8942 | $as_echo "no" >&6; } | |
278a7a38 AO |
8943 | fi |
8944 | ||
5213506e | 8945 | |
278a7a38 AO |
8946 | done |
8947 | fi | |
ca9f4b81 | 8948 | |
278a7a38 | 8949 | for ncn_progname in ranlib; do |
2693c0b0 PB |
8950 | if test -n "$ncn_tool_prefix"; then |
8951 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8952 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8954 | $as_echo_n "checking for $ac_word... " >&6; } | |
8955 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8956 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8957 | else |
8958 | if test -n "$RANLIB"; then | |
8959 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8960 | else | |
1c710c3c DJ |
8961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8962 | for as_dir in $PATH | |
8963 | do | |
8964 | IFS=$as_save_IFS | |
8965 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8966 | for ac_exec_ext in '' $ac_executable_extensions; do |
8967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8968 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8970 | break 2 |
8971 | fi | |
8972 | done | |
5213506e RW |
8973 | done |
8974 | IFS=$as_save_IFS | |
1c710c3c | 8975 | |
ca9f4b81 AO |
8976 | fi |
8977 | fi | |
1c710c3c | 8978 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 8979 | if test -n "$RANLIB"; then |
5213506e RW |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8981 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8982 | else |
5213506e RW |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8984 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8985 | fi |
8986 | ||
5213506e | 8987 | |
2693c0b0 PB |
8988 | fi |
8989 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8990 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8991 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8993 | $as_echo_n "checking for $ac_word... " >&6; } | |
8994 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8995 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8996 | else |
2693c0b0 PB |
8997 | if test -n "$RANLIB"; then |
8998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 8999 | else |
1c710c3c DJ |
9000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9001 | for as_dir in $PATH | |
9002 | do | |
9003 | IFS=$as_save_IFS | |
9004 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9005 | for ac_exec_ext in '' $ac_executable_extensions; do |
9006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9007 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9009 | break 2 |
9010 | fi | |
9011 | done | |
5213506e RW |
9012 | done |
9013 | IFS=$as_save_IFS | |
1c710c3c | 9014 | |
ca9f4b81 AO |
9015 | fi |
9016 | fi | |
1c710c3c | 9017 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 9018 | if test -n "$RANLIB"; then |
5213506e RW |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9020 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9021 | else |
5213506e RW |
9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9023 | $as_echo "no" >&6; } | |
ca9f4b81 | 9024 | fi |
1c710c3c | 9025 | |
5213506e | 9026 | |
ca9f4b81 | 9027 | fi |
2693c0b0 PB |
9028 | test -n "$ac_cv_prog_RANLIB" && break |
9029 | done | |
9030 | ||
9031 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 9032 | RANLIB="true" |
ca9f4b81 AO |
9033 | fi |
9034 | ||
278a7a38 AO |
9035 | |
9036 | ||
9037 | if test -n "$STRIP"; then | |
9038 | ac_cv_prog_STRIP=$STRIP | |
9039 | elif test -n "$ac_cv_prog_STRIP"; then | |
9040 | STRIP=$ac_cv_prog_STRIP | |
9041 | fi | |
9042 | ||
9043 | if test -n "$ac_cv_prog_STRIP"; then | |
9044 | for ncn_progname in strip; do | |
9045 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9046 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9048 | $as_echo_n "checking for $ac_word... " >&6; } | |
9049 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9050 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9051 | else |
9052 | if test -n "$STRIP"; then | |
9053 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9054 | else | |
9055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9056 | for as_dir in $PATH | |
9057 | do | |
9058 | IFS=$as_save_IFS | |
9059 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9060 | for ac_exec_ext in '' $ac_executable_extensions; do |
9061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9062 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9064 | break 2 |
9065 | fi | |
9066 | done | |
5213506e RW |
9067 | done |
9068 | IFS=$as_save_IFS | |
278a7a38 AO |
9069 | |
9070 | fi | |
9071 | fi | |
9072 | STRIP=$ac_cv_prog_STRIP | |
9073 | if test -n "$STRIP"; then | |
5213506e RW |
9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9075 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 9076 | else |
5213506e RW |
9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9078 | $as_echo "no" >&6; } | |
278a7a38 AO |
9079 | fi |
9080 | ||
5213506e | 9081 | |
278a7a38 AO |
9082 | done |
9083 | fi | |
9084 | ||
9085 | for ncn_progname in strip; do | |
2abefe3d PB |
9086 | if test -n "$ncn_tool_prefix"; then |
9087 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9088 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9090 | $as_echo_n "checking for $ac_word... " >&6; } | |
9091 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9092 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9093 | else |
9094 | if test -n "$STRIP"; then | |
9095 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9096 | else | |
1c710c3c DJ |
9097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9098 | for as_dir in $PATH | |
9099 | do | |
9100 | IFS=$as_save_IFS | |
9101 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9102 | for ac_exec_ext in '' $ac_executable_extensions; do |
9103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9104 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9106 | break 2 |
9107 | fi | |
9108 | done | |
5213506e RW |
9109 | done |
9110 | IFS=$as_save_IFS | |
1c710c3c | 9111 | |
2abefe3d PB |
9112 | fi |
9113 | fi | |
1c710c3c | 9114 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9115 | if test -n "$STRIP"; then |
5213506e RW |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9117 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9118 | else |
5213506e RW |
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9120 | $as_echo "no" >&6; } | |
2abefe3d PB |
9121 | fi |
9122 | ||
5213506e | 9123 | |
2abefe3d PB |
9124 | fi |
9125 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9126 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9127 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9129 | $as_echo_n "checking for $ac_word... " >&6; } | |
9130 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9131 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9132 | else |
9133 | if test -n "$STRIP"; then | |
9134 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9135 | else | |
1c710c3c DJ |
9136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9137 | for as_dir in $PATH | |
9138 | do | |
9139 | IFS=$as_save_IFS | |
9140 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9141 | for ac_exec_ext in '' $ac_executable_extensions; do |
9142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9143 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9145 | break 2 |
9146 | fi | |
9147 | done | |
5213506e RW |
9148 | done |
9149 | IFS=$as_save_IFS | |
1c710c3c | 9150 | |
2abefe3d PB |
9151 | fi |
9152 | fi | |
1c710c3c | 9153 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9154 | if test -n "$STRIP"; then |
5213506e RW |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9156 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9157 | else |
5213506e RW |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9159 | $as_echo "no" >&6; } | |
2abefe3d | 9160 | fi |
1c710c3c | 9161 | |
5213506e | 9162 | |
2abefe3d PB |
9163 | fi |
9164 | test -n "$ac_cv_prog_STRIP" && break | |
9165 | done | |
9166 | ||
9167 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9168 | STRIP="true" |
2abefe3d PB |
9169 | fi |
9170 | ||
278a7a38 AO |
9171 | |
9172 | ||
9173 | if test -n "$WINDRES"; then | |
9174 | ac_cv_prog_WINDRES=$WINDRES | |
9175 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9176 | WINDRES=$ac_cv_prog_WINDRES | |
9177 | fi | |
9178 | ||
9179 | if test -n "$ac_cv_prog_WINDRES"; then | |
9180 | for ncn_progname in windres; do | |
9181 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9182 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9184 | $as_echo_n "checking for $ac_word... " >&6; } | |
9185 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9186 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9187 | else |
9188 | if test -n "$WINDRES"; then | |
9189 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9190 | else | |
9191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9192 | for as_dir in $PATH | |
9193 | do | |
9194 | IFS=$as_save_IFS | |
9195 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9196 | for ac_exec_ext in '' $ac_executable_extensions; do |
9197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9198 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9200 | break 2 |
9201 | fi | |
9202 | done | |
5213506e RW |
9203 | done |
9204 | IFS=$as_save_IFS | |
278a7a38 AO |
9205 | |
9206 | fi | |
9207 | fi | |
9208 | WINDRES=$ac_cv_prog_WINDRES | |
9209 | if test -n "$WINDRES"; then | |
5213506e RW |
9210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9211 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9212 | else |
5213506e RW |
9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9214 | $as_echo "no" >&6; } | |
278a7a38 AO |
9215 | fi |
9216 | ||
5213506e | 9217 | |
278a7a38 AO |
9218 | done |
9219 | fi | |
9220 | ||
9221 | for ncn_progname in windres; do | |
2693c0b0 PB |
9222 | if test -n "$ncn_tool_prefix"; then |
9223 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9224 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9226 | $as_echo_n "checking for $ac_word... " >&6; } | |
9227 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9228 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9229 | else |
9230 | if test -n "$WINDRES"; then | |
9231 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9232 | else | |
1c710c3c DJ |
9233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9234 | for as_dir in $PATH | |
9235 | do | |
9236 | IFS=$as_save_IFS | |
9237 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9238 | for ac_exec_ext in '' $ac_executable_extensions; do |
9239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9240 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9242 | break 2 |
9243 | fi | |
9244 | done | |
5213506e RW |
9245 | done |
9246 | IFS=$as_save_IFS | |
1c710c3c | 9247 | |
ca9f4b81 AO |
9248 | fi |
9249 | fi | |
1c710c3c | 9250 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9251 | if test -n "$WINDRES"; then |
5213506e RW |
9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9253 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9254 | else |
5213506e RW |
9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9256 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9257 | fi |
9258 | ||
5213506e | 9259 | |
2693c0b0 PB |
9260 | fi |
9261 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9262 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9263 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9265 | $as_echo_n "checking for $ac_word... " >&6; } | |
9266 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9267 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9268 | else |
2693c0b0 PB |
9269 | if test -n "$WINDRES"; then |
9270 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9271 | else |
1c710c3c DJ |
9272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9273 | for as_dir in $PATH | |
9274 | do | |
9275 | IFS=$as_save_IFS | |
9276 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9277 | for ac_exec_ext in '' $ac_executable_extensions; do |
9278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9279 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9281 | break 2 |
9282 | fi | |
9283 | done | |
5213506e RW |
9284 | done |
9285 | IFS=$as_save_IFS | |
1c710c3c | 9286 | |
ca9f4b81 AO |
9287 | fi |
9288 | fi | |
1c710c3c | 9289 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9290 | if test -n "$WINDRES"; then |
5213506e RW |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9292 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9293 | else |
5213506e RW |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9295 | $as_echo "no" >&6; } | |
ca9f4b81 | 9296 | fi |
1c710c3c | 9297 | |
5213506e | 9298 | |
2693c0b0 PB |
9299 | fi |
9300 | test -n "$ac_cv_prog_WINDRES" && break | |
9301 | done | |
9302 | ||
9303 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9304 | set dummy windres | |
9305 | if test $build = $host ; then | |
9306 | WINDRES="$2" | |
ca9f4b81 | 9307 | else |
2693c0b0 | 9308 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9309 | fi |
ca9f4b81 AO |
9310 | fi |
9311 | ||
278a7a38 AO |
9312 | |
9313 | ||
901119ae KT |
9314 | if test -n "$WINDMC"; then |
9315 | ac_cv_prog_WINDMC=$WINDMC | |
9316 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9317 | WINDMC=$ac_cv_prog_WINDMC | |
9318 | fi | |
9319 | ||
9320 | if test -n "$ac_cv_prog_WINDMC"; then | |
9321 | for ncn_progname in windmc; do | |
9322 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9323 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9325 | $as_echo_n "checking for $ac_word... " >&6; } | |
9326 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9327 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9328 | else |
9329 | if test -n "$WINDMC"; then | |
9330 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9331 | else | |
9332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9333 | for as_dir in $PATH | |
9334 | do | |
9335 | IFS=$as_save_IFS | |
9336 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9337 | for ac_exec_ext in '' $ac_executable_extensions; do |
9338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9339 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9341 | break 2 |
9342 | fi | |
9343 | done | |
5213506e RW |
9344 | done |
9345 | IFS=$as_save_IFS | |
901119ae KT |
9346 | |
9347 | fi | |
9348 | fi | |
9349 | WINDMC=$ac_cv_prog_WINDMC | |
9350 | if test -n "$WINDMC"; then | |
5213506e RW |
9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9352 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9353 | else |
5213506e RW |
9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9355 | $as_echo "no" >&6; } | |
901119ae KT |
9356 | fi |
9357 | ||
5213506e | 9358 | |
901119ae KT |
9359 | done |
9360 | fi | |
9361 | ||
9362 | for ncn_progname in windmc; do | |
9363 | if test -n "$ncn_tool_prefix"; then | |
9364 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9365 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9367 | $as_echo_n "checking for $ac_word... " >&6; } | |
9368 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9369 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9370 | else |
9371 | if test -n "$WINDMC"; then | |
9372 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9373 | else | |
9374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9375 | for as_dir in $PATH | |
9376 | do | |
9377 | IFS=$as_save_IFS | |
9378 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9379 | for ac_exec_ext in '' $ac_executable_extensions; do |
9380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9381 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9383 | break 2 |
9384 | fi | |
9385 | done | |
5213506e RW |
9386 | done |
9387 | IFS=$as_save_IFS | |
901119ae KT |
9388 | |
9389 | fi | |
9390 | fi | |
9391 | WINDMC=$ac_cv_prog_WINDMC | |
9392 | if test -n "$WINDMC"; then | |
5213506e RW |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9394 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9395 | else |
5213506e RW |
9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9397 | $as_echo "no" >&6; } | |
901119ae KT |
9398 | fi |
9399 | ||
5213506e | 9400 | |
901119ae KT |
9401 | fi |
9402 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9403 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9404 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9406 | $as_echo_n "checking for $ac_word... " >&6; } | |
9407 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9408 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9409 | else |
9410 | if test -n "$WINDMC"; then | |
9411 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9412 | else | |
9413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9414 | for as_dir in $PATH | |
9415 | do | |
9416 | IFS=$as_save_IFS | |
9417 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9418 | for ac_exec_ext in '' $ac_executable_extensions; do |
9419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9420 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9422 | break 2 |
9423 | fi | |
9424 | done | |
5213506e RW |
9425 | done |
9426 | IFS=$as_save_IFS | |
901119ae KT |
9427 | |
9428 | fi | |
9429 | fi | |
9430 | WINDMC=$ac_cv_prog_WINDMC | |
9431 | if test -n "$WINDMC"; then | |
5213506e RW |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9433 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9434 | else |
5213506e RW |
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9436 | $as_echo "no" >&6; } | |
901119ae KT |
9437 | fi |
9438 | ||
5213506e | 9439 | |
901119ae KT |
9440 | fi |
9441 | test -n "$ac_cv_prog_WINDMC" && break | |
9442 | done | |
9443 | ||
9444 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9445 | set dummy windmc | |
9446 | if test $build = $host ; then | |
9447 | WINDMC="$2" | |
9448 | else | |
9449 | WINDMC="${ncn_tool_prefix}$2" | |
9450 | fi | |
9451 | fi | |
9452 | ||
9453 | ||
9454 | ||
278a7a38 AO |
9455 | if test -n "$OBJCOPY"; then |
9456 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9457 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9458 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9459 | fi | |
9460 | ||
9461 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9462 | for ncn_progname in objcopy; do | |
9463 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9464 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9466 | $as_echo_n "checking for $ac_word... " >&6; } | |
9467 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9468 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9469 | else |
9470 | if test -n "$OBJCOPY"; then | |
9471 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9472 | else | |
9473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9474 | for as_dir in $PATH | |
9475 | do | |
9476 | IFS=$as_save_IFS | |
9477 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9478 | for ac_exec_ext in '' $ac_executable_extensions; do |
9479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9480 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9482 | break 2 |
9483 | fi | |
9484 | done | |
5213506e RW |
9485 | done |
9486 | IFS=$as_save_IFS | |
278a7a38 AO |
9487 | |
9488 | fi | |
9489 | fi | |
9490 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9491 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9493 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9494 | else |
5213506e RW |
9495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9496 | $as_echo "no" >&6; } | |
278a7a38 AO |
9497 | fi |
9498 | ||
5213506e | 9499 | |
278a7a38 AO |
9500 | done |
9501 | fi | |
9502 | ||
9503 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9504 | if test -n "$ncn_tool_prefix"; then |
9505 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9506 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9508 | $as_echo_n "checking for $ac_word... " >&6; } | |
9509 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9510 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9511 | else |
9512 | if test -n "$OBJCOPY"; then | |
9513 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9514 | else | |
1c710c3c DJ |
9515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9516 | for as_dir in $PATH | |
9517 | do | |
9518 | IFS=$as_save_IFS | |
9519 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9520 | for ac_exec_ext in '' $ac_executable_extensions; do |
9521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9522 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9524 | break 2 |
9525 | fi | |
9526 | done | |
5213506e RW |
9527 | done |
9528 | IFS=$as_save_IFS | |
1c710c3c | 9529 | |
ca9f4b81 AO |
9530 | fi |
9531 | fi | |
1c710c3c | 9532 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9533 | if test -n "$OBJCOPY"; then |
5213506e RW |
9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9535 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9536 | else |
5213506e RW |
9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9538 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9539 | fi |
9540 | ||
5213506e | 9541 | |
2693c0b0 PB |
9542 | fi |
9543 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9544 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9545 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9547 | $as_echo_n "checking for $ac_word... " >&6; } | |
9548 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9549 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9550 | else |
2693c0b0 PB |
9551 | if test -n "$OBJCOPY"; then |
9552 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9553 | else |
1c710c3c DJ |
9554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9555 | for as_dir in $PATH | |
9556 | do | |
9557 | IFS=$as_save_IFS | |
9558 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9559 | for ac_exec_ext in '' $ac_executable_extensions; do |
9560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9561 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9563 | break 2 |
9564 | fi | |
9565 | done | |
5213506e RW |
9566 | done |
9567 | IFS=$as_save_IFS | |
1c710c3c | 9568 | |
ca9f4b81 AO |
9569 | fi |
9570 | fi | |
1c710c3c | 9571 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9572 | if test -n "$OBJCOPY"; then |
5213506e RW |
9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9574 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9575 | else |
5213506e RW |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9577 | $as_echo "no" >&6; } | |
ca9f4b81 | 9578 | fi |
1c710c3c | 9579 | |
5213506e | 9580 | |
2693c0b0 PB |
9581 | fi |
9582 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9583 | done | |
9584 | ||
9585 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9586 | set dummy objcopy | |
9587 | if test $build = $host ; then | |
9588 | OBJCOPY="$2" | |
ca9f4b81 | 9589 | else |
2693c0b0 | 9590 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9591 | fi |
ca9f4b81 AO |
9592 | fi |
9593 | ||
278a7a38 AO |
9594 | |
9595 | ||
9596 | if test -n "$OBJDUMP"; then | |
9597 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9598 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9599 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9600 | fi | |
9601 | ||
9602 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9603 | for ncn_progname in objdump; do | |
9604 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9605 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9607 | $as_echo_n "checking for $ac_word... " >&6; } | |
9608 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9609 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9610 | else |
9611 | if test -n "$OBJDUMP"; then | |
9612 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9613 | else | |
9614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9615 | for as_dir in $PATH | |
9616 | do | |
9617 | IFS=$as_save_IFS | |
9618 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9619 | for ac_exec_ext in '' $ac_executable_extensions; do |
9620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9621 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9623 | break 2 |
9624 | fi | |
9625 | done | |
5213506e RW |
9626 | done |
9627 | IFS=$as_save_IFS | |
278a7a38 AO |
9628 | |
9629 | fi | |
9630 | fi | |
9631 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9632 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9634 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9635 | else |
5213506e RW |
9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9637 | $as_echo "no" >&6; } | |
278a7a38 AO |
9638 | fi |
9639 | ||
5213506e | 9640 | |
278a7a38 AO |
9641 | done |
9642 | fi | |
9643 | ||
9644 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9645 | if test -n "$ncn_tool_prefix"; then |
9646 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9647 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9649 | $as_echo_n "checking for $ac_word... " >&6; } | |
9650 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9651 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9652 | else |
9653 | if test -n "$OBJDUMP"; then | |
9654 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9655 | else | |
1c710c3c DJ |
9656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9657 | for as_dir in $PATH | |
9658 | do | |
9659 | IFS=$as_save_IFS | |
9660 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9661 | for ac_exec_ext in '' $ac_executable_extensions; do |
9662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9663 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9665 | break 2 |
9666 | fi | |
9667 | done | |
5213506e RW |
9668 | done |
9669 | IFS=$as_save_IFS | |
1c710c3c | 9670 | |
ca9f4b81 AO |
9671 | fi |
9672 | fi | |
1c710c3c | 9673 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9674 | if test -n "$OBJDUMP"; then |
5213506e RW |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9676 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9677 | else |
5213506e RW |
9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9679 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9680 | fi |
9681 | ||
5213506e | 9682 | |
2693c0b0 PB |
9683 | fi |
9684 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9685 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9686 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9688 | $as_echo_n "checking for $ac_word... " >&6; } | |
9689 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9690 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9691 | else |
2693c0b0 PB |
9692 | if test -n "$OBJDUMP"; then |
9693 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9694 | else |
1c710c3c DJ |
9695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9696 | for as_dir in $PATH | |
9697 | do | |
9698 | IFS=$as_save_IFS | |
9699 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9700 | for ac_exec_ext in '' $ac_executable_extensions; do |
9701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9702 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9704 | break 2 |
9705 | fi | |
9706 | done | |
5213506e RW |
9707 | done |
9708 | IFS=$as_save_IFS | |
1c710c3c | 9709 | |
ca9f4b81 AO |
9710 | fi |
9711 | fi | |
1c710c3c | 9712 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9713 | if test -n "$OBJDUMP"; then |
5213506e RW |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9715 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9716 | else |
5213506e RW |
9717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9718 | $as_echo "no" >&6; } | |
ca9f4b81 | 9719 | fi |
1c710c3c | 9720 | |
5213506e | 9721 | |
2693c0b0 PB |
9722 | fi |
9723 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9724 | done | |
9725 | ||
9726 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9727 | set dummy objdump | |
9728 | if test $build = $host ; then | |
9729 | OBJDUMP="$2" | |
ca9f4b81 | 9730 | else |
2693c0b0 | 9731 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9732 | fi |
ca9f4b81 AO |
9733 | fi |
9734 | ||
671aa708 NN |
9735 | |
9736 | ||
e7a82751 RM |
9737 | if test -n "$READELF"; then |
9738 | ac_cv_prog_READELF=$READELF | |
9739 | elif test -n "$ac_cv_prog_READELF"; then | |
9740 | READELF=$ac_cv_prog_READELF | |
9741 | fi | |
9742 | ||
9743 | if test -n "$ac_cv_prog_READELF"; then | |
9744 | for ncn_progname in readelf; do | |
9745 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9746 | set dummy ${ncn_progname}; ac_word=$2 | |
9747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9748 | $as_echo_n "checking for $ac_word... " >&6; } | |
9749 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9750 | $as_echo_n "(cached) " >&6 | |
9751 | else | |
9752 | if test -n "$READELF"; then | |
9753 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9754 | else | |
9755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9756 | for as_dir in $PATH | |
9757 | do | |
9758 | IFS=$as_save_IFS | |
9759 | test -z "$as_dir" && as_dir=. | |
9760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9762 | ac_cv_prog_READELF="${ncn_progname}" | |
9763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9764 | break 2 | |
9765 | fi | |
9766 | done | |
9767 | done | |
9768 | IFS=$as_save_IFS | |
9769 | ||
9770 | fi | |
9771 | fi | |
9772 | READELF=$ac_cv_prog_READELF | |
9773 | if test -n "$READELF"; then | |
9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9775 | $as_echo "$READELF" >&6; } | |
9776 | else | |
9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9778 | $as_echo "no" >&6; } | |
9779 | fi | |
9780 | ||
9781 | ||
9782 | done | |
9783 | fi | |
9784 | ||
9785 | for ncn_progname in readelf; do | |
9786 | if test -n "$ncn_tool_prefix"; then | |
9787 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9788 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9790 | $as_echo_n "checking for $ac_word... " >&6; } | |
9791 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9792 | $as_echo_n "(cached) " >&6 | |
9793 | else | |
9794 | if test -n "$READELF"; then | |
9795 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9796 | else | |
9797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9798 | for as_dir in $PATH | |
9799 | do | |
9800 | IFS=$as_save_IFS | |
9801 | test -z "$as_dir" && as_dir=. | |
9802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9804 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9806 | break 2 | |
9807 | fi | |
9808 | done | |
9809 | done | |
9810 | IFS=$as_save_IFS | |
9811 | ||
9812 | fi | |
9813 | fi | |
9814 | READELF=$ac_cv_prog_READELF | |
9815 | if test -n "$READELF"; then | |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9817 | $as_echo "$READELF" >&6; } | |
9818 | else | |
9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9820 | $as_echo "no" >&6; } | |
9821 | fi | |
9822 | ||
9823 | ||
9824 | fi | |
9825 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9826 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9827 | set dummy ${ncn_progname}; ac_word=$2 | |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9829 | $as_echo_n "checking for $ac_word... " >&6; } | |
9830 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9831 | $as_echo_n "(cached) " >&6 | |
9832 | else | |
9833 | if test -n "$READELF"; then | |
9834 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9835 | else | |
9836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9837 | for as_dir in $PATH | |
9838 | do | |
9839 | IFS=$as_save_IFS | |
9840 | test -z "$as_dir" && as_dir=. | |
9841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9843 | ac_cv_prog_READELF="${ncn_progname}" | |
9844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9845 | break 2 | |
9846 | fi | |
9847 | done | |
9848 | done | |
9849 | IFS=$as_save_IFS | |
9850 | ||
9851 | fi | |
9852 | fi | |
9853 | READELF=$ac_cv_prog_READELF | |
9854 | if test -n "$READELF"; then | |
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9856 | $as_echo "$READELF" >&6; } | |
9857 | else | |
9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9859 | $as_echo "no" >&6; } | |
9860 | fi | |
9861 | ||
9862 | ||
9863 | fi | |
9864 | test -n "$ac_cv_prog_READELF" && break | |
9865 | done | |
9866 | ||
9867 | if test -z "$ac_cv_prog_READELF" ; then | |
9868 | set dummy readelf | |
9869 | if test $build = $host ; then | |
9870 | READELF="$2" | |
9871 | else | |
9872 | READELF="${ncn_tool_prefix}$2" | |
9873 | fi | |
9874 | fi | |
9875 | ||
9876 | ||
9877 | ||
671aa708 NN |
9878 | |
9879 | ||
9880 | ||
2abefe3d | 9881 | # Target tools. |
1c710c3c | 9882 | |
5213506e RW |
9883 | # Check whether --with-build-time-tools was given. |
9884 | if test "${with_build_time_tools+set}" = set; then : | |
9885 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
9886 | x/*) ;; |
9887 | *) | |
9888 | with_build_time_tools= | |
5213506e RW |
9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9890 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
9891 | ;; |
9892 | esac | |
ca9f4b81 | 9893 | else |
e8b05380 | 9894 | with_build_time_tools= |
5213506e RW |
9895 | fi |
9896 | ||
ca9f4b81 | 9897 | |
278a7a38 AO |
9898 | |
9899 | ||
9900 | if test -n "$CC_FOR_TARGET"; then | |
9901 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9902 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9903 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9904 | fi | |
9905 | ||
9906 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9907 | for ncn_progname in cc gcc; do | |
9908 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9909 | set dummy ${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 | |
278a7a38 AO |
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 | |
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 | |
278a7a38 | 9925 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9927 | break 2 |
9928 | fi | |
9929 | done | |
5213506e RW |
9930 | done |
9931 | IFS=$as_save_IFS | |
278a7a38 AO |
9932 | |
9933 | fi | |
9934 | fi | |
9935 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
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; } | |
278a7a38 | 9939 | else |
5213506e RW |
9940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9941 | $as_echo "no" >&6; } | |
278a7a38 AO |
9942 | fi |
9943 | ||
5213506e | 9944 | |
278a7a38 AO |
9945 | done |
9946 | fi | |
9947 | ||
9948 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9949 | for ncn_progname in cc gcc; do |
5213506e RW |
9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9951 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9952 | if test -x $with_build_time_tools/${ncn_progname}; then |
9953 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9955 | $as_echo "yes" >&6; } | |
72a7ab82 | 9956 | break |
e8b05380 | 9957 | else |
5213506e RW |
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9959 | $as_echo "no" >&6; } | |
72a7ab82 AP |
9960 | fi |
9961 | done | |
4de997d1 PB |
9962 | fi |
9963 | ||
e8b05380 PB |
9964 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9965 | for ncn_progname in cc gcc; do | |
9966 | if test -n "$ncn_target_tool_prefix"; then | |
9967 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9968 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9970 | $as_echo_n "checking for $ac_word... " >&6; } | |
9971 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9972 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9973 | else |
9974 | if test -n "$CC_FOR_TARGET"; then | |
9975 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9976 | else | |
1c710c3c DJ |
9977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9978 | for as_dir in $PATH | |
9979 | do | |
9980 | IFS=$as_save_IFS | |
9981 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9982 | for ac_exec_ext in '' $ac_executable_extensions; do |
9983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9984 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9986 | break 2 |
9987 | fi | |
9988 | done | |
5213506e RW |
9989 | done |
9990 | IFS=$as_save_IFS | |
1c710c3c | 9991 | |
4de997d1 PB |
9992 | fi |
9993 | fi | |
1c710c3c | 9994 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 9995 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9997 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9998 | else |
5213506e RW |
9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10000 | $as_echo "no" >&6; } | |
4de997d1 PB |
10001 | fi |
10002 | ||
5213506e | 10003 | |
e8b05380 PB |
10004 | fi |
10005 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10006 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10007 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10009 | $as_echo_n "checking for $ac_word... " >&6; } | |
10010 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10011 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10012 | else |
2693c0b0 PB |
10013 | if test -n "$CC_FOR_TARGET"; then |
10014 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10015 | else |
1c710c3c DJ |
10016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10017 | for as_dir in $PATH | |
10018 | do | |
10019 | IFS=$as_save_IFS | |
10020 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10021 | for ac_exec_ext in '' $ac_executable_extensions; do |
10022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10023 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10025 | break 2 |
10026 | fi | |
10027 | done | |
5213506e RW |
10028 | done |
10029 | IFS=$as_save_IFS | |
1c710c3c | 10030 | |
4de997d1 PB |
10031 | fi |
10032 | fi | |
1c710c3c | 10033 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 10034 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10036 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10037 | else |
5213506e RW |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10039 | $as_echo "no" >&6; } | |
4de997d1 | 10040 | fi |
1c710c3c | 10041 | |
5213506e | 10042 | |
e8b05380 PB |
10043 | fi |
10044 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10045 | done | |
10046 | fi | |
1c710c3c | 10047 | |
2693c0b0 PB |
10048 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10049 | set dummy cc gcc | |
10050 | if test $build = $target ; then | |
10051 | CC_FOR_TARGET="$2" | |
4de997d1 | 10052 | else |
2693c0b0 | 10053 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10054 | fi |
1c00b503 PB |
10055 | else |
10056 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
10057 | fi |
10058 | ||
278a7a38 AO |
10059 | |
10060 | ||
10061 | if test -n "$CXX_FOR_TARGET"; then | |
10062 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10063 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10064 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10065 | fi | |
10066 | ||
10067 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10068 | for ncn_progname in c++ g++ cxx gxx; do | |
10069 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10070 | set dummy ${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 | |
278a7a38 AO |
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 | |
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 | |
278a7a38 | 10086 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10088 | break 2 |
10089 | fi | |
10090 | done | |
5213506e RW |
10091 | done |
10092 | IFS=$as_save_IFS | |
278a7a38 AO |
10093 | |
10094 | fi | |
10095 | fi | |
10096 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
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; } | |
278a7a38 | 10100 | else |
5213506e RW |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10102 | $as_echo "no" >&6; } | |
278a7a38 AO |
10103 | fi |
10104 | ||
5213506e | 10105 | |
278a7a38 AO |
10106 | done |
10107 | fi | |
10108 | ||
10109 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10110 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10112 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10113 | if test -x $with_build_time_tools/${ncn_progname}; then |
10114 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10116 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10117 | break |
10118 | else | |
5213506e RW |
10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10120 | $as_echo "no" >&6; } | |
e8b05380 PB |
10121 | fi |
10122 | done | |
10123 | fi | |
10124 | ||
10125 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10126 | for ncn_progname in c++ g++ cxx gxx; do | |
10127 | if test -n "$ncn_target_tool_prefix"; then | |
10128 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10129 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10131 | $as_echo_n "checking for $ac_word... " >&6; } | |
10132 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10133 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
10134 | else |
10135 | if test -n "$CXX_FOR_TARGET"; then | |
10136 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10137 | else | |
1c710c3c DJ |
10138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10139 | for as_dir in $PATH | |
10140 | do | |
10141 | IFS=$as_save_IFS | |
10142 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10143 | for ac_exec_ext in '' $ac_executable_extensions; do |
10144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10145 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10147 | break 2 |
10148 | fi | |
10149 | done | |
5213506e RW |
10150 | done |
10151 | IFS=$as_save_IFS | |
1c710c3c | 10152 | |
4de997d1 PB |
10153 | fi |
10154 | fi | |
1c710c3c | 10155 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10156 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10158 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10159 | else |
5213506e RW |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10161 | $as_echo "no" >&6; } | |
4de997d1 PB |
10162 | fi |
10163 | ||
5213506e | 10164 | |
e8b05380 PB |
10165 | fi |
10166 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10167 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10168 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10170 | $as_echo_n "checking for $ac_word... " >&6; } | |
10171 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10172 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10173 | else |
2693c0b0 PB |
10174 | if test -n "$CXX_FOR_TARGET"; then |
10175 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10176 | else |
1c710c3c DJ |
10177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10178 | for as_dir in $PATH | |
10179 | do | |
10180 | IFS=$as_save_IFS | |
10181 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10182 | for ac_exec_ext in '' $ac_executable_extensions; do |
10183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10184 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10186 | break 2 |
10187 | fi | |
10188 | done | |
5213506e RW |
10189 | done |
10190 | IFS=$as_save_IFS | |
1c710c3c | 10191 | |
4de997d1 PB |
10192 | fi |
10193 | fi | |
1c710c3c | 10194 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10195 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10197 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10198 | else |
5213506e RW |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10200 | $as_echo "no" >&6; } | |
4de997d1 | 10201 | fi |
1c710c3c | 10202 | |
5213506e | 10203 | |
e8b05380 PB |
10204 | fi |
10205 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10206 | done | |
10207 | fi | |
1c710c3c | 10208 | |
2693c0b0 PB |
10209 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10210 | set dummy c++ g++ cxx gxx | |
10211 | if test $build = $target ; then | |
10212 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10213 | else |
2693c0b0 | 10214 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10215 | fi |
1c00b503 PB |
10216 | else |
10217 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10218 | fi |
10219 | ||
278a7a38 AO |
10220 | |
10221 | ||
10222 | if test -n "$GCC_FOR_TARGET"; then | |
10223 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10224 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10225 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10226 | fi | |
10227 | ||
10228 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10229 | for ncn_progname in gcc; do | |
10230 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10231 | set dummy ${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 | |
278a7a38 AO |
10236 | else |
10237 | if test -n "$GCC_FOR_TARGET"; then | |
10238 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10239 | else | |
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 | |
278a7a38 | 10247 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10249 | break 2 |
10250 | fi | |
10251 | done | |
5213506e RW |
10252 | done |
10253 | IFS=$as_save_IFS | |
278a7a38 AO |
10254 | |
10255 | fi | |
10256 | fi | |
10257 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
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; } | |
278a7a38 | 10261 | else |
5213506e RW |
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10263 | $as_echo "no" >&6; } | |
278a7a38 AO |
10264 | fi |
10265 | ||
5213506e | 10266 | |
278a7a38 AO |
10267 | done |
10268 | fi | |
10269 | ||
10270 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10271 | for ncn_progname in gcc; do |
5213506e RW |
10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10273 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10274 | if test -x $with_build_time_tools/${ncn_progname}; then |
10275 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10277 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10278 | break |
10279 | else | |
5213506e RW |
10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10281 | $as_echo "no" >&6; } | |
e8b05380 PB |
10282 | fi |
10283 | done | |
10284 | fi | |
10285 | ||
10286 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10287 | for ncn_progname in gcc; do | |
10288 | if test -n "$ncn_target_tool_prefix"; then | |
10289 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10290 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10292 | $as_echo_n "checking for $ac_word... " >&6; } | |
10293 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10294 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10295 | else |
e8b05380 PB |
10296 | if test -n "$GCC_FOR_TARGET"; then |
10297 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10298 | else |
1c710c3c DJ |
10299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10300 | for as_dir in $PATH | |
10301 | do | |
10302 | IFS=$as_save_IFS | |
10303 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10304 | for ac_exec_ext in '' $ac_executable_extensions; do |
10305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10306 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10308 | break 2 |
10309 | fi | |
10310 | done | |
5213506e RW |
10311 | done |
10312 | IFS=$as_save_IFS | |
1c710c3c | 10313 | |
ca9f4b81 AO |
10314 | fi |
10315 | fi | |
1c710c3c | 10316 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10317 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10319 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10320 | else |
5213506e RW |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10322 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10323 | fi |
10324 | ||
5213506e | 10325 | |
e8b05380 PB |
10326 | fi |
10327 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10328 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10329 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10331 | $as_echo_n "checking for $ac_word... " >&6; } | |
10332 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10333 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10334 | else |
e8b05380 PB |
10335 | if test -n "$GCC_FOR_TARGET"; then |
10336 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10337 | else |
1c710c3c DJ |
10338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10339 | for as_dir in $PATH | |
10340 | do | |
10341 | IFS=$as_save_IFS | |
10342 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10343 | for ac_exec_ext in '' $ac_executable_extensions; do |
10344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10345 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10347 | break 2 |
10348 | fi | |
10349 | done | |
5213506e RW |
10350 | done |
10351 | IFS=$as_save_IFS | |
1c710c3c | 10352 | |
ca9f4b81 AO |
10353 | fi |
10354 | fi | |
1c710c3c | 10355 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10356 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10358 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10359 | else |
5213506e RW |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10361 | $as_echo "no" >&6; } | |
ca9f4b81 | 10362 | fi |
1c710c3c | 10363 | |
5213506e | 10364 | |
e8b05380 PB |
10365 | fi |
10366 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10367 | done | |
10368 | fi | |
1c710c3c | 10369 | |
e8b05380 PB |
10370 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10371 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10372 | else |
10373 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10374 | fi |
10375 | ||
278a7a38 AO |
10376 | |
10377 | ||
10378 | if test -n "$GCJ_FOR_TARGET"; then | |
10379 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10380 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10381 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10382 | fi | |
10383 | ||
10384 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10385 | for ncn_progname in gcj; do | |
10386 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10387 | set dummy ${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 | |
278a7a38 AO |
10392 | else |
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 | |
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 | |
278a7a38 | 10403 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10405 | break 2 |
10406 | fi | |
10407 | done | |
5213506e RW |
10408 | done |
10409 | IFS=$as_save_IFS | |
278a7a38 AO |
10410 | |
10411 | fi | |
10412 | fi | |
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 | done |
10424 | fi | |
10425 | ||
10426 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10427 | for ncn_progname in gcj; do |
5213506e RW |
10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10429 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10430 | if test -x $with_build_time_tools/${ncn_progname}; then |
10431 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10433 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10434 | break |
10435 | else | |
5213506e RW |
10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10437 | $as_echo "no" >&6; } | |
e8b05380 PB |
10438 | fi |
10439 | done | |
10440 | fi | |
10441 | ||
10442 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10443 | for ncn_progname in gcj; do | |
10444 | if test -n "$ncn_target_tool_prefix"; then | |
10445 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10446 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10448 | $as_echo_n "checking for $ac_word... " >&6; } | |
10449 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10450 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10451 | else |
fb0103e5 RG |
10452 | if test -n "$GCJ_FOR_TARGET"; then |
10453 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10454 | else | |
1c710c3c DJ |
10455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10456 | for as_dir in $PATH | |
10457 | do | |
10458 | IFS=$as_save_IFS | |
10459 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10460 | for ac_exec_ext in '' $ac_executable_extensions; do |
10461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10462 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10464 | break 2 |
10465 | fi | |
10466 | done | |
5213506e RW |
10467 | done |
10468 | IFS=$as_save_IFS | |
1c710c3c | 10469 | |
e8b05380 PB |
10470 | fi |
10471 | fi | |
278a7a38 AO |
10472 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10473 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10475 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10476 | else |
5213506e RW |
10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10478 | $as_echo "no" >&6; } | |
278a7a38 AO |
10479 | fi |
10480 | ||
5213506e | 10481 | |
278a7a38 AO |
10482 | fi |
10483 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10484 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10485 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10487 | $as_echo_n "checking for $ac_word... " >&6; } | |
10488 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10489 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10490 | else |
10491 | if test -n "$GCJ_FOR_TARGET"; then | |
10492 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10493 | else | |
10494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10495 | for as_dir in $PATH | |
10496 | do | |
10497 | IFS=$as_save_IFS | |
10498 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10499 | for ac_exec_ext in '' $ac_executable_extensions; do |
10500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10501 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10503 | break 2 |
10504 | fi | |
10505 | done | |
5213506e RW |
10506 | done |
10507 | IFS=$as_save_IFS | |
278a7a38 AO |
10508 | |
10509 | fi | |
10510 | fi | |
10511 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10512 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10514 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10515 | else |
5213506e RW |
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10517 | $as_echo "no" >&6; } | |
278a7a38 AO |
10518 | fi |
10519 | ||
5213506e | 10520 | |
278a7a38 AO |
10521 | fi |
10522 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10523 | done | |
10524 | fi | |
10525 | ||
10526 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10527 | set dummy gcj | |
10528 | if test $build = $target ; then | |
10529 | GCJ_FOR_TARGET="$2" | |
10530 | else | |
10531 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10532 | fi | |
1c00b503 PB |
10533 | else |
10534 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
278a7a38 AO |
10535 | fi |
10536 | ||
10537 | ||
10538 | ||
10539 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10540 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10541 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10542 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10543 | fi |
10544 | ||
278a7a38 AO |
10545 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10546 | for ncn_progname in gfortran; do | |
10547 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10548 | set dummy ${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 | 10553 | else |
278a7a38 AO |
10554 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10555 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10556 | else |
1c710c3c DJ |
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 | |
278a7a38 | 10564 | ac_cv_prog_GFORTRAN_FOR_TARGET="${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 | |
278a7a38 AO |
10574 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
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 | 10581 | fi |
1c710c3c | 10582 | |
5213506e | 10583 | |
e8b05380 PB |
10584 | done |
10585 | fi | |
1c710c3c | 10586 | |
278a7a38 | 10587 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10588 | for ncn_progname in gfortran; do |
5213506e RW |
10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10590 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10591 | if test -x $with_build_time_tools/${ncn_progname}; then |
10592 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10594 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10595 | break |
10596 | else | |
5213506e RW |
10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10598 | $as_echo "no" >&6; } | |
e8b05380 PB |
10599 | fi |
10600 | done | |
10601 | fi | |
10602 | ||
10603 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10604 | for ncn_progname in gfortran; do | |
10605 | if test -n "$ncn_target_tool_prefix"; then | |
10606 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10607 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10609 | $as_echo_n "checking for $ac_word... " >&6; } | |
10610 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10611 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10612 | else |
10613 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10614 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10615 | else | |
10616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10617 | for as_dir in $PATH | |
10618 | do | |
10619 | IFS=$as_save_IFS | |
10620 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10621 | for ac_exec_ext in '' $ac_executable_extensions; do |
10622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10623 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10625 | break 2 |
10626 | fi | |
10627 | done | |
5213506e RW |
10628 | done |
10629 | IFS=$as_save_IFS | |
1c710c3c | 10630 | |
e8b05380 PB |
10631 | fi |
10632 | fi | |
1c710c3c | 10633 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10634 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10636 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10637 | else |
5213506e RW |
10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10639 | $as_echo "no" >&6; } | |
e8b05380 PB |
10640 | fi |
10641 | ||
5213506e | 10642 | |
e8b05380 PB |
10643 | fi |
10644 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10645 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10646 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10648 | $as_echo_n "checking for $ac_word... " >&6; } | |
10649 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10650 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10651 | else |
10652 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10653 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10654 | else | |
1c710c3c DJ |
10655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10656 | for as_dir in $PATH | |
10657 | do | |
10658 | IFS=$as_save_IFS | |
10659 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10660 | for ac_exec_ext in '' $ac_executable_extensions; do |
10661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10662 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10664 | break 2 |
10665 | fi | |
10666 | done | |
5213506e RW |
10667 | done |
10668 | IFS=$as_save_IFS | |
1c710c3c | 10669 | |
e8b05380 PB |
10670 | fi |
10671 | fi | |
1c710c3c | 10672 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10673 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10675 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10676 | else |
5213506e RW |
10677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10678 | $as_echo "no" >&6; } | |
e8b05380 | 10679 | fi |
1c710c3c | 10680 | |
5213506e | 10681 | |
e8b05380 PB |
10682 | fi |
10683 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10684 | done | |
10685 | fi | |
1c710c3c | 10686 | |
e8b05380 PB |
10687 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10688 | set dummy gfortran | |
2693c0b0 | 10689 | if test $build = $target ; then |
e8b05380 | 10690 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10691 | else |
e8b05380 PB |
10692 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10693 | fi | |
1c00b503 PB |
10694 | else |
10695 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10696 | fi |
10697 | ||
10698 | ||
10699 | ||
632e2a07 ILT |
10700 | if test -n "$GOC_FOR_TARGET"; then |
10701 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10702 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10703 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10704 | fi | |
10705 | ||
10706 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10707 | for ncn_progname in gccgo; do | |
10708 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10709 | set dummy ${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_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 | done | |
10746 | fi | |
10747 | ||
10748 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10749 | for ncn_progname in gccgo; do | |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10751 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10752 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10753 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10755 | $as_echo "yes" >&6; } | |
10756 | break | |
10757 | else | |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10759 | $as_echo "no" >&6; } | |
10760 | fi | |
10761 | done | |
10762 | fi | |
10763 | ||
10764 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10765 | for ncn_progname in gccgo; do | |
10766 | if test -n "$ncn_target_tool_prefix"; then | |
10767 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10768 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10770 | $as_echo_n "checking for $ac_word... " >&6; } | |
10771 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10772 | $as_echo_n "(cached) " >&6 | |
10773 | else | |
10774 | if test -n "$GOC_FOR_TARGET"; then | |
10775 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10776 | else | |
10777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10778 | for as_dir in $PATH | |
10779 | do | |
10780 | IFS=$as_save_IFS | |
10781 | test -z "$as_dir" && as_dir=. | |
10782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10784 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10786 | break 2 | |
10787 | fi | |
10788 | done | |
10789 | done | |
10790 | IFS=$as_save_IFS | |
10791 | ||
10792 | fi | |
10793 | fi | |
10794 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10795 | if test -n "$GOC_FOR_TARGET"; then | |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10797 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10798 | else | |
10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10800 | $as_echo "no" >&6; } | |
10801 | fi | |
10802 | ||
10803 | ||
10804 | fi | |
10805 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10806 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10807 | set dummy ${ncn_progname}; ac_word=$2 | |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10809 | $as_echo_n "checking for $ac_word... " >&6; } | |
10810 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10811 | $as_echo_n "(cached) " >&6 | |
10812 | else | |
10813 | if test -n "$GOC_FOR_TARGET"; then | |
10814 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10815 | else | |
10816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10817 | for as_dir in $PATH | |
10818 | do | |
10819 | IFS=$as_save_IFS | |
10820 | test -z "$as_dir" && as_dir=. | |
10821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10823 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10825 | break 2 | |
10826 | fi | |
10827 | done | |
10828 | done | |
10829 | IFS=$as_save_IFS | |
10830 | ||
10831 | fi | |
10832 | fi | |
10833 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10834 | if test -n "$GOC_FOR_TARGET"; then | |
10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10836 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10837 | else | |
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10839 | $as_echo "no" >&6; } | |
10840 | fi | |
10841 | ||
10842 | ||
10843 | fi | |
10844 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10845 | done | |
10846 | fi | |
10847 | ||
10848 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10849 | set dummy gccgo | |
10850 | if test $build = $target ; then | |
10851 | GOC_FOR_TARGET="$2" | |
10852 | else | |
10853 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10854 | fi | |
10855 | else | |
10856 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10857 | fi | |
10858 | ||
10859 | ||
10860 | ||
e8b05380 PB |
10861 | cat > conftest.c << \EOF |
10862 | #ifdef __GNUC__ | |
10863 | gcc_yay; | |
10864 | #endif | |
10865 | EOF | |
10866 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10867 | have_gcc_for_target=yes | |
10868 | else | |
10869 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10870 | have_gcc_for_target=no | |
10871 | fi | |
10872 | rm conftest.c | |
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10878 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10880 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10881 | if test -x $with_build_time_tools/ar; then |
10882 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10883 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10885 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 10886 | else |
5213506e RW |
10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10888 | $as_echo "no" >&6; } | |
d1f8db0c | 10889 | fi |
e8b05380 PB |
10890 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10891 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
10892 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10893 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
10894 | fi |
10895 | fi | |
3e19841a | 10896 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10897 | # Extract the first word of "ar", so it can be a program name with args. |
10898 | set dummy ar; ac_word=$2 | |
5213506e RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10900 | $as_echo_n "checking for $ac_word... " >&6; } | |
10901 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10902 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10903 | else |
1c710c3c DJ |
10904 | case $AR_FOR_TARGET in |
10905 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10906 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10907 | ;; | |
e8b05380 | 10908 | *) |
1c710c3c DJ |
10909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10910 | for as_dir in $gcc_cv_tool_dirs | |
10911 | do | |
10912 | IFS=$as_save_IFS | |
10913 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10914 | for ac_exec_ext in '' $ac_executable_extensions; do |
10915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10916 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10918 | break 2 |
10919 | fi | |
10920 | done | |
5213506e RW |
10921 | done |
10922 | IFS=$as_save_IFS | |
1c710c3c | 10923 | |
e8b05380 PB |
10924 | ;; |
10925 | esac | |
10926 | fi | |
1c710c3c | 10927 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 10928 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10930 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10931 | else |
5213506e RW |
10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10933 | $as_echo "no" >&6; } | |
4de997d1 PB |
10934 | fi |
10935 | ||
5213506e | 10936 | |
e8b05380 PB |
10937 | fi |
10938 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
10939 | |
10940 | ||
10941 | if test -n "$AR_FOR_TARGET"; then | |
10942 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10943 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10944 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10945 | fi | |
10946 | ||
10947 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10948 | for ncn_progname in ar; do | |
10949 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10950 | set dummy ${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 | |
278a7a38 AO |
10955 | else |
10956 | if test -n "$AR_FOR_TARGET"; then | |
10957 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10958 | else | |
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 | |
278a7a38 | 10966 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10968 | break 2 |
10969 | fi | |
10970 | done | |
5213506e RW |
10971 | done |
10972 | IFS=$as_save_IFS | |
278a7a38 AO |
10973 | |
10974 | fi | |
10975 | fi | |
10976 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
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; } | |
278a7a38 | 10980 | else |
5213506e RW |
10981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10982 | $as_echo "no" >&6; } | |
278a7a38 AO |
10983 | fi |
10984 | ||
5213506e | 10985 | |
278a7a38 AO |
10986 | done |
10987 | fi | |
10988 | ||
10989 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10990 | for ncn_progname in ar; do |
5213506e RW |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10992 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10993 | if test -x $with_build_time_tools/${ncn_progname}; then |
10994 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10996 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10997 | break |
10998 | else | |
5213506e RW |
10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11000 | $as_echo "no" >&6; } | |
e8b05380 PB |
11001 | fi |
11002 | done | |
11003 | fi | |
11004 | ||
11005 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11006 | for ncn_progname in ar; do | |
11007 | if test -n "$ncn_target_tool_prefix"; then | |
11008 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11009 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11011 | $as_echo_n "checking for $ac_word... " >&6; } | |
11012 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11013 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11014 | else |
e8b05380 PB |
11015 | if test -n "$AR_FOR_TARGET"; then |
11016 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11017 | else |
1c710c3c DJ |
11018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11019 | for as_dir in $PATH | |
11020 | do | |
11021 | IFS=$as_save_IFS | |
11022 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11023 | for ac_exec_ext in '' $ac_executable_extensions; do |
11024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11025 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11027 | break 2 |
11028 | fi | |
11029 | done | |
5213506e RW |
11030 | done |
11031 | IFS=$as_save_IFS | |
1c710c3c | 11032 | |
4de997d1 PB |
11033 | fi |
11034 | fi | |
1c710c3c | 11035 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11036 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11038 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 11039 | else |
5213506e RW |
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11041 | $as_echo "no" >&6; } | |
4de997d1 PB |
11042 | fi |
11043 | ||
5213506e | 11044 | |
e8b05380 PB |
11045 | fi |
11046 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11047 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11048 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11050 | $as_echo_n "checking for $ac_word... " >&6; } | |
11051 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11052 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
11053 | else |
11054 | if test -n "$AR_FOR_TARGET"; then | |
11055 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11056 | else | |
1c710c3c DJ |
11057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11058 | for as_dir in $PATH | |
11059 | do | |
11060 | IFS=$as_save_IFS | |
11061 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11062 | for ac_exec_ext in '' $ac_executable_extensions; do |
11063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11064 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11066 | break 2 |
11067 | fi | |
11068 | done | |
5213506e RW |
11069 | done |
11070 | IFS=$as_save_IFS | |
1c710c3c | 11071 | |
e8b05380 PB |
11072 | fi |
11073 | fi | |
1c710c3c | 11074 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11075 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11077 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11078 | else |
5213506e RW |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11080 | $as_echo "no" >&6; } | |
e8b05380 | 11081 | fi |
1c710c3c | 11082 | |
5213506e | 11083 | |
e8b05380 PB |
11084 | fi |
11085 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11086 | done | |
11087 | fi | |
1c710c3c | 11088 | |
e8b05380 PB |
11089 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11090 | set dummy ar | |
11091 | if test $build = $target ; then | |
11092 | AR_FOR_TARGET="$2" | |
11093 | else | |
11094 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 11095 | fi |
1c00b503 PB |
11096 | else |
11097 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
11098 | fi |
11099 | ||
d1f8db0c PB |
11100 | else |
11101 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
11102 | fi |
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11108 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11110 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11111 | if test -x $with_build_time_tools/as; then |
11112 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11113 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11115 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 11116 | else |
5213506e RW |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11118 | $as_echo "no" >&6; } | |
d1f8db0c | 11119 | fi |
e8b05380 PB |
11120 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11121 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
11122 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11123 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
11124 | fi |
11125 | fi | |
3e19841a | 11126 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11127 | # Extract the first word of "as", so it can be a program name with args. |
11128 | set dummy as; ac_word=$2 | |
5213506e RW |
11129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11130 | $as_echo_n "checking for $ac_word... " >&6; } | |
11131 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11132 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11133 | else |
1c710c3c DJ |
11134 | case $AS_FOR_TARGET in |
11135 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11136 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11137 | ;; | |
e8b05380 | 11138 | *) |
1c710c3c DJ |
11139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11140 | for as_dir in $gcc_cv_tool_dirs | |
11141 | do | |
11142 | IFS=$as_save_IFS | |
11143 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11144 | for ac_exec_ext in '' $ac_executable_extensions; do |
11145 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11146 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11148 | break 2 |
11149 | fi | |
11150 | done | |
5213506e RW |
11151 | done |
11152 | IFS=$as_save_IFS | |
1c710c3c | 11153 | |
e8b05380 PB |
11154 | ;; |
11155 | esac | |
11156 | fi | |
1c710c3c | 11157 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 11158 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11160 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11161 | else |
5213506e RW |
11162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11163 | $as_echo "no" >&6; } | |
e8b05380 PB |
11164 | fi |
11165 | ||
5213506e | 11166 | |
e8b05380 PB |
11167 | fi |
11168 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11169 | |
11170 | ||
11171 | if test -n "$AS_FOR_TARGET"; then | |
11172 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11173 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11174 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11175 | fi | |
11176 | ||
11177 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11178 | for ncn_progname in as; do | |
11179 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11180 | set dummy ${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 | |
278a7a38 AO |
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 | |
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 | |
278a7a38 | 11196 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11198 | break 2 |
11199 | fi | |
11200 | done | |
5213506e RW |
11201 | done |
11202 | IFS=$as_save_IFS | |
278a7a38 AO |
11203 | |
11204 | fi | |
11205 | fi | |
11206 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
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; } | |
278a7a38 | 11210 | else |
5213506e RW |
11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11212 | $as_echo "no" >&6; } | |
278a7a38 AO |
11213 | fi |
11214 | ||
5213506e | 11215 | |
278a7a38 AO |
11216 | done |
11217 | fi | |
11218 | ||
11219 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11220 | for ncn_progname in as; do |
5213506e RW |
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11222 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11223 | if test -x $with_build_time_tools/${ncn_progname}; then |
11224 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11226 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11227 | break |
11228 | else | |
5213506e RW |
11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11230 | $as_echo "no" >&6; } | |
e8b05380 PB |
11231 | fi |
11232 | done | |
11233 | fi | |
11234 | ||
11235 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11236 | for ncn_progname in as; do | |
11237 | if test -n "$ncn_target_tool_prefix"; then | |
11238 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11239 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11241 | $as_echo_n "checking for $ac_word... " >&6; } | |
11242 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11243 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
11244 | else |
11245 | if test -n "$AS_FOR_TARGET"; then | |
11246 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11247 | else | |
1c710c3c DJ |
11248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11249 | for as_dir in $PATH | |
11250 | do | |
11251 | IFS=$as_save_IFS | |
11252 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11253 | for ac_exec_ext in '' $ac_executable_extensions; do |
11254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11255 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11257 | break 2 |
11258 | fi | |
11259 | done | |
5213506e RW |
11260 | done |
11261 | IFS=$as_save_IFS | |
1c710c3c | 11262 | |
e8b05380 PB |
11263 | fi |
11264 | fi | |
1c710c3c | 11265 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11266 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11268 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11269 | else |
5213506e RW |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11271 | $as_echo "no" >&6; } | |
e8b05380 PB |
11272 | fi |
11273 | ||
5213506e | 11274 | |
e8b05380 PB |
11275 | fi |
11276 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11277 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11278 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11280 | $as_echo_n "checking for $ac_word... " >&6; } | |
11281 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11282 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11283 | else |
e8b05380 PB |
11284 | if test -n "$AS_FOR_TARGET"; then |
11285 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11286 | else |
1c710c3c DJ |
11287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11288 | for as_dir in $PATH | |
11289 | do | |
11290 | IFS=$as_save_IFS | |
11291 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11292 | for ac_exec_ext in '' $ac_executable_extensions; do |
11293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11294 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11296 | break 2 |
11297 | fi | |
11298 | done | |
5213506e RW |
11299 | done |
11300 | IFS=$as_save_IFS | |
1c710c3c | 11301 | |
4de997d1 PB |
11302 | fi |
11303 | fi | |
1c710c3c | 11304 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11305 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11307 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11308 | else |
5213506e RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11310 | $as_echo "no" >&6; } | |
4de997d1 | 11311 | fi |
1c710c3c | 11312 | |
5213506e | 11313 | |
e8b05380 PB |
11314 | fi |
11315 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11316 | done | |
11317 | fi | |
1c710c3c | 11318 | |
e8b05380 PB |
11319 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11320 | set dummy as | |
11321 | if test $build = $target ; then | |
11322 | AS_FOR_TARGET="$2" | |
11323 | else | |
11324 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11325 | fi |
1c00b503 PB |
11326 | else |
11327 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11328 | fi |
2693c0b0 | 11329 | |
d1f8db0c PB |
11330 | else |
11331 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11332 | fi |
11333 | ||
e8b05380 PB |
11334 | |
11335 | ||
11336 | ||
11337 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11338 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11340 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11341 | if test -x $with_build_time_tools/dlltool; then |
11342 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11343 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11345 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11346 | else |
5213506e RW |
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11348 | $as_echo "no" >&6; } | |
d1f8db0c | 11349 | fi |
e8b05380 PB |
11350 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11351 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11352 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11353 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11354 | fi |
11355 | fi | |
3e19841a | 11356 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11357 | # Extract the first word of "dlltool", so it can be a program name with args. |
11358 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11360 | $as_echo_n "checking for $ac_word... " >&6; } | |
11361 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11362 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11363 | else |
1c710c3c DJ |
11364 | case $DLLTOOL_FOR_TARGET in |
11365 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11366 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11367 | ;; | |
e8b05380 | 11368 | *) |
1c710c3c DJ |
11369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11370 | for as_dir in $gcc_cv_tool_dirs | |
11371 | do | |
11372 | IFS=$as_save_IFS | |
11373 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11374 | for ac_exec_ext in '' $ac_executable_extensions; do |
11375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11376 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11378 | break 2 |
11379 | fi | |
11380 | done | |
5213506e RW |
11381 | done |
11382 | IFS=$as_save_IFS | |
1c710c3c | 11383 | |
e8b05380 PB |
11384 | ;; |
11385 | esac | |
4de997d1 | 11386 | fi |
1c710c3c | 11387 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11388 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11390 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11391 | else |
5213506e RW |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11393 | $as_echo "no" >&6; } | |
4de997d1 PB |
11394 | fi |
11395 | ||
5213506e | 11396 | |
e8b05380 PB |
11397 | fi |
11398 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11399 | |
11400 | ||
11401 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11402 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11403 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11404 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11405 | fi | |
11406 | ||
11407 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11408 | for ncn_progname in dlltool; do | |
11409 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11410 | set dummy ${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 | |
278a7a38 AO |
11415 | else |
11416 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11417 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11418 | else | |
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 | |
278a7a38 | 11426 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11428 | break 2 |
11429 | fi | |
11430 | done | |
5213506e RW |
11431 | done |
11432 | IFS=$as_save_IFS | |
278a7a38 AO |
11433 | |
11434 | fi | |
11435 | fi | |
11436 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
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; } | |
278a7a38 | 11440 | else |
5213506e RW |
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11442 | $as_echo "no" >&6; } | |
278a7a38 AO |
11443 | fi |
11444 | ||
5213506e | 11445 | |
278a7a38 AO |
11446 | done |
11447 | fi | |
11448 | ||
11449 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11450 | for ncn_progname in dlltool; do |
5213506e RW |
11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11452 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11453 | if test -x $with_build_time_tools/${ncn_progname}; then |
11454 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11456 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11457 | break |
11458 | else | |
5213506e RW |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11460 | $as_echo "no" >&6; } | |
e8b05380 PB |
11461 | fi |
11462 | done | |
11463 | fi | |
11464 | ||
11465 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11466 | for ncn_progname in dlltool; do | |
11467 | if test -n "$ncn_target_tool_prefix"; then | |
11468 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11469 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11471 | $as_echo_n "checking for $ac_word... " >&6; } | |
11472 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11473 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11474 | else |
e8b05380 PB |
11475 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11476 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11477 | else |
1c710c3c DJ |
11478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11479 | for as_dir in $PATH | |
11480 | do | |
11481 | IFS=$as_save_IFS | |
11482 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11483 | for ac_exec_ext in '' $ac_executable_extensions; do |
11484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11485 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11487 | break 2 |
11488 | fi | |
11489 | done | |
5213506e RW |
11490 | done |
11491 | IFS=$as_save_IFS | |
1c710c3c | 11492 | |
4de997d1 PB |
11493 | fi |
11494 | fi | |
1c710c3c | 11495 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11496 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11498 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11499 | else |
5213506e RW |
11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11501 | $as_echo "no" >&6; } | |
4de997d1 | 11502 | fi |
4de997d1 | 11503 | |
5213506e | 11504 | |
e8b05380 PB |
11505 | fi |
11506 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11507 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11508 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11510 | $as_echo_n "checking for $ac_word... " >&6; } | |
11511 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11512 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11513 | else |
e8b05380 PB |
11514 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11515 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11516 | else |
1c710c3c DJ |
11517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11518 | for as_dir in $PATH | |
11519 | do | |
11520 | IFS=$as_save_IFS | |
11521 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11522 | for ac_exec_ext in '' $ac_executable_extensions; do |
11523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11524 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11526 | break 2 |
11527 | fi | |
11528 | done | |
5213506e RW |
11529 | done |
11530 | IFS=$as_save_IFS | |
1c710c3c | 11531 | |
4de997d1 PB |
11532 | fi |
11533 | fi | |
1c710c3c | 11534 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11535 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11537 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11538 | else |
5213506e RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11540 | $as_echo "no" >&6; } | |
4de997d1 | 11541 | fi |
1c710c3c | 11542 | |
5213506e | 11543 | |
e8b05380 PB |
11544 | fi |
11545 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11546 | done | |
11547 | fi | |
1c710c3c | 11548 | |
e8b05380 PB |
11549 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11550 | set dummy dlltool | |
11551 | if test $build = $target ; then | |
11552 | DLLTOOL_FOR_TARGET="$2" | |
11553 | else | |
11554 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11555 | fi | |
1c00b503 PB |
11556 | else |
11557 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11558 | fi |
11559 | ||
d1f8db0c PB |
11560 | else |
11561 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11562 | fi |
11563 | ||
4de997d1 | 11564 | |
e8b05380 PB |
11565 | |
11566 | ||
11567 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11568 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11570 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11571 | if test -x $with_build_time_tools/ld; then |
11572 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11573 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11575 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11576 | else |
5213506e RW |
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11578 | $as_echo "no" >&6; } | |
d1f8db0c | 11579 | fi |
e8b05380 PB |
11580 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11581 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11582 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11583 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11584 | fi |
e8b05380 | 11585 | fi |
3e19841a | 11586 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11587 | # Extract the first word of "ld", so it can be a program name with args. |
11588 | set dummy ld; ac_word=$2 | |
5213506e RW |
11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11590 | $as_echo_n "checking for $ac_word... " >&6; } | |
11591 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11592 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11593 | else |
1c710c3c DJ |
11594 | case $LD_FOR_TARGET in |
11595 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11596 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11597 | ;; | |
e8b05380 | 11598 | *) |
1c710c3c DJ |
11599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11600 | for as_dir in $gcc_cv_tool_dirs | |
11601 | do | |
11602 | IFS=$as_save_IFS | |
11603 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11604 | for ac_exec_ext in '' $ac_executable_extensions; do |
11605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11606 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11608 | break 2 |
11609 | fi | |
11610 | done | |
5213506e RW |
11611 | done |
11612 | IFS=$as_save_IFS | |
1c710c3c | 11613 | |
e8b05380 PB |
11614 | ;; |
11615 | esac | |
4de997d1 | 11616 | fi |
1c710c3c | 11617 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11618 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11620 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11621 | else |
5213506e RW |
11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11623 | $as_echo "no" >&6; } | |
4de997d1 | 11624 | fi |
2693c0b0 | 11625 | |
5213506e | 11626 | |
e8b05380 PB |
11627 | fi |
11628 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11629 | |
11630 | ||
11631 | if test -n "$LD_FOR_TARGET"; then | |
11632 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11633 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11634 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11635 | fi | |
11636 | ||
11637 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11638 | for ncn_progname in ld; do | |
11639 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11640 | set dummy ${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 | |
278a7a38 AO |
11645 | else |
11646 | if test -n "$LD_FOR_TARGET"; then | |
11647 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11648 | else | |
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 | |
278a7a38 | 11656 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11658 | break 2 |
11659 | fi | |
11660 | done | |
5213506e RW |
11661 | done |
11662 | IFS=$as_save_IFS | |
278a7a38 AO |
11663 | |
11664 | fi | |
11665 | fi | |
11666 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
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; } | |
278a7a38 | 11670 | else |
5213506e RW |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11672 | $as_echo "no" >&6; } | |
278a7a38 AO |
11673 | fi |
11674 | ||
5213506e | 11675 | |
278a7a38 AO |
11676 | done |
11677 | fi | |
11678 | ||
11679 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11680 | for ncn_progname in ld; do |
5213506e RW |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11682 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11683 | if test -x $with_build_time_tools/${ncn_progname}; then |
11684 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11686 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11687 | break |
11688 | else | |
5213506e RW |
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11690 | $as_echo "no" >&6; } | |
e8b05380 PB |
11691 | fi |
11692 | done | |
ca9f4b81 AO |
11693 | fi |
11694 | ||
e8b05380 PB |
11695 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11696 | for ncn_progname in ld; do | |
11697 | if test -n "$ncn_target_tool_prefix"; then | |
11698 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11699 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11701 | $as_echo_n "checking for $ac_word... " >&6; } | |
11702 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11703 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11704 | else |
4de997d1 PB |
11705 | if test -n "$LD_FOR_TARGET"; then |
11706 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11707 | else |
1c710c3c DJ |
11708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11709 | for as_dir in $PATH | |
11710 | do | |
11711 | IFS=$as_save_IFS | |
11712 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11713 | for ac_exec_ext in '' $ac_executable_extensions; do |
11714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11715 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11717 | break 2 |
11718 | fi | |
11719 | done | |
5213506e RW |
11720 | done |
11721 | IFS=$as_save_IFS | |
1c710c3c | 11722 | |
ca9f4b81 AO |
11723 | fi |
11724 | fi | |
1c710c3c | 11725 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11726 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11728 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11729 | else |
5213506e RW |
11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11731 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11732 | fi |
11733 | ||
5213506e | 11734 | |
e8b05380 PB |
11735 | fi |
11736 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11737 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11738 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11740 | $as_echo_n "checking for $ac_word... " >&6; } | |
11741 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11742 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11743 | else |
2693c0b0 PB |
11744 | if test -n "$LD_FOR_TARGET"; then |
11745 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11746 | else |
1c710c3c DJ |
11747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11748 | for as_dir in $PATH | |
11749 | do | |
11750 | IFS=$as_save_IFS | |
11751 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11752 | for ac_exec_ext in '' $ac_executable_extensions; do |
11753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11754 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11756 | break 2 |
11757 | fi | |
11758 | done | |
5213506e RW |
11759 | done |
11760 | IFS=$as_save_IFS | |
1c710c3c | 11761 | |
ca9f4b81 AO |
11762 | fi |
11763 | fi | |
1c710c3c | 11764 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 11765 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11767 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11768 | else |
5213506e RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11770 | $as_echo "no" >&6; } | |
ca9f4b81 | 11771 | fi |
1c710c3c | 11772 | |
5213506e | 11773 | |
e8b05380 PB |
11774 | fi |
11775 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11776 | done | |
11777 | fi | |
1c710c3c | 11778 | |
2693c0b0 PB |
11779 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11780 | set dummy ld | |
11781 | if test $build = $target ; then | |
11782 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 11783 | else |
2693c0b0 | 11784 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11785 | fi |
1c00b503 PB |
11786 | else |
11787 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
11788 | fi |
11789 | ||
d1f8db0c PB |
11790 | else |
11791 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
11792 | fi |
11793 | ||
11794 | ||
11795 | ||
11796 | ||
11797 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11798 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11800 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11801 | if test -x $with_build_time_tools/lipo; then |
11802 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11803 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11805 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 11806 | else |
5213506e RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11808 | $as_echo "no" >&6; } | |
d1f8db0c | 11809 | fi |
e8b05380 PB |
11810 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11811 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
11812 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11813 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
11814 | fi |
11815 | fi | |
278a7a38 AO |
11816 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11817 | # Extract the first word of "lipo", so it can be a program name with args. | |
11818 | set dummy lipo; ac_word=$2 | |
5213506e RW |
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11820 | $as_echo_n "checking for $ac_word... " >&6; } | |
11821 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11822 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11823 | else |
11824 | case $LIPO_FOR_TARGET in | |
11825 | [\\/]* | ?:[\\/]*) | |
11826 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11827 | ;; | |
11828 | *) | |
11829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11830 | for as_dir in $gcc_cv_tool_dirs | |
11831 | do | |
11832 | IFS=$as_save_IFS | |
11833 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11834 | for ac_exec_ext in '' $ac_executable_extensions; do |
11835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11836 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11838 | break 2 |
11839 | fi | |
11840 | done | |
5213506e RW |
11841 | done |
11842 | IFS=$as_save_IFS | |
278a7a38 AO |
11843 | |
11844 | ;; | |
11845 | esac | |
11846 | fi | |
11847 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 11848 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11850 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 11851 | else |
5213506e RW |
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11853 | $as_echo "no" >&6; } | |
278a7a38 AO |
11854 | fi |
11855 | ||
5213506e | 11856 | |
278a7a38 AO |
11857 | fi |
11858 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11859 | ||
11860 | ||
11861 | if test -n "$LIPO_FOR_TARGET"; then | |
11862 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11863 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11864 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11865 | fi | |
11866 | ||
11867 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11868 | for ncn_progname in lipo; do | |
11869 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11870 | set dummy ${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 | |
e8b05380 | 11875 | else |
278a7a38 AO |
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 | |
11879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11880 | for as_dir in $PATH | |
1c710c3c DJ |
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 | |
278a7a38 | 11886 | ac_cv_prog_LIPO_FOR_TARGET="${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 | |
e8b05380 | 11894 | fi |
278a7a38 AO |
11895 | fi |
11896 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 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; } | |
e8b05380 | 11900 | else |
5213506e RW |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11902 | $as_echo "no" >&6; } | |
e8b05380 PB |
11903 | fi |
11904 | ||
5213506e | 11905 | |
278a7a38 | 11906 | done |
e8b05380 | 11907 | fi |
278a7a38 AO |
11908 | |
11909 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11910 | for ncn_progname in lipo; do |
5213506e RW |
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11912 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11913 | if test -x $with_build_time_tools/${ncn_progname}; then |
11914 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11916 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11917 | break |
11918 | else | |
5213506e RW |
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11920 | $as_echo "no" >&6; } | |
e8b05380 PB |
11921 | fi |
11922 | done | |
11923 | fi | |
11924 | ||
11925 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11926 | for ncn_progname in lipo; do | |
11927 | if test -n "$ncn_target_tool_prefix"; then | |
11928 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11929 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11931 | $as_echo_n "checking for $ac_word... " >&6; } | |
11932 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11933 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11934 | else |
11935 | if test -n "$LIPO_FOR_TARGET"; then | |
11936 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11937 | else | |
1c710c3c DJ |
11938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11939 | for as_dir in $PATH | |
11940 | do | |
11941 | IFS=$as_save_IFS | |
11942 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11943 | for ac_exec_ext in '' $ac_executable_extensions; do |
11944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11945 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11947 | break 2 |
11948 | fi | |
11949 | done | |
5213506e RW |
11950 | done |
11951 | IFS=$as_save_IFS | |
1c710c3c | 11952 | |
040b1c5a GK |
11953 | fi |
11954 | fi | |
1c710c3c | 11955 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11956 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11958 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11959 | else |
5213506e RW |
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11961 | $as_echo "no" >&6; } | |
040b1c5a GK |
11962 | fi |
11963 | ||
5213506e | 11964 | |
e8b05380 PB |
11965 | fi |
11966 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11967 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11968 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11970 | $as_echo_n "checking for $ac_word... " >&6; } | |
11971 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11972 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11973 | else |
11974 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
11975 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11976 | else | |
1c710c3c DJ |
11977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11978 | for as_dir in $PATH | |
11979 | do | |
11980 | IFS=$as_save_IFS | |
11981 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11982 | for ac_exec_ext in '' $ac_executable_extensions; do |
11983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11984 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11986 | break 2 |
11987 | fi | |
11988 | done | |
5213506e RW |
11989 | done |
11990 | IFS=$as_save_IFS | |
1c710c3c | 11991 | |
040b1c5a GK |
11992 | fi |
11993 | fi | |
1c710c3c | 11994 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11995 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11997 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11998 | else |
5213506e RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12000 | $as_echo "no" >&6; } | |
040b1c5a | 12001 | fi |
1c710c3c | 12002 | |
5213506e | 12003 | |
e8b05380 PB |
12004 | fi |
12005 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12006 | done | |
12007 | fi | |
1c710c3c | 12008 | |
040b1c5a GK |
12009 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12010 | set dummy lipo | |
12011 | if test $build = $target ; then | |
12012 | LIPO_FOR_TARGET="$2" | |
12013 | else | |
12014 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12015 | fi | |
1c00b503 PB |
12016 | else |
12017 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
12018 | fi |
12019 | ||
d1f8db0c PB |
12020 | else |
12021 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
12022 | fi |
12023 | ||
12024 | ||
12025 | ||
12026 | ||
12027 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12028 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12030 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12031 | if test -x $with_build_time_tools/nm; then |
12032 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12033 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12035 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 12036 | else |
5213506e RW |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12038 | $as_echo "no" >&6; } | |
d1f8db0c | 12039 | fi |
e8b05380 PB |
12040 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12041 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
12042 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12043 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
12044 | fi |
12045 | fi | |
3e19841a | 12046 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12047 | # Extract the first word of "nm", so it can be a program name with args. |
12048 | set dummy nm; ac_word=$2 | |
5213506e RW |
12049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12050 | $as_echo_n "checking for $ac_word... " >&6; } | |
12051 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12052 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12053 | else |
1c710c3c DJ |
12054 | case $NM_FOR_TARGET in |
12055 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12056 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12057 | ;; | |
e8b05380 | 12058 | *) |
1c710c3c DJ |
12059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12060 | for as_dir in $gcc_cv_tool_dirs | |
12061 | do | |
12062 | IFS=$as_save_IFS | |
12063 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12064 | for ac_exec_ext in '' $ac_executable_extensions; do |
12065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12066 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12068 | break 2 |
12069 | fi | |
12070 | done | |
5213506e RW |
12071 | done |
12072 | IFS=$as_save_IFS | |
1c710c3c | 12073 | |
e8b05380 PB |
12074 | ;; |
12075 | esac | |
12076 | fi | |
1c710c3c | 12077 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 12078 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12080 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 12081 | else |
5213506e RW |
12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12083 | $as_echo "no" >&6; } | |
e8b05380 PB |
12084 | fi |
12085 | ||
5213506e | 12086 | |
e8b05380 PB |
12087 | fi |
12088 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
12089 | |
12090 | ||
12091 | if test -n "$NM_FOR_TARGET"; then | |
12092 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12093 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12094 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12095 | fi | |
12096 | ||
12097 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12098 | for ncn_progname in nm; do | |
12099 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12100 | set dummy ${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 | |
278a7a38 AO |
12105 | else |
12106 | if test -n "$NM_FOR_TARGET"; then | |
12107 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12108 | else | |
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 | |
278a7a38 | 12116 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12118 | break 2 |
12119 | fi | |
12120 | done | |
5213506e RW |
12121 | done |
12122 | IFS=$as_save_IFS | |
278a7a38 AO |
12123 | |
12124 | fi | |
12125 | fi | |
12126 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
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; } | |
278a7a38 | 12130 | else |
5213506e RW |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12132 | $as_echo "no" >&6; } | |
278a7a38 AO |
12133 | fi |
12134 | ||
5213506e | 12135 | |
278a7a38 AO |
12136 | done |
12137 | fi | |
12138 | ||
12139 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12140 | for ncn_progname in nm; do |
5213506e RW |
12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12142 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12143 | if test -x $with_build_time_tools/${ncn_progname}; then |
12144 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12146 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12147 | break |
12148 | else | |
5213506e RW |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12150 | $as_echo "no" >&6; } | |
e8b05380 PB |
12151 | fi |
12152 | done | |
12153 | fi | |
12154 | ||
12155 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12156 | for ncn_progname in nm; do | |
12157 | if test -n "$ncn_target_tool_prefix"; then | |
12158 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12159 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12161 | $as_echo_n "checking for $ac_word... " >&6; } | |
12162 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12163 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12164 | else |
4de997d1 PB |
12165 | if test -n "$NM_FOR_TARGET"; then |
12166 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12167 | else |
1c710c3c DJ |
12168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12169 | for as_dir in $PATH | |
12170 | do | |
12171 | IFS=$as_save_IFS | |
12172 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12173 | for ac_exec_ext in '' $ac_executable_extensions; do |
12174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12175 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12177 | break 2 |
12178 | fi | |
12179 | done | |
5213506e RW |
12180 | done |
12181 | IFS=$as_save_IFS | |
1c710c3c | 12182 | |
ca9f4b81 AO |
12183 | fi |
12184 | fi | |
1c710c3c | 12185 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12186 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12188 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12189 | else |
5213506e RW |
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12191 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12192 | fi |
12193 | ||
5213506e | 12194 | |
e8b05380 PB |
12195 | fi |
12196 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12197 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12198 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12200 | $as_echo_n "checking for $ac_word... " >&6; } | |
12201 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12202 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12203 | else |
2693c0b0 PB |
12204 | if test -n "$NM_FOR_TARGET"; then |
12205 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12206 | else |
1c710c3c DJ |
12207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12208 | for as_dir in $PATH | |
12209 | do | |
12210 | IFS=$as_save_IFS | |
12211 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12212 | for ac_exec_ext in '' $ac_executable_extensions; do |
12213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12214 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12216 | break 2 |
12217 | fi | |
12218 | done | |
5213506e RW |
12219 | done |
12220 | IFS=$as_save_IFS | |
1c710c3c | 12221 | |
ca9f4b81 AO |
12222 | fi |
12223 | fi | |
1c710c3c | 12224 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12225 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12227 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12228 | else |
5213506e RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12230 | $as_echo "no" >&6; } | |
ca9f4b81 | 12231 | fi |
1c710c3c | 12232 | |
5213506e | 12233 | |
e8b05380 PB |
12234 | fi |
12235 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12236 | done | |
12237 | fi | |
1c710c3c | 12238 | |
2693c0b0 PB |
12239 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12240 | set dummy nm | |
12241 | if test $build = $target ; then | |
12242 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 12243 | else |
2693c0b0 | 12244 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12245 | fi |
1c00b503 PB |
12246 | else |
12247 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
12248 | fi |
12249 | ||
d1f8db0c PB |
12250 | else |
12251 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
12252 | fi |
12253 | ||
12254 | ||
12255 | ||
12256 | ||
9bccfdf5 AP |
12257 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12258 | if test -n "$with_build_time_tools"; then | |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12260 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12261 | if test -x $with_build_time_tools/objcopy; then | |
12262 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12263 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12265 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12266 | else | |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12268 | $as_echo "no" >&6; } | |
12269 | fi | |
12270 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12271 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12272 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12273 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12274 | fi | |
12275 | fi | |
12276 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12277 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12278 | set dummy objcopy; ac_word=$2 | |
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12280 | $as_echo_n "checking for $ac_word... " >&6; } | |
12281 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12282 | $as_echo_n "(cached) " >&6 | |
12283 | else | |
12284 | case $OBJCOPY_FOR_TARGET in | |
12285 | [\\/]* | ?:[\\/]*) | |
12286 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12287 | ;; | |
12288 | *) | |
12289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12290 | for as_dir in $gcc_cv_tool_dirs | |
12291 | do | |
12292 | IFS=$as_save_IFS | |
12293 | test -z "$as_dir" && as_dir=. | |
12294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12296 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12298 | break 2 | |
12299 | fi | |
12300 | done | |
12301 | done | |
12302 | IFS=$as_save_IFS | |
12303 | ||
12304 | ;; | |
12305 | esac | |
12306 | fi | |
12307 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12308 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12310 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12311 | else | |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12313 | $as_echo "no" >&6; } | |
12314 | fi | |
12315 | ||
12316 | ||
12317 | fi | |
12318 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12319 | ||
12320 | ||
12321 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12322 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12323 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12324 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12325 | fi | |
12326 | ||
12327 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12328 | for ncn_progname in objcopy; do | |
12329 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12330 | set dummy ${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_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 | done | |
12367 | fi | |
12368 | ||
12369 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12370 | for ncn_progname in objcopy; do | |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12372 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12373 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12374 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12376 | $as_echo "yes" >&6; } | |
12377 | break | |
12378 | else | |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12380 | $as_echo "no" >&6; } | |
12381 | fi | |
12382 | done | |
12383 | fi | |
12384 | ||
12385 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12386 | for ncn_progname in objcopy; do | |
12387 | if test -n "$ncn_target_tool_prefix"; then | |
12388 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12389 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12391 | $as_echo_n "checking for $ac_word... " >&6; } | |
12392 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12393 | $as_echo_n "(cached) " >&6 | |
12394 | else | |
12395 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12396 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12397 | else | |
12398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12399 | for as_dir in $PATH | |
12400 | do | |
12401 | IFS=$as_save_IFS | |
12402 | test -z "$as_dir" && as_dir=. | |
12403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12405 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12407 | break 2 | |
12408 | fi | |
12409 | done | |
12410 | done | |
12411 | IFS=$as_save_IFS | |
12412 | ||
12413 | fi | |
12414 | fi | |
12415 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12416 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12418 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12419 | else | |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12421 | $as_echo "no" >&6; } | |
12422 | fi | |
12423 | ||
12424 | ||
12425 | fi | |
12426 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12427 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12428 | set dummy ${ncn_progname}; ac_word=$2 | |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12430 | $as_echo_n "checking for $ac_word... " >&6; } | |
12431 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12432 | $as_echo_n "(cached) " >&6 | |
12433 | else | |
12434 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12435 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12436 | else | |
12437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12438 | for as_dir in $PATH | |
12439 | do | |
12440 | IFS=$as_save_IFS | |
12441 | test -z "$as_dir" && as_dir=. | |
12442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12444 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12446 | break 2 | |
12447 | fi | |
12448 | done | |
12449 | done | |
12450 | IFS=$as_save_IFS | |
12451 | ||
12452 | fi | |
12453 | fi | |
12454 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12455 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12457 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12458 | else | |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12460 | $as_echo "no" >&6; } | |
12461 | fi | |
12462 | ||
12463 | ||
12464 | fi | |
12465 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12466 | done | |
12467 | fi | |
12468 | ||
12469 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12470 | set dummy objcopy | |
12471 | if test $build = $target ; then | |
12472 | OBJCOPY_FOR_TARGET="$2" | |
12473 | else | |
12474 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12475 | fi | |
12476 | else | |
12477 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12478 | fi | |
12479 | ||
12480 | else | |
12481 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12482 | fi | |
12483 | ||
12484 | ||
12485 | ||
12486 | ||
e8b05380 PB |
12487 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12488 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12490 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12491 | if test -x $with_build_time_tools/objdump; then |
12492 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12493 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12495 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 12496 | else |
5213506e RW |
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12498 | $as_echo "no" >&6; } | |
d1f8db0c | 12499 | fi |
e8b05380 PB |
12500 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12501 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
12502 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12503 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12504 | fi |
12505 | fi | |
3e19841a | 12506 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12507 | # Extract the first word of "objdump", so it can be a program name with args. |
12508 | set dummy objdump; ac_word=$2 | |
5213506e RW |
12509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12510 | $as_echo_n "checking for $ac_word... " >&6; } | |
12511 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12512 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12513 | else |
1c710c3c DJ |
12514 | case $OBJDUMP_FOR_TARGET in |
12515 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12516 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12517 | ;; | |
e8b05380 | 12518 | *) |
1c710c3c DJ |
12519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12520 | for as_dir in $gcc_cv_tool_dirs | |
12521 | do | |
12522 | IFS=$as_save_IFS | |
12523 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12524 | for ac_exec_ext in '' $ac_executable_extensions; do |
12525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12526 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12528 | break 2 |
12529 | fi | |
12530 | done | |
5213506e RW |
12531 | done |
12532 | IFS=$as_save_IFS | |
1c710c3c | 12533 | |
e8b05380 PB |
12534 | ;; |
12535 | esac | |
12536 | fi | |
1c710c3c | 12537 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12538 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12540 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12541 | else |
5213506e RW |
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12543 | $as_echo "no" >&6; } | |
e8b05380 PB |
12544 | fi |
12545 | ||
5213506e | 12546 | |
e8b05380 PB |
12547 | fi |
12548 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12549 | |
12550 | ||
12551 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12552 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12553 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12554 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12555 | fi | |
12556 | ||
12557 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12558 | for ncn_progname in objdump; do | |
12559 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12560 | set dummy ${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 | |
278a7a38 AO |
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 | |
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 | |
278a7a38 | 12576 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12578 | break 2 |
12579 | fi | |
12580 | done | |
5213506e RW |
12581 | done |
12582 | IFS=$as_save_IFS | |
278a7a38 AO |
12583 | |
12584 | fi | |
12585 | fi | |
12586 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
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; } | |
278a7a38 | 12590 | else |
5213506e RW |
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12592 | $as_echo "no" >&6; } | |
278a7a38 AO |
12593 | fi |
12594 | ||
5213506e | 12595 | |
278a7a38 AO |
12596 | done |
12597 | fi | |
12598 | ||
12599 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12600 | for ncn_progname in objdump; do |
5213506e RW |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12602 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12603 | if test -x $with_build_time_tools/${ncn_progname}; then |
12604 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12606 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12607 | break |
12608 | else | |
5213506e RW |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12610 | $as_echo "no" >&6; } | |
e8b05380 PB |
12611 | fi |
12612 | done | |
12613 | fi | |
12614 | ||
12615 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12616 | for ncn_progname in objdump; do | |
12617 | if test -n "$ncn_target_tool_prefix"; then | |
12618 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12619 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12621 | $as_echo_n "checking for $ac_word... " >&6; } | |
12622 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12623 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12624 | else |
12625 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12626 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12627 | else | |
1c710c3c DJ |
12628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12629 | for as_dir in $PATH | |
12630 | do | |
12631 | IFS=$as_save_IFS | |
12632 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12633 | for ac_exec_ext in '' $ac_executable_extensions; do |
12634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12635 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12637 | break 2 |
12638 | fi | |
12639 | done | |
5213506e RW |
12640 | done |
12641 | IFS=$as_save_IFS | |
1c710c3c | 12642 | |
d739199a DJ |
12643 | fi |
12644 | fi | |
1c710c3c | 12645 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12646 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12648 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12649 | else |
5213506e RW |
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12651 | $as_echo "no" >&6; } | |
d739199a DJ |
12652 | fi |
12653 | ||
5213506e | 12654 | |
e8b05380 PB |
12655 | fi |
12656 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12657 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12658 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12660 | $as_echo_n "checking for $ac_word... " >&6; } | |
12661 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12662 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12663 | else |
12664 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12665 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12666 | else | |
1c710c3c DJ |
12667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12668 | for as_dir in $PATH | |
12669 | do | |
12670 | IFS=$as_save_IFS | |
12671 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12672 | for ac_exec_ext in '' $ac_executable_extensions; do |
12673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12674 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12676 | break 2 |
12677 | fi | |
12678 | done | |
5213506e RW |
12679 | done |
12680 | IFS=$as_save_IFS | |
1c710c3c | 12681 | |
d739199a DJ |
12682 | fi |
12683 | fi | |
1c710c3c | 12684 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12685 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12687 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12688 | else |
5213506e RW |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12690 | $as_echo "no" >&6; } | |
d739199a | 12691 | fi |
1c710c3c | 12692 | |
5213506e | 12693 | |
e8b05380 PB |
12694 | fi |
12695 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12696 | done | |
12697 | fi | |
1c710c3c | 12698 | |
d739199a DJ |
12699 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12700 | set dummy objdump | |
12701 | if test $build = $target ; then | |
12702 | OBJDUMP_FOR_TARGET="$2" | |
12703 | else | |
12704 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12705 | fi | |
1c00b503 PB |
12706 | else |
12707 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12708 | fi |
12709 | ||
d1f8db0c PB |
12710 | else |
12711 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12712 | fi |
12713 | ||
12714 | ||
12715 | ||
12716 | ||
12717 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12718 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12720 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12721 | if test -x $with_build_time_tools/ranlib; then |
12722 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12723 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12725 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 12726 | else |
5213506e RW |
12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12728 | $as_echo "no" >&6; } | |
d1f8db0c | 12729 | fi |
e8b05380 PB |
12730 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12731 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
12732 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12733 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
12734 | fi |
12735 | fi | |
3e19841a | 12736 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12737 | # Extract the first word of "ranlib", so it can be a program name with args. |
12738 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12740 | $as_echo_n "checking for $ac_word... " >&6; } | |
12741 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12742 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12743 | else |
1c710c3c DJ |
12744 | case $RANLIB_FOR_TARGET in |
12745 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12746 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12747 | ;; | |
e8b05380 | 12748 | *) |
1c710c3c DJ |
12749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12750 | for as_dir in $gcc_cv_tool_dirs | |
12751 | do | |
12752 | IFS=$as_save_IFS | |
12753 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12754 | for ac_exec_ext in '' $ac_executable_extensions; do |
12755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12756 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12758 | break 2 |
12759 | fi | |
12760 | done | |
5213506e RW |
12761 | done |
12762 | IFS=$as_save_IFS | |
1c710c3c | 12763 | |
e8b05380 PB |
12764 | ;; |
12765 | esac | |
12766 | fi | |
1c710c3c | 12767 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 12768 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12770 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 12771 | else |
5213506e RW |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12773 | $as_echo "no" >&6; } | |
e8b05380 PB |
12774 | fi |
12775 | ||
5213506e | 12776 | |
e8b05380 PB |
12777 | fi |
12778 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
12779 | |
12780 | ||
12781 | if test -n "$RANLIB_FOR_TARGET"; then | |
12782 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12783 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12784 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12785 | fi | |
12786 | ||
12787 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12788 | for ncn_progname in ranlib; do | |
12789 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12790 | set dummy ${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 | |
278a7a38 AO |
12795 | else |
12796 | if test -n "$RANLIB_FOR_TARGET"; then | |
12797 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12798 | else | |
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 | |
278a7a38 | 12806 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12808 | break 2 |
12809 | fi | |
12810 | done | |
5213506e RW |
12811 | done |
12812 | IFS=$as_save_IFS | |
278a7a38 AO |
12813 | |
12814 | fi | |
12815 | fi | |
12816 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
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; } | |
278a7a38 | 12820 | else |
5213506e RW |
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12822 | $as_echo "no" >&6; } | |
278a7a38 AO |
12823 | fi |
12824 | ||
5213506e | 12825 | |
278a7a38 AO |
12826 | done |
12827 | fi | |
12828 | ||
12829 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12830 | for ncn_progname in ranlib; do |
5213506e RW |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12832 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12833 | if test -x $with_build_time_tools/${ncn_progname}; then |
12834 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12836 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12837 | break |
12838 | else | |
5213506e RW |
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12840 | $as_echo "no" >&6; } | |
e8b05380 PB |
12841 | fi |
12842 | done | |
12843 | fi | |
12844 | ||
12845 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12846 | for ncn_progname in ranlib; do | |
12847 | if test -n "$ncn_target_tool_prefix"; then | |
12848 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 12849 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12851 | $as_echo_n "checking for $ac_word... " >&6; } | |
12852 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12853 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12854 | else |
4de997d1 PB |
12855 | if test -n "$RANLIB_FOR_TARGET"; then |
12856 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12857 | else |
1c710c3c DJ |
12858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12859 | for as_dir in $PATH | |
12860 | do | |
12861 | IFS=$as_save_IFS | |
12862 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12863 | for ac_exec_ext in '' $ac_executable_extensions; do |
12864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12865 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12867 | break 2 |
12868 | fi | |
12869 | done | |
5213506e RW |
12870 | done |
12871 | IFS=$as_save_IFS | |
1c710c3c | 12872 | |
ca9f4b81 AO |
12873 | fi |
12874 | fi | |
1c710c3c | 12875 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 12876 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12878 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12879 | else |
5213506e RW |
12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12881 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12882 | fi |
12883 | ||
5213506e | 12884 | |
e8b05380 PB |
12885 | fi |
12886 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12888 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12890 | $as_echo_n "checking for $ac_word... " >&6; } | |
12891 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12892 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12893 | else |
2693c0b0 PB |
12894 | if test -n "$RANLIB_FOR_TARGET"; then |
12895 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12896 | else |
1c710c3c DJ |
12897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12898 | for as_dir in $PATH | |
12899 | do | |
12900 | IFS=$as_save_IFS | |
12901 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12902 | for ac_exec_ext in '' $ac_executable_extensions; do |
12903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12904 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12906 | break 2 |
12907 | fi | |
12908 | done | |
5213506e RW |
12909 | done |
12910 | IFS=$as_save_IFS | |
1c710c3c | 12911 | |
ca9f4b81 AO |
12912 | fi |
12913 | fi | |
1c710c3c | 12914 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 12915 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12917 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12918 | else |
5213506e RW |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12920 | $as_echo "no" >&6; } | |
ca9f4b81 | 12921 | fi |
1c710c3c | 12922 | |
5213506e | 12923 | |
e8b05380 PB |
12924 | fi |
12925 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12926 | done | |
12927 | fi | |
1c710c3c | 12928 | |
e8b05380 PB |
12929 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12930 | set dummy ranlib | |
12931 | if test $build = $target ; then | |
12932 | RANLIB_FOR_TARGET="$2" | |
12933 | else | |
12934 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 12935 | fi |
1c00b503 PB |
12936 | else |
12937 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 12938 | fi |
2693c0b0 | 12939 | |
d1f8db0c PB |
12940 | else |
12941 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
12942 | fi |
12943 | ||
e8b05380 PB |
12944 | |
12945 | ||
12946 | ||
e7a82751 RM |
12947 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12948 | if test -n "$with_build_time_tools"; then | |
12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12950 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12951 | if test -x $with_build_time_tools/readelf; then | |
12952 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12953 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12955 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12956 | else | |
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12958 | $as_echo "no" >&6; } | |
12959 | fi | |
12960 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12961 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12962 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12963 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12964 | fi | |
12965 | fi | |
12966 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12967 | # Extract the first word of "readelf", so it can be a program name with args. | |
12968 | set dummy readelf; ac_word=$2 | |
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12970 | $as_echo_n "checking for $ac_word... " >&6; } | |
12971 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12972 | $as_echo_n "(cached) " >&6 | |
12973 | else | |
12974 | case $READELF_FOR_TARGET in | |
12975 | [\\/]* | ?:[\\/]*) | |
12976 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12977 | ;; | |
12978 | *) | |
12979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12980 | for as_dir in $gcc_cv_tool_dirs | |
12981 | do | |
12982 | IFS=$as_save_IFS | |
12983 | test -z "$as_dir" && as_dir=. | |
12984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12986 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12988 | break 2 | |
12989 | fi | |
12990 | done | |
12991 | done | |
12992 | IFS=$as_save_IFS | |
12993 | ||
12994 | ;; | |
12995 | esac | |
12996 | fi | |
12997 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12998 | if test -n "$READELF_FOR_TARGET"; then | |
12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13000 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13001 | else | |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13003 | $as_echo "no" >&6; } | |
13004 | fi | |
13005 | ||
13006 | ||
13007 | fi | |
13008 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13009 | ||
13010 | ||
13011 | if test -n "$READELF_FOR_TARGET"; then | |
13012 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13013 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13014 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13015 | fi | |
13016 | ||
13017 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13018 | for ncn_progname in readelf; do | |
13019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13020 | set dummy ${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_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 | done | |
13057 | fi | |
13058 | ||
13059 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13060 | for ncn_progname in readelf; do | |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13062 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13063 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13064 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13066 | $as_echo "yes" >&6; } | |
13067 | break | |
13068 | else | |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13070 | $as_echo "no" >&6; } | |
13071 | fi | |
13072 | done | |
13073 | fi | |
13074 | ||
13075 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13076 | for ncn_progname in readelf; do | |
13077 | if test -n "$ncn_target_tool_prefix"; then | |
13078 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13079 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13081 | $as_echo_n "checking for $ac_word... " >&6; } | |
13082 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13083 | $as_echo_n "(cached) " >&6 | |
13084 | else | |
13085 | if test -n "$READELF_FOR_TARGET"; then | |
13086 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13087 | else | |
13088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13089 | for as_dir in $PATH | |
13090 | do | |
13091 | IFS=$as_save_IFS | |
13092 | test -z "$as_dir" && as_dir=. | |
13093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13095 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13097 | break 2 | |
13098 | fi | |
13099 | done | |
13100 | done | |
13101 | IFS=$as_save_IFS | |
13102 | ||
13103 | fi | |
13104 | fi | |
13105 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13106 | if test -n "$READELF_FOR_TARGET"; then | |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13108 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13109 | else | |
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13111 | $as_echo "no" >&6; } | |
13112 | fi | |
13113 | ||
13114 | ||
13115 | fi | |
13116 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13117 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13118 | set dummy ${ncn_progname}; ac_word=$2 | |
13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13120 | $as_echo_n "checking for $ac_word... " >&6; } | |
13121 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13122 | $as_echo_n "(cached) " >&6 | |
13123 | else | |
13124 | if test -n "$READELF_FOR_TARGET"; then | |
13125 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13126 | else | |
13127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13128 | for as_dir in $PATH | |
13129 | do | |
13130 | IFS=$as_save_IFS | |
13131 | test -z "$as_dir" && as_dir=. | |
13132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13134 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13136 | break 2 | |
13137 | fi | |
13138 | done | |
13139 | done | |
13140 | IFS=$as_save_IFS | |
13141 | ||
13142 | fi | |
13143 | fi | |
13144 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13145 | if test -n "$READELF_FOR_TARGET"; then | |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13147 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13148 | else | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13150 | $as_echo "no" >&6; } | |
13151 | fi | |
13152 | ||
13153 | ||
13154 | fi | |
13155 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13156 | done | |
13157 | fi | |
13158 | ||
13159 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13160 | set dummy readelf | |
13161 | if test $build = $target ; then | |
13162 | READELF_FOR_TARGET="$2" | |
13163 | else | |
13164 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13165 | fi | |
13166 | else | |
13167 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13168 | fi | |
13169 | ||
13170 | else | |
13171 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13172 | fi | |
13173 | ||
13174 | ||
13175 | ||
13176 | ||
e8b05380 PB |
13177 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13178 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13180 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13181 | if test -x $with_build_time_tools/strip; then |
13182 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13183 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13185 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 13186 | else |
5213506e RW |
13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13188 | $as_echo "no" >&6; } | |
d1f8db0c | 13189 | fi |
e8b05380 PB |
13190 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13191 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
13192 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13193 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
13194 | fi |
13195 | fi | |
3e19841a | 13196 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13197 | # Extract the first word of "strip", so it can be a program name with args. |
13198 | set dummy strip; ac_word=$2 | |
5213506e RW |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13200 | $as_echo_n "checking for $ac_word... " >&6; } | |
13201 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13202 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13203 | else |
1c710c3c DJ |
13204 | case $STRIP_FOR_TARGET in |
13205 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13206 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13207 | ;; | |
e8b05380 | 13208 | *) |
1c710c3c DJ |
13209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13210 | for as_dir in $gcc_cv_tool_dirs | |
13211 | do | |
13212 | IFS=$as_save_IFS | |
13213 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13214 | for ac_exec_ext in '' $ac_executable_extensions; do |
13215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13216 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13218 | break 2 |
13219 | fi | |
13220 | done | |
5213506e RW |
13221 | done |
13222 | IFS=$as_save_IFS | |
1c710c3c | 13223 | |
e8b05380 PB |
13224 | ;; |
13225 | esac | |
13226 | fi | |
1c710c3c | 13227 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 13228 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13230 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 13231 | else |
5213506e RW |
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13233 | $as_echo "no" >&6; } | |
e8b05380 PB |
13234 | fi |
13235 | ||
5213506e | 13236 | |
e8b05380 PB |
13237 | fi |
13238 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
13239 | |
13240 | ||
13241 | if test -n "$STRIP_FOR_TARGET"; then | |
13242 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13243 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13244 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13245 | fi | |
13246 | ||
13247 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13248 | for ncn_progname in strip; do | |
13249 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13250 | set dummy ${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 | |
278a7a38 AO |
13255 | else |
13256 | if test -n "$STRIP_FOR_TARGET"; then | |
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 | |
278a7a38 | 13266 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13268 | break 2 |
13269 | fi | |
13270 | done | |
5213506e RW |
13271 | done |
13272 | IFS=$as_save_IFS | |
278a7a38 AO |
13273 | |
13274 | fi | |
13275 | fi | |
13276 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
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; } | |
278a7a38 | 13280 | else |
5213506e RW |
13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13282 | $as_echo "no" >&6; } | |
278a7a38 AO |
13283 | fi |
13284 | ||
5213506e | 13285 | |
278a7a38 AO |
13286 | done |
13287 | fi | |
13288 | ||
13289 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13290 | for ncn_progname in strip; do |
5213506e RW |
13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13292 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13293 | if test -x $with_build_time_tools/${ncn_progname}; then |
13294 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13296 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13297 | break |
13298 | else | |
5213506e RW |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13300 | $as_echo "no" >&6; } | |
e8b05380 PB |
13301 | fi |
13302 | done | |
13303 | fi | |
13304 | ||
13305 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13306 | for ncn_progname in strip; do | |
13307 | if test -n "$ncn_target_tool_prefix"; then | |
13308 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13309 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13311 | $as_echo_n "checking for $ac_word... " >&6; } | |
13312 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13313 | $as_echo_n "(cached) " >&6 | |
af71363e AS |
13314 | else |
13315 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
13316 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13317 | else | |
13318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13319 | for as_dir in $PATH | |
13320 | do | |
13321 | IFS=$as_save_IFS | |
13322 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13323 | for ac_exec_ext in '' $ac_executable_extensions; do |
13324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13325 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13327 | break 2 |
13328 | fi | |
13329 | done | |
5213506e RW |
13330 | done |
13331 | IFS=$as_save_IFS | |
1c710c3c | 13332 | |
040b1c5a GK |
13333 | fi |
13334 | fi | |
1c710c3c | 13335 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13336 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13338 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13339 | else |
5213506e RW |
13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13341 | $as_echo "no" >&6; } | |
040b1c5a GK |
13342 | fi |
13343 | ||
5213506e | 13344 | |
e8b05380 PB |
13345 | fi |
13346 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13347 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13348 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13350 | $as_echo_n "checking for $ac_word... " >&6; } | |
13351 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13352 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
13353 | else |
13354 | if test -n "$STRIP_FOR_TARGET"; then | |
13355 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13356 | else | |
1c710c3c DJ |
13357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13358 | for as_dir in $PATH | |
13359 | do | |
13360 | IFS=$as_save_IFS | |
13361 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13362 | for ac_exec_ext in '' $ac_executable_extensions; do |
13363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13364 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13366 | break 2 |
13367 | fi | |
13368 | done | |
5213506e RW |
13369 | done |
13370 | IFS=$as_save_IFS | |
1c710c3c | 13371 | |
040b1c5a GK |
13372 | fi |
13373 | fi | |
1c710c3c | 13374 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13375 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13377 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13378 | else |
5213506e RW |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13380 | $as_echo "no" >&6; } | |
040b1c5a | 13381 | fi |
1c710c3c | 13382 | |
5213506e | 13383 | |
e8b05380 PB |
13384 | fi |
13385 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13386 | done | |
13387 | fi | |
1c710c3c | 13388 | |
040b1c5a GK |
13389 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13390 | set dummy strip | |
13391 | if test $build = $target ; then | |
13392 | STRIP_FOR_TARGET="$2" | |
13393 | else | |
13394 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13395 | fi | |
1c00b503 PB |
13396 | else |
13397 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
13398 | fi |
13399 | ||
d1f8db0c PB |
13400 | else |
13401 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
13402 | fi |
13403 | ||
13404 | ||
13405 | ||
13406 | ||
13407 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13408 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13410 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13411 | if test -x $with_build_time_tools/windres; then |
13412 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13413 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13415 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 13416 | else |
5213506e RW |
13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13418 | $as_echo "no" >&6; } | |
d1f8db0c | 13419 | fi |
e8b05380 PB |
13420 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13421 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
13422 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13423 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
13424 | fi |
13425 | fi | |
3e19841a | 13426 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13427 | # Extract the first word of "windres", so it can be a program name with args. |
13428 | set dummy windres; ac_word=$2 | |
5213506e RW |
13429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13430 | $as_echo_n "checking for $ac_word... " >&6; } | |
13431 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13432 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13433 | else |
1c710c3c DJ |
13434 | case $WINDRES_FOR_TARGET in |
13435 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13436 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13437 | ;; | |
e8b05380 | 13438 | *) |
1c710c3c DJ |
13439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13440 | for as_dir in $gcc_cv_tool_dirs | |
13441 | do | |
13442 | IFS=$as_save_IFS | |
13443 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13444 | for ac_exec_ext in '' $ac_executable_extensions; do |
13445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13446 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13448 | break 2 |
13449 | fi | |
13450 | done | |
5213506e RW |
13451 | done |
13452 | IFS=$as_save_IFS | |
1c710c3c | 13453 | |
e8b05380 PB |
13454 | ;; |
13455 | esac | |
13456 | fi | |
1c710c3c | 13457 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 13458 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13460 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 13461 | else |
5213506e RW |
13462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13463 | $as_echo "no" >&6; } | |
e8b05380 PB |
13464 | fi |
13465 | ||
5213506e | 13466 | |
e8b05380 PB |
13467 | fi |
13468 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
13469 | |
13470 | ||
13471 | if test -n "$WINDRES_FOR_TARGET"; then | |
13472 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13473 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13474 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13475 | fi | |
13476 | ||
13477 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13478 | for ncn_progname in windres; do | |
13479 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13480 | set dummy ${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 | |
278a7a38 AO |
13485 | else |
13486 | if test -n "$WINDRES_FOR_TARGET"; then | |
13487 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13488 | else | |
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 | |
278a7a38 | 13496 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13498 | break 2 |
13499 | fi | |
13500 | done | |
5213506e RW |
13501 | done |
13502 | IFS=$as_save_IFS | |
278a7a38 AO |
13503 | |
13504 | fi | |
13505 | fi | |
13506 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
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; } | |
278a7a38 | 13510 | else |
5213506e RW |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13512 | $as_echo "no" >&6; } | |
278a7a38 AO |
13513 | fi |
13514 | ||
5213506e | 13515 | |
278a7a38 AO |
13516 | done |
13517 | fi | |
13518 | ||
13519 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13520 | for ncn_progname in windres; do |
5213506e RW |
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13522 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13523 | if test -x $with_build_time_tools/${ncn_progname}; then |
13524 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13526 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13527 | break |
13528 | else | |
5213506e RW |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13530 | $as_echo "no" >&6; } | |
e8b05380 PB |
13531 | fi |
13532 | done | |
13533 | fi | |
13534 | ||
13535 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13536 | for ncn_progname in windres; do | |
13537 | if test -n "$ncn_target_tool_prefix"; then | |
13538 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13539 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13541 | $as_echo_n "checking for $ac_word... " >&6; } | |
13542 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13543 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13544 | else |
4de997d1 PB |
13545 | if test -n "$WINDRES_FOR_TARGET"; then |
13546 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13547 | else |
1c710c3c DJ |
13548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13549 | for as_dir in $PATH | |
13550 | do | |
13551 | IFS=$as_save_IFS | |
13552 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13553 | for ac_exec_ext in '' $ac_executable_extensions; do |
13554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13555 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13557 | break 2 |
13558 | fi | |
13559 | done | |
5213506e RW |
13560 | done |
13561 | IFS=$as_save_IFS | |
1c710c3c | 13562 | |
ca9f4b81 AO |
13563 | fi |
13564 | fi | |
1c710c3c | 13565 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 13566 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13568 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13569 | else |
5213506e RW |
13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13571 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13572 | fi |
13573 | ||
5213506e | 13574 | |
e8b05380 PB |
13575 | fi |
13576 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13577 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13578 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13580 | $as_echo_n "checking for $ac_word... " >&6; } | |
13581 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13582 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13583 | else |
2693c0b0 PB |
13584 | if test -n "$WINDRES_FOR_TARGET"; then |
13585 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13586 | else |
1c710c3c DJ |
13587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13588 | for as_dir in $PATH | |
13589 | do | |
13590 | IFS=$as_save_IFS | |
13591 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13592 | for ac_exec_ext in '' $ac_executable_extensions; do |
13593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13594 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13596 | break 2 |
13597 | fi | |
13598 | done | |
5213506e RW |
13599 | done |
13600 | IFS=$as_save_IFS | |
1c710c3c | 13601 | |
ca9f4b81 AO |
13602 | fi |
13603 | fi | |
1c710c3c | 13604 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 13605 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13607 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13608 | else |
5213506e RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13610 | $as_echo "no" >&6; } | |
ca9f4b81 | 13611 | fi |
1c710c3c | 13612 | |
5213506e | 13613 | |
e8b05380 PB |
13614 | fi |
13615 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13616 | done | |
13617 | fi | |
1c710c3c | 13618 | |
2693c0b0 PB |
13619 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13620 | set dummy windres | |
13621 | if test $build = $target ; then | |
13622 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 13623 | else |
2693c0b0 | 13624 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13625 | fi |
1c00b503 PB |
13626 | else |
13627 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
13628 | fi |
13629 | ||
d1f8db0c PB |
13630 | else |
13631 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
13632 | fi |
13633 | ||
4977bab6 | 13634 | |
901119ae KT |
13635 | |
13636 | ||
13637 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13638 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13640 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
13641 | if test -x $with_build_time_tools/windmc; then |
13642 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13643 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13645 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13646 | else |
5213506e RW |
13647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13648 | $as_echo "no" >&6; } | |
901119ae KT |
13649 | fi |
13650 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13651 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
13652 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13653 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
13654 | fi |
13655 | fi | |
13656 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13657 | # Extract the first word of "windmc", so it can be a program name with args. | |
13658 | set dummy windmc; ac_word=$2 | |
5213506e RW |
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13660 | $as_echo_n "checking for $ac_word... " >&6; } | |
13661 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13662 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13663 | else |
13664 | case $WINDMC_FOR_TARGET in | |
13665 | [\\/]* | ?:[\\/]*) | |
13666 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13667 | ;; | |
13668 | *) | |
13669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13670 | for as_dir in $gcc_cv_tool_dirs | |
13671 | do | |
13672 | IFS=$as_save_IFS | |
13673 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13674 | for ac_exec_ext in '' $ac_executable_extensions; do |
13675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13676 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13678 | break 2 |
13679 | fi | |
13680 | done | |
5213506e RW |
13681 | done |
13682 | IFS=$as_save_IFS | |
901119ae KT |
13683 | |
13684 | ;; | |
13685 | esac | |
13686 | fi | |
13687 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 13688 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13690 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13691 | else |
5213506e RW |
13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13693 | $as_echo "no" >&6; } | |
901119ae KT |
13694 | fi |
13695 | ||
5213506e | 13696 | |
901119ae KT |
13697 | fi |
13698 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13699 | ||
13700 | ||
13701 | if test -n "$WINDMC_FOR_TARGET"; then | |
13702 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13703 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13704 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13705 | fi | |
13706 | ||
13707 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13708 | for ncn_progname in windmc; do | |
13709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13710 | set dummy ${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_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 | done |
13747 | fi | |
13748 | ||
13749 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13750 | for ncn_progname in windmc; do | |
5213506e RW |
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13752 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
13753 | if test -x $with_build_time_tools/${ncn_progname}; then |
13754 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13756 | $as_echo "yes" >&6; } | |
901119ae KT |
13757 | break |
13758 | else | |
5213506e RW |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13760 | $as_echo "no" >&6; } | |
901119ae KT |
13761 | fi |
13762 | done | |
13763 | fi | |
13764 | ||
13765 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13766 | for ncn_progname in windmc; do | |
13767 | if test -n "$ncn_target_tool_prefix"; then | |
13768 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13769 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13771 | $as_echo_n "checking for $ac_word... " >&6; } | |
13772 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13773 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13774 | else |
13775 | if test -n "$WINDMC_FOR_TARGET"; then | |
13776 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13777 | else | |
13778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13779 | for as_dir in $PATH | |
13780 | do | |
13781 | IFS=$as_save_IFS | |
13782 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13783 | for ac_exec_ext in '' $ac_executable_extensions; do |
13784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13785 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13787 | break 2 |
13788 | fi | |
13789 | done | |
5213506e RW |
13790 | done |
13791 | IFS=$as_save_IFS | |
901119ae KT |
13792 | |
13793 | fi | |
13794 | fi | |
13795 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13796 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13798 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13799 | else |
5213506e RW |
13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13801 | $as_echo "no" >&6; } | |
901119ae KT |
13802 | fi |
13803 | ||
5213506e | 13804 | |
901119ae KT |
13805 | fi |
13806 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13808 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13810 | $as_echo_n "checking for $ac_word... " >&6; } | |
13811 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13812 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13813 | else |
13814 | if test -n "$WINDMC_FOR_TARGET"; then | |
13815 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13816 | else | |
13817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13818 | for as_dir in $PATH | |
13819 | do | |
13820 | IFS=$as_save_IFS | |
13821 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13822 | for ac_exec_ext in '' $ac_executable_extensions; do |
13823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13824 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13826 | break 2 |
13827 | fi | |
13828 | done | |
5213506e RW |
13829 | done |
13830 | IFS=$as_save_IFS | |
901119ae KT |
13831 | |
13832 | fi | |
13833 | fi | |
13834 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13835 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13837 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13838 | else |
5213506e RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13840 | $as_echo "no" >&6; } | |
901119ae KT |
13841 | fi |
13842 | ||
5213506e | 13843 | |
901119ae KT |
13844 | fi |
13845 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13846 | done | |
13847 | fi | |
13848 | ||
13849 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13850 | set dummy windmc | |
13851 | if test $build = $target ; then | |
13852 | WINDMC_FOR_TARGET="$2" | |
13853 | else | |
13854 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13855 | fi | |
1c00b503 PB |
13856 | else |
13857 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
13858 | fi |
13859 | ||
13860 | else | |
13861 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13862 | fi | |
13863 | ||
13864 | ||
2abefe3d PB |
13865 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13866 | ||
5213506e RW |
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13868 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 13869 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13870 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13871 | # We already found the complete path | |
172e41aa | 13872 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13874 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13875 | else |
13876 | # Canadian cross, just use what we found | |
5213506e RW |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13878 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13879 | fi |
2abefe3d PB |
13880 | else |
13881 | ok=yes | |
13882 | case " ${configdirs} " in | |
13883 | *" binutils "*) ;; | |
13884 | *) ok=no ;; | |
13885 | esac | |
1c710c3c | 13886 | |
2abefe3d PB |
13887 | if test $ok = yes; then |
13888 | # An in-tree tool is available and we can use it | |
13889 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13891 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13892 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13893 | # We already found the complete path | |
172e41aa | 13894 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13896 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13897 | elif test "x$target" = "x$host"; then |
13898 | # We can use an host tool | |
13899 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13901 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13902 | else |
13903 | # We need a cross tool | |
5213506e RW |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13905 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13906 | fi |
13907 | fi | |
0b0dc272 | 13908 | |
5213506e RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13910 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 13911 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13912 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13913 | # We already found the complete path | |
172e41aa | 13914 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13916 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13917 | else |
13918 | # Canadian cross, just use what we found | |
5213506e RW |
13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13920 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13921 | fi |
2abefe3d PB |
13922 | else |
13923 | ok=yes | |
13924 | case " ${configdirs} " in | |
13925 | *" gas "*) ;; | |
13926 | *) ok=no ;; | |
13927 | esac | |
1c710c3c | 13928 | |
2abefe3d PB |
13929 | if test $ok = yes; then |
13930 | # An in-tree tool is available and we can use it | |
13931 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13933 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13934 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13935 | # We already found the complete path | |
172e41aa | 13936 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13938 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13939 | elif test "x$target" = "x$host"; then |
13940 | # We can use an host tool | |
13941 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13943 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13944 | else |
13945 | # We need a cross tool | |
5213506e RW |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13947 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13948 | fi |
13949 | fi | |
0b0dc272 | 13950 | |
5213506e RW |
13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13952 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 13953 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13954 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13955 | # We already found the complete path | |
172e41aa | 13956 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13958 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13959 | else |
13960 | # Canadian cross, just use what we found | |
5213506e RW |
13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13962 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13963 | fi |
2abefe3d PB |
13964 | else |
13965 | ok=yes | |
13966 | case " ${configdirs} " in | |
13967 | *" gcc "*) ;; | |
13968 | *) ok=no ;; | |
13969 | esac | |
1c710c3c | 13970 | |
2abefe3d PB |
13971 | if test $ok = yes; then |
13972 | # An in-tree tool is available and we can use it | |
13973 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13975 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13976 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13977 | # We already found the complete path | |
172e41aa | 13978 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13980 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13981 | elif test "x$target" = "x$host"; then |
13982 | # We can use an host tool | |
13983 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13985 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13986 | else |
13987 | # We need a cross tool | |
5213506e RW |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13989 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13990 | fi |
13991 | fi | |
0b0dc272 | 13992 | |
5213506e RW |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13994 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 13995 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13996 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13997 | # We already found the complete path | |
172e41aa | 13998 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14000 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14001 | else |
14002 | # Canadian cross, just use what we found | |
5213506e RW |
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14004 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14005 | fi |
2abefe3d PB |
14006 | else |
14007 | ok=yes | |
14008 | case " ${configdirs} " in | |
14009 | *" gcc "*) ;; | |
14010 | *) ok=no ;; | |
14011 | esac | |
14012 | case ,${enable_languages}, in | |
14013 | *,c++,*) ;; | |
14014 | *) ok=no ;; | |
14015 | esac | |
14016 | if test $ok = yes; then | |
14017 | # An in-tree tool is available and we can use it | |
2077db1b | 14018 | 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 |
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14020 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14021 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14022 | # We already found the complete path | |
172e41aa | 14023 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14025 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14026 | elif test "x$target" = "x$host"; then |
14027 | # We can use an host tool | |
14028 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14030 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14031 | else |
14032 | # We need a cross tool | |
5213506e RW |
14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14034 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14035 | fi |
14036 | fi | |
0b0dc272 | 14037 | |
5213506e RW |
14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14039 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 14040 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14041 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14042 | # We already found the complete path | |
172e41aa | 14043 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14045 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14046 | else |
14047 | # Canadian cross, just use what we found | |
5213506e RW |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14049 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14050 | fi |
2abefe3d PB |
14051 | else |
14052 | ok=yes | |
14053 | case " ${configdirs} " in | |
14054 | *" gcc "*) ;; | |
14055 | *) ok=no ;; | |
14056 | esac | |
14057 | case ,${enable_languages}, in | |
14058 | *,c++,*) ;; | |
14059 | *) ok=no ;; | |
14060 | esac | |
14061 | if test $ok = yes; then | |
14062 | # An in-tree tool is available and we can use it | |
2077db1b | 14063 | 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 |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14065 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14066 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14067 | # We already found the complete path | |
172e41aa | 14068 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14070 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14071 | elif test "x$target" = "x$host"; then |
14072 | # We can use an host tool | |
14073 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14075 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14076 | else |
14077 | # We need a cross tool | |
5213506e RW |
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14079 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14080 | fi |
14081 | fi | |
0b0dc272 | 14082 | |
5213506e RW |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14084 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 14085 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14086 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14087 | # We already found the complete path | |
172e41aa | 14088 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14090 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14091 | else |
14092 | # Canadian cross, just use what we found | |
5213506e RW |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14094 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14095 | fi |
2abefe3d PB |
14096 | else |
14097 | ok=yes | |
14098 | case " ${configdirs} " in | |
14099 | *" binutils "*) ;; | |
14100 | *) ok=no ;; | |
14101 | esac | |
1c710c3c | 14102 | |
2abefe3d PB |
14103 | if test $ok = yes; then |
14104 | # An in-tree tool is available and we can use it | |
14105 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
14106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14107 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14108 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14109 | # We already found the complete path | |
172e41aa | 14110 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14112 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14113 | elif test "x$target" = "x$host"; then |
14114 | # We can use an host tool | |
14115 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14117 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14118 | else |
14119 | # We need a cross tool | |
5213506e RW |
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14121 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14122 | fi |
14123 | fi | |
0b0dc272 | 14124 | |
5213506e RW |
14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14126 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 14127 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14128 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14129 | # We already found the complete path | |
172e41aa | 14130 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14132 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14133 | else |
14134 | # Canadian cross, just use what we found | |
5213506e RW |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14136 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14137 | fi |
2abefe3d PB |
14138 | else |
14139 | ok=yes | |
14140 | case " ${configdirs} " in | |
14141 | *" gcc "*) ;; | |
14142 | *) ok=no ;; | |
14143 | esac | |
1c710c3c | 14144 | |
2abefe3d PB |
14145 | if test $ok = yes; then |
14146 | # An in-tree tool is available and we can use it | |
14147 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14149 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14150 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14151 | # We already found the complete path | |
172e41aa | 14152 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14154 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14155 | elif test "x$target" = "x$host"; then |
14156 | # We can use an host tool | |
14157 | GCC_FOR_TARGET='$()' | |
5213506e RW |
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14159 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14160 | else |
14161 | # We need a cross tool | |
5213506e RW |
14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14163 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14164 | fi |
14165 | fi | |
0b0dc272 | 14166 | |
5213506e RW |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14168 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
2abefe3d | 14169 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14170 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14171 | # We already found the complete path | |
172e41aa | 14172 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14174 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14175 | else |
14176 | # Canadian cross, just use what we found | |
5213506e RW |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14178 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14179 | fi |
2abefe3d PB |
14180 | else |
14181 | ok=yes | |
14182 | case " ${configdirs} " in | |
14183 | *" gcc "*) ;; | |
14184 | *) ok=no ;; | |
14185 | esac | |
14186 | case ,${enable_languages}, in | |
14187 | *,java,*) ;; | |
14188 | *) ok=no ;; | |
14189 | esac | |
14190 | if test $ok = yes; then | |
14191 | # An in-tree tool is available and we can use it | |
14192 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14194 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14195 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14196 | # We already found the complete path | |
172e41aa | 14197 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14199 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14200 | elif test "x$target" = "x$host"; then |
14201 | # We can use an host tool | |
14202 | GCJ_FOR_TARGET='$(GCJ)' | |
5213506e RW |
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14204 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14205 | else |
14206 | # We need a cross tool | |
5213506e RW |
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14208 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14209 | fi |
14210 | fi | |
0b0dc272 | 14211 | |
5213506e RW |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14213 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 14214 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14215 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14216 | # We already found the complete path | |
172e41aa | 14217 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14219 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14220 | else |
14221 | # Canadian cross, just use what we found | |
5213506e RW |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14223 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14224 | fi |
2abefe3d PB |
14225 | else |
14226 | ok=yes | |
14227 | case " ${configdirs} " in | |
14228 | *" gcc "*) ;; | |
14229 | *) ok=no ;; | |
14230 | esac | |
14231 | case ,${enable_languages}, in | |
14232 | *,fortran,*) ;; | |
14233 | *) ok=no ;; | |
14234 | esac | |
14235 | if test $ok = yes; then | |
14236 | # An in-tree tool is available and we can use it | |
14237 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14239 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14240 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14241 | # We already found the complete path | |
172e41aa | 14242 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14244 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14245 | elif test "x$target" = "x$host"; then |
14246 | # We can use an host tool | |
14247 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14249 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14250 | else |
14251 | # We need a cross tool | |
5213506e RW |
14252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14253 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14254 | fi |
14255 | fi | |
0b0dc272 | 14256 | |
632e2a07 ILT |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14258 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14259 | if test "x${build}" != "x${host}" ; then | |
14260 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14261 | # We already found the complete path | |
14262 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14264 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14265 | else | |
14266 | # Canadian cross, just use what we found | |
14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14268 | $as_echo "pre-installed" >&6; } | |
14269 | fi | |
14270 | else | |
14271 | ok=yes | |
14272 | case " ${configdirs} " in | |
14273 | *" gcc "*) ;; | |
14274 | *) ok=no ;; | |
14275 | esac | |
14276 | case ,${enable_languages}, in | |
14277 | *,go,*) ;; | |
14278 | *) ok=no ;; | |
14279 | esac | |
14280 | if test $ok = yes; then | |
14281 | # An in-tree tool is available and we can use it | |
14282 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14284 | $as_echo "just compiled" >&6; } | |
14285 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14286 | # We already found the complete path | |
14287 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14289 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14290 | elif test "x$target" = "x$host"; then | |
14291 | # We can use an host tool | |
14292 | GOC_FOR_TARGET='$(GOC)' | |
14293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14294 | $as_echo "host tool" >&6; } | |
14295 | else | |
14296 | # We need a cross tool | |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14298 | $as_echo "pre-installed" >&6; } | |
14299 | fi | |
14300 | fi | |
14301 | ||
5213506e RW |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14303 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 14304 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14305 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14306 | # We already found the complete path | |
172e41aa | 14307 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14309 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14310 | else |
14311 | # Canadian cross, just use what we found | |
5213506e RW |
14312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14313 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14314 | fi |
2abefe3d PB |
14315 | else |
14316 | ok=yes | |
14317 | case " ${configdirs} " in | |
14318 | *" ld "*) ;; | |
14319 | *) ok=no ;; | |
14320 | esac | |
1c710c3c | 14321 | |
2abefe3d PB |
14322 | if test $ok = yes; then |
14323 | # An in-tree tool is available and we can use it | |
14324 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14326 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14327 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14328 | # We already found the complete path | |
172e41aa | 14329 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14331 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14332 | elif test "x$target" = "x$host"; then |
14333 | # We can use an host tool | |
14334 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14336 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14337 | else |
14338 | # We need a cross tool | |
5213506e RW |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14340 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14341 | fi |
14342 | fi | |
0b0dc272 | 14343 | |
5213506e RW |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14345 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 14346 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14347 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14348 | # We already found the complete path | |
172e41aa | 14349 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14351 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14352 | else |
14353 | # Canadian cross, just use what we found | |
5213506e RW |
14354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14355 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14356 | fi |
2abefe3d | 14357 | else |
e8b05380 PB |
14358 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14359 | # We already found the complete path | |
172e41aa | 14360 | ac_dir=`dirname $LIPO_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 | 14363 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
14364 | # We can use an host tool |
14365 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14367 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14368 | else |
14369 | # We need a cross tool | |
5213506e RW |
14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14371 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14372 | fi |
14373 | fi | |
0b0dc272 | 14374 | |
5213506e RW |
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14376 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 14377 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14378 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14379 | # We already found the complete path | |
172e41aa | 14380 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14382 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14383 | else |
14384 | # Canadian cross, just use what we found | |
5213506e RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14386 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14387 | fi |
2abefe3d PB |
14388 | else |
14389 | ok=yes | |
14390 | case " ${configdirs} " in | |
14391 | *" binutils "*) ;; | |
14392 | *) ok=no ;; | |
14393 | esac | |
1c710c3c | 14394 | |
2abefe3d PB |
14395 | if test $ok = yes; then |
14396 | # An in-tree tool is available and we can use it | |
14397 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14399 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14400 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14401 | # We already found the complete path | |
172e41aa | 14402 | ac_dir=`dirname $NM_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; } | |
2abefe3d PB |
14405 | elif test "x$target" = "x$host"; then |
14406 | # We can use an host tool | |
14407 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14409 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14410 | else |
14411 | # We need a cross tool | |
5213506e RW |
14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14413 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14414 | fi |
14415 | fi | |
0b0dc272 | 14416 | |
9bccfdf5 AP |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14418 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14419 | if test "x${build}" != "x${host}" ; then | |
14420 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14421 | # We already found the complete path | |
14422 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14424 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14425 | else | |
14426 | # Canadian cross, just use what we found | |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14428 | $as_echo "pre-installed" >&6; } | |
14429 | fi | |
14430 | else | |
14431 | ok=yes | |
14432 | case " ${configdirs} " in | |
14433 | *" binutils "*) ;; | |
14434 | *) ok=no ;; | |
14435 | esac | |
14436 | ||
14437 | if test $ok = yes; then | |
14438 | # An in-tree tool is available and we can use it | |
14439 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14441 | $as_echo "just compiled" >&6; } | |
14442 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14443 | # We already found the complete path | |
14444 | ac_dir=`dirname $OBJCOPY_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 | elif test "x$target" = "x$host"; then | |
14448 | # We can use an host tool | |
ec8fd1c0 | 14449 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14451 | $as_echo "host tool" >&6; } | |
14452 | else | |
14453 | # We need a cross tool | |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14455 | $as_echo "pre-installed" >&6; } | |
14456 | fi | |
14457 | fi | |
14458 | ||
5213506e RW |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14460 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 14461 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14462 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14463 | # We already found the complete path | |
172e41aa | 14464 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14466 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14467 | else |
14468 | # Canadian cross, just use what we found | |
5213506e RW |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14470 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14471 | fi |
2abefe3d PB |
14472 | else |
14473 | ok=yes | |
14474 | case " ${configdirs} " in | |
14475 | *" binutils "*) ;; | |
14476 | *) ok=no ;; | |
14477 | esac | |
1c710c3c | 14478 | |
2abefe3d PB |
14479 | if test $ok = yes; then |
14480 | # An in-tree tool is available and we can use it | |
14481 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14483 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14484 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14485 | # We already found the complete path | |
172e41aa | 14486 | ac_dir=`dirname $OBJDUMP_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; } | |
2abefe3d PB |
14489 | elif test "x$target" = "x$host"; then |
14490 | # We can use an host tool | |
14491 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14493 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14494 | else |
14495 | # We need a cross tool | |
5213506e RW |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14497 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14498 | fi |
14499 | fi | |
0b0dc272 | 14500 | |
5213506e RW |
14501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14502 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 14503 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14504 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14505 | # We already found the complete path | |
172e41aa | 14506 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14508 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14509 | else |
14510 | # Canadian cross, just use what we found | |
5213506e RW |
14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14512 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14513 | fi |
2abefe3d PB |
14514 | else |
14515 | ok=yes | |
14516 | case " ${configdirs} " in | |
14517 | *" binutils "*) ;; | |
14518 | *) ok=no ;; | |
14519 | esac | |
1c710c3c | 14520 | |
2abefe3d PB |
14521 | if test $ok = yes; then |
14522 | # An in-tree tool is available and we can use it | |
14523 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
14524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14525 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14526 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14527 | # We already found the complete path | |
172e41aa | 14528 | ac_dir=`dirname $RANLIB_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; } | |
2abefe3d PB |
14531 | elif test "x$target" = "x$host"; then |
14532 | # We can use an host tool | |
14533 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
14534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14535 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14536 | else |
14537 | # We need a cross tool | |
5213506e RW |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14539 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14540 | fi |
14541 | fi | |
0b0dc272 | 14542 | |
e7a82751 RM |
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14544 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14545 | if test "x${build}" != "x${host}" ; then | |
14546 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14547 | # We already found the complete path | |
14548 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14550 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14551 | else | |
14552 | # Canadian cross, just use what we found | |
14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14554 | $as_echo "pre-installed" >&6; } | |
14555 | fi | |
14556 | else | |
14557 | ok=yes | |
14558 | case " ${configdirs} " in | |
14559 | *" binutils "*) ;; | |
14560 | *) ok=no ;; | |
14561 | esac | |
14562 | ||
14563 | if test $ok = yes; then | |
14564 | # An in-tree tool is available and we can use it | |
14565 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14567 | $as_echo "just compiled" >&6; } | |
14568 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14569 | # We already found the complete path | |
14570 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14572 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14573 | elif test "x$target" = "x$host"; then | |
14574 | # We can use an host tool | |
14575 | READELF_FOR_TARGET='$(READELF)' | |
14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14577 | $as_echo "host tool" >&6; } | |
14578 | else | |
14579 | # We need a cross tool | |
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14581 | $as_echo "pre-installed" >&6; } | |
14582 | fi | |
14583 | fi | |
14584 | ||
5213506e RW |
14585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14586 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 14587 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14588 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14589 | # We already found the complete path | |
172e41aa | 14590 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14592 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14593 | else |
14594 | # Canadian cross, just use what we found | |
5213506e RW |
14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14596 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14597 | fi |
2abefe3d PB |
14598 | else |
14599 | ok=yes | |
14600 | case " ${configdirs} " in | |
14601 | *" binutils "*) ;; | |
14602 | *) ok=no ;; | |
14603 | esac | |
1c710c3c | 14604 | |
2abefe3d PB |
14605 | if test $ok = yes; then |
14606 | # An in-tree tool is available and we can use it | |
455c8f48 | 14607 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
14608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14609 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14610 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14611 | # We already found the complete path | |
172e41aa | 14612 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14614 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14615 | elif test "x$target" = "x$host"; then |
14616 | # We can use an host tool | |
14617 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
14618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14619 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14620 | else |
14621 | # We need a cross tool | |
5213506e RW |
14622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14623 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14624 | fi |
14625 | fi | |
0b0dc272 | 14626 | |
5213506e RW |
14627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14628 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 14629 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14630 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14631 | # We already found the complete path | |
172e41aa | 14632 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14634 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14635 | else |
14636 | # Canadian cross, just use what we found | |
5213506e RW |
14637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14638 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14639 | fi |
2abefe3d PB |
14640 | else |
14641 | ok=yes | |
14642 | case " ${configdirs} " in | |
14643 | *" binutils "*) ;; | |
14644 | *) ok=no ;; | |
14645 | esac | |
1c710c3c | 14646 | |
2abefe3d PB |
14647 | if test $ok = yes; then |
14648 | # An in-tree tool is available and we can use it | |
14649 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14651 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14652 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14653 | # We already found the complete path | |
172e41aa | 14654 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14656 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14657 | elif test "x$target" = "x$host"; then |
14658 | # We can use an host tool | |
14659 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
14660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14661 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14662 | else |
14663 | # We need a cross tool | |
5213506e RW |
14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14665 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 14666 | fi |
671aa708 | 14667 | fi |
be912515 | 14668 | |
5213506e RW |
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14670 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
14671 | if test "x${build}" != "x${host}" ; then |
14672 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14673 | # We already found the complete path | |
14674 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14676 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14677 | else |
14678 | # Canadian cross, just use what we found | |
5213506e RW |
14679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14680 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14681 | fi |
14682 | else | |
14683 | ok=yes | |
14684 | case " ${configdirs} " in | |
14685 | *" binutils "*) ;; | |
14686 | *) ok=no ;; | |
14687 | esac | |
14688 | ||
14689 | if test $ok = yes; then | |
14690 | # An in-tree tool is available and we can use it | |
14691 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14693 | $as_echo "just compiled" >&6; } | |
901119ae KT |
14694 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14695 | # We already found the complete path | |
14696 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14698 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14699 | elif test "x$target" = "x$host"; then |
14700 | # We can use an host tool | |
14701 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14703 | $as_echo "host tool" >&6; } | |
901119ae KT |
14704 | else |
14705 | # We need a cross tool | |
5213506e RW |
14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14707 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14708 | fi |
14709 | fi | |
14710 | ||
be912515 NN |
14711 | |
14712 | ||
2abefe3d | 14713 | |
0b0dc272 | 14714 | |
671aa708 NN |
14715 | # Certain tools may need extra flags. |
14716 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14717 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14718 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14719 | ||
2abefe3d PB |
14720 | # When building target libraries, except in a Canadian cross, we use |
14721 | # the same toolchain as the compiler we just built. | |
14722 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14723 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14724 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14725 | if test $host = $build; then | |
14726 | case " $configdirs " in | |
14727 | *" gcc "*) | |
14728 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14729 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14730 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14731 | ;; | |
14732 | esac | |
14733 | fi | |
14734 | ||
14735 | ||
14736 | ||
14737 | ||
14738 | ||
5213506e RW |
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14740 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14741 | # Check whether --enable-maintainer-mode was given. | |
14742 | if test "${enable_maintainer_mode+set}" = set; then : | |
14743 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
14744 | else |
14745 | USE_MAINTAINER_MODE=no | |
5213506e RW |
14746 | fi |
14747 | ||
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14749 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
14750 | |
14751 | ||
14752 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14753 | MAINTAINER_MODE_TRUE= | |
14754 | MAINTAINER_MODE_FALSE='#' | |
14755 | else | |
14756 | MAINTAINER_MODE_TRUE='#' | |
14757 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 14758 | fi |
ee03dc5e AO |
14759 | MAINT=$MAINTAINER_MODE_TRUE |
14760 | ||
2805b53a NN |
14761 | # --------------------- |
14762 | # GCC bootstrap support | |
14763 | # --------------------- | |
14764 | ||
14765 | # Stage specific cflags for build. | |
14766 | stage1_cflags="-g" | |
14767 | case $build in | |
14768 | vax-*-*) | |
14769 | case ${GCC} in | |
14770 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14771 | *) stage1_cflags="-g -J" ;; | |
14772 | esac ;; | |
2805b53a NN |
14773 | esac |
14774 | ||
0b50988a | 14775 | |
2805b53a | 14776 | |
8efea775 | 14777 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
14778 | # Check whether --enable-stage1-checking was given. |
14779 | if test "${enable_stage1_checking+set}" = set; then : | |
14780 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 14781 | else |
e643dc23 | 14782 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
14783 | # For --disable-checking or implicit --enable-checking=release, avoid |
14784 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14785 | # bootstraps. See PR62077. | |
14786 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types | |
14787 | case $BUILD_CONFIG in | |
14788 | *lto*) | |
14789 | if test "x$enable_checking" = x && \ | |
14790 | test -d ${srcdir}/gcc && \ | |
14791 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14792 | stage1_checking=--enable-checking=yes,types | |
14793 | fi;; | |
14794 | *) stage1_checking=--enable-checking=yes,types;; | |
14795 | esac | |
8efea775 | 14796 | else |
e643dc23 | 14797 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 14798 | fi |
5213506e | 14799 | fi |
8efea775 PB |
14800 | |
14801 | ||
2aeb72e9 | 14802 | |
5213506e RW |
14803 | # Enable -Werror in bootstrap stage2 and later. |
14804 | # Check whether --enable-werror was given. | |
14805 | if test "${enable_werror+set}" = set; then : | |
14806 | enableval=$enable_werror; | |
2805b53a | 14807 | else |
416cfb5e | 14808 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 14809 | enable_werror=yes |
88fceb68 PB |
14810 | else |
14811 | enable_werror=no | |
14812 | fi | |
5213506e RW |
14813 | fi |
14814 | ||
09a9c095 NN |
14815 | case ${enable_werror} in |
14816 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14817 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
14818 | esac |
14819 | ||
14820 | ||
459260ec DM |
14821 | # Enable --enable-host-shared. |
14822 | # Check whether --enable-host-shared was given. | |
14823 | if test "${enable_host_shared+set}" = set; then : | |
14824 | enableval=$enable_host_shared; host_shared=$enableval | |
14825 | else | |
14826 | host_shared=no | |
14827 | fi | |
14828 | ||
14829 | ||
14830 | ||
231d020b DM |
14831 | # PR jit/64780: Require the user to explicitly specify |
14832 | # --enable-host-shared if the jit is enabled, hinting | |
14833 | # that they might want to do a separate configure/build of | |
14834 | # the jit, to avoid users from slowing down the rest of the | |
14835 | # compiler by enabling the jit. | |
14836 | if test ${host_shared} = "no" ; then | |
14837 | case "${enable_languages}" in | |
14838 | *jit*) | |
14839 | as_fn_error " | |
14840 | Enabling language \"jit\" requires --enable-host-shared. | |
14841 | ||
14842 | --enable-host-shared typically slows the rest of the compiler down by | |
14843 | a few %, so you must explicitly enable it. | |
14844 | ||
14845 | If you want to build both the jit and the regular compiler, it is often | |
14846 | best to do this via two separate configure/builds, in separate | |
14847 | directories, to avoid imposing the performance cost of | |
14848 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14849 | ;; | |
14850 | *) | |
14851 | ;; | |
14852 | esac | |
14853 | fi | |
14854 | ||
f2689b09 SE |
14855 | # Specify what files to not compare during bootstrap. |
14856 | ||
14857 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14858 | case "$target" in | |
14859 | hppa*64*-*-hpux*) ;; | |
14860 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
d91491e5 | 14861 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
f2689b09 SE |
14862 | esac |
14863 | ||
14864 | ||
5213506e RW |
14865 | ac_config_files="$ac_config_files Makefile" |
14866 | ||
1c710c3c | 14867 | cat >confcache <<\_ACEOF |
671aa708 NN |
14868 | # This file is a shell script that caches the results of configure |
14869 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
14870 | # scripts and configure runs, see configure's option --config-cache. |
14871 | # It is not useful on other systems. If it contains results you don't | |
14872 | # want to keep, you may remove or edit it. | |
671aa708 | 14873 | # |
1c710c3c DJ |
14874 | # config.status only pays attention to the cache file if you give it |
14875 | # the --recheck option to rerun configure. | |
671aa708 | 14876 | # |
1c710c3c DJ |
14877 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14878 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14879 | # following values. | |
14880 | ||
14881 | _ACEOF | |
14882 | ||
671aa708 NN |
14883 | # The following way of writing the cache mishandles newlines in values, |
14884 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 14885 | # So, we kill variables containing newlines. |
671aa708 NN |
14886 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14887 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
14888 | ( |
14889 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14890 | eval ac_val=\$$ac_var | |
14891 | case $ac_val in #( | |
14892 | *${as_nl}*) | |
14893 | case $ac_var in #( | |
14894 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14895 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14896 | esac | |
14897 | case $ac_var in #( | |
14898 | _ | IFS | as_nl) ;; #( | |
14899 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14900 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14901 | esac ;; | |
14902 | esac | |
14903 | done | |
14904 | ||
1c710c3c | 14905 | (set) 2>&1 | |
5213506e RW |
14906 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14907 | *${as_nl}ac_space=\ *) | |
14908 | # `set' does not quote correctly, so add quotes: double-quote | |
14909 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
14910 | sed -n \ |
14911 | "s/'/'\\\\''/g; | |
14912 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 14913 | ;; #( |
1c710c3c DJ |
14914 | *) |
14915 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 14916 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 14917 | ;; |
5213506e RW |
14918 | esac | |
14919 | sort | |
14920 | ) | | |
1c710c3c | 14921 | sed ' |
5213506e | 14922 | /^ac_cv_env_/b end |
1c710c3c | 14923 | t clear |
5213506e | 14924 | :clear |
1c710c3c DJ |
14925 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14926 | t end | |
5213506e RW |
14927 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14928 | :end' >>confcache | |
14929 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14930 | if test -w "$cache_file"; then | |
14931 | test "x$cache_file" != "x/dev/null" && | |
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14933 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 14934 | cat confcache >$cache_file |
671aa708 | 14935 | else |
5213506e RW |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14937 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 14938 | fi |
4977bab6 | 14939 | fi |
671aa708 | 14940 | rm -f confcache |
79c06341 | 14941 | |
671aa708 NN |
14942 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14943 | # Let make expand exec_prefix. | |
14944 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 14945 | |
671aa708 NN |
14946 | # Transform confdefs.h into DEFS. |
14947 | # Protect against shell expansion while executing Makefile rules. | |
14948 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
14949 | # |
14950 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 14951 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 14952 | # look for a macro that doesn't take arguments. |
5213506e RW |
14953 | ac_script=' |
14954 | :mline | |
14955 | /\\$/{ | |
14956 | N | |
14957 | s,\\\n,, | |
14958 | b mline | |
14959 | } | |
1c710c3c | 14960 | t clear |
5213506e RW |
14961 | :clear |
14962 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 14963 | t quote |
5213506e | 14964 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 14965 | t quote |
5213506e RW |
14966 | b any |
14967 | :quote | |
14968 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14969 | s/\[/\\&/g | |
14970 | s/\]/\\&/g | |
14971 | s/\$/$$/g | |
14972 | H | |
14973 | :any | |
14974 | ${ | |
14975 | g | |
14976 | s/^\n// | |
14977 | s/\n/ /g | |
14978 | p | |
14979 | } | |
14980 | ' | |
14981 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
14982 | |
14983 | ||
14984 | ac_libobjs= | |
14985 | ac_ltlibobjs= | |
14986 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14987 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
14988 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14989 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14990 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14991 | # will be set to the directory where LIBOBJS objects are built. | |
14992 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14993 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
14994 | done |
14995 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 14996 | |
1c710c3c | 14997 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 14998 | |
af71363e | 14999 | |
1c710c3c DJ |
15000 | |
15001 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 15002 | ac_write_fail=0 |
1c710c3c DJ |
15003 | ac_clean_files_save=$ac_clean_files |
15004 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15006 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15007 | as_write_fail=0 | |
15008 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
15009 | #! $SHELL |
15010 | # Generated by $as_me. | |
671aa708 | 15011 | # Run this file to recreate the current configuration. |
671aa708 | 15012 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 15013 | # configure, is in config.log if it exists. |
0b0dc272 | 15014 | |
1c710c3c DJ |
15015 | debug=false |
15016 | ac_cs_recheck=false | |
15017 | ac_cs_silent=false | |
1c710c3c | 15018 | |
5213506e RW |
15019 | SHELL=\${CONFIG_SHELL-$SHELL} |
15020 | export SHELL | |
15021 | _ASEOF | |
15022 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15023 | ## -------------------- ## | |
15024 | ## M4sh Initialization. ## | |
15025 | ## -------------------- ## | |
15026 | ||
15027 | # Be more Bourne compatible | |
15028 | DUALCASE=1; export DUALCASE # for MKS sh | |
15029 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
15030 | emulate sh |
15031 | NULLCMD=: | |
5213506e | 15032 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
15033 | # is contrary to our usage. Disable this feature. |
15034 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
15035 | setopt NO_GLOB_SUBST |
15036 | else | |
15037 | case `(set -o) 2>/dev/null` in #( | |
15038 | *posix*) : | |
15039 | set -o posix ;; #( | |
15040 | *) : | |
15041 | ;; | |
15042 | esac | |
1c710c3c | 15043 | fi |
1c710c3c | 15044 | |
5213506e RW |
15045 | |
15046 | as_nl=' | |
15047 | ' | |
15048 | export as_nl | |
15049 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15050 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15051 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15052 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15053 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15054 | # but without wasting forks for bash or zsh. | |
15055 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15056 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15057 | as_echo='print -r --' | |
15058 | as_echo_n='print -rn --' | |
15059 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15060 | as_echo='printf %s\n' | |
15061 | as_echo_n='printf %s' | |
15062 | else | |
15063 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15064 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15065 | as_echo_n='/usr/ucb/echo -n' | |
15066 | else | |
15067 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15068 | as_echo_n_body='eval | |
15069 | arg=$1; | |
15070 | case $arg in #( | |
15071 | *"$as_nl"*) | |
15072 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15073 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15074 | esac; | |
15075 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15076 | ' | |
15077 | export as_echo_n_body | |
15078 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15079 | fi | |
15080 | export as_echo_body | |
15081 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
15082 | fi |
15083 | ||
5213506e RW |
15084 | # The user is always right. |
15085 | if test "${PATH_SEPARATOR+set}" != set; then | |
15086 | PATH_SEPARATOR=: | |
15087 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15088 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15089 | PATH_SEPARATOR=';' | |
15090 | } | |
15091 | fi | |
15092 | ||
15093 | ||
15094 | # IFS | |
15095 | # We need space, tab and new line, in precisely that order. Quoting is | |
15096 | # there to prevent editors from complaining about space-tab. | |
15097 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15098 | # splitting by setting IFS to empty value.) | |
15099 | IFS=" "" $as_nl" | |
15100 | ||
15101 | # Find who we are. Look in the path if we contain no directory separator. | |
15102 | case $0 in #(( | |
15103 | *[\\/]* ) as_myself=$0 ;; | |
15104 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15105 | for as_dir in $PATH | |
15106 | do | |
15107 | IFS=$as_save_IFS | |
15108 | test -z "$as_dir" && as_dir=. | |
15109 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15110 | done | |
15111 | IFS=$as_save_IFS | |
15112 | ||
15113 | ;; | |
15114 | esac | |
15115 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15116 | # in which case we are not to be found in the path. | |
15117 | if test "x$as_myself" = x; then | |
15118 | as_myself=$0 | |
15119 | fi | |
15120 | if test ! -f "$as_myself"; then | |
15121 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15122 | exit 1 | |
15123 | fi | |
1c710c3c | 15124 | |
5213506e RW |
15125 | # Unset variables that we do not need and which cause bugs (e.g. in |
15126 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15127 | # suppresses any "Segmentation fault" message there. '((' could | |
15128 | # trigger a bug in pdksh 5.2.14. | |
15129 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15130 | do eval test x\${$as_var+set} = xset \ | |
15131 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15132 | done | |
1c710c3c DJ |
15133 | PS1='$ ' |
15134 | PS2='> ' | |
15135 | PS4='+ ' | |
15136 | ||
15137 | # NLS nuisances. | |
5213506e RW |
15138 | LC_ALL=C |
15139 | export LC_ALL | |
15140 | LANGUAGE=C | |
15141 | export LANGUAGE | |
15142 | ||
15143 | # CDPATH. | |
15144 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15145 | ||
15146 | ||
15147 | # as_fn_error ERROR [LINENO LOG_FD] | |
15148 | # --------------------------------- | |
15149 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15150 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15151 | # script with status $?, using 1 if that was 0. | |
15152 | as_fn_error () | |
15153 | { | |
15154 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15155 | if test "$3"; then | |
15156 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15157 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1c710c3c | 15158 | fi |
5213506e RW |
15159 | $as_echo "$as_me: error: $1" >&2 |
15160 | as_fn_exit $as_status | |
15161 | } # as_fn_error | |
15162 | ||
15163 | ||
15164 | # as_fn_set_status STATUS | |
15165 | # ----------------------- | |
15166 | # Set $? to STATUS, without forking. | |
15167 | as_fn_set_status () | |
15168 | { | |
15169 | return $1 | |
15170 | } # as_fn_set_status | |
15171 | ||
15172 | # as_fn_exit STATUS | |
15173 | # ----------------- | |
15174 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15175 | as_fn_exit () | |
15176 | { | |
15177 | set +e | |
15178 | as_fn_set_status $1 | |
15179 | exit $1 | |
15180 | } # as_fn_exit | |
15181 | ||
15182 | # as_fn_unset VAR | |
15183 | # --------------- | |
15184 | # Portably unset VAR. | |
15185 | as_fn_unset () | |
15186 | { | |
15187 | { eval $1=; unset $1;} | |
15188 | } | |
15189 | as_unset=as_fn_unset | |
15190 | # as_fn_append VAR VALUE | |
15191 | # ---------------------- | |
15192 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15193 | # advantage of any shell optimizations that allow amortized linear growth over | |
15194 | # repeated appends, instead of the typical quadratic growth present in naive | |
15195 | # implementations. | |
15196 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15197 | eval 'as_fn_append () | |
15198 | { | |
15199 | eval $1+=\$2 | |
15200 | }' | |
15201 | else | |
15202 | as_fn_append () | |
15203 | { | |
15204 | eval $1=\$$1\$2 | |
15205 | } | |
15206 | fi # as_fn_append | |
15207 | ||
15208 | # as_fn_arith ARG... | |
15209 | # ------------------ | |
15210 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15211 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15212 | # must be portable across $(()) and expr. | |
15213 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15214 | eval 'as_fn_arith () | |
15215 | { | |
15216 | as_val=$(( $* )) | |
15217 | }' | |
15218 | else | |
15219 | as_fn_arith () | |
15220 | { | |
15221 | as_val=`expr "$@" || test $? -eq 1` | |
15222 | } | |
15223 | fi # as_fn_arith | |
15224 | ||
1c710c3c | 15225 | |
5213506e RW |
15226 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15227 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
15228 | as_expr=expr |
15229 | else | |
15230 | as_expr=false | |
15231 | fi | |
15232 | ||
5213506e | 15233 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
15234 | as_basename=basename |
15235 | else | |
15236 | as_basename=false | |
15237 | fi | |
15238 | ||
5213506e RW |
15239 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15240 | as_dirname=dirname | |
15241 | else | |
15242 | as_dirname=false | |
15243 | fi | |
1c710c3c | 15244 | |
5213506e | 15245 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
15246 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15247 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
15248 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15249 | $as_echo X/"$0" | | |
15250 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15251 | s//\1/ | |
15252 | q | |
15253 | } | |
15254 | /^X\/\(\/\/\)$/{ | |
15255 | s//\1/ | |
15256 | q | |
15257 | } | |
15258 | /^X\/\(\/\).*/{ | |
15259 | s//\1/ | |
15260 | q | |
15261 | } | |
15262 | s/.*/./; q'` | |
2aeb72e9 | 15263 | |
2aeb72e9 DD |
15264 | # Avoid depending upon Character Ranges. |
15265 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15266 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15267 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15268 | as_cr_digits='0123456789' | |
15269 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15270 | ||
5213506e RW |
15271 | ECHO_C= ECHO_N= ECHO_T= |
15272 | case `echo -n x` in #((((( | |
15273 | -n*) | |
15274 | case `echo 'xy\c'` in | |
15275 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15276 | xy) ECHO_C='\c';; | |
15277 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15278 | ECHO_T=' ';; | |
15279 | esac;; | |
15280 | *) | |
15281 | ECHO_N='-n';; | |
1c710c3c DJ |
15282 | esac |
15283 | ||
5213506e RW |
15284 | rm -f conf$$ conf$$.exe conf$$.file |
15285 | if test -d conf$$.dir; then | |
15286 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 15287 | else |
5213506e RW |
15288 | rm -f conf$$.dir |
15289 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 15290 | fi |
5213506e RW |
15291 | if (echo >conf$$.file) 2>/dev/null; then |
15292 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 15293 | as_ln_s='ln -s' |
5213506e RW |
15294 | # ... but there are two gotchas: |
15295 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15296 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15297 | # In both cases, we have to default to `cp -p'. | |
15298 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15299 | as_ln_s='cp -p' | |
15300 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15301 | as_ln_s=ln | |
15302 | else | |
15303 | as_ln_s='cp -p' | |
2aeb72e9 | 15304 | fi |
1c710c3c DJ |
15305 | else |
15306 | as_ln_s='cp -p' | |
15307 | fi | |
5213506e RW |
15308 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15309 | rmdir conf$$.dir 2>/dev/null | |
15310 | ||
15311 | ||
15312 | # as_fn_mkdir_p | |
15313 | # ------------- | |
15314 | # Create "$as_dir" as a directory, including parents if necessary. | |
15315 | as_fn_mkdir_p () | |
15316 | { | |
15317 | ||
15318 | case $as_dir in #( | |
15319 | -*) as_dir=./$as_dir;; | |
15320 | esac | |
15321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15322 | as_dirs= | |
15323 | while :; do | |
15324 | case $as_dir in #( | |
15325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15326 | *) as_qdir=$as_dir;; | |
15327 | esac | |
15328 | as_dirs="'$as_qdir' $as_dirs" | |
15329 | as_dir=`$as_dirname -- "$as_dir" || | |
15330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15332 | X"$as_dir" : 'X\(//\)$' \| \ | |
15333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15334 | $as_echo X"$as_dir" | | |
15335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15336 | s//\1/ | |
15337 | q | |
15338 | } | |
15339 | /^X\(\/\/\)[^/].*/{ | |
15340 | s//\1/ | |
15341 | q | |
15342 | } | |
15343 | /^X\(\/\/\)$/{ | |
15344 | s//\1/ | |
15345 | q | |
15346 | } | |
15347 | /^X\(\/\).*/{ | |
15348 | s//\1/ | |
15349 | q | |
15350 | } | |
15351 | s/.*/./; q'` | |
15352 | test -d "$as_dir" && break | |
15353 | done | |
15354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15355 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15356 | ||
1c710c3c | 15357 | |
5213506e | 15358 | } # as_fn_mkdir_p |
1c710c3c | 15359 | if mkdir -p . 2>/dev/null; then |
5213506e | 15360 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
15361 | else |
15362 | test -d ./-p && rmdir ./-p | |
15363 | as_mkdir_p=false | |
15364 | fi | |
15365 | ||
5213506e RW |
15366 | if test -x / >/dev/null 2>&1; then |
15367 | as_test_x='test -x' | |
15368 | else | |
15369 | if ls -dL / >/dev/null 2>&1; then | |
15370 | as_ls_L_option=L | |
15371 | else | |
15372 | as_ls_L_option= | |
15373 | fi | |
15374 | as_test_x=' | |
15375 | eval sh -c '\'' | |
15376 | if test -d "$1"; then | |
15377 | test -d "$1/."; | |
15378 | else | |
15379 | case $1 in #( | |
15380 | -*)set "./$1";; | |
15381 | esac; | |
15382 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15383 | ???[sx]*):;;*)false;;esac;fi | |
15384 | '\'' sh | |
15385 | ' | |
15386 | fi | |
15387 | as_executable_p=$as_test_x | |
1c710c3c DJ |
15388 | |
15389 | # Sed expression to map a string onto a valid CPP name. | |
15390 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15391 | ||
15392 | # Sed expression to map a string onto a valid variable name. | |
15393 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15394 | ||
15395 | ||
1c710c3c | 15396 | exec 6>&1 |
5213506e RW |
15397 | ## ----------------------------------- ## |
15398 | ## Main body of $CONFIG_STATUS script. ## | |
15399 | ## ----------------------------------- ## | |
15400 | _ASEOF | |
15401 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15402 | ||
15403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15404 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 15405 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
15406 | # values after options handling. |
15407 | ac_log=" | |
1c710c3c | 15408 | This file was extended by $as_me, which was |
5213506e | 15409 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
15410 | |
15411 | CONFIG_FILES = $CONFIG_FILES | |
15412 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15413 | CONFIG_LINKS = $CONFIG_LINKS | |
15414 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15415 | $ $0 $@ | |
15416 | ||
5213506e RW |
15417 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15418 | " | |
15419 | ||
1c710c3c DJ |
15420 | _ACEOF |
15421 | ||
5213506e RW |
15422 | case $ac_config_files in *" |
15423 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15424 | esac | |
1c710c3c | 15425 | |
2aeb72e9 | 15426 | |
2aeb72e9 | 15427 | |
5213506e RW |
15428 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15429 | # Files that config.status was made for. | |
15430 | config_files="$ac_config_files" | |
1c710c3c | 15431 | |
5213506e | 15432 | _ACEOF |
2aeb72e9 | 15433 | |
5213506e | 15434 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 15435 | ac_cs_usage="\ |
5213506e RW |
15436 | \`$as_me' instantiates files and other configuration actions |
15437 | from templates according to the current configuration. Unless the files | |
15438 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 15439 | |
5213506e | 15440 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
15441 | |
15442 | -h, --help print this help, then exit | |
5213506e RW |
15443 | -V, --version print version number and configuration settings, then exit |
15444 | -q, --quiet, --silent | |
15445 | do not print progress messages | |
1c710c3c DJ |
15446 | -d, --debug don't remove temporary files |
15447 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
15448 | --file=FILE[:TEMPLATE] |
15449 | instantiate the configuration file FILE | |
1c710c3c DJ |
15450 | |
15451 | Configuration files: | |
15452 | $config_files | |
15453 | ||
5213506e | 15454 | Report bugs to the package provider." |
2aeb72e9 | 15455 | |
5213506e RW |
15456 | _ACEOF |
15457 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1c710c3c DJ |
15458 | ac_cs_version="\\ |
15459 | config.status | |
5213506e RW |
15460 | configured by $0, generated by GNU Autoconf 2.64, |
15461 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 15462 | |
5213506e | 15463 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
15464 | This config.status script is free software; the Free Software Foundation |
15465 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
15466 | |
15467 | ac_pwd='$ac_pwd' | |
15468 | srcdir='$srcdir' | |
15469 | INSTALL='$INSTALL' | |
87264276 | 15470 | AWK='$AWK' |
5213506e | 15471 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
15472 | _ACEOF |
15473 | ||
5213506e RW |
15474 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15475 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
15476 | ac_need_defaults=: |
15477 | while test $# != 0 | |
a4b9e93e | 15478 | do |
1c710c3c DJ |
15479 | case $1 in |
15480 | --*=*) | |
5213506e RW |
15481 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15482 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
15483 | ac_shift=: |
15484 | ;; | |
5213506e | 15485 | *) |
1c710c3c DJ |
15486 | ac_option=$1 |
15487 | ac_optarg=$2 | |
15488 | ac_shift=shift | |
15489 | ;; | |
1c710c3c DJ |
15490 | esac |
15491 | ||
15492 | case $ac_option in | |
15493 | # Handling of the options. | |
671aa708 | 15494 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 15495 | ac_cs_recheck=: ;; |
5213506e RW |
15496 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15497 | $as_echo "$ac_cs_version"; exit ;; | |
15498 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
15499 | debug=: ;; |
15500 | --file | --fil | --fi | --f ) | |
15501 | $ac_shift | |
5213506e RW |
15502 | case $ac_optarg in |
15503 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15504 | esac | |
15505 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 15506 | ac_need_defaults=false;; |
5213506e RW |
15507 | --he | --h | --help | --hel | -h ) |
15508 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
15509 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15510 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15511 | ac_cs_silent=: ;; | |
15512 | ||
15513 | # This is an error. | |
5213506e RW |
15514 | -*) as_fn_error "unrecognized option: \`$1' |
15515 | Try \`$0 --help' for more information." ;; | |
1c710c3c | 15516 | |
5213506e RW |
15517 | *) as_fn_append ac_config_targets " $1" |
15518 | ac_need_defaults=false ;; | |
1c710c3c | 15519 | |
0b0dc272 | 15520 | esac |
1c710c3c | 15521 | shift |
0b0dc272 AM |
15522 | done |
15523 | ||
1c710c3c | 15524 | ac_configure_extra_args= |
0b0dc272 | 15525 | |
1c710c3c DJ |
15526 | if $ac_cs_silent; then |
15527 | exec 6>/dev/null | |
15528 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15529 | fi | |
0b0dc272 | 15530 | |
1c710c3c | 15531 | _ACEOF |
5213506e | 15532 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 15533 | if \$ac_cs_recheck; then |
5213506e RW |
15534 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15535 | shift | |
15536 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15537 | CONFIG_SHELL='$SHELL' | |
15538 | export CONFIG_SHELL | |
15539 | exec "\$@" | |
1c710c3c DJ |
15540 | fi |
15541 | ||
15542 | _ACEOF | |
5213506e RW |
15543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15544 | exec 5>>config.log | |
15545 | { | |
15546 | echo | |
15547 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15548 | ## Running $as_me. ## | |
15549 | _ASBOX | |
15550 | $as_echo "$ac_log" | |
15551 | } >&5 | |
1c710c3c | 15552 | |
5213506e RW |
15553 | _ACEOF |
15554 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
15555 | # |
15556 | # INIT-COMMANDS | |
15557 | # | |
15558 | extrasub_build="$extrasub_build" | |
15559 | extrasub_host="$extrasub_host" | |
15560 | extrasub_target="$extrasub_target" | |
15561 | ||
5213506e | 15562 | _ACEOF |
1c710c3c | 15563 | |
5213506e | 15564 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 15565 | |
5213506e | 15566 | # Handling of arguments. |
1c710c3c DJ |
15567 | for ac_config_target in $ac_config_targets |
15568 | do | |
5213506e RW |
15569 | case $ac_config_target in |
15570 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15571 | ||
15572 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1c710c3c DJ |
15573 | esac |
15574 | done | |
15575 | ||
5213506e | 15576 | |
1c710c3c DJ |
15577 | # If the user did not use the arguments to specify the items to instantiate, |
15578 | # then the envvar interface is used. Set only those that are not. | |
15579 | # We use the long form for the default assignment because of an extremely | |
15580 | # bizarre bug on SunOS 4.1.3. | |
15581 | if $ac_need_defaults; then | |
15582 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15583 | fi | |
15584 | ||
15585 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 15586 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 15587 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
15588 | # Hook for its removal unless debugging. |
15589 | # Note that there is a small window in which the directory will not be cleaned: | |
15590 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
15591 | $debug || |
15592 | { | |
5213506e RW |
15593 | tmp= |
15594 | trap 'exit_status=$? | |
15595 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15596 | ' 0 | |
15597 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 15598 | } |
1c710c3c DJ |
15599 | # Create a (secure) tmp directory for tmp files. |
15600 | ||
15601 | { | |
5213506e | 15602 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
15603 | test -n "$tmp" && test -d "$tmp" |
15604 | } || | |
15605 | { | |
5213506e RW |
15606 | tmp=./conf$$-$RANDOM |
15607 | (umask 077 && mkdir "$tmp") | |
15608 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15609 | ||
15610 | # Set up the scripts for CONFIG_FILES section. | |
15611 | # No need to generate them if there are no CONFIG_FILES. | |
15612 | # This happens for instance with `./config.status config.h'. | |
15613 | if test -n "$CONFIG_FILES"; then | |
15614 | ||
15615 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15616 | ac_cs_awk_getline=: | |
15617 | ac_cs_awk_pipe_init= | |
15618 | ac_cs_awk_read_file=' | |
15619 | while ((getline aline < (F[key])) > 0) | |
15620 | print(aline) | |
15621 | close(F[key])' | |
15622 | ac_cs_awk_pipe_fini= | |
15623 | else | |
15624 | ac_cs_awk_getline=false | |
15625 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15626 | ac_cs_awk_read_file=' | |
15627 | print "|#_!!_#|" | |
15628 | print "cat " F[key] " &&" | |
15629 | '$ac_cs_awk_pipe_init | |
15630 | # The final `:' finishes the AND list. | |
15631 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15632 | fi | |
15633 | ac_cr=`echo X | tr X '\015'` | |
15634 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15635 | # But we know of no other shell where ac_cr would be empty at this | |
15636 | # point, so we can use a bashism as a fallback. | |
15637 | if test "x$ac_cr" = x; then | |
15638 | eval ac_cr=\$\'\\r\' | |
15639 | fi | |
15640 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15641 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15642 | ac_cs_awk_cr='\r' | |
15643 | else | |
15644 | ac_cs_awk_cr=$ac_cr | |
15645 | fi | |
15646 | ||
15647 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15648 | _ACEOF | |
15649 | ||
15650 | # Create commands to substitute file output variables. | |
1c710c3c | 15651 | { |
5213506e RW |
15652 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15653 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15654 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15655 | echo "_ACAWK" && | |
15656 | echo "_ACEOF" | |
15657 | } >conf$$files.sh && | |
15658 | . ./conf$$files.sh || | |
15659 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15660 | rm -f conf$$files.sh | |
1c710c3c | 15661 | |
5213506e RW |
15662 | { |
15663 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15664 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15665 | echo "_ACEOF" | |
15666 | } >conf$$subs.sh || | |
15667 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15668 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15669 | ac_delim='%!_!# ' | |
15670 | for ac_last_try in false false false false false :; do | |
15671 | . ./conf$$subs.sh || | |
15672 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15673 | ||
15674 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15675 | if test $ac_delim_n = $ac_delim_num; then | |
15676 | break | |
15677 | elif $ac_last_try; then | |
15678 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15679 | else | |
15680 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15681 | fi | |
15682 | done | |
15683 | rm -f conf$$subs.sh | |
15684 | ||
15685 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15686 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
2aeb72e9 | 15687 | _ACEOF |
5213506e RW |
15688 | sed -n ' |
15689 | h | |
15690 | s/^/S["/; s/!.*/"]=/ | |
15691 | p | |
15692 | g | |
15693 | s/^[^!]*!// | |
15694 | :repl | |
15695 | t repl | |
15696 | s/'"$ac_delim"'$// | |
15697 | t delim | |
15698 | :nl | |
15699 | h | |
15700 | s/\(.\{148\}\).*/\1/ | |
15701 | t more1 | |
15702 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15703 | p | |
15704 | n | |
15705 | b repl | |
15706 | :more1 | |
15707 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15708 | p | |
15709 | g | |
15710 | s/.\{148\}// | |
15711 | t nl | |
15712 | :delim | |
15713 | h | |
15714 | s/\(.\{148\}\).*/\1/ | |
15715 | t more2 | |
15716 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15717 | p | |
15718 | b | |
15719 | :more2 | |
15720 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15721 | p | |
15722 | g | |
15723 | s/.\{148\}// | |
15724 | t delim | |
15725 | ' <conf$$subs.awk | sed ' | |
15726 | /^[^""]/{ | |
15727 | N | |
15728 | s/\n// | |
15729 | } | |
15730 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15731 | rm -f conf$$subs.awk | |
15732 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15733 | _ACAWK | |
15734 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15735 | for (key in S) S_is_set[key] = 1 | |
15736 | FS = "\a" | |
15737 | \$ac_cs_awk_pipe_init | |
15738 | } | |
15739 | { | |
15740 | line = $ 0 | |
15741 | nfields = split(line, field, "@") | |
15742 | substed = 0 | |
15743 | len = length(field[1]) | |
15744 | for (i = 2; i < nfields; i++) { | |
15745 | key = field[i] | |
15746 | keylen = length(key) | |
15747 | if (S_is_set[key]) { | |
15748 | value = S[key] | |
15749 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15750 | len += length(value) + length(field[++i]) | |
15751 | substed = 1 | |
15752 | } else | |
15753 | len += 1 + keylen | |
15754 | } | |
15755 | if (nfields == 3 && !substed) { | |
15756 | key = field[2] | |
15757 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15758 | \$ac_cs_awk_read_file | |
15759 | next | |
15760 | } | |
15761 | } | |
15762 | print line | |
15763 | } | |
15764 | \$ac_cs_awk_pipe_fini | |
15765 | _ACAWK | |
15766 | _ACEOF | |
15767 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15768 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15769 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15770 | else | |
15771 | cat | |
15772 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15773 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15774 | _ACEOF | |
15775 | ||
15776 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15777 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15778 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15779 | # (actually we leave an empty line to preserve line numbers). | |
15780 | if test "x$srcdir" = x.; then | |
15781 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15782 | s/:*\$(srcdir):*/:/ | |
15783 | s/:*\${srcdir}:*/:/ | |
15784 | s/:*@srcdir@:*/:/ | |
15785 | s/^\([^=]*=[ ]*\):*/\1/ | |
15786 | s/:*$// | |
15787 | s/^[^=]*=[ ]*$// | |
15788 | }' | |
15789 | fi | |
2aeb72e9 | 15790 | |
5213506e RW |
15791 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15792 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 15793 | |
1c710c3c | 15794 | |
5213506e RW |
15795 | eval set X " :F $CONFIG_FILES " |
15796 | shift | |
15797 | for ac_tag | |
15798 | do | |
15799 | case $ac_tag in | |
15800 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15801 | esac | |
15802 | case $ac_mode$ac_tag in | |
15803 | :[FHL]*:*);; | |
15804 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15805 | :[FH]-) ac_tag=-:-;; | |
15806 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15807 | esac | |
15808 | ac_save_IFS=$IFS | |
15809 | IFS=: | |
15810 | set x $ac_tag | |
15811 | IFS=$ac_save_IFS | |
15812 | shift | |
15813 | ac_file=$1 | |
15814 | shift | |
79c06341 | 15815 | |
5213506e RW |
15816 | case $ac_mode in |
15817 | :L) ac_source=$1;; | |
15818 | :[FH]) | |
15819 | ac_file_inputs= | |
15820 | for ac_f | |
15821 | do | |
15822 | case $ac_f in | |
15823 | -) ac_f="$tmp/stdin";; | |
15824 | *) # Look for the file first in the build tree, then in the source tree | |
15825 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15826 | # because $ac_f cannot contain `:'. | |
15827 | test -f "$ac_f" || | |
15828 | case $ac_f in | |
15829 | [\\/$]*) false;; | |
15830 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15831 | esac || | |
15832 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15833 | esac | |
15834 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15835 | as_fn_append ac_file_inputs " '$ac_f'" | |
15836 | done | |
1c710c3c | 15837 | |
5213506e RW |
15838 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15839 | # use $as_me), people would be surprised to read: | |
15840 | # /* config.h. Generated by config.status. */ | |
15841 | configure_input='Generated from '` | |
15842 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15843 | `' by configure.' | |
15844 | if test x"$ac_file" != x-; then | |
15845 | configure_input="$ac_file. $configure_input" | |
15846 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15847 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 15848 | fi |
5213506e RW |
15849 | # Neutralize special characters interpreted by sed in replacement strings. |
15850 | case $configure_input in #( | |
15851 | *\&* | *\|* | *\\* ) | |
15852 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15853 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15854 | *) ac_sed_conf_input=$configure_input;; | |
15855 | esac | |
11a67599 | 15856 | |
5213506e RW |
15857 | case $ac_tag in |
15858 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15859 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15860 | esac | |
15861 | ;; | |
11a67599 ZW |
15862 | esac |
15863 | ||
5213506e | 15864 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
15865 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15866 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15867 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
15868 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15869 | $as_echo X"$ac_file" | | |
15870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15871 | s//\1/ | |
15872 | q | |
15873 | } | |
15874 | /^X\(\/\/\)[^/].*/{ | |
15875 | s//\1/ | |
15876 | q | |
15877 | } | |
15878 | /^X\(\/\/\)$/{ | |
15879 | s//\1/ | |
15880 | q | |
15881 | } | |
15882 | /^X\(\/\).*/{ | |
15883 | s//\1/ | |
15884 | q | |
15885 | } | |
15886 | s/.*/./; q'` | |
15887 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 15888 | ac_builddir=. |
0b0dc272 | 15889 | |
5213506e RW |
15890 | case "$ac_dir" in |
15891 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15892 | *) | |
15893 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15894 | # A ".." for each directory in $ac_dir_suffix. | |
15895 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15896 | case $ac_top_builddir_sub in | |
15897 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15898 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15899 | esac ;; | |
15900 | esac | |
15901 | ac_abs_top_builddir=$ac_pwd | |
15902 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15903 | # for backward compatibility: | |
15904 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
15905 | |
15906 | case $srcdir in | |
5213506e | 15907 | .) # We are building in place. |
1c710c3c | 15908 | ac_srcdir=. |
5213506e RW |
15909 | ac_top_srcdir=$ac_top_builddir_sub |
15910 | ac_abs_top_srcdir=$ac_pwd ;; | |
15911 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 15912 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
15913 | ac_top_srcdir=$srcdir |
15914 | ac_abs_top_srcdir=$srcdir ;; | |
15915 | *) # Relative name. | |
15916 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15917 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15918 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 15919 | esac |
5213506e | 15920 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 15921 | |
0b0dc272 | 15922 | |
5213506e RW |
15923 | case $ac_mode in |
15924 | :F) | |
15925 | # | |
15926 | # CONFIG_FILE | |
15927 | # | |
1c710c3c DJ |
15928 | |
15929 | case $INSTALL in | |
15930 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 15931 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 15932 | esac |
5213506e | 15933 | _ACEOF |
11a67599 | 15934 | |
5213506e RW |
15935 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15936 | # If the template does not know about datarootdir, expand it. | |
15937 | # FIXME: This hack should be removed a few years after 2.60. | |
15938 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15939 | ac_sed_dataroot=' | |
15940 | /datarootdir/ { | |
15941 | p | |
15942 | q | |
15943 | } | |
15944 | /@datadir@/p | |
15945 | /@docdir@/p | |
15946 | /@infodir@/p | |
15947 | /@localedir@/p | |
15948 | /@mandir@/p' | |
15949 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15950 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15951 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15953 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 15954 | _ACEOF |
5213506e RW |
15955 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15956 | ac_datarootdir_hack=' | |
15957 | s&@datadir@&$datadir&g | |
15958 | s&@docdir@&$docdir&g | |
15959 | s&@infodir@&$infodir&g | |
15960 | s&@localedir@&$localedir&g | |
15961 | s&@mandir@&$mandir&g | |
15962 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15963 | esac | |
15964 | _ACEOF | |
15965 | ||
15966 | # Neutralize VPATH when `$srcdir' = `.'. | |
15967 | # Shell code in configure.ac might set extrasub. | |
15968 | # FIXME: do we really want to maintain this feature? | |
15969 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15970 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
15971 | $extrasub |
15972 | _ACEOF | |
5213506e | 15973 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
15974 | :t |
15975 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
15976 | s|@configure_input@|$ac_sed_conf_input|;t t |
15977 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15978 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15979 | s&@srcdir@&$ac_srcdir&;t t | |
15980 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15981 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15982 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15983 | s&@builddir@&$ac_builddir&;t t | |
15984 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15985 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15986 | s&@INSTALL@&$ac_INSTALL&;t t | |
15987 | $ac_datarootdir_hack | |
15988 | " | |
15989 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15990 | if $ac_cs_awk_getline; then | |
15991 | $AWK -f "$tmp/subs.awk" | |
15992 | else | |
15993 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15994 | fi >$tmp/out \ | |
15995 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15996 | ||
15997 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15998 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15999 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16001 | which seems to be undefined. Please make sure it is defined." >&5 | |
16002 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16003 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16004 | ||
16005 | rm -f "$tmp/stdin" | |
16006 | case $ac_file in | |
16007 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
16008 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16009 | esac \ | |
16010 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16011 | ;; | |
11a67599 | 16012 | |
11a67599 | 16013 | |
79c06341 | 16014 | |
5213506e RW |
16015 | esac |
16016 | ||
3e54529c RW |
16017 | |
16018 | case $ac_file$ac_mode in | |
16019 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16020 | sed "$extrasub_host" | | |
16021 | sed "$extrasub_target" > mf$$ | |
16022 | mv -f mf$$ Makefile ;; | |
16023 | ||
16024 | esac | |
5213506e RW |
16025 | done # for ac_tag |
16026 | ||
16027 | ||
16028 | as_fn_exit 0 | |
1c710c3c | 16029 | _ACEOF |
1c710c3c DJ |
16030 | ac_clean_files=$ac_clean_files_save |
16031 | ||
5213506e RW |
16032 | test $ac_write_fail = 0 || |
16033 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16034 | ||
1c710c3c DJ |
16035 | |
16036 | # configure is writing to config.log, and then calls config.status. | |
16037 | # config.status does its own redirection, appending to config.log. | |
16038 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16039 | # by configure, so config.status won't be able to write to it; its | |
16040 | # output is simply discarded. So we exec the FD to /dev/null, | |
16041 | # effectively closing config.log, so it can be properly (re)opened and | |
16042 | # appended to by config.status. When coming back to configure, we | |
16043 | # need to make the FD available again. | |
16044 | if test "$no_create" != yes; then | |
16045 | ac_cs_success=: | |
16046 | ac_config_status_args= | |
16047 | test "$silent" = yes && | |
16048 | ac_config_status_args="$ac_config_status_args --quiet" | |
16049 | exec 5>/dev/null | |
16050 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16051 | exec 5>>config.log | |
16052 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16053 | # would make configure fail if this is the last instruction. | |
5213506e RW |
16054 | $ac_cs_success || as_fn_exit $? |
16055 | fi | |
16056 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16058 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 16059 | fi |
79c06341 | 16060 |