]>
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 | |
78767fd9 | 559 | POSTSTAGE1_CONFIGURE_FLAGS |
5213506e RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
e7a82751 | 574 | READELF_FOR_TARGET |
5213506e RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
577 | NM_FOR_TARGET | |
578 | LIPO_FOR_TARGET | |
579 | LD_FOR_TARGET | |
580 | DLLTOOL_FOR_TARGET | |
581 | AS_FOR_TARGET | |
582 | AR_FOR_TARGET | |
632e2a07 | 583 | GOC_FOR_TARGET |
5213506e RW |
584 | GFORTRAN_FOR_TARGET |
585 | GCJ_FOR_TARGET | |
586 | GCC_FOR_TARGET | |
587 | CXX_FOR_TARGET | |
588 | CC_FOR_TARGET | |
e7a82751 | 589 | READELF |
5213506e RW |
590 | OBJDUMP |
591 | OBJCOPY | |
592 | WINDMC | |
593 | WINDRES | |
594 | STRIP | |
595 | RANLIB | |
596 | NM | |
597 | LIPO | |
598 | LD | |
599 | DLLTOOL | |
600 | AS | |
601 | AR | |
602 | RUNTEST | |
603 | EXPECT | |
604 | MAKEINFO | |
605 | FLEX | |
606 | LEX | |
607 | M4 | |
608 | BISON | |
609 | YACC | |
5213506e RW |
610 | WINDRES_FOR_BUILD |
611 | WINDMC_FOR_BUILD | |
612 | RANLIB_FOR_BUILD | |
613 | NM_FOR_BUILD | |
614 | LD_FOR_BUILD | |
615 | LDFLAGS_FOR_BUILD | |
632e2a07 | 616 | GOC_FOR_BUILD |
5213506e RW |
617 | GFORTRAN_FOR_BUILD |
618 | GCJ_FOR_BUILD | |
619 | DLLTOOL_FOR_BUILD | |
620 | CXX_FOR_BUILD | |
621 | CXXFLAGS_FOR_BUILD | |
622 | CFLAGS_FOR_BUILD | |
623 | CC_FOR_BUILD | |
624 | AS_FOR_BUILD | |
625 | AR_FOR_BUILD | |
aae29963 | 626 | target_configdirs |
5213506e | 627 | configdirs |
5213506e | 628 | build_configdirs |
5213506e RW |
629 | INSTALL_GDB_TK |
630 | GDB_TK | |
631 | CONFIGURE_GDB_TK | |
632 | build_tooldir | |
633 | tooldir | |
634 | GCC_SHLIB_SUBDIR | |
635 | RPATH_ENVVAR | |
ffedf511 RW |
636 | target_configargs |
637 | host_configargs | |
638 | build_configargs | |
e12c4094 | 639 | BUILD_CONFIG |
6f57bdf6 | 640 | LDFLAGS_FOR_TARGET |
5213506e RW |
641 | CXXFLAGS_FOR_TARGET |
642 | CFLAGS_FOR_TARGET | |
643 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
644 | SYSROOT_CFLAGS_FOR_TARGET | |
645 | stage1_languages | |
d7f09764 | 646 | extra_host_libiberty_configure_flags |
5213506e RW |
647 | clooginc |
648 | clooglibs | |
33ad93b9 RG |
649 | islinc |
650 | isllibs | |
5213506e | 651 | poststage1_ldflags |
ed2eaa9f | 652 | poststage1_libs |
5213506e RW |
653 | stage1_libs |
654 | stage1_ldflags | |
655 | extra_mpc_mpfr_configure_flags | |
656 | extra_mpc_gmp_configure_flags | |
657 | extra_mpfr_configure_flags | |
658 | gmpinc | |
659 | gmplibs | |
660 | do_compare | |
661 | GNATMAKE | |
662 | GNATBIND | |
663 | ac_ct_CXX | |
664 | CXXFLAGS | |
665 | CXX | |
666 | OBJEXT | |
667 | EXEEXT | |
668 | ac_ct_CC | |
669 | CPPFLAGS | |
670 | LDFLAGS | |
671 | CFLAGS | |
672 | CC | |
a4a2c37d | 673 | EXTRA_CONFIGARGS_LIBJAVA |
5213506e RW |
674 | target_subdir |
675 | host_subdir | |
676 | build_subdir | |
677 | build_libsubdir | |
87264276 PB |
678 | AWK |
679 | SED | |
5213506e RW |
680 | LN_S |
681 | LN | |
682 | INSTALL_DATA | |
683 | INSTALL_SCRIPT | |
684 | INSTALL_PROGRAM | |
685 | target_os | |
686 | target_vendor | |
687 | target_cpu | |
688 | target | |
689 | host_os | |
690 | host_vendor | |
691 | host_cpu | |
692 | host | |
693 | target_noncanonical | |
694 | host_noncanonical | |
695 | build_noncanonical | |
696 | build_os | |
697 | build_vendor | |
698 | build_cpu | |
699 | build | |
700 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
701 | target_alias | |
702 | host_alias | |
703 | build_alias | |
704 | LIBS | |
705 | ECHO_T | |
706 | ECHO_N | |
707 | ECHO_C | |
708 | DEFS | |
709 | mandir | |
710 | localedir | |
711 | libdir | |
712 | psdir | |
713 | pdfdir | |
714 | dvidir | |
715 | htmldir | |
716 | infodir | |
717 | docdir | |
718 | oldincludedir | |
719 | includedir | |
720 | localstatedir | |
721 | sharedstatedir | |
722 | sysconfdir | |
723 | datadir | |
724 | datarootdir | |
725 | libexecdir | |
726 | sbindir | |
727 | bindir | |
728 | program_transform_name | |
729 | prefix | |
730 | exec_prefix | |
731 | PACKAGE_URL | |
732 | PACKAGE_BUGREPORT | |
733 | PACKAGE_STRING | |
734 | PACKAGE_VERSION | |
735 | PACKAGE_TARNAME | |
736 | PACKAGE_NAME | |
737 | PATH_SEPARATOR | |
738 | SHELL' | |
739 | ac_subst_files='serialization_dependencies | |
740 | host_makefile_frag | |
741 | target_makefile_frag | |
742 | alphaieee_frag | |
743 | ospace_frag' | |
744 | ac_user_opts=' | |
745 | enable_option_checking | |
746 | with_build_libsubdir | |
747 | enable_gold | |
21539e2e | 748 | enable_ld |
87e6d9dc TB |
749 | enable_libquadmath |
750 | enable_libquadmath_support | |
5213506e RW |
751 | enable_libada |
752 | enable_libssp | |
a4a2c37d | 753 | enable_static_libjava |
ff3ac0f4 | 754 | enable_bootstrap |
5213506e | 755 | enable_build_with_cxx |
78767fd9 | 756 | enable_build_poststage1_with_cxx |
5213506e RW |
757 | with_mpc |
758 | with_mpc_include | |
759 | with_mpc_lib | |
760 | with_mpfr_dir | |
761 | with_mpfr | |
762 | with_mpfr_include | |
763 | with_mpfr_lib | |
764 | with_gmp_dir | |
765 | with_gmp | |
766 | with_gmp_include | |
767 | with_gmp_lib | |
768 | with_host_libstdcxx | |
769 | with_stage1_ldflags | |
770 | with_stage1_libs | |
5213506e | 771 | with_boot_libs |
ed2eaa9f | 772 | with_boot_ldflags |
33ad93b9 RG |
773 | with_isl |
774 | with_isl_include | |
775 | with_isl_lib | |
776 | enable_isl_version_check | |
5213506e RW |
777 | with_cloog |
778 | with_cloog_include | |
779 | with_cloog_lib | |
780 | enable_cloog_version_check | |
d7f09764 | 781 | enable_lto |
5213506e RW |
782 | enable_stage1_languages |
783 | enable_objc_gc | |
784 | with_build_sysroot | |
785 | with_debug_prefix_map | |
5646b7b9 | 786 | with_build_config |
5213506e RW |
787 | enable_serial_configure |
788 | with_build_time_tools | |
789 | enable_maintainer_mode | |
790 | enable_stage1_checking | |
791 | enable_werror | |
5213506e RW |
792 | ' |
793 | ac_precious_vars='build_alias | |
794 | host_alias | |
795 | target_alias | |
796 | CC | |
797 | CFLAGS | |
798 | LDFLAGS | |
799 | LIBS | |
800 | CPPFLAGS | |
801 | CXX | |
802 | CXXFLAGS | |
803 | CCC | |
ffedf511 RW |
804 | build_configargs |
805 | host_configargs | |
806 | target_configargs | |
5213506e RW |
807 | AR |
808 | AS | |
809 | DLLTOOL | |
810 | LD | |
811 | LIPO | |
812 | NM | |
813 | RANLIB | |
814 | STRIP | |
815 | WINDRES | |
816 | WINDMC | |
817 | OBJCOPY | |
818 | OBJDUMP | |
e7a82751 | 819 | READELF |
5213506e RW |
820 | CC_FOR_TARGET |
821 | CXX_FOR_TARGET | |
822 | GCC_FOR_TARGET | |
823 | GCJ_FOR_TARGET | |
824 | GFORTRAN_FOR_TARGET | |
632e2a07 | 825 | GOC_FOR_TARGET |
5213506e RW |
826 | AR_FOR_TARGET |
827 | AS_FOR_TARGET | |
828 | DLLTOOL_FOR_TARGET | |
829 | LD_FOR_TARGET | |
830 | LIPO_FOR_TARGET | |
831 | NM_FOR_TARGET | |
832 | OBJDUMP_FOR_TARGET | |
833 | RANLIB_FOR_TARGET | |
e7a82751 | 834 | READELF_FOR_TARGET |
5213506e RW |
835 | STRIP_FOR_TARGET |
836 | WINDRES_FOR_TARGET | |
837 | WINDMC_FOR_TARGET' | |
838 | ||
671aa708 NN |
839 | |
840 | # Initialize some variables set by options. | |
1c710c3c DJ |
841 | ac_init_help= |
842 | ac_init_version=false | |
5213506e RW |
843 | ac_unrecognized_opts= |
844 | ac_unrecognized_sep= | |
671aa708 NN |
845 | # The variables have the same names as the options, with |
846 | # dashes changed to underlines. | |
1c710c3c | 847 | cache_file=/dev/null |
671aa708 | 848 | exec_prefix=NONE |
671aa708 | 849 | no_create= |
671aa708 NN |
850 | no_recursion= |
851 | prefix=NONE | |
852 | program_prefix=NONE | |
853 | program_suffix=NONE | |
854 | program_transform_name=s,x,x, | |
855 | silent= | |
856 | site= | |
857 | srcdir= | |
671aa708 NN |
858 | verbose= |
859 | x_includes=NONE | |
860 | x_libraries=NONE | |
1c710c3c DJ |
861 | |
862 | # Installation directory options. | |
863 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
864 | # and all the variables that are supposed to be based on exec_prefix | |
865 | # by default will actually change. | |
866 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 867 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
868 | bindir='${exec_prefix}/bin' |
869 | sbindir='${exec_prefix}/sbin' | |
870 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
871 | datarootdir='${prefix}/share' |
872 | datadir='${datarootdir}' | |
671aa708 NN |
873 | sysconfdir='${prefix}/etc' |
874 | sharedstatedir='${prefix}/com' | |
875 | localstatedir='${prefix}/var' | |
671aa708 NN |
876 | includedir='${prefix}/include' |
877 | oldincludedir='/usr/include' | |
5213506e RW |
878 | docdir='${datarootdir}/doc/${PACKAGE}' |
879 | infodir='${datarootdir}/info' | |
880 | htmldir='${docdir}' | |
881 | dvidir='${docdir}' | |
882 | pdfdir='${docdir}' | |
883 | psdir='${docdir}' | |
884 | libdir='${exec_prefix}/lib' | |
885 | localedir='${datarootdir}/locale' | |
886 | mandir='${datarootdir}/man' | |
79c06341 | 887 | |
671aa708 | 888 | ac_prev= |
5213506e | 889 | ac_dashdash= |
671aa708 NN |
890 | for ac_option |
891 | do | |
671aa708 NN |
892 | # If the previous option needs an argument, assign it. |
893 | if test -n "$ac_prev"; then | |
5213506e | 894 | eval $ac_prev=\$ac_option |
671aa708 NN |
895 | ac_prev= |
896 | continue | |
897 | fi | |
79c06341 | 898 | |
5213506e RW |
899 | case $ac_option in |
900 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
901 | *) ac_optarg=yes ;; | |
902 | esac | |
671aa708 NN |
903 | |
904 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
905 | ||
5213506e RW |
906 | case $ac_dashdash$ac_option in |
907 | --) | |
908 | ac_dashdash=yes ;; | |
671aa708 NN |
909 | |
910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
911 | ac_prev=bindir ;; | |
912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 913 | bindir=$ac_optarg ;; |
671aa708 NN |
914 | |
915 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 916 | ac_prev=build_alias ;; |
671aa708 | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 918 | build_alias=$ac_optarg ;; |
671aa708 NN |
919 | |
920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
922 | ac_prev=cache_file ;; | |
923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
925 | cache_file=$ac_optarg ;; |
926 | ||
927 | --config-cache | -C) | |
928 | cache_file=config.cache ;; | |
671aa708 | 929 | |
5213506e | 930 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 931 | ac_prev=datadir ;; |
5213506e | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 933 | datadir=$ac_optarg ;; |
671aa708 | 934 | |
5213506e RW |
935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
936 | | --dataroo | --dataro | --datar) | |
937 | ac_prev=datarootdir ;; | |
938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
940 | datarootdir=$ac_optarg ;; | |
941 | ||
671aa708 | 942 | -disable-* | --disable-*) |
5213506e | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 944 | # Reject names that are not valid shell variable names. |
5213506e RW |
945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
946 | as_fn_error "invalid feature name: $ac_useropt" | |
947 | ac_useropt_orig=$ac_useropt | |
948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
949 | case $ac_user_opts in | |
950 | *" | |
951 | "enable_$ac_useropt" | |
952 | "*) ;; | |
953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
954 | ac_unrecognized_sep=', ';; | |
955 | esac | |
956 | eval enable_$ac_useropt=no ;; | |
957 | ||
958 | -docdir | --docdir | --docdi | --doc | --do) | |
959 | ac_prev=docdir ;; | |
960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
961 | docdir=$ac_optarg ;; | |
962 | ||
963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
964 | ac_prev=dvidir ;; | |
965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
966 | dvidir=$ac_optarg ;; | |
671aa708 NN |
967 | |
968 | -enable-* | --enable-*) | |
5213506e | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 970 | # Reject names that are not valid shell variable names. |
5213506e RW |
971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
972 | as_fn_error "invalid feature name: $ac_useropt" | |
973 | ac_useropt_orig=$ac_useropt | |
974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
975 | case $ac_user_opts in | |
976 | *" | |
977 | "enable_$ac_useropt" | |
978 | "*) ;; | |
979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
980 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 981 | esac |
5213506e | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
983 | |
984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
986 | | --exec | --exe | --ex) | |
987 | ac_prev=exec_prefix ;; | |
988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
990 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 991 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
992 | |
993 | -gas | --gas | --ga | --g) | |
994 | # Obsolete; use --with-gas. | |
995 | with_gas=yes ;; | |
996 | ||
1c710c3c DJ |
997 | -help | --help | --hel | --he | -h) |
998 | ac_init_help=long ;; | |
999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1000 | ac_init_help=recursive ;; | |
1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1002 | ac_init_help=short ;; | |
671aa708 NN |
1003 | |
1004 | -host | --host | --hos | --ho) | |
1c710c3c | 1005 | ac_prev=host_alias ;; |
671aa708 | 1006 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1007 | host_alias=$ac_optarg ;; |
671aa708 | 1008 | |
5213506e RW |
1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1010 | ac_prev=htmldir ;; | |
1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1012 | | --ht=*) | |
1013 | htmldir=$ac_optarg ;; | |
1014 | ||
671aa708 NN |
1015 | -includedir | --includedir | --includedi | --included | --include \ |
1016 | | --includ | --inclu | --incl | --inc) | |
1017 | ac_prev=includedir ;; | |
1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1020 | includedir=$ac_optarg ;; |
671aa708 NN |
1021 | |
1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1023 | ac_prev=infodir ;; | |
1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1025 | infodir=$ac_optarg ;; |
671aa708 NN |
1026 | |
1027 | -libdir | --libdir | --libdi | --libd) | |
1028 | ac_prev=libdir ;; | |
1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1030 | libdir=$ac_optarg ;; |
671aa708 NN |
1031 | |
1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1033 | | --libexe | --libex | --libe) | |
1034 | ac_prev=libexecdir ;; | |
1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1036 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1037 | libexecdir=$ac_optarg ;; |
671aa708 | 1038 | |
5213506e RW |
1039 | -localedir | --localedir | --localedi | --localed | --locale) |
1040 | ac_prev=localedir ;; | |
1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1042 | localedir=$ac_optarg ;; | |
1043 | ||
671aa708 | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1046 | ac_prev=localstatedir ;; |
1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1049 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1050 | |
1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1052 | ac_prev=mandir ;; | |
1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1054 | mandir=$ac_optarg ;; |
671aa708 NN |
1055 | |
1056 | -nfp | --nfp | --nf) | |
1057 | # Obsolete; use --without-fp. | |
1058 | with_fp=no ;; | |
1059 | ||
1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1061 | | --no-cr | --no-c | -n) |
671aa708 NN |
1062 | no_create=yes ;; |
1063 | ||
1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1066 | no_recursion=yes ;; | |
1067 | ||
1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1070 | | --oldin | --oldi | --old | --ol | --o) | |
1071 | ac_prev=oldincludedir ;; | |
1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1075 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1076 | |
1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1078 | ac_prev=prefix ;; | |
1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1080 | prefix=$ac_optarg ;; |
671aa708 NN |
1081 | |
1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1083 | | --program-pre | --program-pr | --program-p) | |
1084 | ac_prev=program_prefix ;; | |
1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1087 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1088 | |
1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1090 | | --program-suf | --program-su | --program-s) | |
1091 | ac_prev=program_suffix ;; | |
1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1094 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1095 | |
1096 | -program-transform-name | --program-transform-name \ | |
1097 | | --program-transform-nam | --program-transform-na \ | |
1098 | | --program-transform-n | --program-transform- \ | |
1099 | | --program-transform | --program-transfor \ | |
1100 | | --program-transfo | --program-transf \ | |
1101 | | --program-trans | --program-tran \ | |
1102 | | --progr-tra | --program-tr | --program-t) | |
1103 | ac_prev=program_transform_name ;; | |
1104 | -program-transform-name=* | --program-transform-name=* \ | |
1105 | | --program-transform-nam=* | --program-transform-na=* \ | |
1106 | | --program-transform-n=* | --program-transform-=* \ | |
1107 | | --program-transform=* | --program-transfor=* \ | |
1108 | | --program-transfo=* | --program-transf=* \ | |
1109 | | --program-trans=* | --program-tran=* \ | |
1110 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1111 | program_transform_name=$ac_optarg ;; |
671aa708 | 1112 | |
5213506e RW |
1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1114 | ac_prev=pdfdir ;; | |
1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1116 | pdfdir=$ac_optarg ;; | |
1117 | ||
1118 | -psdir | --psdir | --psdi | --psd | --ps) | |
1119 | ac_prev=psdir ;; | |
1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1121 | psdir=$ac_optarg ;; | |
1122 | ||
671aa708 NN |
1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1124 | | -silent | --silent | --silen | --sile | --sil) | |
1125 | silent=yes ;; | |
1126 | ||
1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1128 | ac_prev=sbindir ;; | |
1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1130 | | --sbi=* | --sb=*) | |
1c710c3c | 1131 | sbindir=$ac_optarg ;; |
671aa708 NN |
1132 | |
1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1135 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1136 | | --sha | --sh) | |
1137 | ac_prev=sharedstatedir ;; | |
1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1141 | | --sha=* | --sh=*) | |
1c710c3c | 1142 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1143 | |
1144 | -site | --site | --sit) | |
1145 | ac_prev=site ;; | |
1146 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1147 | site=$ac_optarg ;; |
671aa708 NN |
1148 | |
1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1150 | ac_prev=srcdir ;; | |
1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1152 | srcdir=$ac_optarg ;; |
671aa708 NN |
1153 | |
1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1155 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1156 | ac_prev=sysconfdir ;; | |
1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1159 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1160 | |
1161 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1162 | ac_prev=target_alias ;; |
671aa708 | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1164 | target_alias=$ac_optarg ;; |
671aa708 NN |
1165 | |
1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1167 | verbose=yes ;; | |
1168 | ||
1c710c3c DJ |
1169 | -version | --version | --versio | --versi | --vers | -V) |
1170 | ac_init_version=: ;; | |
671aa708 NN |
1171 | |
1172 | -with-* | --with-*) | |
5213506e | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1174 | # Reject names that are not valid shell variable names. |
5213506e RW |
1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1176 | as_fn_error "invalid package name: $ac_useropt" | |
1177 | ac_useropt_orig=$ac_useropt | |
1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1179 | case $ac_user_opts in | |
1180 | *" | |
1181 | "with_$ac_useropt" | |
1182 | "*) ;; | |
1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1184 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1185 | esac |
5213506e | 1186 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1187 | |
1188 | -without-* | --without-*) | |
5213506e | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1190 | # Reject names that are not valid shell variable names. |
5213506e RW |
1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1192 | as_fn_error "invalid package name: $ac_useropt" | |
1193 | ac_useropt_orig=$ac_useropt | |
1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1195 | case $ac_user_opts in | |
1196 | *" | |
1197 | "with_$ac_useropt" | |
1198 | "*) ;; | |
1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1200 | ac_unrecognized_sep=', ';; | |
1201 | esac | |
1202 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1203 | |
1204 | --x) | |
1205 | # Obsolete; use --with-x. | |
1206 | with_x=yes ;; | |
1207 | ||
1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1209 | | --x-incl | --x-inc | --x-in | --x-i) | |
1210 | ac_prev=x_includes ;; | |
1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1213 | x_includes=$ac_optarg ;; |
671aa708 NN |
1214 | |
1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1217 | ac_prev=x_libraries ;; | |
1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1220 | x_libraries=$ac_optarg ;; |
671aa708 | 1221 | |
5213506e RW |
1222 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1223 | Try \`$0 --help' for more information." | |
671aa708 NN |
1224 | ;; |
1225 | ||
1c710c3c DJ |
1226 | *=*) |
1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1228 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1229 | case $ac_envvar in #( |
1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1231 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1232 | esac | |
1233 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1234 | export $ac_envvar ;; |
1235 | ||
671aa708 | 1236 | *) |
1c710c3c | 1237 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1c710c3c | 1241 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
671aa708 NN |
1242 | ;; |
1243 | ||
1244 | esac | |
1245 | done | |
1246 | ||
1247 | if test -n "$ac_prev"; then | |
1c710c3c | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5213506e | 1249 | as_fn_error "missing argument to $ac_option" |
af71363e | 1250 | fi |
af71363e | 1251 | |
5213506e RW |
1252 | if test -n "$ac_unrecognized_opts"; then |
1253 | case $enable_option_checking in | |
1254 | no) ;; | |
1255 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1256 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
2aeb72e9 | 1257 | esac |
5213506e | 1258 | fi |
2aeb72e9 | 1259 | |
5213506e RW |
1260 | # Check all directory arguments for consistency. |
1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1264 | libdir localedir mandir | |
2aeb72e9 | 1265 | do |
5213506e RW |
1266 | eval ac_val=\$$ac_var |
1267 | # Remove trailing slashes. | |
1268 | case $ac_val in | |
1269 | */ ) | |
1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1271 | eval $ac_var=\$ac_val;; | |
1272 | esac | |
1273 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1274 | case $ac_val in |
5213506e RW |
1275 | [\\/$]* | ?:[\\/]* ) continue;; |
1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1277 | esac |
5213506e | 1278 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1279 | done |
1280 | ||
1c710c3c DJ |
1281 | # There might be people who depend on the old broken behavior: `$host' |
1282 | # used to hold the argument of --host etc. | |
1283 | # FIXME: To remove some day. | |
1284 | build=$build_alias | |
1285 | host=$host_alias | |
1286 | target=$target_alias | |
0b0dc272 | 1287 | |
1c710c3c DJ |
1288 | # FIXME: To remove some day. |
1289 | if test "x$host_alias" != x; then | |
1290 | if test "x$build_alias" = x; then | |
1291 | cross_compiling=maybe | |
5213506e | 1292 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1c710c3c DJ |
1293 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1294 | elif test "x$build_alias" != "x$host_alias"; then | |
1295 | cross_compiling=yes | |
1296 | fi | |
1297 | fi | |
1298 | ||
1299 | ac_tool_prefix= | |
1300 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1301 | ||
1302 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1303 | |
671aa708 | 1304 | |
5213506e RW |
1305 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1306 | ac_ls_di=`ls -di .` && | |
1307 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1308 | as_fn_error "working directory cannot be determined" | |
1309 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1310 | as_fn_error "pwd does not report name of working directory" | |
1311 | ||
1312 | ||
671aa708 NN |
1313 | # Find the source files, if location was not specified. |
1314 | if test -z "$srcdir"; then | |
1315 | ac_srcdir_defaulted=yes | |
5213506e RW |
1316 | # Try the directory containing this script, then the parent directory. |
1317 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1318 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1319 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1320 | X"$as_myself" : 'X\(//\)$' \| \ | |
1321 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1322 | $as_echo X"$as_myself" | | |
1323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\/\)[^/].*/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)$/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\).*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | s/.*/./; q'` | |
671aa708 | 1340 | srcdir=$ac_confdir |
5213506e | 1341 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1342 | srcdir=.. |
1343 | fi | |
1344 | else | |
1345 | ac_srcdir_defaulted=no | |
1346 | fi | |
5213506e RW |
1347 | if test ! -r "$srcdir/$ac_unique_file"; then |
1348 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1349 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1350 | fi | |
1351 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1352 | ac_abs_confdir=`( | |
1353 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1354 | pwd)` | |
1355 | # When building in place, set srcdir=. | |
1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1357 | srcdir=. | |
1358 | fi | |
1359 | # Remove unnecessary trailing slashes from srcdir. | |
1360 | # Double slashes in file names in object file debugging info | |
1361 | # mess up M-x gdb in Emacs. | |
1362 | case $srcdir in | |
1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1364 | esac | |
87841584 AM |
1365 | case $srcdir in |
1366 | *" "*) | |
1367 | as_fn_error "path to source, $srcdir, contains spaces" | |
1368 | ;; | |
1369 | esac | |
ac9e6043 RW |
1370 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1371 | ||
5213506e RW |
1372 | for ac_var in $ac_precious_vars; do |
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1377 | done | |
1c710c3c DJ |
1378 | |
1379 | # | |
1380 | # Report the --help message. | |
1381 | # | |
1382 | if test "$ac_init_help" = "long"; then | |
1383 | # Omit some internal or obsolete options to make the list less imposing. | |
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1385 | cat <<_ACEOF | |
1386 | \`configure' configures this package to adapt to many kinds of systems. | |
1387 | ||
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1389 | ||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1392 | ||
1393 | Defaults for the options are specified in brackets. | |
1394 | ||
1395 | Configuration: | |
1396 | -h, --help display this help and exit | |
1397 | --help=short display options specific to this package | |
1398 | --help=recursive display the short help of all the included packages | |
1399 | -V, --version display version information and exit | |
1400 | -q, --quiet, --silent do not print \`checking...' messages | |
1401 | --cache-file=FILE cache test results in FILE [disabled] | |
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1403 | -n, --no-create do not create output files | |
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1405 | ||
1c710c3c DJ |
1406 | Installation directories: |
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1408 | [$ac_default_prefix] |
1c710c3c | 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1410 | [PREFIX] |
1c710c3c DJ |
1411 | |
1412 | By default, \`make install' will install all the files in | |
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1415 | for instance \`--prefix=\$HOME'. | |
1416 | ||
1417 | For better control, use the options below. | |
1418 | ||
1419 | Fine tuning of the installation directories: | |
5213506e RW |
1420 | --bindir=DIR user executables [EPREFIX/bin] |
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1426 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1427 | --includedir=DIR C header files [PREFIX/include] | |
1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1431 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1433 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1435 | --htmldir=DIR html documentation [DOCDIR] | |
1436 | --dvidir=DIR dvi documentation [DOCDIR] | |
1437 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1438 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1439 | _ACEOF |
1440 | ||
1441 | cat <<\_ACEOF | |
1442 | ||
1443 | Program names: | |
1444 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1445 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1446 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1447 | ||
1448 | System types: | |
1449 | --build=BUILD configure for building on BUILD [guessed] | |
1450 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1451 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1452 | _ACEOF | |
1453 | fi | |
1454 | ||
1455 | if test -n "$ac_init_help"; then | |
1456 | ||
1457 | cat <<\_ACEOF | |
1458 | ||
1459 | Optional Features: | |
5213506e | 1460 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
21539e2e | 1463 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1464 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
87e6d9dc TB |
1465 | --disable-libquadmath do not build libquadmath directory |
1466 | --disable-libquadmath-support | |
1467 | disable libquadmath support for Fortran | |
30b74385 RW |
1468 | --enable-libada build libada directory |
1469 | --enable-libssp build libssp directory | |
a4a2c37d MK |
1470 | --enable-static-libjava[=ARG] |
1471 | build static libjava [default=no] | |
ff3ac0f4 | 1472 | --enable-bootstrap enable bootstrapping [yes if native build] |
00020c16 | 1473 | --enable-build-with-cxx build with C++ compiler instead of C compiler |
78767fd9 ILT |
1474 | --enable-build-poststage1-with-cxx |
1475 | build stages 2 and 3 with C++, not C | |
33ad93b9 RG |
1476 | --disable-isl-version-check |
1477 | disable check for ISL version | |
d32ef397 AS |
1478 | --disable-cloog-version-check |
1479 | disable check for CLooG version | |
d7f09764 | 1480 | --enable-lto enable link time optimization support |
33e39b66 AS |
1481 | --enable-stage1-languages[=all] |
1482 | choose additional languages to build during stage1. | |
1483 | Mostly useful for compiler development | |
1484 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1485 | Objective-C runtime | |
30b74385 | 1486 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1487 | force sequential configuration of sub-packages for |
1488 | the host, target or build machine, or all | |
1489 | sub-packages | |
1490 | --enable-maintainer-mode | |
1491 | enable make rules and dependencies not useful (and | |
1492 | sometimes confusing) to the casual installer | |
1493 | --enable-stage1-checking[=all] | |
1494 | choose additional checking for stage1 of the | |
1495 | compiler | |
1c710c3c DJ |
1496 | --enable-werror enable -Werror in bootstrap stage2 and later |
1497 | ||
1498 | Optional Packages: | |
1499 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1500 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1501 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
33e39b66 AS |
1502 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1503 | Equivalent to --with-mpc-include=PATH/include plus | |
1504 | --with-mpc-lib=PATH/lib | |
1505 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1506 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1507 | --with-mpfr-dir=PATH this option has been REMOVED |
1508 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1509 | Equivalent to --with-mpfr-include=PATH/include plus |
1510 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1511 | --with-mpfr-include=PATH |
30b74385 RW |
1512 | specify directory for installed MPFR include files |
1513 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1514 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1515 | --with-gmp=PATH specify prefix directory for the installed GMP |
1516 | package. Equivalent to | |
1517 | --with-gmp-include=PATH/include plus | |
1518 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1519 | --with-gmp-include=PATH specify directory for installed GMP include files |
1520 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
33e39b66 AS |
1521 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1522 | linking with PPL | |
1523 | --with-stage1-ldflags=FLAGS | |
1524 | linker flags for stage1 | |
1525 | --with-stage1-libs=LIBS libraries for stage1 | |
1526 | --with-boot-libs=LIBS libraries for stage2 and later | |
1527 | --with-boot-ldflags=FLAGS | |
1528 | linker flags for stage2 and later | |
33ad93b9 | 1529 | --with-isl=PATH Specify prefix directory for the installed ISL |
33e39b66 | 1530 | package. Equivalent to |
33ad93b9 RG |
1531 | --with-isl-include=PATH/include plus |
1532 | --with-isl-lib=PATH/lib | |
1533 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1534 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
d32ef397 AS |
1535 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1536 | package. Equivalent to | |
1537 | --with-cloog-include=PATH/include plus | |
1538 | --with-cloog-lib=PATH/lib | |
1539 | --with-cloog-include=PATH | |
1540 | Specify directory for installed CLooG include files | |
1541 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1542 | library | |
30b74385 | 1543 | --with-build-sysroot=SYSROOT |
1c710c3c | 1544 | use sysroot as the system root during the build |
c8aea42c | 1545 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1546 | map A to B, C to D ... in debug information |
1547 | --with-build-config='NAME NAME2...' | |
1548 | use config/NAME.mk build configuration | |
30b74385 | 1549 | --with-build-time-tools=PATH |
1c710c3c | 1550 | use given path to find target tools during the build |
1c710c3c DJ |
1551 | |
1552 | Some influential environment variables: | |
1553 | CC C compiler command | |
1554 | CFLAGS C compiler flags | |
1555 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1556 | nonstandard directory <lib dir> | |
5213506e RW |
1557 | LIBS libraries to pass to the linker, e.g. -l<library> |
1558 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1559 | you have headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
1560 | CXX C++ compiler command |
1561 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1562 | build_configargs |
1563 | additional configure arguments for build directories | |
1564 | host_configargs | |
1565 | additional configure arguments for host directories | |
1566 | target_configargs | |
1567 | additional configure arguments for target directories | |
278a7a38 AO |
1568 | AR AR for the host |
1569 | AS AS for the host | |
1570 | DLLTOOL DLLTOOL for the host | |
1571 | LD LD for the host | |
1572 | LIPO LIPO for the host | |
1573 | NM NM for the host | |
1574 | RANLIB RANLIB for the host | |
1575 | STRIP STRIP for the host | |
1576 | WINDRES WINDRES for the host | |
901119ae | 1577 | WINDMC WINDMC for the host |
278a7a38 AO |
1578 | OBJCOPY OBJCOPY for the host |
1579 | OBJDUMP OBJDUMP for the host | |
e7a82751 | 1580 | READELF READELF for the host |
278a7a38 AO |
1581 | CC_FOR_TARGET |
1582 | CC for the target | |
1583 | CXX_FOR_TARGET | |
1584 | CXX for the target | |
1585 | GCC_FOR_TARGET | |
1586 | GCC for the target | |
1587 | GCJ_FOR_TARGET | |
1588 | GCJ for the target | |
1589 | GFORTRAN_FOR_TARGET | |
1590 | GFORTRAN for the target | |
632e2a07 ILT |
1591 | GOC_FOR_TARGET |
1592 | GOC for the target | |
278a7a38 AO |
1593 | AR_FOR_TARGET |
1594 | AR for the target | |
1595 | AS_FOR_TARGET | |
1596 | AS for the target | |
1597 | DLLTOOL_FOR_TARGET | |
1598 | DLLTOOL for the target | |
1599 | LD_FOR_TARGET | |
1600 | LD for the target | |
1601 | LIPO_FOR_TARGET | |
1602 | LIPO for the target | |
1603 | NM_FOR_TARGET | |
1604 | NM for the target | |
1605 | OBJDUMP_FOR_TARGET | |
1606 | OBJDUMP for the target | |
1607 | RANLIB_FOR_TARGET | |
1608 | RANLIB for the target | |
e7a82751 RM |
1609 | READELF_FOR_TARGET |
1610 | READELF for the target | |
278a7a38 AO |
1611 | STRIP_FOR_TARGET |
1612 | STRIP for the target | |
1613 | WINDRES_FOR_TARGET | |
1614 | WINDRES for the target | |
901119ae KT |
1615 | WINDMC_FOR_TARGET |
1616 | WINDMC for the target | |
1c710c3c DJ |
1617 | |
1618 | Use these variables to override the choices made by `configure' or to help | |
1619 | it to find libraries and programs with nonstandard names/locations. | |
1620 | ||
5213506e | 1621 | Report bugs to the package provider. |
1c710c3c | 1622 | _ACEOF |
5213506e | 1623 | ac_status=$? |
1c710c3c DJ |
1624 | fi |
1625 | ||
1626 | if test "$ac_init_help" = "recursive"; then | |
1627 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1628 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1629 | test -d "$ac_dir" || |
1630 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1631 | continue | |
1c710c3c DJ |
1632 | ac_builddir=. |
1633 | ||
5213506e RW |
1634 | case "$ac_dir" in |
1635 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1636 | *) | |
1637 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1638 | # A ".." for each directory in $ac_dir_suffix. | |
1639 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1640 | case $ac_top_builddir_sub in | |
1641 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1642 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1643 | esac ;; | |
1644 | esac | |
1645 | ac_abs_top_builddir=$ac_pwd | |
1646 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1647 | # for backward compatibility: | |
1648 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1649 | |
1650 | case $srcdir in | |
5213506e | 1651 | .) # We are building in place. |
1c710c3c | 1652 | ac_srcdir=. |
5213506e RW |
1653 | ac_top_srcdir=$ac_top_builddir_sub |
1654 | ac_abs_top_srcdir=$ac_pwd ;; | |
1655 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1656 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1657 | ac_top_srcdir=$srcdir |
1658 | ac_abs_top_srcdir=$srcdir ;; | |
1659 | *) # Relative name. | |
1660 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1661 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1662 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1663 | esac |
5213506e RW |
1664 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1665 | ||
1666 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1667 | # Check for guested configure. | |
1668 | if test -f "$ac_srcdir/configure.gnu"; then | |
1669 | echo && | |
1670 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1671 | elif test -f "$ac_srcdir/configure"; then | |
1672 | echo && | |
1673 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1674 | else |
5213506e RW |
1675 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1676 | fi || ac_status=$? | |
1677 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1678 | done |
1679 | fi | |
1680 | ||
5213506e | 1681 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1682 | if $ac_init_version; then |
1683 | cat <<\_ACEOF | |
5213506e RW |
1684 | configure |
1685 | generated by GNU Autoconf 2.64 | |
1c710c3c | 1686 | |
5213506e | 1687 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
1688 | This configure script is free software; the Free Software Foundation |
1689 | gives unlimited permission to copy, distribute and modify it. | |
1690 | _ACEOF | |
5213506e | 1691 | exit |
0b0dc272 | 1692 | fi |
5213506e RW |
1693 | |
1694 | ## ------------------------ ## | |
1695 | ## Autoconf initialization. ## | |
1696 | ## ------------------------ ## | |
1697 | ||
1698 | # ac_fn_c_try_compile LINENO | |
1699 | # -------------------------- | |
1700 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1701 | ac_fn_c_try_compile () | |
1702 | { | |
1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1704 | rm -f conftest.$ac_objext | |
1705 | if { { ac_try="$ac_compile" | |
1706 | case "(($ac_try" in | |
1707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1708 | *) ac_try_echo=$ac_try;; | |
1709 | esac | |
1710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1711 | $as_echo "$ac_try_echo"; } >&5 | |
1712 | (eval "$ac_compile") 2>conftest.err | |
1713 | ac_status=$? | |
1714 | if test -s conftest.err; then | |
1715 | grep -v '^ *+' conftest.err >conftest.er1 | |
1716 | cat conftest.er1 >&5 | |
1717 | mv -f conftest.er1 conftest.err | |
1718 | fi | |
1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1720 | test $ac_status = 0; } && { | |
1721 | test -z "$ac_c_werror_flag" || | |
1722 | test ! -s conftest.err | |
1723 | } && test -s conftest.$ac_objext; then : | |
1724 | ac_retval=0 | |
1725 | else | |
1726 | $as_echo "$as_me: failed program was:" >&5 | |
1727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1728 | ||
1729 | ac_retval=1 | |
1730 | fi | |
1731 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1732 | return $ac_retval | |
1733 | ||
1734 | } # ac_fn_c_try_compile | |
1735 | ||
1736 | # ac_fn_cxx_try_compile LINENO | |
1737 | # ---------------------------- | |
1738 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1739 | ac_fn_cxx_try_compile () | |
1740 | { | |
1741 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1742 | rm -f conftest.$ac_objext | |
1743 | if { { ac_try="$ac_compile" | |
1744 | case "(($ac_try" in | |
1745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1746 | *) ac_try_echo=$ac_try;; | |
1747 | esac | |
1748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1749 | $as_echo "$ac_try_echo"; } >&5 | |
1750 | (eval "$ac_compile") 2>conftest.err | |
1751 | ac_status=$? | |
1752 | if test -s conftest.err; then | |
1753 | grep -v '^ *+' conftest.err >conftest.er1 | |
1754 | cat conftest.er1 >&5 | |
1755 | mv -f conftest.er1 conftest.err | |
1756 | fi | |
1757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1758 | test $ac_status = 0; } && { | |
1759 | test -z "$ac_cxx_werror_flag" || | |
1760 | test ! -s conftest.err | |
1761 | } && test -s conftest.$ac_objext; then : | |
1762 | ac_retval=0 | |
1763 | else | |
1764 | $as_echo "$as_me: failed program was:" >&5 | |
1765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1766 | ||
1767 | ac_retval=1 | |
1768 | fi | |
1769 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1770 | return $ac_retval | |
1771 | ||
1772 | } # ac_fn_cxx_try_compile | |
1773 | ||
1774 | # ac_fn_c_try_link LINENO | |
1775 | # ----------------------- | |
1776 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1777 | ac_fn_c_try_link () | |
1778 | { | |
1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1781 | if { { ac_try="$ac_link" | |
1782 | case "(($ac_try" in | |
1783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1784 | *) ac_try_echo=$ac_try;; | |
1785 | esac | |
1786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1787 | $as_echo "$ac_try_echo"; } >&5 | |
1788 | (eval "$ac_link") 2>conftest.err | |
1789 | ac_status=$? | |
1790 | if test -s conftest.err; then | |
1791 | grep -v '^ *+' conftest.err >conftest.er1 | |
1792 | cat conftest.er1 >&5 | |
1793 | mv -f conftest.er1 conftest.err | |
1794 | fi | |
1795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1796 | test $ac_status = 0; } && { | |
1797 | test -z "$ac_c_werror_flag" || | |
1798 | test ! -s conftest.err | |
1799 | } && test -s conftest$ac_exeext && { | |
1800 | test "$cross_compiling" = yes || | |
1801 | $as_test_x conftest$ac_exeext | |
1802 | }; then : | |
1803 | ac_retval=0 | |
1804 | else | |
1805 | $as_echo "$as_me: failed program was:" >&5 | |
1806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1807 | ||
1808 | ac_retval=1 | |
1809 | fi | |
1810 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1811 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1812 | # interfere with the next link command; also delete a directory that is | |
1813 | # left behind by Apple's compiler. We do this before executing the actions. | |
1814 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1815 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1816 | return $ac_retval | |
1817 | ||
1818 | } # ac_fn_c_try_link | |
33ad93b9 RG |
1819 | |
1820 | # ac_fn_c_try_run LINENO | |
1821 | # ---------------------- | |
1822 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1823 | # that executables *can* be run. | |
1824 | ac_fn_c_try_run () | |
1825 | { | |
1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1827 | if { { ac_try="$ac_link" | |
1828 | case "(($ac_try" in | |
1829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1830 | *) ac_try_echo=$ac_try;; | |
1831 | esac | |
1832 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1833 | $as_echo "$ac_try_echo"; } >&5 | |
1834 | (eval "$ac_link") 2>&5 | |
1835 | ac_status=$? | |
1836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1837 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1838 | { { case "(($ac_try" in | |
1839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1840 | *) ac_try_echo=$ac_try;; | |
1841 | esac | |
1842 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1843 | $as_echo "$ac_try_echo"; } >&5 | |
1844 | (eval "$ac_try") 2>&5 | |
1845 | ac_status=$? | |
1846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1847 | test $ac_status = 0; }; }; then : | |
1848 | ac_retval=0 | |
1849 | else | |
1850 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1851 | $as_echo "$as_me: failed program was:" >&5 | |
1852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1853 | ||
1854 | ac_retval=$ac_status | |
1855 | fi | |
1856 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1857 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1858 | return $ac_retval | |
1859 | ||
1860 | } # ac_fn_c_try_run | |
5213506e | 1861 | cat >config.log <<_ACEOF |
1c710c3c DJ |
1862 | This file contains any messages produced by compilers while |
1863 | running configure, to aid debugging if configure makes a mistake. | |
1864 | ||
1865 | It was created by $as_me, which was | |
5213506e | 1866 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
1867 | |
1868 | $ $0 $@ | |
1869 | ||
1870 | _ACEOF | |
5213506e | 1871 | exec 5>>config.log |
1c710c3c DJ |
1872 | { |
1873 | cat <<_ASUNAME | |
1874 | ## --------- ## | |
1875 | ## Platform. ## | |
1876 | ## --------- ## | |
1877 | ||
1878 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1879 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1880 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1881 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1882 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1883 | ||
1884 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1885 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1886 | ||
1887 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1888 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1889 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1890 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1891 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1892 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1893 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1894 | ||
1895 | _ASUNAME | |
1896 | ||
1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1898 | for as_dir in $PATH | |
1899 | do | |
1900 | IFS=$as_save_IFS | |
1901 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1902 | $as_echo "PATH: $as_dir" |
1903 | done | |
1904 | IFS=$as_save_IFS | |
1c710c3c DJ |
1905 | |
1906 | } >&5 | |
1907 | ||
1908 | cat >&5 <<_ACEOF | |
1909 | ||
1910 | ||
1911 | ## ----------- ## | |
1912 | ## Core tests. ## | |
1913 | ## ----------- ## | |
1914 | ||
1915 | _ACEOF | |
1916 | ||
1917 | ||
1918 | # Keep a trace of the command line. | |
1919 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1920 | # Strip out --silent because we don't want to record it for future runs. | |
1921 | # Also quote any args containing shell meta-characters. | |
1922 | # Make two passes to allow for proper duplicate-argument suppression. | |
1923 | ac_configure_args= | |
1924 | ac_configure_args0= | |
1925 | ac_configure_args1= | |
1c710c3c DJ |
1926 | ac_must_keep_next=false |
1927 | for ac_pass in 1 2 | |
1928 | do | |
1929 | for ac_arg | |
1930 | do | |
1931 | case $ac_arg in | |
1932 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1933 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1934 | | -silent | --silent | --silen | --sile | --sil) | |
1935 | continue ;; | |
5213506e RW |
1936 | *\'*) |
1937 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1938 | esac |
1939 | case $ac_pass in | |
5213506e | 1940 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 1941 | 2) |
5213506e | 1942 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
1943 | if test $ac_must_keep_next = true; then |
1944 | ac_must_keep_next=false # Got value, back to normal. | |
1945 | else | |
1946 | case $ac_arg in | |
1947 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1948 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1949 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1950 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1951 | case "$ac_configure_args0 " in | |
1952 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1953 | esac | |
1954 | ;; | |
1955 | -* ) ac_must_keep_next=true ;; | |
1956 | esac | |
1957 | fi | |
5213506e | 1958 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
1959 | ;; |
1960 | esac | |
1961 | done | |
1962 | done | |
5213506e RW |
1963 | { ac_configure_args0=; unset ac_configure_args0;} |
1964 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
1965 | |
1966 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1967 | # config.log. We remove comments because anyway the quotes in there | |
1968 | # would cause problems or look ugly. | |
5213506e RW |
1969 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1970 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
1971 | trap 'exit_status=$? |
1972 | # Save into config.log some information that might help in debugging. | |
1973 | { | |
1974 | echo | |
1975 | ||
1976 | cat <<\_ASBOX | |
1977 | ## ---------------- ## | |
1978 | ## Cache variables. ## | |
1979 | ## ---------------- ## | |
1980 | _ASBOX | |
1981 | echo | |
1982 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1983 | ( |
1984 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1985 | eval ac_val=\$$ac_var | |
1986 | case $ac_val in #( | |
1987 | *${as_nl}*) | |
1988 | case $ac_var in #( | |
1989 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1990 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1991 | esac | |
1992 | case $ac_var in #( | |
1993 | _ | IFS | as_nl) ;; #( | |
1994 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1995 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1996 | esac ;; | |
1997 | esac | |
1998 | done | |
1c710c3c | 1999 | (set) 2>&1 | |
5213506e RW |
2000 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2001 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2002 | sed -n \ |
5213506e RW |
2003 | "s/'\''/'\''\\\\'\'''\''/g; |
2004 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2005 | ;; #( | |
1c710c3c | 2006 | *) |
5213506e | 2007 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2008 | ;; |
5213506e RW |
2009 | esac | |
2010 | sort | |
2011 | ) | |
1c710c3c DJ |
2012 | echo |
2013 | ||
2014 | cat <<\_ASBOX | |
2015 | ## ----------------- ## | |
2016 | ## Output variables. ## | |
2017 | ## ----------------- ## | |
2018 | _ASBOX | |
2019 | echo | |
2020 | for ac_var in $ac_subst_vars | |
2021 | do | |
5213506e RW |
2022 | eval ac_val=\$$ac_var |
2023 | case $ac_val in | |
2024 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2025 | esac | |
2026 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2027 | done | sort |
2028 | echo | |
2029 | ||
2030 | if test -n "$ac_subst_files"; then | |
2031 | cat <<\_ASBOX | |
5213506e RW |
2032 | ## ------------------- ## |
2033 | ## File substitutions. ## | |
2034 | ## ------------------- ## | |
1c710c3c DJ |
2035 | _ASBOX |
2036 | echo | |
2037 | for ac_var in $ac_subst_files | |
2038 | do | |
5213506e RW |
2039 | eval ac_val=\$$ac_var |
2040 | case $ac_val in | |
2041 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2042 | esac | |
2043 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2044 | done | sort |
2045 | echo | |
2046 | fi | |
2047 | ||
2048 | if test -s confdefs.h; then | |
2049 | cat <<\_ASBOX | |
2050 | ## ----------- ## | |
2051 | ## confdefs.h. ## | |
2052 | ## ----------- ## | |
2053 | _ASBOX | |
2054 | echo | |
5213506e | 2055 | cat confdefs.h |
1c710c3c DJ |
2056 | echo |
2057 | fi | |
2058 | test "$ac_signal" != 0 && | |
5213506e RW |
2059 | $as_echo "$as_me: caught signal $ac_signal" |
2060 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2061 | } >&5 |
5213506e RW |
2062 | rm -f core *.core core.conftest.* && |
2063 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2064 | exit $exit_status |
5213506e | 2065 | ' 0 |
1c710c3c | 2066 | for ac_signal in 1 2 13 15; do |
5213506e | 2067 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2068 | done |
2069 | ac_signal=0 | |
2070 | ||
2071 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2072 | rm -f -r conftest* confdefs.h |
2073 | ||
2074 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2075 | |
2076 | # Predefined preprocessor variables. | |
2077 | ||
2078 | cat >>confdefs.h <<_ACEOF | |
2079 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2080 | _ACEOF | |
2081 | ||
1c710c3c DJ |
2082 | cat >>confdefs.h <<_ACEOF |
2083 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2084 | _ACEOF | |
2085 | ||
1c710c3c DJ |
2086 | cat >>confdefs.h <<_ACEOF |
2087 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2088 | _ACEOF | |
0b0dc272 | 2089 | |
1c710c3c DJ |
2090 | cat >>confdefs.h <<_ACEOF |
2091 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2092 | _ACEOF | |
2093 | ||
1c710c3c DJ |
2094 | cat >>confdefs.h <<_ACEOF |
2095 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2096 | _ACEOF | |
2097 | ||
5213506e RW |
2098 | cat >>confdefs.h <<_ACEOF |
2099 | #define PACKAGE_URL "$PACKAGE_URL" | |
2100 | _ACEOF | |
2101 | ||
1c710c3c DJ |
2102 | |
2103 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2104 | # Prefer an explicitly selected file to automatically selected ones. |
2105 | ac_site_file1=NONE | |
2106 | ac_site_file2=NONE | |
2107 | if test -n "$CONFIG_SITE"; then | |
2108 | ac_site_file1=$CONFIG_SITE | |
2109 | elif test "x$prefix" != xNONE; then | |
2110 | ac_site_file1=$prefix/share/config.site | |
2111 | ac_site_file2=$prefix/etc/config.site | |
2112 | else | |
2113 | ac_site_file1=$ac_default_prefix/share/config.site | |
2114 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2115 | fi |
5213506e RW |
2116 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2117 | do | |
2118 | test "x$ac_site_file" = xNONE && continue | |
671aa708 | 2119 | if test -r "$ac_site_file"; then |
5213506e RW |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2121 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2122 | sed 's/^/| /' "$ac_site_file" >&5 |
671aa708 NN |
2123 | . "$ac_site_file" |
2124 | fi | |
2125 | done | |
2126 | ||
2127 | if test -r "$cache_file"; then | |
1c710c3c DJ |
2128 | # Some versions of bash will fail to source /dev/null (special |
2129 | # files actually), so we avoid doing that. | |
2130 | if test -f "$cache_file"; then | |
5213506e RW |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2132 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2133 | case $cache_file in |
5213506e RW |
2134 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2135 | *) . "./$cache_file";; | |
1c710c3c DJ |
2136 | esac |
2137 | fi | |
671aa708 | 2138 | else |
5213506e RW |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2140 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2141 | >$cache_file |
2142 | fi | |
2143 | ||
2144 | # Check that the precious variables saved in the cache have kept the same | |
2145 | # value. | |
2146 | ac_cache_corrupted=false | |
5213506e | 2147 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2148 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2149 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2150 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2151 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2152 | case $ac_old_set,$ac_new_set in |
2153 | set,) | |
5213506e RW |
2154 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2155 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2156 | ac_cache_corrupted=: ;; |
2157 | ,set) | |
5213506e RW |
2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2159 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2160 | ac_cache_corrupted=: ;; |
2161 | ,);; | |
2162 | *) | |
2163 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2164 | # differences in whitespace do not lead to failure. |
2165 | ac_old_val_w=`echo x $ac_old_val` | |
2166 | ac_new_val_w=`echo x $ac_new_val` | |
2167 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2169 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2170 | ac_cache_corrupted=: | |
2171 | else | |
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2173 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2174 | eval $ac_var=\$ac_old_val | |
2175 | fi | |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2177 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2179 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2180 | fi;; |
2181 | esac | |
2182 | # Pass precious variables to config.status. | |
2183 | if test "$ac_new_set" = set; then | |
2184 | case $ac_new_val in | |
5213506e | 2185 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2186 | *) ac_arg=$ac_var=$ac_new_val ;; |
2187 | esac | |
2188 | case " $ac_configure_args " in | |
2189 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2190 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2191 | esac |
2192 | fi | |
2193 | done | |
2194 | if $ac_cache_corrupted; then | |
5213506e RW |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2196 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2198 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2199 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
671aa708 | 2200 | fi |
5213506e RW |
2201 | ## -------------------- ## |
2202 | ## Main body of script. ## | |
2203 | ## -------------------- ## | |
671aa708 | 2204 | |
2aeb72e9 DD |
2205 | ac_ext=c |
2206 | ac_cpp='$CPP $CPPFLAGS' | |
2207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2210 | ||
1c710c3c DJ |
2211 | |
2212 | ||
2213 | ||
1c710c3c DJ |
2214 | |
2215 | ||
0115d4a3 | 2216 | |
1c710c3c | 2217 | |
ad33ff57 RW |
2218 | |
2219 | progname=$0 | |
2220 | # if PWD already has a value, it is probably wrong. | |
2221 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2222 | ||
2223 | # Export original configure arguments for use by sub-configures. | |
2224 | # Quote arguments with shell meta charatcers. | |
2225 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2226 | set -- "$progname" "$@" | |
2227 | for ac_arg | |
2228 | do | |
2229 | case "$ac_arg" in | |
2230 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2231 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2232 | # if the argument is of the form -foo=baz, quote the baz part only | |
2233 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2234 | *) ;; | |
2235 | esac | |
2236 | # Add the quoted argument to the list. | |
2237 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2238 | done | |
2239 | if test "$silent" = yes; then | |
2240 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2241 | fi | |
2242 | # Remove the initial space we just introduced and, as these will be | |
2243 | # expanded by make, quote '$'. | |
2244 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2245 | ||
1c710c3c DJ |
2246 | |
2247 | # Find the build, host, and target systems. | |
671aa708 | 2248 | ac_aux_dir= |
5213506e RW |
2249 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2250 | for ac_t in install-sh install.sh shtool; do | |
2251 | if test -f "$ac_dir/$ac_t"; then | |
2252 | ac_aux_dir=$ac_dir | |
2253 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2254 | break 2 | |
2255 | fi | |
2256 | done | |
671aa708 NN |
2257 | done |
2258 | if test -z "$ac_aux_dir"; then | |
5213506e | 2259 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2260 | fi |
5213506e RW |
2261 | |
2262 | # These three variables are undocumented and unsupported, | |
2263 | # and are intended to be withdrawn in a future Autoconf release. | |
2264 | # They can cause serious problems if a builder's source tree is in a directory | |
2265 | # whose full name contains unusual characters. | |
2266 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2267 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2268 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2269 | ||
671aa708 | 2270 | |
1c710c3c | 2271 | # Make sure we can run config.sub. |
5213506e RW |
2272 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2273 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2274 | ||
2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2276 | $as_echo_n "checking build system type... " >&6; } | |
2277 | if test "${ac_cv_build+set}" = set; then : | |
2278 | $as_echo_n "(cached) " >&6 | |
2279 | else | |
2280 | ac_build_alias=$build_alias | |
2281 | test "x$ac_build_alias" = x && | |
2282 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2283 | test "x$ac_build_alias" = x && | |
2284 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2285 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2286 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2287 | ||
2288 | fi | |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2290 | $as_echo "$ac_cv_build" >&6; } | |
2291 | case $ac_cv_build in | |
2292 | *-*-*) ;; | |
2293 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2294 | esac | |
1c710c3c | 2295 | build=$ac_cv_build |
5213506e RW |
2296 | ac_save_IFS=$IFS; IFS='-' |
2297 | set x $ac_cv_build | |
2298 | shift | |
2299 | build_cpu=$1 | |
2300 | build_vendor=$2 | |
2301 | shift; shift | |
2302 | # Remember, the first character of IFS is used to create $*, | |
2303 | # except with old shells: | |
2304 | build_os=$* | |
2305 | IFS=$ac_save_IFS | |
2306 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2307 | |
671aa708 | 2308 | |
1c710c3c DJ |
2309 | case ${build_alias} in |
2310 | "") build_noncanonical=${build} ;; | |
2311 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2312 | esac |
2313 | ||
2314 | ||
af71363e | 2315 | |
1c710c3c DJ |
2316 | case ${host_alias} in |
2317 | "") host_noncanonical=${build_noncanonical} ;; | |
2318 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2319 | esac |
2320 | ||
af71363e | 2321 | |
1c710c3c DJ |
2322 | |
2323 | case ${target_alias} in | |
2324 | "") target_noncanonical=${host_noncanonical} ;; | |
2325 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2326 | esac |
2327 | ||
af71363e | 2328 | |
1c710c3c DJ |
2329 | |
2330 | ||
2331 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2332 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2333 | NONENONEs,x,x, && | |
1c710c3c | 2334 | program_transform_name=s,y,y, |
af71363e | 2335 | |
5213506e RW |
2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2337 | $as_echo_n "checking host system type... " >&6; } | |
2338 | if test "${ac_cv_host+set}" = set; then : | |
2339 | $as_echo_n "(cached) " >&6 | |
af71363e | 2340 | else |
5213506e RW |
2341 | if test "x$host_alias" = x; then |
2342 | ac_cv_host=$ac_cv_build | |
2343 | else | |
2344 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2345 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2346 | fi | |
1c710c3c | 2347 | |
af71363e | 2348 | fi |
5213506e RW |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2350 | $as_echo "$ac_cv_host" >&6; } | |
2351 | case $ac_cv_host in | |
2352 | *-*-*) ;; | |
2353 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2354 | esac | |
1c710c3c | 2355 | host=$ac_cv_host |
5213506e RW |
2356 | ac_save_IFS=$IFS; IFS='-' |
2357 | set x $ac_cv_host | |
2358 | shift | |
2359 | host_cpu=$1 | |
2360 | host_vendor=$2 | |
2361 | shift; shift | |
2362 | # Remember, the first character of IFS is used to create $*, | |
2363 | # except with old shells: | |
2364 | host_os=$* | |
2365 | IFS=$ac_save_IFS | |
2366 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2367 | |
2368 | ||
5213506e RW |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2370 | $as_echo_n "checking target system type... " >&6; } | |
2371 | if test "${ac_cv_target+set}" = set; then : | |
2372 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 2373 | else |
5213506e RW |
2374 | if test "x$target_alias" = x; then |
2375 | ac_cv_target=$ac_cv_host | |
2376 | else | |
2377 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2378 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2379 | fi | |
1c710c3c DJ |
2380 | |
2381 | fi | |
5213506e RW |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2383 | $as_echo "$ac_cv_target" >&6; } | |
2384 | case $ac_cv_target in | |
2385 | *-*-*) ;; | |
2386 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2387 | esac | |
1c710c3c | 2388 | target=$ac_cv_target |
5213506e RW |
2389 | ac_save_IFS=$IFS; IFS='-' |
2390 | set x $ac_cv_target | |
2391 | shift | |
2392 | target_cpu=$1 | |
2393 | target_vendor=$2 | |
2394 | shift; shift | |
2395 | # Remember, the first character of IFS is used to create $*, | |
2396 | # except with old shells: | |
2397 | target_os=$* | |
2398 | IFS=$ac_save_IFS | |
2399 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2400 | |
2401 | ||
2402 | # The aliases save the names the user supplied, while $host etc. | |
2403 | # will get canonicalized. | |
2404 | test -n "$target_alias" && | |
2405 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2406 | NONENONEs,x,x, && | |
2407 | program_prefix=${target_alias}- | |
5213506e | 2408 | |
671aa708 | 2409 | test "$program_prefix" != NONE && |
5213506e | 2410 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2411 | # Use a double $ so make ignores it. |
2412 | test "$program_suffix" != NONE && | |
5213506e RW |
2413 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2414 | # Double any \ or $. | |
1c710c3c | 2415 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2416 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2417 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2418 | |
671aa708 NN |
2419 | |
2420 | ||
775956d0 NN |
2421 | # Get 'install' or 'install-sh' and its variants. |
2422 | # Find a good install program. We prefer a C program (faster), | |
2423 | # so one script is as good as another. But avoid the broken or | |
2424 | # incompatible versions: | |
2425 | # SysV /etc/install, /usr/sbin/install | |
2426 | # SunOS /usr/etc/install | |
2427 | # IRIX /sbin/install | |
2428 | # AIX /bin/install | |
1c710c3c | 2429 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2430 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2431 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2432 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2433 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2434 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2435 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2437 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2438 | if test -z "$INSTALL"; then |
5213506e RW |
2439 | if test "${ac_cv_path_install+set}" = set; then : |
2440 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
2441 | else |
2442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2443 | for as_dir in $PATH | |
2444 | do | |
2445 | IFS=$as_save_IFS | |
2446 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2447 | # Account for people who put trailing slashes in PATH elements. |
2448 | case $as_dir/ in #(( | |
2449 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2450 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2451 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2452 | /usr/ucb/* ) ;; |
2453 | *) | |
2454 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2455 | # Don't use installbsd from OSF since it installs stuff as root | |
2456 | # by default. | |
2457 | for ac_prog in ginstall scoinst install; do | |
2458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2459 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
775956d0 | 2460 | if test $ac_prog = install && |
1c710c3c | 2461 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2462 | # AIX install. It has an incompatible calling convention. |
2463 | : | |
1c710c3c DJ |
2464 | elif test $ac_prog = install && |
2465 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2466 | # program-specific install script used by HP pwplus--don't use. | |
2467 | : | |
775956d0 | 2468 | else |
38d24731 RW |
2469 | rm -rf conftest.one conftest.two conftest.dir |
2470 | echo one > conftest.one | |
2471 | echo two > conftest.two | |
2472 | mkdir conftest.dir | |
2473 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2474 | test -s conftest.one && test -s conftest.two && | |
2475 | test -s conftest.dir/conftest.one && | |
2476 | test -s conftest.dir/conftest.two | |
2477 | then | |
2478 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2479 | break 3 | |
2480 | fi | |
775956d0 NN |
2481 | fi |
2482 | fi | |
2483 | done | |
1c710c3c DJ |
2484 | done |
2485 | ;; | |
2486 | esac | |
5213506e RW |
2487 | |
2488 | done | |
2489 | IFS=$as_save_IFS | |
1c710c3c | 2490 | |
38d24731 | 2491 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2492 | |
2493 | fi | |
2494 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2495 | INSTALL=$ac_cv_path_install |
775956d0 | 2496 | else |
38d24731 RW |
2497 | # As a last resort, use the slow shell script. Don't cache a |
2498 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2499 | # break other packages using the cache if that directory is |
38d24731 | 2500 | # removed, or if the value is a relative name. |
1c710c3c | 2501 | INSTALL=$ac_install_sh |
775956d0 NN |
2502 | fi |
2503 | fi | |
5213506e RW |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2505 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2506 | |
2507 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2508 | # It thinks the first close brace ends the variable substitution. | |
2509 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2510 | ||
1c710c3c | 2511 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2512 | |
2513 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2514 | ||
5213506e RW |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2516 | $as_echo_n "checking whether ln works... " >&6; } | |
2517 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2518 | $as_echo_n "(cached) " >&6 | |
ad6717df PB |
2519 | else |
2520 | rm -f conftestdata_t | |
2521 | echo >conftestdata_f | |
2522 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2523 | then | |
2524 | acx_cv_prog_LN=ln | |
2525 | else | |
2526 | acx_cv_prog_LN=no | |
2527 | fi | |
2528 | rm -f conftestdata_f conftestdata_t | |
2529 | ||
2530 | fi | |
2531 | if test $acx_cv_prog_LN = no; then | |
2532 | LN="cp" | |
5213506e RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2534 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2535 | else |
2536 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2538 | $as_echo "yes" >&6; } | |
ad6717df PB |
2539 | fi |
2540 | ||
5213506e RW |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2542 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2543 | LN_S=$as_ln_s |
2544 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2546 | $as_echo "yes" >&6; } | |
fb0103e5 | 2547 | else |
5213506e RW |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2549 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2550 | fi |
2551 | ||
87264276 PB |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2553 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2554 | if test "${ac_cv_path_SED+set}" = set; then : | |
2555 | $as_echo_n "(cached) " >&6 | |
2556 | else | |
2557 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2558 | for ac_i in 1 2 3 4 5 6 7; do | |
2559 | ac_script="$ac_script$as_nl$ac_script" | |
2560 | done | |
2561 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2562 | { ac_script=; unset ac_script;} | |
2563 | if test -z "$SED"; then | |
2564 | ac_path_SED_found=false | |
2565 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2567 | for as_dir in $PATH | |
2568 | do | |
2569 | IFS=$as_save_IFS | |
2570 | test -z "$as_dir" && as_dir=. | |
2571 | for ac_prog in sed gsed; do | |
2572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2573 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2574 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2575 | # Check for GNU ac_path_SED and select it if it is found. | |
2576 | # Check for GNU $ac_path_SED | |
2577 | case `"$ac_path_SED" --version 2>&1` in | |
2578 | *GNU*) | |
2579 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2580 | *) | |
2581 | ac_count=0 | |
2582 | $as_echo_n 0123456789 >"conftest.in" | |
2583 | while : | |
2584 | do | |
2585 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2586 | mv "conftest.tmp" "conftest.in" | |
2587 | cp "conftest.in" "conftest.nl" | |
2588 | $as_echo '' >> "conftest.nl" | |
2589 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2590 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2591 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2592 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2593 | # Best one so far, save it but keep looking for a better one | |
2594 | ac_cv_path_SED="$ac_path_SED" | |
2595 | ac_path_SED_max=$ac_count | |
2596 | fi | |
2597 | # 10*(2^10) chars as input seems more than enough | |
2598 | test $ac_count -gt 10 && break | |
2599 | done | |
2600 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2601 | esac | |
2602 | ||
2603 | $ac_path_SED_found && break 3 | |
2604 | done | |
2605 | done | |
2606 | done | |
2607 | IFS=$as_save_IFS | |
2608 | if test -z "$ac_cv_path_SED"; then | |
2609 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2610 | fi | |
2611 | else | |
2612 | ac_cv_path_SED=$SED | |
2613 | fi | |
2614 | ||
2615 | fi | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2617 | $as_echo "$ac_cv_path_SED" >&6; } | |
2618 | SED="$ac_cv_path_SED" | |
2619 | rm -f conftest.sed | |
2620 | ||
2621 | for ac_prog in gawk mawk nawk awk | |
2622 | do | |
2623 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2624 | set dummy $ac_prog; ac_word=$2 | |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2626 | $as_echo_n "checking for $ac_word... " >&6; } | |
2627 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2628 | $as_echo_n "(cached) " >&6 | |
2629 | else | |
2630 | if test -n "$AWK"; then | |
2631 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2632 | else | |
2633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2634 | for as_dir in $PATH | |
2635 | do | |
2636 | IFS=$as_save_IFS | |
2637 | test -z "$as_dir" && as_dir=. | |
2638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2640 | ac_cv_prog_AWK="$ac_prog" | |
2641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2642 | break 2 | |
2643 | fi | |
2644 | done | |
2645 | done | |
2646 | IFS=$as_save_IFS | |
2647 | ||
2648 | fi | |
2649 | fi | |
2650 | AWK=$ac_cv_prog_AWK | |
2651 | if test -n "$AWK"; then | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2653 | $as_echo "$AWK" >&6; } | |
2654 | else | |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2656 | $as_echo "no" >&6; } | |
2657 | fi | |
2658 | ||
2659 | ||
2660 | test -n "$AWK" && break | |
2661 | done | |
2662 | ||
775956d0 | 2663 | |
ee6a22df L |
2664 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2665 | ||
2666 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2667 | # a relative path. | |
2668 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2669 | INSTALL="${srcpwd}/install-sh -c" | |
2670 | fi | |
2671 | ||
671aa708 NN |
2672 | # Set srcdir to "." if that's what it is. |
2673 | # This is important for multilib support. | |
2674 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2675 | if test "${pwd}" = "${srcpwd}" ; then |
2676 | srcdir=. | |
79c06341 JL |
2677 | fi |
2678 | ||
671aa708 | 2679 | topsrcdir=$srcpwd |
5d4a5ee6 | 2680 | |
671aa708 | 2681 | extra_host_args= |
afabd8e6 | 2682 | |
671aa708 NN |
2683 | ### To add a new directory to the tree, first choose whether it is a target |
2684 | ### or a host dependent tool. Then put it into the appropriate list | |
2685 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2686 | |
1c710c3c | 2687 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2688 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2689 | |
1c710c3c DJ |
2690 | # Dependency sorting is only needed when *configuration* must be done in |
2691 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2692 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2693 | |
671aa708 NN |
2694 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2695 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2696 | |
23f6b2f9 PB |
2697 | # these library is used by various programs built for the build |
2698 | # environment | |
2699 | # | |
2700 | build_libs="build-libiberty" | |
2701 | ||
2702 | # these tools are built for the build environment | |
85bfb75e | 2703 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2704 | |
671aa708 NN |
2705 | # these libraries are used by various programs built for the host environment |
2706 | # | |
33ad93b9 | 2707 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv" |
671aa708 | 2708 | |
671aa708 NN |
2709 | # these tools are built for the host environment |
2710 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2711 | # know that we are building the simulator. | |
2712 | # binutils, gas and ld appear in that order because it makes sense to run | |
2713 | # "make check" in that particular order. | |
38e3d868 | 2714 | # If --enable-gold is used, "gold" may replace "ld". |
85bfb75e | 2715 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
671aa708 NN |
2716 | |
2717 | # libgcj represents the runtime libraries only used by gcj. | |
2718 | libgcj="target-libffi \ | |
671aa708 | 2719 | target-zlib \ |
671aa708 NN |
2720 | target-libjava" |
2721 | ||
2722 | # these libraries are built for the target environment, and are built after | |
2723 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2724 | # Note that libiberty is not a target library. |
291f172e | 2725 | target_libraries="target-libgcc \ |
671aa708 NN |
2726 | target-libgloss \ |
2727 | target-newlib \ | |
6d3b5aea | 2728 | target-libgomp \ |
48310492 | 2729 | target-libatomic \ |
0a35513e | 2730 | target-libitm \ |
cb543528 | 2731 | target-libstdc++-v3 \ |
6de9cd9a | 2732 | target-libmudflap \ |
77008252 | 2733 | target-libssp \ |
1ec601bf | 2734 | target-libquadmath \ |
6de9cd9a | 2735 | target-libgfortran \ |
7cd0cf9c | 2736 | target-boehm-gc \ |
77d187bc | 2737 | ${libgcj} \ |
d9cdb878 | 2738 | target-libobjc \ |
632e2a07 ILT |
2739 | target-libada \ |
2740 | target-libgo" | |
671aa708 | 2741 | |
4dbda6f0 NN |
2742 | # these tools are built using the target libraries, and are intended to |
2743 | # run only in the target environment | |
671aa708 | 2744 | # |
4dbda6f0 | 2745 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2746 | # list belongs in this list. |
671aa708 | 2747 | # |
85bfb75e | 2748 | target_tools="target-rda" |
79c06341 | 2749 | |
671aa708 | 2750 | ################################################################################ |
79c06341 | 2751 | |
671aa708 NN |
2752 | ## All tools belong in one of the four categories, and are assigned above |
2753 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2754 | ## is important because configure will choke if they ever get through. | |
2755 | ## ${configdirs} is directories we build using the host tools. | |
2756 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2757 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2758 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2759 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2760 | |
ac9e6043 RW |
2761 | |
2762 | ||
671aa708 | 2763 | ################################################################################ |
79c06341 | 2764 | |
671aa708 | 2765 | srcname="gnu development package" |
79c06341 | 2766 | |
671aa708 NN |
2767 | # This gets set non-empty for some net releases of packages. |
2768 | appdirs="" | |
79c06341 | 2769 | |
671aa708 NN |
2770 | # Define is_cross_compiler to save on calls to 'test'. |
2771 | is_cross_compiler= | |
2772 | if test x"${host}" = x"${target}" ; then | |
2773 | is_cross_compiler=no | |
79c06341 | 2774 | else |
671aa708 | 2775 | is_cross_compiler=yes |
1c710c3c | 2776 | fi |
79c06341 | 2777 | |
b4acb5ef | 2778 | # Find the build and target subdir names. |
8b87bb96 | 2779 | |
2e9e6f68 DJ |
2780 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2781 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2782 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2783 | # However, they still use the build modules, because the corresponding | |
2784 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2785 | # finishes. So: | |
2786 | # - build_subdir is where we find build modules, and never changes. | |
2787 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2788 | ||
2789 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2790 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2791 | |
5213506e RW |
2792 | # Check whether --with-build-libsubdir was given. |
2793 | if test "${with_build_libsubdir+set}" = set; then : | |
2794 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2795 | else |
2796 | build_libsubdir="$build_subdir" | |
5213506e RW |
2797 | fi |
2798 | ||
215c351a PB |
2799 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2800 | if ( test $srcdir = . && test -d gcc ) \ | |
2801 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2802 | host_subdir="host-${host_noncanonical}" | |
2803 | else | |
2804 | host_subdir=. | |
2805 | fi | |
8b87bb96 NN |
2806 | # No prefix. |
2807 | target_subdir=${target_noncanonical} | |
1c710c3c | 2808 | |
0db770bd RW |
2809 | # Be sure to cover against remnants of an in-tree build. |
2810 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2811 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2812 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2813 | fi | |
79c06341 | 2814 | |
671aa708 NN |
2815 | # Skipdirs are removed silently. |
2816 | skipdirs= | |
2817 | # Noconfigdirs are removed loudly. | |
2818 | noconfigdirs="" | |
79c06341 | 2819 | |
671aa708 NN |
2820 | use_gnu_ld= |
2821 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2822 | if test x$with_gnu_ld = xno ; then | |
2823 | use_gnu_ld=no | |
5afab7ad | 2824 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2825 | fi |
2826 | ||
671aa708 NN |
2827 | use_gnu_as= |
2828 | # Make sure we don't let GNU as be added if we didn't want it. | |
2829 | if test x$with_gnu_as = xno ; then | |
2830 | use_gnu_as=no | |
2831 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2832 | fi |
2833 | ||
d7f09764 DN |
2834 | use_included_zlib= |
2835 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2836 | if test x$with_system_zlib = xyes ; then | |
2837 | use_included_zlib=no | |
2838 | noconfigdirs="$noconfigdirs zlib" | |
2839 | fi | |
2840 | ||
1c710c3c | 2841 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2842 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2843 | |
671aa708 NN |
2844 | case ${with_x} in |
2845 | yes | "") ;; # the default value for this tree is that X11 is available | |
2846 | no) | |
b4f96efe | 2847 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2848 | # We won't be able to build gdbtk without X. |
1c710c3c | 2849 | enable_gdbtk=no |
671aa708 NN |
2850 | ;; |
2851 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2852 | esac | |
79c06341 | 2853 | |
1bcce263 | 2854 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2855 | # Remove these if host=target. |
2856 | cross_only="target-libgloss target-newlib target-opcodes" | |
2857 | ||
2858 | case $is_cross_compiler in | |
2859 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2860 | esac |
79c06341 | 2861 | |
671aa708 NN |
2862 | # If both --with-headers and --with-libs are specified, default to |
2863 | # --without-newlib. | |
ee6a22df L |
2864 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2865 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2866 | if test x"${with_newlib}" = x ; then |
2867 | with_newlib=no | |
2868 | fi | |
79c06341 JL |
2869 | fi |
2870 | ||
671aa708 NN |
2871 | # Recognize --with-newlib/--without-newlib. |
2872 | case ${with_newlib} in | |
2873 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2874 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2875 | esac | |
79c06341 | 2876 | |
21539e2e MK |
2877 | # Handle --enable-gold, --enable-ld. |
2878 | # --disable-gold [--enable-ld] | |
2879 | # Build only ld. Default option. | |
9580395f L |
2880 | # --enable-gold [--enable-ld] |
2881 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2882 | # as "ld.bfd" and "ld". | |
2883 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2884 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2885 | # install ld as "ld.bfd". | |
2886 | # --enable-gold[=default] --disable-ld | |
2887 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2888 | # --enable-gold --enable-ld=default | |
9580395f L |
2889 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2890 | # and ld.bfd). | |
21539e2e MK |
2891 | # In other words, ld is default |
2892 | # --enable-gold=default --enable-ld=default | |
2893 | # Error. | |
2894 | ||
2895 | default_ld= | |
5213506e RW |
2896 | # Check whether --enable-gold was given. |
2897 | if test "${enable_gold+set}" = set; then : | |
2898 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2899 | else |
2900 | ENABLE_GOLD=no | |
5213506e RW |
2901 | fi |
2902 | ||
21539e2e MK |
2903 | case "${ENABLE_GOLD}" in |
2904 | yes|default) | |
38e3d868 RM |
2905 | # Check for ELF target. |
2906 | is_elf=no | |
2907 | case "${target}" in | |
2908 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2909 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
8c6d158a JM |
2910 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2911 | | *-*-solaris2* | *-*-nto*) | |
38e3d868 RM |
2912 | case "${target}" in |
2913 | *-*-linux*aout* | *-*-linux*oldld*) | |
2914 | ;; | |
2915 | *) | |
2916 | is_elf=yes | |
2917 | ;; | |
2918 | esac | |
2919 | esac | |
2920 | ||
2921 | if test "$is_elf" = "yes"; then | |
2922 | # Check for target supported by gold. | |
5afab7ad | 2923 | case "${target}" in |
38e3d868 | 2924 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
21539e2e MK |
2925 | configdirs="$configdirs gold" |
2926 | if test x${ENABLE_GOLD} = xdefault; then | |
2927 | default_ld=gold | |
2928 | fi | |
38e3d868 | 2929 | ENABLE_GOLD=yes |
5afab7ad ILT |
2930 | ;; |
2931 | esac | |
38e3d868 RM |
2932 | fi |
2933 | ;; | |
2934 | no) | |
2935 | ;; | |
2936 | *) | |
2937 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2938 | ;; | |
21539e2e MK |
2939 | esac |
2940 | ||
2941 | # Check whether --enable-ld was given. | |
2942 | if test "${enable_ld+set}" = set; then : | |
2943 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2944 | else | |
2945 | ENABLE_LD=yes | |
2946 | fi | |
2947 | ||
2948 | ||
2949 | case "${ENABLE_LD}" in | |
2950 | default) | |
9580395f | 2951 | if test x${default_ld} != x; then |
21539e2e MK |
2952 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2953 | fi | |
2954 | ;; | |
2955 | yes) | |
2956 | ;; | |
2957 | no) | |
2958 | if test x${ENABLE_GOLD} != xyes; then | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2960 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2961 | fi | |
2962 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2963 | ;; | |
2964 | *) | |
2965 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2966 | ;; | |
2967 | esac | |
5afab7ad | 2968 | |
671aa708 | 2969 | # Configure extra directories which are host specific |
79c06341 | 2970 | |
671aa708 NN |
2971 | case "${host}" in |
2972 | *-cygwin*) | |
2973 | configdirs="$configdirs libtermcap" ;; | |
2974 | esac | |
79c06341 | 2975 | |
4fab7234 HPN |
2976 | # A target can indicate whether a language isn't supported for some reason. |
2977 | # Only spaces may be used in this macro; not newlines or tabs. | |
2978 | unsupported_languages= | |
2979 | ||
1c710c3c | 2980 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
2981 | # target this usually means that a port of the program doesn't |
2982 | # exist yet. | |
ec8d6ddc | 2983 | |
671aa708 | 2984 | case "${host}" in |
111eeb6e | 2985 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 2986 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 2987 | ;; |
671aa708 | 2988 | esac |
ec8d6ddc | 2989 | |
6de9cd9a | 2990 | |
87e6d9dc TB |
2991 | # Check whether --enable-libquadmath was given. |
2992 | if test "${enable_libquadmath+set}" = set; then : | |
2993 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2994 | else | |
2995 | ENABLE_LIBQUADMATH=yes | |
2996 | fi | |
2997 | ||
2998 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2999 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3000 | fi | |
3001 | ||
3002 | ||
3003 | # Check whether --enable-libquadmath-support was given. | |
3004 | if test "${enable_libquadmath_support+set}" = set; then : | |
3005 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3006 | else | |
3007 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3008 | fi | |
3009 | ||
3010 | enable_libquadmath_support= | |
3011 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3012 | enable_libquadmath_support=no | |
3013 | fi | |
3014 | ||
3015 | ||
5213506e RW |
3016 | # Check whether --enable-libada was given. |
3017 | if test "${enable_libada+set}" = set; then : | |
3018 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3019 | else |
3020 | ENABLE_LIBADA=yes | |
5213506e RW |
3021 | fi |
3022 | ||
d9cdb878 | 3023 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3024 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3025 | fi |
3026 | ||
5213506e RW |
3027 | # Check whether --enable-libssp was given. |
3028 | if test "${enable_libssp+set}" = set; then : | |
3029 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3030 | else |
3031 | ENABLE_LIBSSP=yes | |
5213506e RW |
3032 | fi |
3033 | ||
ef0087a7 | 3034 | |
671aa708 NN |
3035 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3036 | # front-end isn't enabled, we still get libgcj disabled. | |
3037 | libgcj_saved=$libgcj | |
3038 | case $enable_libgcj in | |
3039 | yes) | |
3040 | # If we reset it here, it won't get added to noconfigdirs in the | |
3041 | # target-specific build rules, so it will be forcibly enabled | |
3042 | # (unless the Java language itself isn't enabled). | |
3043 | libgcj= | |
3044 | ;; | |
3045 | no) | |
3046 | # Make sure we get it printed in the list of not supported target libs. | |
4da3b0f8 ILT |
3047 | # Don't disable libffi, though, other languages use it. |
3048 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
d479b128 ILT |
3049 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3050 | # built. | |
3051 | libgcj_saved= | |
671aa708 NN |
3052 | ;; |
3053 | esac | |
ec8d6ddc | 3054 | |
a4a2c37d MK |
3055 | # Check whether --enable-static-libjava was given. |
3056 | if test "${enable_static_libjava+set}" = set; then : | |
3057 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3058 | else | |
3059 | ENABLE_STATIC_LIBJAVA=no | |
3060 | fi | |
3061 | ||
3062 | enable_static_libjava= | |
3063 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3064 | enable_static_libjava=yes | |
3065 | fi | |
3066 | ||
3067 | if test x$enable_static_libjava != xyes ; then | |
3068 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3069 | fi | |
3070 | ||
6de9cd9a | 3071 | |
27079765 AH |
3072 | # Disable libmudflap on some systems. |
3073 | if test x$enable_libmudflap = x ; then | |
dfcada9a | 3074 | case "${target}" in |
416ac4d4 | 3075 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
98a5bb3b | 3076 | # Enable libmudflap by default in GNU and friends. |
dfcada9a | 3077 | ;; |
a3e8d8b4 LR |
3078 | *-*-freebsd*) |
3079 | # Enable libmudflap by default in FreeBSD. | |
3080 | ;; | |
dfcada9a MM |
3081 | *) |
3082 | # Disable it by default everywhere else. | |
3083 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3084 | ;; | |
3085 | esac | |
27079765 | 3086 | fi |
6de9cd9a | 3087 | |
27079765 AH |
3088 | # Disable libgomp on non POSIX hosted systems. |
3089 | if test x$enable_libgomp = x ; then | |
953ff289 DN |
3090 | # Enable libgomp by default on hosted POSIX systems. |
3091 | case "${target}" in | |
416ac4d4 | 3092 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3093 | ;; |
8c6d158a | 3094 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3095 | ;; |
b24513a1 | 3096 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3097 | ;; |
cac90078 | 3098 | *-*-darwin* | *-*-aix*) |
953ff289 DN |
3099 | ;; |
3100 | *) | |
3101 | noconfigdirs="$noconfigdirs target-libgomp" | |
3102 | ;; | |
3103 | esac | |
27079765 | 3104 | fi |
953ff289 | 3105 | |
48310492 RH |
3106 | # Disable libatomic on unsupported systems. |
3107 | if test -d ${srcdir}/libatomic; then | |
3108 | if test x$enable_libatomic = x; then | |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3110 | $as_echo_n "checking for libatomic support... " >&6; } | |
3111 | if (srcdir=${srcdir}/libatomic; \ | |
3112 | . ${srcdir}/configure.tgt; \ | |
3113 | test -n "$UNSUPPORTED") | |
3114 | then | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3116 | $as_echo "no" >&6; } | |
3117 | noconfigdirs="$noconfigdirs target-libatomic" | |
3118 | else | |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3120 | $as_echo "yes" >&6; } | |
3121 | fi | |
3122 | fi | |
3123 | fi | |
3124 | ||
e948157d RH |
3125 | # Disable libitm on unsupported systems. |
3126 | if test -d ${srcdir}/libitm; then | |
3127 | if test x$enable_libitm = x; then | |
3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3129 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3130 | if (srcdir=${srcdir}/libitm; \ |
3131 | . ${srcdir}/configure.tgt; \ | |
3132 | test -n "$UNSUPPORTED") | |
3133 | then | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3135 | $as_echo "no" >&6; } |
e948157d RH |
3136 | noconfigdirs="$noconfigdirs target-libitm" |
3137 | else | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3139 | $as_echo "yes" >&6; } |
e948157d RH |
3140 | fi |
3141 | fi | |
0a35513e AH |
3142 | fi |
3143 | ||
1e9e0e23 JM |
3144 | # Disable libssp for some systems. |
3145 | case "${target}" in | |
3146 | avr-*-*) | |
b318fb4b | 3147 | # No hosted I/O support. |
1e9e0e23 JM |
3148 | noconfigdirs="$noconfigdirs target-libssp" |
3149 | ;; | |
3150 | powerpc-*-aix* | rs6000-*-aix*) | |
3151 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e DD |
3152 | ;; |
3153 | rl78-*-*) | |
7cb62ef1 EB |
3154 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3155 | # doesn't fault for those - instead, it gives a build-time error | |
3156 | # for explicit misaligned loads. | |
85b8555e | 3157 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3158 | ;; |
1e9e0e23 JM |
3159 | esac |
3160 | ||
1e9e0e23 JM |
3161 | # Disable libstdc++-v3 for some systems. |
3162 | case "${target}" in | |
3163 | *-*-vxworks*) | |
3164 | # VxWorks uses the Dinkumware C++ library. | |
3165 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3166 | ;; | |
3167 | arm*-wince-pe*) | |
3168 | # the C++ libraries don't build on top of CE's C libraries | |
3169 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3170 | ;; | |
3171 | avr-*-*) | |
3172 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3173 | ;; | |
3174 | esac | |
3175 | ||
3176 | # Disable Fortran for some systems. | |
3177 | case "${target}" in | |
3178 | mmix-*-*) | |
3179 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3180 | unsupported_languages="$unsupported_languages fortran" | |
3181 | ;; | |
3182 | esac | |
3183 | ||
80f81134 | 3184 | # Disable Java if libffi is not supported. |
2909494b | 3185 | case "${target}" in |
80f81134 JM |
3186 | alpha*-*-*) |
3187 | ;; | |
3188 | arm*-*-*) | |
3189 | ;; | |
3190 | cris-*-*) | |
3191 | ;; | |
3192 | frv-*-*) | |
3193 | ;; | |
3194 | hppa*-*-linux*) | |
3195 | ;; | |
3196 | hppa*-*-hpux*) | |
3197 | ;; | |
3198 | i?86-*-*) | |
3199 | ;; | |
3200 | ia64*-*-*) | |
3201 | ;; | |
3202 | m32r*-*-*) | |
3203 | ;; | |
3204 | m68k-*-*) | |
3205 | ;; | |
b24513a1 | 3206 | mips*-*-rtems*) |
80f81134 JM |
3207 | ;; |
3208 | mips*-*-linux*) | |
3209 | ;; | |
3210 | powerpc*-*-linux*) | |
3211 | ;; | |
3212 | powerpc-*-darwin*) | |
3213 | ;; | |
3214 | powerpc-*-aix* | rs6000-*-aix*) | |
3215 | ;; | |
3216 | powerpc-*-freebsd*) | |
3217 | ;; | |
3218 | powerpc64-*-freebsd*) | |
3219 | ;; | |
3220 | powerpc*-*-rtems*) | |
2909494b | 3221 | ;; |
80f81134 JM |
3222 | s390-*-* | s390x-*-*) |
3223 | ;; | |
3224 | sh-*-* | sh[34]*-*-*) | |
3225 | ;; | |
3226 | sh64-*-* | sh5*-*-*) | |
3227 | ;; | |
3228 | sparc*-*-*) | |
3229 | ;; | |
3230 | x86_64-*-*) | |
3231 | ;; | |
3232 | *-*-*) | |
3233 | unsupported_languages="$unsupported_languages java" | |
3234 | ;; | |
3235 | esac | |
3236 | ||
3237 | # Disable Java, libgcj or related libraries for some systems. | |
3238 | case "${target}" in | |
2909494b JM |
3239 | powerpc-*-darwin*) |
3240 | ;; | |
3241 | i[3456789]86-*-darwin*) | |
3242 | ;; | |
3243 | x86_64-*-darwin[912]*) | |
3244 | ;; | |
3245 | *-*-darwin*) | |
3246 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3247 | ;; | |
2909494b JM |
3248 | *-*-netware*) |
3249 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3250 | ;; | |
3251 | *-*-rtems*) | |
3252 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3253 | ;; | |
3254 | *-*-tpf*) | |
3255 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3256 | ;; | |
3257 | *-*-uclinux*) | |
3258 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3259 | ;; | |
3260 | *-*-vxworks*) | |
3261 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3262 | ;; | |
2909494b JM |
3263 | alpha*-*-*vms*) |
3264 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3265 | ;; | |
80f81134 | 3266 | arm-wince-pe) |
2909494b JM |
3267 | noconfigdirs="$noconfigdirs ${libgcj}" |
3268 | ;; | |
2909494b JM |
3269 | arm*-*-symbianelf*) |
3270 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3271 | ;; | |
2909494b | 3272 | bfin-*-*) |
2909494b JM |
3273 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3274 | ;; | |
2909494b JM |
3275 | cris-*-* | crisv32-*-*) |
3276 | unsupported_languages="$unsupported_languages java" | |
3277 | case "${target}" in | |
3278 | *-*-linux*) | |
3279 | ;; | |
3280 | *) # See PR46792 regarding target-libffi. | |
3281 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3282 | esac | |
3283 | ;; | |
2909494b JM |
3284 | hppa*64*-*-linux*) |
3285 | # In this case, it's because the hppa64-linux target is for | |
3286 | # the kernel only at this point and has no libc, and thus no | |
3287 | # headers, crt*.o, etc., all of which are needed by these. | |
fddf9ee7 | 3288 | unsupported_languages="$unsupported_languages java" |
2909494b | 3289 | ;; |
fddf9ee7 | 3290 | hppa*64*-*-hpux*) |
2909494b JM |
3291 | noconfigdirs="$noconfigdirs ${libgcj}" |
3292 | ;; | |
3293 | hppa*-hp-hpux11*) | |
3294 | ;; | |
fddf9ee7 | 3295 | hppa*-*-hpux*) |
2909494b JM |
3296 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3297 | # build on HP-UX 10.20. | |
3298 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3299 | ;; | |
2909494b JM |
3300 | ia64*-*-*vms*) |
3301 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3302 | ;; | |
2909494b JM |
3303 | i[3456789]86-w64-mingw*) |
3304 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3305 | ;; | |
3306 | i[3456789]86-*-mingw*) | |
3307 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3308 | ;; | |
3309 | x86_64-*-mingw*) | |
3310 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3311 | ;; | |
2909494b JM |
3312 | mmix-*-*) |
3313 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
2909494b JM |
3314 | ;; |
3315 | powerpc-*-aix*) | |
3316 | # copied from rs6000-*-* entry | |
3317 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3318 | ;; | |
2909494b JM |
3319 | rs6000-*-aix*) |
3320 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3321 | ;; | |
2909494b JM |
3322 | *-*-lynxos*) |
3323 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3324 | ;; | |
2909494b JM |
3325 | esac |
3326 | ||
c03353e2 RIL |
3327 | # Default libgloss CPU subdirectory. |
3328 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3329 | |
fbcf0dca JM |
3330 | case "${target}" in |
3331 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3332 | libgloss_dir=wince | |
3333 | ;; | |
3334 | arm*-*-*) | |
3335 | libgloss_dir=arm | |
3336 | ;; | |
3337 | cris-*-* | crisv32-*-*) | |
3338 | libgloss_dir=cris | |
3339 | ;; | |
3340 | hppa*-*-*) | |
3341 | libgloss_dir=pa | |
3342 | ;; | |
3343 | i[3456789]86-*-*) | |
3344 | libgloss_dir=i386 | |
3345 | ;; | |
3346 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3347 | libgloss_dir=m68hc11 | |
3348 | ;; | |
3349 | m68*-*-* | fido-*-*) | |
3350 | libgloss_dir=m68k | |
3351 | ;; | |
3352 | mips*-*-*) | |
3353 | libgloss_dir=mips | |
3354 | ;; | |
3355 | powerpc*-*-*) | |
3356 | libgloss_dir=rs6000 | |
3357 | ;; | |
3358 | sparc*-*-*) | |
3359 | libgloss_dir=sparc | |
3360 | ;; | |
3361 | esac | |
3362 | ||
6a789d5e | 3363 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3364 | case "${target}" in |
6a789d5e JM |
3365 | alpha*-dec-osf*) |
3366 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3367 | ;; | |
3368 | i[3456789]86-*-linux*) | |
3369 | # This section makes it possible to build newlib natively on linux. | |
3370 | # If we are using a cross compiler then don't configure newlib. | |
3371 | if test x${is_cross_compiler} != xno ; then | |
3372 | noconfigdirs="$noconfigdirs target-newlib" | |
3373 | fi | |
3374 | noconfigdirs="$noconfigdirs target-libgloss" | |
3375 | # If we are not using a cross compiler, do configure newlib. | |
3376 | # Note however, that newlib will only be configured in this situation | |
3377 | # if the --with-newlib option has been given, because otherwise | |
3378 | # 'target-newlib' will appear in skipdirs. | |
3379 | ;; | |
3380 | i[3456789]86-*-rdos*) | |
3381 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3382 | ;; | |
3383 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3384 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3385 | ;; | |
3386 | sparc-*-sunos4*) | |
3387 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3388 | ;; | |
3389 | *-*-aix*) | |
3390 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3391 | ;; | |
3392 | *-*-beos*) | |
3393 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3394 | ;; | |
671aa708 | 3395 | *-*-chorusos) |
0036370f | 3396 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3397 | ;; |
6a789d5e JM |
3398 | *-*-dragonfly*) |
3399 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3400 | ;; | |
3401 | *-*-freebsd*) | |
3402 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3403 | ;; | |
3404 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3405 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3406 | ;; | |
3407 | *-*-lynxos*) | |
3408 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3409 | ;; | |
3410 | *-*-mingw*) | |
3411 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3412 | ;; | |
3413 | *-*-netbsd*) | |
3414 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3415 | ;; | |
3416 | *-*-netware*) | |
3417 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3418 | ;; | |
3419 | *-*-tpf*) | |
3420 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3421 | ;; | |
3422 | *-*-uclinux*) | |
3423 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3424 | ;; | |
3425 | *-*-vxworks*) | |
3426 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3427 | ;; | |
3428 | esac | |
3429 | ||
3430 | case "${target}" in | |
3431 | *-*-chorusos) | |
3432 | ;; | |
75eeae1a | 3433 | powerpc-*-darwin*) |
e1514c3f | 3434 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3435 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3436 | ;; |
354ebf88 RW |
3437 | i[3456789]86-*-darwin*) |
3438 | noconfigdirs="$noconfigdirs ld gprof" | |
3439 | noconfigdirs="$noconfigdirs sim target-rda" | |
3440 | ;; | |
3441 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3442 | noconfigdirs="$noconfigdirs ld gas gprof" |
3443 | noconfigdirs="$noconfigdirs sim target-rda" | |
3444 | ;; | |
42c1cd8a AT |
3445 | *-*-darwin*) |
3446 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3447 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3448 | ;; |
8c6d158a | 3449 | *-*-dragonfly*) |
8c6d158a | 3450 | ;; |
c3f84f61 | 3451 | *-*-freebsd*) |
6de9cd9a DN |
3452 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3453 | && test -f /usr/local/include/gmp.h; then | |
3454 | with_gmp=/usr/local | |
3455 | fi | |
6de9cd9a | 3456 | ;; |
ef4e7569 US |
3457 | *-*-kaos*) |
3458 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3459 | noconfigdirs="$noconfigdirs target-libgloss" |
3460 | ;; | |
671aa708 | 3461 | *-*-netbsd*) |
671aa708 | 3462 | ;; |
61fec9ff | 3463 | *-*-netware*) |
671aa708 NN |
3464 | ;; |
3465 | *-*-rtems*) | |
2909494b | 3466 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3467 | ;; |
a8ba31f2 EC |
3468 | # The tpf target doesn't support gdb yet. |
3469 | *-*-tpf*) | |
6a789d5e | 3470 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3471 | ;; |
5785c0ed | 3472 | *-*-uclinux*) |
6a789d5e | 3473 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3474 | ;; |
671aa708 | 3475 | *-*-vxworks*) |
671aa708 NN |
3476 | ;; |
3477 | alpha*-dec-osf*) | |
3478 | # ld works, but does not support shared libraries. | |
671aa708 | 3479 | # gas doesn't generate exception information. |
6a789d5e | 3480 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3481 | ;; |
3482 | alpha*-*-*vms*) | |
2909494b | 3483 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3484 | ;; |
671aa708 NN |
3485 | alpha*-*-*) |
3486 | # newlib is not 64 bit ready | |
2909494b | 3487 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3488 | ;; |
671aa708 | 3489 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3490 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 NN |
3491 | ;; |
3492 | arc-*-*) | |
ebb9f8b0 | 3493 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3494 | ;; |
671aa708 | 3495 | arm-*-pe*) |
2909494b | 3496 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3497 | ;; |
671aa708 | 3498 | arm-*-riscix*) |
0036370f | 3499 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3500 | ;; |
671aa708 | 3501 | c4x-*-* | tic4x-*-*) |
0036370f | 3502 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3503 | ;; |
0036370f JM |
3504 | tic54x-*-*) |
3505 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3506 | ;; |
671aa708 | 3507 | d10v-*-*) |
0036370f | 3508 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3509 | ;; |
3510 | d30v-*-*) | |
0036370f | 3511 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3512 | ;; |
3513 | fr30-*-elf*) | |
2909494b | 3514 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3515 | ;; |
55f2d967 | 3516 | moxie-*-*) |
55f2d967 AG |
3517 | noconfigdirs="$noconfigdirs gprof" |
3518 | ;; | |
671aa708 | 3519 | h8300*-*-*) |
2909494b | 3520 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3521 | ;; |
3522 | h8500-*-*) | |
0036370f | 3523 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3524 | ;; |
ee6a22df | 3525 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3526 | ;; |
4569f85e | 3527 | hppa*64*-*-linux*) |
671aa708 | 3528 | ;; |
56f8587a | 3529 | hppa*-*-linux*) |
3e732ba0 | 3530 | ;; |
671aa708 | 3531 | hppa*-*-*elf* | \ |
671aa708 NN |
3532 | hppa*-*-lites* | \ |
3533 | hppa*-*-openbsd* | \ | |
3534 | hppa*64*-*-*) | |
671aa708 | 3535 | ;; |
2a332582 | 3536 | hppa*-hp-hpux11*) |
1bcce263 | 3537 | noconfigdirs="$noconfigdirs ld" |
2a332582 | 3538 | ;; |
c03353e2 | 3539 | hppa*-*-pro*) |
c03353e2 | 3540 | ;; |
671aa708 | 3541 | hppa*-*-*) |
2909494b | 3542 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3543 | ;; |
fb87ad5d | 3544 | i960-*-*) |
0036370f | 3545 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3546 | ;; |
671aa708 NN |
3547 | ia64*-*-elf*) |
3548 | # No gdb support yet. | |
1bcce263 | 3549 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3550 | ;; |
3551 | ia64*-**-hpux*) | |
5a2931d1 | 3552 | # No ld support yet. |
2909494b | 3553 | noconfigdirs="$noconfigdirs libgui itcl ld" |
671aa708 | 3554 | ;; |
52535a64 | 3555 | ia64*-*-*vms*) |
091fe9ca TG |
3556 | # No ld support yet. |
3557 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3558 | ;; |
ef4c4300 | 3559 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3560 | ;; |
3561 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3562 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3563 | ;; |
671aa708 NN |
3564 | *-*-cygwin*) |
3565 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3566 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3567 | # always build newlib if winsup directory is present. |
b91f0a41 | 3568 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3569 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3570 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3571 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3572 | fi |
1c710c3c | 3573 | ;; |
f2a0e225 | 3574 | i[3456789]86-*-pe) |
ebb9f8b0 | 3575 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3576 | ;; |
f2a0e225 | 3577 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3578 | # The linker does not yet know about weak symbols in COFF, |
3579 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3580 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3581 | ;; |
f2a0e225 | 3582 | i[3456789]86-*-sco*) |
0036370f | 3583 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3584 | ;; |
fbdd5d87 | 3585 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3586 | noconfigdirs="$noconfigdirs target-libgloss" |
3587 | ;; | |
f2a0e225 | 3588 | i[3456789]86-*-sysv4*) |
0036370f | 3589 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3590 | ;; |
f2a0e225 | 3591 | i[3456789]86-*-beos*) |
6a789d5e | 3592 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3593 | ;; |
d1f8db0c | 3594 | i[3456789]86-*-rdos*) |
6a789d5e | 3595 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3596 | ;; |
671aa708 | 3597 | mmix-*-*) |
2909494b | 3598 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3599 | ;; |
ab34901f | 3600 | mt-*-*) |
79dd769c AH |
3601 | noconfigdirs="$noconfigdirs sim" |
3602 | ;; | |
671aa708 NN |
3603 | powerpc-*-aix*) |
3604 | # copied from rs6000-*-* entry | |
6a789d5e | 3605 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3606 | ;; |
4569f85e | 3607 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3608 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3609 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3610 | # always build newlib. |
3611 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3612 | ;; | |
3613 | # This is temporary until we can link against shared libraries | |
3614 | powerpcle-*-solaris*) | |
0036370f | 3615 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3616 | ;; |
3617 | powerpc-*-beos*) | |
6a789d5e | 3618 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3619 | ;; |
671aa708 | 3620 | rs6000-*-lynxos*) |
6a789d5e | 3621 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3622 | ;; |
3623 | rs6000-*-aix*) | |
6a789d5e | 3624 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3625 | ;; |
3626 | rs6000-*-*) | |
2909494b | 3627 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3628 | ;; |
3629 | m68k-apollo-*) | |
0036370f | 3630 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3631 | ;; |
ca9fe997 | 3632 | microblaze*) |
2909494b | 3633 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3634 | ;; |
d9dced13 | 3635 | mips*-sde-elf*) |
d9dced13 RS |
3636 | if test x$with_newlib = xyes; then |
3637 | noconfigdirs="$noconfigdirs gprof" | |
3638 | fi | |
d9dced13 | 3639 | ;; |
671aa708 | 3640 | mips*-*-irix5*) |
0036370f | 3641 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3642 | ;; |
3643 | mips*-*-irix6*) | |
2909494b | 3644 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3645 | ;; |
671aa708 | 3646 | mips*-*-bsd*) |
0036370f | 3647 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3648 | ;; |
671aa708 | 3649 | mips*-*-linux*) |
671aa708 NN |
3650 | ;; |
3651 | mips*-*-*) | |
2909494b | 3652 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3653 | ;; |
669f01d8 | 3654 | sh-*-* | sh64-*-*) |
ea2002ba CB |
3655 | case "${target}" in |
3656 | sh*-*-elf) | |
2909494b | 3657 | ;; |
ea2002ba | 3658 | *) |
2909494b | 3659 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3660 | esac |
671aa708 | 3661 | ;; |
671aa708 | 3662 | sparc-*-sunos4*) |
6a789d5e | 3663 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3664 | use_gnu_ld=no |
3665 | fi | |
3666 | ;; | |
b42f0d7e | 3667 | tic6x-*-*) |
0d557ff8 | 3668 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3669 | ;; |
db1d217c WL |
3670 | tilepro-*-* | tilegx-*-*) |
3671 | noconfigdirs="$noconfigdirs sim" | |
3672 | ;; | |
671aa708 | 3673 | v810-*-*) |
0036370f | 3674 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3675 | ;; |
3676 | vax-*-*) | |
2909494b | 3677 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3678 | ;; |
671aa708 | 3679 | esac |
79c06341 | 3680 | |
671aa708 NN |
3681 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3682 | # depends upon some newlib header files. | |
3683 | case "${noconfigdirs}" in | |
3684 | *target-libgloss*) ;; | |
3685 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3686 | esac | |
3687 | ||
671aa708 | 3688 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3689 | host_makefile_frag=/dev/null |
3690 | if test -d ${srcdir}/config ; then | |
3691 | case "${host}" in | |
f2a0e225 | 3692 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3693 | host_makefile_frag="config/mh-djgpp" |
3694 | ;; | |
3695 | *-cygwin*) | |
2a79c47f | 3696 | |
5213506e RW |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3698 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3699 | echo a >cygwin-cat-check |
e25a8c82 | 3700 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3701 | rm cygwin-cat-check |
5213506e RW |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3703 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3704 | else |
3705 | rm cygwin-cat-check | |
5213506e RW |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3707 | $as_echo "no" >&6; } | |
3708 | as_fn_error "The cat command does not ignore carriage return characters. | |
2a79c47f NC |
3709 | Please either mount the build directory in binary mode or run the following |
3710 | commands before running any configure script: | |
3711 | set -o igncr | |
3712 | export SHELLOPTS | |
5213506e | 3713 | " "$LINENO" 5 |
2a79c47f NC |
3714 | fi |
3715 | ||
671aa708 NN |
3716 | host_makefile_frag="config/mh-cygwin" |
3717 | ;; | |
c53a18d3 | 3718 | *-mingw*) |
1f5a6b84 | 3719 | host_makefile_frag="config/mh-mingw" |
95af8923 | 3720 | ;; |
efd41714 | 3721 | hppa*-hp-hpux10*) |
efd41714 | 3722 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 3723 | ;; |
111eeb6e | 3724 | hppa*-hp-hpux*) |
efd41714 PB |
3725 | host_makefile_frag="config/mh-pa" |
3726 | ;; | |
3727 | hppa*-*) | |
3728 | host_makefile_frag="config/mh-pa" | |
3729 | ;; | |
d8ed14ce IS |
3730 | *-*-darwin*) |
3731 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 3732 | ;; |
d19bca38 PB |
3733 | powerpc-*-aix*) |
3734 | host_makefile_frag="config/mh-ppc-aix" | |
3735 | ;; | |
3736 | rs6000-*-aix*) | |
3737 | host_makefile_frag="config/mh-ppc-aix" | |
3738 | ;; | |
671aa708 NN |
3739 | esac |
3740 | fi | |
3741 | ||
55ffb5ed | 3742 | if test "${build}" != "${host}" ; then |
0999159b PB |
3743 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3744 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 3745 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b PB |
3746 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3747 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3748 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
632e2a07 | 3749 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
0999159b PB |
3750 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3751 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3752 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3753 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3754 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3755 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3756 | else | |
3757 | AR_FOR_BUILD="\$(AR)" | |
3758 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 3759 | CC_FOR_BUILD="\$(CC)" |
0999159b PB |
3760 | CXX_FOR_BUILD="\$(CXX)" |
3761 | GCJ_FOR_BUILD="\$(GCJ)" | |
3762 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
632e2a07 | 3763 | GOC_FOR_BUILD="\$(GOC)" |
0999159b PB |
3764 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3765 | LD_FOR_BUILD="\$(LD)" | |
3766 | NM_FOR_BUILD="\$(NM)" | |
3767 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3768 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3769 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
3770 | fi |
3771 | ||
3772 | ac_ext=c | |
1c710c3c DJ |
3773 | ac_cpp='$CPP $CPPFLAGS' |
3774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3777 | if test -n "$ac_tool_prefix"; then | |
3778 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3779 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3781 | $as_echo_n "checking for $ac_word... " >&6; } | |
3782 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3783 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
3784 | else |
3785 | if test -n "$CC"; then | |
3786 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3787 | else | |
3788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3789 | for as_dir in $PATH | |
3790 | do | |
3791 | IFS=$as_save_IFS | |
3792 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3793 | for ac_exec_ext in '' $ac_executable_extensions; do |
3794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3795 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3797 | break 2 |
3798 | fi | |
3799 | done | |
5213506e RW |
3800 | done |
3801 | IFS=$as_save_IFS | |
1c710c3c DJ |
3802 | |
3803 | fi | |
3804 | fi | |
3805 | CC=$ac_cv_prog_CC | |
3806 | if test -n "$CC"; then | |
5213506e RW |
3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3808 | $as_echo "$CC" >&6; } | |
1c710c3c | 3809 | else |
5213506e RW |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3811 | $as_echo "no" >&6; } | |
1c710c3c DJ |
3812 | fi |
3813 | ||
5213506e | 3814 | |
1c710c3c DJ |
3815 | fi |
3816 | if test -z "$ac_cv_prog_CC"; then | |
3817 | ac_ct_CC=$CC | |
fb0103e5 RG |
3818 | # Extract the first word of "gcc", so it can be a program name with args. |
3819 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3821 | $as_echo_n "checking for $ac_word... " >&6; } | |
3822 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3823 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
3824 | else |
3825 | if test -n "$ac_ct_CC"; then | |
3826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3827 | else | |
3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3829 | for as_dir in $PATH | |
3830 | do | |
3831 | IFS=$as_save_IFS | |
3832 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3833 | for ac_exec_ext in '' $ac_executable_extensions; do |
3834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3835 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3837 | break 2 |
3838 | fi | |
3839 | done | |
5213506e RW |
3840 | done |
3841 | IFS=$as_save_IFS | |
1c710c3c DJ |
3842 | |
3843 | fi | |
3844 | fi | |
3845 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3846 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3848 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 3849 | else |
5213506e RW |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3851 | $as_echo "no" >&6; } | |
1c710c3c DJ |
3852 | fi |
3853 | ||
5213506e RW |
3854 | if test "x$ac_ct_CC" = x; then |
3855 | CC="" | |
3856 | else | |
3857 | case $cross_compiling:$ac_tool_warned in | |
3858 | yes:) | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3860 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3861 | ac_tool_warned=yes ;; | |
3862 | esac | |
3863 | CC=$ac_ct_CC | |
3864 | fi | |
1c710c3c DJ |
3865 | else |
3866 | CC="$ac_cv_prog_CC" | |
3867 | fi | |
3868 | ||
3869 | if test -z "$CC"; then | |
5213506e RW |
3870 | if test -n "$ac_tool_prefix"; then |
3871 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 3872 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3874 | $as_echo_n "checking for $ac_word... " >&6; } | |
3875 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3876 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
3877 | else |
3878 | if test -n "$CC"; then | |
3879 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3880 | else | |
1c710c3c DJ |
3881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3882 | for as_dir in $PATH | |
3883 | do | |
3884 | IFS=$as_save_IFS | |
3885 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3886 | for ac_exec_ext in '' $ac_executable_extensions; do |
3887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3888 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3890 | break 2 |
3891 | fi | |
3892 | done | |
5213506e RW |
3893 | done |
3894 | IFS=$as_save_IFS | |
1c710c3c | 3895 | |
0b0dc272 | 3896 | fi |
0b0dc272 | 3897 | fi |
1c710c3c | 3898 | CC=$ac_cv_prog_CC |
af71363e | 3899 | if test -n "$CC"; then |
5213506e RW |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3901 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 3902 | else |
5213506e RW |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3904 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
3905 | fi |
3906 | ||
2aeb72e9 | 3907 | |
5213506e | 3908 | fi |
1c710c3c | 3909 | fi |
55ffb5ed NN |
3910 | if test -z "$CC"; then |
3911 | # Extract the first word of "cc", so it can be a program name with args. | |
3912 | set dummy cc; ac_word=$2 | |
5213506e RW |
3913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3914 | $as_echo_n "checking for $ac_word... " >&6; } | |
3915 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3916 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
3917 | else |
3918 | if test -n "$CC"; then | |
3919 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3920 | else | |
0b0dc272 | 3921 | ac_prog_rejected=no |
1c710c3c DJ |
3922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3923 | for as_dir in $PATH | |
3924 | do | |
3925 | IFS=$as_save_IFS | |
3926 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3927 | for ac_exec_ext in '' $ac_executable_extensions; do |
3928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c DJ |
3929 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3930 | ac_prog_rejected=yes | |
3931 | continue | |
3932 | fi | |
3933 | ac_cv_prog_CC="cc" | |
5213506e | 3934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3935 | break 2 |
3936 | fi | |
3937 | done | |
5213506e RW |
3938 | done |
3939 | IFS=$as_save_IFS | |
1c710c3c | 3940 | |
55ffb5ed NN |
3941 | if test $ac_prog_rejected = yes; then |
3942 | # We found a bogon in the path, so make sure we never use it. | |
3943 | set dummy $ac_cv_prog_CC | |
3944 | shift | |
1c710c3c | 3945 | if test $# != 0; then |
55ffb5ed NN |
3946 | # We chose a different compiler from the bogus one. |
3947 | # However, it has the same basename, so the bogon will be chosen | |
3948 | # first if we set CC to just the basename; use the full file name. | |
3949 | shift | |
1c710c3c | 3950 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
3951 | fi |
3952 | fi | |
3953 | fi | |
3954 | fi | |
1c710c3c | 3955 | CC=$ac_cv_prog_CC |
55ffb5ed | 3956 | if test -n "$CC"; then |
5213506e RW |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3958 | $as_echo "$CC" >&6; } | |
55ffb5ed | 3959 | else |
5213506e RW |
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3961 | $as_echo "no" >&6; } | |
55ffb5ed NN |
3962 | fi |
3963 | ||
5213506e | 3964 | |
1c710c3c DJ |
3965 | fi |
3966 | if test -z "$CC"; then | |
3967 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3968 | for ac_prog in cl.exe |
1c710c3c DJ |
3969 | do |
3970 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3971 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3973 | $as_echo_n "checking for $ac_word... " >&6; } | |
3974 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3975 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
3976 | else |
3977 | if test -n "$CC"; then | |
3978 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3979 | else | |
1c710c3c DJ |
3980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3981 | for as_dir in $PATH | |
3982 | do | |
3983 | IFS=$as_save_IFS | |
3984 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3985 | for ac_exec_ext in '' $ac_executable_extensions; do |
3986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3987 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3989 | break 2 |
3990 | fi | |
3991 | done | |
5213506e RW |
3992 | done |
3993 | IFS=$as_save_IFS | |
1c710c3c | 3994 | |
55ffb5ed NN |
3995 | fi |
3996 | fi | |
1c710c3c | 3997 | CC=$ac_cv_prog_CC |
55ffb5ed | 3998 | if test -n "$CC"; then |
5213506e RW |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4000 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4001 | else |
5213506e RW |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4003 | $as_echo "no" >&6; } | |
fb0103e5 | 4004 | fi |
af71363e | 4005 | |
5213506e | 4006 | |
1c710c3c DJ |
4007 | test -n "$CC" && break |
4008 | done | |
af71363e | 4009 | fi |
1c710c3c DJ |
4010 | if test -z "$CC"; then |
4011 | ac_ct_CC=$CC | |
5213506e | 4012 | for ac_prog in cl.exe |
1c710c3c DJ |
4013 | do |
4014 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4015 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4017 | $as_echo_n "checking for $ac_word... " >&6; } | |
4018 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4019 | $as_echo_n "(cached) " >&6 | |
0b0dc272 | 4020 | else |
1c710c3c DJ |
4021 | if test -n "$ac_ct_CC"; then |
4022 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4023 | else |
1c710c3c DJ |
4024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4025 | for as_dir in $PATH | |
4026 | do | |
4027 | IFS=$as_save_IFS | |
4028 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4029 | for ac_exec_ext in '' $ac_executable_extensions; do |
4030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4031 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4033 | break 2 |
4034 | fi | |
4035 | done | |
5213506e RW |
4036 | done |
4037 | IFS=$as_save_IFS | |
1c710c3c | 4038 | |
af71363e AS |
4039 | fi |
4040 | fi | |
1c710c3c DJ |
4041 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4042 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4044 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4045 | else |
5213506e RW |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4047 | $as_echo "no" >&6; } | |
af71363e | 4048 | fi |
0b0dc272 | 4049 | |
5213506e | 4050 | |
1c710c3c DJ |
4051 | test -n "$ac_ct_CC" && break |
4052 | done | |
4053 | ||
5213506e RW |
4054 | if test "x$ac_ct_CC" = x; then |
4055 | CC="" | |
4056 | else | |
4057 | case $cross_compiling:$ac_tool_warned in | |
4058 | yes:) | |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4060 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4061 | ac_tool_warned=yes ;; | |
4062 | esac | |
4063 | CC=$ac_ct_CC | |
4064 | fi | |
1c710c3c DJ |
4065 | fi |
4066 | ||
4067 | fi | |
4068 | ||
4069 | ||
5213506e RW |
4070 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4072 | as_fn_error "no acceptable C compiler found in \$PATH | |
4073 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c DJ |
4074 | |
4075 | # Provide some information about the compiler. | |
5213506e RW |
4076 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4077 | set X $ac_compile | |
4078 | ac_compiler=$2 | |
4079 | for ac_option in --version -v -V -qversion; do | |
4080 | { { ac_try="$ac_compiler $ac_option >&5" | |
4081 | case "(($ac_try" in | |
4082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4083 | *) ac_try_echo=$ac_try;; | |
4084 | esac | |
4085 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4086 | $as_echo "$ac_try_echo"; } >&5 | |
4087 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4088 | ac_status=$? |
5213506e RW |
4089 | if test -s conftest.err; then |
4090 | sed '10a\ | |
4091 | ... rest of stderr output deleted ... | |
4092 | 10q' conftest.err >conftest.er1 | |
4093 | cat conftest.er1 >&5 | |
4094 | rm -f conftest.er1 conftest.err | |
4095 | fi | |
4096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4097 | test $ac_status = 0; } | |
4098 | done | |
1c710c3c | 4099 | |
5213506e | 4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4101 | /* end confdefs.h. */ |
4102 | ||
4103 | int | |
4104 | main () | |
4105 | { | |
4106 | ||
4107 | ; | |
4108 | return 0; | |
4109 | } | |
4110 | _ACEOF | |
4111 | ac_clean_files_save=$ac_clean_files | |
5213506e | 4112 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
1c710c3c DJ |
4113 | # Try to create an executable without -o first, disregard a.out. |
4114 | # It will help us diagnose broken compilers, and finding out an intuition | |
4115 | # of exeext. | |
5213506e RW |
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4117 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4118 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4119 | ||
4120 | # The possible output files: | |
4121 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4122 | ||
4123 | ac_rmfiles= | |
4124 | for ac_file in $ac_files | |
4125 | do | |
4126 | case $ac_file in | |
4127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4128 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4129 | esac | |
4130 | done | |
4131 | rm -f $ac_rmfiles | |
4132 | ||
4133 | if { { ac_try="$ac_link_default" | |
4134 | case "(($ac_try" in | |
4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4136 | *) ac_try_echo=$ac_try;; | |
4137 | esac | |
4138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4139 | $as_echo "$ac_try_echo"; } >&5 | |
4140 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4141 | ac_status=$? |
5213506e RW |
4142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4143 | test $ac_status = 0; }; then : | |
4144 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4145 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4146 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4147 | # so that the user can short-circuit this test for compilers unknown to | |
4148 | # Autoconf. | |
4149 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4150 | do |
4151 | test -f "$ac_file" || continue | |
4152 | case $ac_file in | |
5213506e | 4153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4154 | ;; |
4155 | [ab].out ) | |
4156 | # We found the default executable, but exeext='' is most | |
4157 | # certainly right. | |
4158 | break;; | |
4159 | *.* ) | |
5213506e RW |
4160 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4161 | then :; else | |
4162 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4163 | fi | |
4164 | # We set ac_cv_exeext here because the later test for it is not | |
4165 | # safe: cross compilers may not add the suffix if given an `-o' | |
4166 | # argument, so we may need to know it at that point already. | |
4167 | # Even if this section looks crufty: it has the advantage of | |
4168 | # actually working. | |
1c710c3c DJ |
4169 | break;; |
4170 | * ) | |
4171 | break;; | |
4172 | esac | |
4173 | done | |
5213506e RW |
4174 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4175 | ||
1c710c3c | 4176 | else |
5213506e RW |
4177 | ac_file='' |
4178 | fi | |
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4180 | $as_echo "$ac_file" >&6; } | |
4181 | if test -z "$ac_file"; then : | |
4182 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4183 | sed 's/^/| /' conftest.$ac_ext >&5 |
4184 | ||
5213506e RW |
4185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4187 | { as_fn_set_status 77 | |
4188 | as_fn_error "C compiler cannot create executables | |
4189 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1c710c3c | 4190 | fi |
1c710c3c | 4191 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4192 | |
5213506e | 4193 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4194 | # the compiler is broken, or we cross compile. |
5213506e RW |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4196 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1c710c3c DJ |
4197 | # If not cross compiling, check that we can run a simple program. |
4198 | if test "$cross_compiling" != yes; then | |
4199 | if { ac_try='./$ac_file' | |
5213506e RW |
4200 | { { case "(($ac_try" in |
4201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4202 | *) ac_try_echo=$ac_try;; | |
4203 | esac | |
4204 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4205 | $as_echo "$ac_try_echo"; } >&5 | |
4206 | (eval "$ac_try") 2>&5 | |
1c710c3c | 4207 | ac_status=$? |
5213506e RW |
4208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4209 | test $ac_status = 0; }; }; then | |
1c710c3c DJ |
4210 | cross_compiling=no |
4211 | else | |
4212 | if test "$cross_compiling" = maybe; then | |
4213 | cross_compiling=yes | |
4214 | else | |
5213506e RW |
4215 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4217 | as_fn_error "cannot run C compiled programs. | |
1c710c3c | 4218 | If you meant to cross compile, use \`--host'. |
5213506e | 4219 | See \`config.log' for more details." "$LINENO" 5; } |
1c710c3c DJ |
4220 | fi |
4221 | fi | |
4222 | fi | |
5213506e RW |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4224 | $as_echo "yes" >&6; } | |
1c710c3c | 4225 | |
5213506e | 4226 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
1c710c3c | 4227 | ac_clean_files=$ac_clean_files_save |
5213506e | 4228 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4229 | # the compiler is broken, or we cross compile. |
5213506e RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4231 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4233 | $as_echo "$cross_compiling" >&6; } | |
4234 | ||
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4236 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4237 | if { { ac_try="$ac_link" | |
4238 | case "(($ac_try" in | |
4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4240 | *) ac_try_echo=$ac_try;; | |
4241 | esac | |
4242 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4243 | $as_echo "$ac_try_echo"; } >&5 | |
4244 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4245 | ac_status=$? |
5213506e RW |
4246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4247 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4248 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4249 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4250 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4251 | # `rm'. | |
4252 | for ac_file in conftest.exe conftest conftest.*; do | |
4253 | test -f "$ac_file" || continue | |
4254 | case $ac_file in | |
5213506e | 4255 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4256 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4257 | break;; |
4258 | * ) break;; | |
4259 | esac | |
4260 | done | |
af71363e | 4261 | else |
5213506e RW |
4262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4264 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4265 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4266 | fi |
1c710c3c | 4267 | rm -f conftest$ac_cv_exeext |
5213506e RW |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4269 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4270 | |
4271 | rm -f conftest.$ac_ext | |
4272 | EXEEXT=$ac_cv_exeext | |
4273 | ac_exeext=$EXEEXT | |
5213506e RW |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4275 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4276 | if test "${ac_cv_objext+set}" = set; then : | |
4277 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4278 | else |
5213506e | 4279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4280 | /* end confdefs.h. */ |
4281 | ||
4282 | int | |
4283 | main () | |
4284 | { | |
4285 | ||
4286 | ; | |
4287 | return 0; | |
4288 | } | |
4289 | _ACEOF | |
4290 | rm -f conftest.o conftest.obj | |
5213506e RW |
4291 | if { { ac_try="$ac_compile" |
4292 | case "(($ac_try" in | |
4293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4294 | *) ac_try_echo=$ac_try;; | |
4295 | esac | |
4296 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4297 | $as_echo "$ac_try_echo"; } >&5 | |
4298 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4299 | ac_status=$? |
5213506e RW |
4300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4301 | test $ac_status = 0; }; then : | |
4302 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4303 | test -f "$ac_file" || continue; | |
1c710c3c | 4304 | case $ac_file in |
5213506e | 4305 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4306 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4307 | break;; | |
4308 | esac | |
4309 | done | |
4310 | else | |
5213506e | 4311 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4312 | sed 's/^/| /' conftest.$ac_ext >&5 |
4313 | ||
5213506e RW |
4314 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4315 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4316 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4317 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4318 | fi |
1c710c3c DJ |
4319 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4320 | fi | |
5213506e RW |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4322 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4323 | OBJEXT=$ac_cv_objext |
4324 | ac_objext=$OBJEXT | |
5213506e RW |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4326 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4327 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4328 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4329 | else |
5213506e | 4330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4331 | /* end confdefs.h. */ |
4332 | ||
4333 | int | |
4334 | main () | |
4335 | { | |
4336 | #ifndef __GNUC__ | |
4337 | choke me | |
4338 | #endif | |
4339 | ||
4340 | ; | |
4341 | return 0; | |
4342 | } | |
4343 | _ACEOF | |
5213506e | 4344 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4345 | ac_compiler_gnu=yes |
4346 | else | |
5213506e | 4347 | ac_compiler_gnu=no |
1c710c3c | 4348 | fi |
5213506e | 4349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4350 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4351 | ||
4352 | fi | |
5213506e RW |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4354 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4355 | if test $ac_compiler_gnu = yes; then | |
4356 | GCC=yes | |
4357 | else | |
4358 | GCC= | |
4359 | fi | |
1c710c3c DJ |
4360 | ac_test_CFLAGS=${CFLAGS+set} |
4361 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4363 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4364 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4365 | $as_echo_n "(cached) " >&6 | |
4366 | else | |
4367 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4368 | ac_c_werror_flag=yes | |
4369 | ac_cv_prog_cc_g=no | |
4370 | CFLAGS="-g" | |
4371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4372 | /* end confdefs.h. */ |
4373 | ||
4374 | int | |
4375 | main () | |
4376 | { | |
4377 | ||
4378 | ; | |
4379 | return 0; | |
4380 | } | |
4381 | _ACEOF | |
5213506e | 4382 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4383 | ac_cv_prog_cc_g=yes |
4384 | else | |
5213506e RW |
4385 | CFLAGS="" |
4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4387 | /* end confdefs.h. */ | |
4388 | ||
4389 | int | |
4390 | main () | |
4391 | { | |
4392 | ||
4393 | ; | |
4394 | return 0; | |
4395 | } | |
4396 | _ACEOF | |
4397 | if ac_fn_c_try_compile "$LINENO"; then : | |
4398 | ||
4399 | else | |
4400 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4401 | CFLAGS="-g" | |
4402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4403 | /* end confdefs.h. */ | |
af71363e | 4404 | |
5213506e RW |
4405 | int |
4406 | main () | |
4407 | { | |
4408 | ||
4409 | ; | |
4410 | return 0; | |
4411 | } | |
4412 | _ACEOF | |
4413 | if ac_fn_c_try_compile "$LINENO"; then : | |
4414 | ac_cv_prog_cc_g=yes | |
4415 | fi | |
4416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4417 | fi |
5213506e | 4418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4419 | fi |
5213506e RW |
4420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4421 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4422 | fi | |
4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4424 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4425 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4426 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4427 | elif test $ac_cv_prog_cc_g = yes; then |
4428 | if test "$GCC" = yes; then | |
4429 | CFLAGS="-g -O2" | |
4430 | else | |
4431 | CFLAGS="-g" | |
4432 | fi | |
4433 | else | |
4434 | if test "$GCC" = yes; then | |
4435 | CFLAGS="-O2" | |
4436 | else | |
4437 | CFLAGS= | |
4438 | fi | |
4439 | fi | |
5213506e RW |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4441 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4442 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4443 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4444 | else |
5213506e | 4445 | ac_cv_prog_cc_c89=no |
1c710c3c | 4446 | ac_save_CC=$CC |
5213506e | 4447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4448 | /* end confdefs.h. */ |
4449 | #include <stdarg.h> | |
4450 | #include <stdio.h> | |
4451 | #include <sys/types.h> | |
4452 | #include <sys/stat.h> | |
4453 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4454 | struct buf { int x; }; | |
4455 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4456 | static char *e (p, i) | |
4457 | char **p; | |
4458 | int i; | |
4459 | { | |
4460 | return p[i]; | |
4461 | } | |
4462 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4463 | { | |
4464 | char *s; | |
4465 | va_list v; | |
4466 | va_start (v,p); | |
4467 | s = g (p, va_arg (v,int)); | |
4468 | va_end (v); | |
4469 | return s; | |
4470 | } | |
4471 | ||
4472 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4473 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4474 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4475 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4476 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4477 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4478 | that's true only with -std. */ |
1c710c3c DJ |
4479 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4480 | ||
5213506e RW |
4481 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4482 | inside strings and character constants. */ | |
4483 | #define FOO(x) 'x' | |
4484 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4485 | ||
1c710c3c DJ |
4486 | int test (int i, double x); |
4487 | struct s1 {int (*f) (int a);}; | |
4488 | struct s2 {int (*f) (double a);}; | |
4489 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4490 | int argc; | |
4491 | char **argv; | |
4492 | int | |
4493 | main () | |
4494 | { | |
4495 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4496 | ; | |
4497 | return 0; | |
4498 | } | |
4499 | _ACEOF | |
5213506e RW |
4500 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4501 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4502 | do |
4503 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4504 | if ac_fn_c_try_compile "$LINENO"; then : |
4505 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4506 | fi |
5213506e RW |
4507 | rm -f core conftest.err conftest.$ac_objext |
4508 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4509 | done |
5213506e | 4510 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4511 | CC=$ac_save_CC |
4512 | ||
4513 | fi | |
5213506e RW |
4514 | # AC_CACHE_VAL |
4515 | case "x$ac_cv_prog_cc_c89" in | |
4516 | x) | |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4518 | $as_echo "none needed" >&6; } ;; | |
4519 | xno) | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4521 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4522 | *) |
5213506e RW |
4523 | CC="$CC $ac_cv_prog_cc_c89" |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4525 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4526 | esac |
5213506e | 4527 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4528 | |
2aeb72e9 DD |
4529 | fi |
4530 | ||
2aeb72e9 DD |
4531 | ac_ext=c |
4532 | ac_cpp='$CPP $CPPFLAGS' | |
4533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4536 | ||
5213506e | 4537 | ac_ext=cpp |
2aeb72e9 DD |
4538 | ac_cpp='$CXXCPP $CPPFLAGS' |
4539 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4540 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4541 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4542 | if test -z "$CXX"; then |
4543 | if test -n "$CCC"; then | |
4544 | CXX=$CCC | |
4545 | else | |
4546 | if test -n "$ac_tool_prefix"; then | |
4547 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4548 | do |
4549 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4550 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4552 | $as_echo_n "checking for $ac_word... " >&6; } | |
4553 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4554 | $as_echo_n "(cached) " >&6 | |
2aeb72e9 DD |
4555 | else |
4556 | if test -n "$CXX"; then | |
4557 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4558 | else | |
4559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4560 | for as_dir in $PATH | |
4561 | do | |
4562 | IFS=$as_save_IFS | |
4563 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4564 | for ac_exec_ext in '' $ac_executable_extensions; do |
4565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2aeb72e9 | 4566 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4568 | break 2 |
4569 | fi | |
4570 | done | |
5213506e RW |
4571 | done |
4572 | IFS=$as_save_IFS | |
55ffb5ed | 4573 | |
c3a86da9 DJ |
4574 | fi |
4575 | fi | |
4576 | CXX=$ac_cv_prog_CXX | |
4577 | if test -n "$CXX"; then | |
5213506e RW |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4579 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4580 | else |
5213506e RW |
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4582 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4583 | fi |
4584 | ||
5213506e | 4585 | |
c3a86da9 DJ |
4586 | test -n "$CXX" && break |
4587 | done | |
4588 | fi | |
4589 | if test -z "$CXX"; then | |
4590 | ac_ct_CXX=$CXX | |
5213506e | 4591 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4592 | do |
4593 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4594 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4596 | $as_echo_n "checking for $ac_word... " >&6; } | |
4597 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4598 | $as_echo_n "(cached) " >&6 | |
c3a86da9 DJ |
4599 | else |
4600 | if test -n "$ac_ct_CXX"; then | |
4601 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4602 | else | |
4603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4604 | for as_dir in $PATH | |
4605 | do | |
4606 | IFS=$as_save_IFS | |
4607 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4608 | for ac_exec_ext in '' $ac_executable_extensions; do |
4609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c3a86da9 | 4610 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4612 | break 2 |
4613 | fi | |
4614 | done | |
5213506e RW |
4615 | done |
4616 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4617 | |
4618 | fi | |
4619 | fi | |
4620 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4621 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4623 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4624 | else |
5213506e RW |
4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4626 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4627 | fi |
4628 | ||
5213506e | 4629 | |
c3a86da9 DJ |
4630 | test -n "$ac_ct_CXX" && break |
4631 | done | |
c3a86da9 | 4632 | |
5213506e RW |
4633 | if test "x$ac_ct_CXX" = x; then |
4634 | CXX="g++" | |
4635 | else | |
4636 | case $cross_compiling:$ac_tool_warned in | |
4637 | yes:) | |
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4639 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4640 | ac_tool_warned=yes ;; | |
4641 | esac | |
4642 | CXX=$ac_ct_CXX | |
4643 | fi | |
c3a86da9 DJ |
4644 | fi |
4645 | ||
5213506e RW |
4646 | fi |
4647 | fi | |
c3a86da9 | 4648 | # Provide some information about the compiler. |
5213506e RW |
4649 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4650 | set X $ac_compile | |
4651 | ac_compiler=$2 | |
4652 | for ac_option in --version -v -V -qversion; do | |
4653 | { { ac_try="$ac_compiler $ac_option >&5" | |
4654 | case "(($ac_try" in | |
4655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4656 | *) ac_try_echo=$ac_try;; | |
4657 | esac | |
4658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4659 | $as_echo "$ac_try_echo"; } >&5 | |
4660 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4661 | ac_status=$? |
5213506e RW |
4662 | if test -s conftest.err; then |
4663 | sed '10a\ | |
4664 | ... rest of stderr output deleted ... | |
4665 | 10q' conftest.err >conftest.er1 | |
4666 | cat conftest.er1 >&5 | |
4667 | rm -f conftest.er1 conftest.err | |
4668 | fi | |
4669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4670 | test $ac_status = 0; } | |
4671 | done | |
c3a86da9 | 4672 | |
5213506e RW |
4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4674 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4675 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4676 | $as_echo_n "(cached) " >&6 | |
c3a86da9 | 4677 | else |
5213506e | 4678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4679 | /* end confdefs.h. */ |
4680 | ||
4681 | int | |
4682 | main () | |
4683 | { | |
4684 | #ifndef __GNUC__ | |
4685 | choke me | |
4686 | #endif | |
4687 | ||
4688 | ; | |
4689 | return 0; | |
4690 | } | |
4691 | _ACEOF | |
5213506e | 4692 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4693 | ac_compiler_gnu=yes |
4694 | else | |
5213506e | 4695 | ac_compiler_gnu=no |
c3a86da9 | 4696 | fi |
5213506e | 4697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4698 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4699 | ||
4700 | fi | |
5213506e RW |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4702 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4703 | if test $ac_compiler_gnu = yes; then | |
4704 | GXX=yes | |
4705 | else | |
4706 | GXX= | |
4707 | fi | |
c3a86da9 DJ |
4708 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4709 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4711 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4712 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4713 | $as_echo_n "(cached) " >&6 | |
4714 | else | |
4715 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4716 | ac_cxx_werror_flag=yes | |
4717 | ac_cv_prog_cxx_g=no | |
4718 | CXXFLAGS="-g" | |
4719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
4720 | /* end confdefs.h. */ |
4721 | ||
4722 | int | |
4723 | main () | |
4724 | { | |
4725 | ||
4726 | ; | |
4727 | return 0; | |
4728 | } | |
4729 | _ACEOF | |
5213506e | 4730 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4731 | ac_cv_prog_cxx_g=yes |
4732 | else | |
5213506e RW |
4733 | CXXFLAGS="" |
4734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4735 | /* end confdefs.h. */ |
5213506e | 4736 | |
c3a86da9 DJ |
4737 | int |
4738 | main () | |
4739 | { | |
5213506e | 4740 | |
c3a86da9 DJ |
4741 | ; |
4742 | return 0; | |
4743 | } | |
4744 | _ACEOF | |
5213506e | 4745 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 4746 | |
5213506e RW |
4747 | else |
4748 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4749 | CXXFLAGS="-g" | |
4750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4751 | /* end confdefs.h. */ |
5213506e | 4752 | |
c3a86da9 DJ |
4753 | int |
4754 | main () | |
4755 | { | |
5213506e | 4756 | |
c3a86da9 DJ |
4757 | ; |
4758 | return 0; | |
4759 | } | |
4760 | _ACEOF | |
5213506e RW |
4761 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4762 | ac_cv_prog_cxx_g=yes | |
11a67599 | 4763 | fi |
5213506e RW |
4764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4765 | fi | |
4766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4767 | fi | |
4768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4769 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4770 | fi | |
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4772 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4773 | if test "$ac_test_CXXFLAGS" = set; then | |
4774 | CXXFLAGS=$ac_save_CXXFLAGS | |
4775 | elif test $ac_cv_prog_cxx_g = yes; then | |
4776 | if test "$GXX" = yes; then | |
4777 | CXXFLAGS="-g -O2" | |
4778 | else | |
4779 | CXXFLAGS="-g" | |
4780 | fi | |
4781 | else | |
4782 | if test "$GXX" = yes; then | |
4783 | CXXFLAGS="-O2" | |
4784 | else | |
4785 | CXXFLAGS= | |
4786 | fi | |
c3a86da9 | 4787 | fi |
c3a86da9 DJ |
4788 | ac_ext=c |
4789 | ac_cpp='$CPP $CPPFLAGS' | |
4790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4793 | ||
4794 | ||
4795 | # We must set the default linker to the linker used by gcc for the correct | |
4796 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4797 | # set the LD default to the ld used by gcc. | |
4798 | if test -z "$LD"; then | |
4799 | if test "$GCC" = yes; then | |
4800 | case $build in | |
4801 | *-*-mingw*) | |
4802 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4803 | *) | |
4804 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4805 | esac | |
4806 | case $gcc_prog_ld in | |
4807 | # Accept absolute paths. | |
4808 | [\\/]* | [A-Za-z]:[\\/]*) | |
4809 | LD="$gcc_prog_ld" ;; | |
4810 | esac | |
4811 | fi | |
23f6b2f9 PB |
4812 | fi |
4813 | ||
23f6b2f9 PB |
4814 | |
4815 | ||
55ffb5ed | 4816 | |
1c710c3c DJ |
4817 | if test -n "$ac_tool_prefix"; then |
4818 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 4819 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4821 | $as_echo_n "checking for $ac_word... " >&6; } | |
4822 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4823 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4824 | else |
4825 | if test -n "$GNATBIND"; then | |
4826 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4827 | else | |
1c710c3c DJ |
4828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4829 | for as_dir in $PATH | |
4830 | do | |
4831 | IFS=$as_save_IFS | |
4832 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4833 | for ac_exec_ext in '' $ac_executable_extensions; do |
4834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4835 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 4836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4837 | break 2 |
4838 | fi | |
4839 | done | |
5213506e RW |
4840 | done |
4841 | IFS=$as_save_IFS | |
1c710c3c | 4842 | |
55ffb5ed NN |
4843 | fi |
4844 | fi | |
1c710c3c | 4845 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 4846 | if test -n "$GNATBIND"; then |
5213506e RW |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4848 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 4849 | else |
5213506e RW |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4851 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4852 | fi |
4853 | ||
5213506e | 4854 | |
1c710c3c | 4855 | fi |
55ffb5ed | 4856 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 4857 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
4858 | # Extract the first word of "gnatbind", so it can be a program name with args. |
4859 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4861 | $as_echo_n "checking for $ac_word... " >&6; } | |
4862 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4863 | $as_echo_n "(cached) " >&6 | |
55ffb5ed | 4864 | else |
1c710c3c DJ |
4865 | if test -n "$ac_ct_GNATBIND"; then |
4866 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 4867 | else |
1c710c3c DJ |
4868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4869 | for as_dir in $PATH | |
4870 | do | |
4871 | IFS=$as_save_IFS | |
4872 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4873 | for ac_exec_ext in '' $ac_executable_extensions; do |
4874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4875 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 4876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4877 | break 2 |
4878 | fi | |
4879 | done | |
5213506e RW |
4880 | done |
4881 | IFS=$as_save_IFS | |
1c710c3c | 4882 | |
55ffb5ed NN |
4883 | fi |
4884 | fi | |
1c710c3c DJ |
4885 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4886 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4888 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 4889 | else |
5213506e RW |
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4891 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4892 | fi |
4893 | ||
5213506e RW |
4894 | if test "x$ac_ct_GNATBIND" = x; then |
4895 | GNATBIND="no" | |
4896 | else | |
4897 | case $cross_compiling:$ac_tool_warned in | |
4898 | yes:) | |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4900 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4901 | ac_tool_warned=yes ;; | |
4902 | esac | |
4903 | GNATBIND=$ac_ct_GNATBIND | |
4904 | fi | |
55ffb5ed | 4905 | else |
1c710c3c | 4906 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
4907 | fi |
4908 | ||
1c710c3c DJ |
4909 | if test -n "$ac_tool_prefix"; then |
4910 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 4911 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4913 | $as_echo_n "checking for $ac_word... " >&6; } | |
4914 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4915 | $as_echo_n "(cached) " >&6 | |
5305be7e RG |
4916 | else |
4917 | if test -n "$GNATMAKE"; then | |
4918 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4919 | else | |
1c710c3c DJ |
4920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4921 | for as_dir in $PATH | |
4922 | do | |
4923 | IFS=$as_save_IFS | |
4924 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4925 | for ac_exec_ext in '' $ac_executable_extensions; do |
4926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4927 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 4928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4929 | break 2 |
4930 | fi | |
4931 | done | |
5213506e RW |
4932 | done |
4933 | IFS=$as_save_IFS | |
1c710c3c | 4934 | |
5305be7e RG |
4935 | fi |
4936 | fi | |
1c710c3c | 4937 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 4938 | if test -n "$GNATMAKE"; then |
5213506e RW |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4940 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 4941 | else |
5213506e RW |
4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4943 | $as_echo "no" >&6; } | |
5305be7e RG |
4944 | fi |
4945 | ||
5213506e | 4946 | |
1c710c3c | 4947 | fi |
5305be7e | 4948 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 4949 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
4950 | # Extract the first word of "gnatmake", so it can be a program name with args. |
4951 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4953 | $as_echo_n "checking for $ac_word... " >&6; } | |
4954 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4955 | $as_echo_n "(cached) " >&6 | |
5305be7e | 4956 | else |
1c710c3c DJ |
4957 | if test -n "$ac_ct_GNATMAKE"; then |
4958 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 4959 | else |
1c710c3c DJ |
4960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4961 | for as_dir in $PATH | |
4962 | do | |
4963 | IFS=$as_save_IFS | |
4964 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4965 | for ac_exec_ext in '' $ac_executable_extensions; do |
4966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4967 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 4968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4969 | break 2 |
4970 | fi | |
4971 | done | |
5213506e RW |
4972 | done |
4973 | IFS=$as_save_IFS | |
1c710c3c | 4974 | |
5305be7e RG |
4975 | fi |
4976 | fi | |
1c710c3c DJ |
4977 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4978 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4980 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 4981 | else |
5213506e RW |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4983 | $as_echo "no" >&6; } | |
5305be7e RG |
4984 | fi |
4985 | ||
5213506e RW |
4986 | if test "x$ac_ct_GNATMAKE" = x; then |
4987 | GNATMAKE="no" | |
4988 | else | |
4989 | case $cross_compiling:$ac_tool_warned in | |
4990 | yes:) | |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4992 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4993 | ac_tool_warned=yes ;; | |
4994 | esac | |
4995 | GNATMAKE=$ac_ct_GNATMAKE | |
4996 | fi | |
5305be7e | 4997 | else |
1c710c3c | 4998 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
4999 | fi |
5000 | ||
5213506e RW |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5002 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5003 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5004 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5005 | else |
5006 | cat >conftest.adb <<EOF | |
5007 | procedure conftest is begin null; end conftest; | |
5008 | EOF | |
5009 | acx_cv_cc_gcc_supports_ada=no | |
5010 | # There is a bug in old released versions of GCC which causes the | |
5011 | # driver to exit successfully when the appropriate language module | |
5012 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5013 | # Therefore we must check for the error message as well as an | |
5014 | # unsuccessful exit. | |
1db673ca RO |
5015 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5016 | # given a .adb file, but produce no object file. So we must check | |
5017 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5018 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5019 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5020 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5021 | fi |
5022 | rm -f conftest.* | |
5023 | fi | |
5213506e RW |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5025 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5026 | |
7cb62ef1 | 5027 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5028 | have_gnat=yes |
5029 | else | |
5030 | have_gnat=no | |
5031 | fi | |
5032 | ||
5213506e RW |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5034 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5035 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5036 | $as_echo_n "(cached) " >&6 | |
a76494aa PB |
5037 | else |
5038 | echo abfoo >t1 | |
5039 | echo cdfoo >t2 | |
5040 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
5041 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5042 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5043 | : | |
5044 | else | |
5045 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5046 | fi | |
5047 | fi | |
a76494aa PB |
5048 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5049 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5050 | : |
a76494aa PB |
5051 | else |
5052 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5053 | fi | |
5054 | fi | |
5055 | rm t1 t2 | |
5056 | ||
5057 | fi | |
5213506e RW |
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5059 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5060 | do_compare="$gcc_cv_prog_cmp_skip" |
5061 | ||
5062 | ||
55ffb5ed | 5063 | |
ff3ac0f4 ILT |
5064 | # Check whether --enable-bootstrap was given. |
5065 | if test "${enable_bootstrap+set}" = set; then : | |
5066 | enableval=$enable_bootstrap; | |
5067 | else | |
5068 | enable_bootstrap=default | |
5069 | fi | |
5070 | ||
5071 | ||
5072 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5073 | if test -r $srcdir/gcc/configure; then |
5074 | have_compiler=yes | |
5075 | else | |
5076 | have_compiler=no | |
5077 | fi | |
ff3ac0f4 ILT |
5078 | |
5079 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5080 | *:*:*:no) ;; | |
5081 | ||
5082 | # Default behavior. Enable bootstrap if we have a compiler | |
5083 | # and we are in a native configuration. | |
5084 | yes:$build:$build:default) | |
5085 | enable_bootstrap=yes ;; | |
5086 | ||
5087 | *:*:*:default) | |
5088 | enable_bootstrap=no ;; | |
5089 | ||
5090 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5091 | yes:$build:$build:yes) | |
5092 | ;; | |
5093 | ||
5094 | # Other configurations, but we have a compiler. Assume the user knows | |
5095 | # what he's doing. | |
5096 | yes:*:*:yes) | |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5098 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5099 | ;; | |
5100 | ||
5101 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5102 | no:*:*:yes) | |
5103 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5104 | ||
5105 | # Fail if wrong command line | |
5106 | *) | |
5107 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5108 | ;; | |
5109 | esac | |
5110 | ||
00020c16 | 5111 | # See if we are building gcc with C++. |
5213506e RW |
5112 | # Check whether --enable-build-with-cxx was given. |
5113 | if test "${enable_build_with_cxx+set}" = set; then : | |
5114 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
00020c16 ILT |
5115 | else |
5116 | ENABLE_BUILD_WITH_CXX=no | |
5213506e RW |
5117 | fi |
5118 | ||
00020c16 | 5119 | |
78767fd9 ILT |
5120 | # Build stage1 with C and build stages 2 and 3 with C++. |
5121 | # Check whether --enable-build-poststage1-with-cxx was given. | |
5122 | if test "${enable_build_poststage1_with_cxx+set}" = set; then : | |
5123 | enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval | |
5124 | else | |
5125 | ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes | |
5126 | fi | |
5127 | ||
5128 | ||
592c90ff KG |
5129 | # Used for setting $lt_cv_objdir |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5131 | $as_echo_n "checking for objdir... " >&6; } | |
5132 | if test "${lt_cv_objdir+set}" = set; then : | |
5133 | $as_echo_n "(cached) " >&6 | |
5134 | else | |
5135 | rm -f .libs 2>/dev/null | |
5136 | mkdir .libs 2>/dev/null | |
5137 | if test -d .libs; then | |
5138 | lt_cv_objdir=.libs | |
5139 | else | |
5140 | # MS-DOS does not allow filenames that begin with a dot. | |
5141 | lt_cv_objdir=_libs | |
5142 | fi | |
5143 | rmdir .libs 2>/dev/null | |
5144 | fi | |
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5146 | $as_echo "$lt_cv_objdir" >&6; } | |
5147 | objdir=$lt_cv_objdir | |
5148 | ||
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | cat >>confdefs.h <<_ACEOF | |
5154 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5155 | _ACEOF | |
5156 | ||
5157 | ||
5158 | ||
acd26225 | 5159 | # Check for GMP, MPFR and MPC |
3a5729ea | 5160 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5161 | gmpinc= |
e69bf64b | 5162 | have_gmp=no |
acd26225 KG |
5163 | |
5164 | # Specify a location for mpc | |
5165 | # check for this first so it ends up on the link line before mpfr. | |
5166 | ||
5213506e RW |
5167 | # Check whether --with-mpc was given. |
5168 | if test "${with_mpc+set}" = set; then : | |
5169 | withval=$with_mpc; | |
5170 | fi | |
acd26225 | 5171 | |
acd26225 | 5172 | |
9965e3cd | 5173 | # Check whether --with-mpc-include was given. |
5213506e RW |
5174 | if test "${with_mpc_include+set}" = set; then : |
5175 | withval=$with_mpc_include; | |
5176 | fi | |
acd26225 | 5177 | |
acd26225 | 5178 | |
9965e3cd | 5179 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5180 | if test "${with_mpc_lib+set}" = set; then : |
5181 | withval=$with_mpc_lib; | |
5182 | fi | |
acd26225 | 5183 | |
acd26225 KG |
5184 | |
5185 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5186 | gmplibs="-L$with_mpc/lib $gmplibs" |
5187 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5188 | fi |
5189 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5190 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5191 | fi |
5192 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5193 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5194 | fi |
5195 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5196 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5197 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5198 | # Do not test the mpc version. Assume that it is sufficient, since |
5199 | # it is in the source tree, and the library has not been built yet | |
5200 | # but it would be included on the link line in the version check below | |
5201 | # hence making the test fail. | |
3a5729ea | 5202 | have_gmp=yes |
acd26225 | 5203 | fi |
e69bf64b | 5204 | |
bebf829d PB |
5205 | # Specify a location for mpfr |
5206 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5207 | |
5213506e RW |
5208 | # Check whether --with-mpfr-dir was given. |
5209 | if test "${with_mpfr_dir+set}" = set; then : | |
5210 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5211 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5212 | fi | |
5213 | ||
bebf829d PB |
5214 | |
5215 | ||
5213506e RW |
5216 | # Check whether --with-mpfr was given. |
5217 | if test "${with_mpfr+set}" = set; then : | |
5218 | withval=$with_mpfr; | |
5219 | fi | |
1c710c3c | 5220 | |
bebf829d | 5221 | |
9965e3cd | 5222 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5223 | if test "${with_mpfr_include+set}" = set; then : |
5224 | withval=$with_mpfr_include; | |
5225 | fi | |
1c710c3c | 5226 | |
8a877c9c | 5227 | |
9965e3cd | 5228 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5229 | if test "${with_mpfr_lib+set}" = set; then : |
5230 | withval=$with_mpfr_lib; | |
5231 | fi | |
8a877c9c | 5232 | |
bebf829d PB |
5233 | |
5234 | if test "x$with_mpfr" != x; then | |
5235 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5236 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5237 | fi |
8a877c9c | 5238 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5239 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5240 | fi |
5241 | if test "x$with_mpfr_lib" != x; then | |
5242 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5243 | fi | |
e69bf64b | 5244 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
5b0d38e4 NC |
5245 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5246 | if test -d ${srcdir}/mpfr/src; then | |
5247 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5248 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5249 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5250 | else | |
5251 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5252 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5253 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5254 | fi | |
e69bf64b PB |
5255 | # Do not test the mpfr version. Assume that it is sufficient, since |
5256 | # it is in the source tree, and the library has not been built yet | |
5257 | # but it would be included on the link line in the version check below | |
5258 | # hence making the test fail. | |
5259 | have_gmp=yes | |
5260 | fi | |
bebf829d | 5261 | |
6de9cd9a | 5262 | # Specify a location for gmp |
1c710c3c | 5263 | |
5213506e RW |
5264 | # Check whether --with-gmp-dir was given. |
5265 | if test "${with_gmp_dir+set}" = set; then : | |
5266 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5267 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5268 | fi | |
5269 | ||
6de9cd9a | 5270 | |
6de9cd9a | 5271 | |
5213506e RW |
5272 | # Check whether --with-gmp was given. |
5273 | if test "${with_gmp+set}" = set; then : | |
5274 | withval=$with_gmp; | |
5275 | fi | |
1c710c3c | 5276 | |
6de9cd9a | 5277 | |
9965e3cd | 5278 | # Check whether --with-gmp-include was given. |
5213506e RW |
5279 | if test "${with_gmp_include+set}" = set; then : |
5280 | withval=$with_gmp_include; | |
5281 | fi | |
1c710c3c | 5282 | |
8a877c9c | 5283 | |
9965e3cd | 5284 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5285 | if test "${with_gmp_lib+set}" = set; then : |
5286 | withval=$with_gmp_lib; | |
5287 | fi | |
8a877c9c KG |
5288 | |
5289 | ||
6de9cd9a | 5290 | |
bebf829d PB |
5291 | if test "x$with_gmp" != x; then |
5292 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5293 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5294 | fi |
8a877c9c KG |
5295 | if test "x$with_gmp_include" != x; then |
5296 | gmpinc="-I$with_gmp_include $gmpinc" | |
5297 | fi | |
5298 | if test "x$with_gmp_lib" != x; then | |
5299 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5300 | fi | |
e69bf64b | 5301 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5302 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5303 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5304 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5305 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e69bf64b PB |
5306 | # Do not test the gmp version. Assume that it is sufficient, since |
5307 | # it is in the source tree, and the library has not been built yet | |
5308 | # but it would be included on the link line in the version check below | |
5309 | # hence making the test fail. | |
5310 | have_gmp=yes | |
5311 | fi | |
6de9cd9a | 5312 | |
d943d7c4 | 5313 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5314 | have_gmp=yes |
5315 | saved_CFLAGS="$CFLAGS" | |
5316 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5317 | # Check for the recommended and required versions of GMP. |
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5319 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5320 | |
5321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5322 | /* end confdefs.h. */ |
5323 | #include "gmp.h" | |
5324 | int | |
5325 | main () | |
5326 | { | |
5327 | ||
5328 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5329 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5330 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5331 | choke me | |
5332 | #endif | |
5333 | ||
5334 | ; | |
5335 | return 0; | |
5336 | } | |
5337 | _ACEOF | |
5338 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5340 | /* end confdefs.h. */ |
362c6d2f | 5341 | #include <gmp.h> |
1c710c3c DJ |
5342 | int |
5343 | main () | |
5344 | { | |
6de9cd9a | 5345 | |
362c6d2f KG |
5346 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5347 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5348 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5349 | choke me |
5350 | #endif | |
1c710c3c DJ |
5351 | |
5352 | ; | |
5353 | return 0; | |
5354 | } | |
5355 | _ACEOF | |
5213506e RW |
5356 | if ac_fn_c_try_compile "$LINENO"; then : |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5358 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5359 | else |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5361 | $as_echo "buggy but acceptable" >&6; } | |
5362 | fi | |
5363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5364 | else |
5213506e RW |
5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5366 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5367 | fi |
5213506e | 5368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5369 | |
acd26225 | 5370 | # If we have GMP, check the MPFR version. |
e69bf64b | 5371 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5372 | # Check for the recommended and required versions of MPFR. |
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5374 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5376 | /* end confdefs.h. */ |
70ec446f | 5377 | #include <gmp.h> |
e69bf64b | 5378 | #include <mpfr.h> |
1c710c3c DJ |
5379 | int |
5380 | main () | |
5381 | { | |
e48d66a9 | 5382 | |
f7d6bc01 | 5383 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
e69bf64b PB |
5384 | choke me |
5385 | #endif | |
1c710c3c DJ |
5386 | |
5387 | ; | |
5388 | return 0; | |
5389 | } | |
5390 | _ACEOF | |
5213506e RW |
5391 | if ac_fn_c_try_compile "$LINENO"; then : |
5392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5393 | /* end confdefs.h. */ |
a3993f33 | 5394 | #include <gmp.h> |
e69bf64b | 5395 | #include <mpfr.h> |
1c710c3c DJ |
5396 | int |
5397 | main () | |
5398 | { | |
a3993f33 | 5399 | |
362c6d2f | 5400 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5401 | choke me |
5402 | #endif | |
acd26225 KG |
5403 | |
5404 | ; | |
5405 | return 0; | |
5406 | } | |
5407 | _ACEOF | |
5213506e RW |
5408 | if ac_fn_c_try_compile "$LINENO"; then : |
5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5410 | $as_echo "yes" >&6; } | |
acd26225 | 5411 | else |
5213506e RW |
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5413 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5414 | fi |
5213506e | 5415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5416 | else |
5213506e RW |
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5418 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5419 | fi |
5213506e | 5420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5421 | fi |
5422 | ||
5423 | # Check for the MPC header version. | |
3a5729ea | 5424 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5425 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5427 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5429 | /* end confdefs.h. */ |
5430 | #include <mpc.h> | |
5431 | int | |
5432 | main () | |
5433 | { | |
5434 | ||
362c6d2f KG |
5435 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5436 | choke me | |
5437 | #endif | |
5438 | ||
5439 | ; | |
5440 | return 0; | |
5441 | } | |
5442 | _ACEOF | |
5443 | if ac_fn_c_try_compile "$LINENO"; then : | |
5444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5445 | /* end confdefs.h. */ | |
5446 | #include <mpc.h> | |
5447 | int | |
5448 | main () | |
5449 | { | |
5450 | ||
5451 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5452 | choke me |
5453 | #endif | |
5454 | ||
5455 | ; | |
5456 | return 0; | |
5457 | } | |
5458 | _ACEOF | |
5213506e RW |
5459 | if ac_fn_c_try_compile "$LINENO"; then : |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5461 | $as_echo "yes" >&6; } |
362c6d2f KG |
5462 | else |
5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5464 | $as_echo "buggy but acceptable" >&6; } | |
5465 | fi | |
5466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5467 | else |
5213506e | 5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5469 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5470 | fi |
5213506e | 5471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5472 | fi |
5473 | ||
5474 | # Now check the MPFR library. | |
5475 | if test x"$have_gmp" = xyes; then | |
5476 | saved_LIBS="$LIBS" | |
5477 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5479 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5481 | /* end confdefs.h. */ |
3a5729ea | 5482 | #include <mpc.h> |
acd26225 KG |
5483 | int |
5484 | main () | |
5485 | { | |
5486 | ||
5487 | mpfr_t n; | |
5488 | mpfr_t x; | |
3a5729ea | 5489 | mpc_t c; |
acd26225 KG |
5490 | int t; |
5491 | mpfr_init (n); | |
5492 | mpfr_init (x); | |
5493 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5494 | mpfr_erfc (n, x, GMP_RNDN); | |
5495 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5496 | mpfr_clear(n); |
5497 | mpfr_clear(x); | |
5498 | mpc_init2 (c, 53); | |
5499 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5500 | mpc_cosh (c, c, MPC_RNDNN); | |
5501 | mpc_pow (c, c, c, MPC_RNDNN); | |
5502 | mpc_acosh (c, c, MPC_RNDNN); | |
5503 | mpc_clear (c); | |
1c710c3c DJ |
5504 | |
5505 | ; | |
5506 | return 0; | |
5507 | } | |
5508 | _ACEOF | |
5213506e RW |
5509 | if ac_fn_c_try_link "$LINENO"; then : |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5511 | $as_echo "yes" >&6; } | |
1c710c3c | 5512 | else |
5213506e RW |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5514 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5515 | fi |
5213506e RW |
5516 | rm -f core conftest.err conftest.$ac_objext \ |
5517 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5518 | LIBS="$saved_LIBS" |
5519 | fi | |
5520 | ||
e69bf64b | 5521 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5522 | |
362c6d2f KG |
5523 | # The library versions listed in the error message below should match |
5524 | # the HARD-minimums enforced above. | |
e69bf64b | 5525 | if test x$have_gmp != xyes; then |
f7d6bc01 | 5526 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
3a5729ea KG |
5527 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5528 | their locations. Source code for these libraries can be found at | |
5529 | their respective hosting sites as well as at | |
5530 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5531 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5532 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5533 | make sure that you have installed both the libraries and the header | |
5534 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5535 | fi |
70ec446f KG |
5536 | fi |
5537 | ||
acd26225 KG |
5538 | # Flags needed for both GMP, MPFR and/or MPC. |
5539 | ||
5540 | ||
6de9cd9a DN |
5541 | |
5542 | ||
5543 | ||
9e3eba15 | 5544 | |
f38095f3 JM |
5545 | # Allow host libstdc++ to be specified for static linking with PPL. |
5546 | ||
5213506e RW |
5547 | # Check whether --with-host-libstdcxx was given. |
5548 | if test "${with_host_libstdcxx+set}" = set; then : | |
5549 | withval=$with_host_libstdcxx; | |
5550 | fi | |
f38095f3 | 5551 | |
f38095f3 JM |
5552 | |
5553 | case $with_host_libstdcxx in | |
5554 | no|yes) | |
5213506e | 5555 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
f38095f3 JM |
5556 | ;; |
5557 | esac | |
f8bf9252 | 5558 | |
00020c16 ILT |
5559 | # Linker flags to use for stage1 or when not boostrapping. |
5560 | ||
5213506e RW |
5561 | # Check whether --with-stage1-ldflags was given. |
5562 | if test "${with_stage1_ldflags+set}" = set; then : | |
5563 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
00020c16 ILT |
5564 | stage1_ldflags= |
5565 | else | |
5566 | stage1_ldflags=$withval | |
5567 | fi | |
5568 | else | |
5569 | stage1_ldflags= | |
5213506e RW |
5570 | fi |
5571 | ||
00020c16 ILT |
5572 | |
5573 | ||
5574 | # Libraries to use for stage1 or when not bootstrapping. | |
5575 | ||
5213506e RW |
5576 | # Check whether --with-stage1-libs was given. |
5577 | if test "${with_stage1_libs+set}" = set; then : | |
5578 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
00020c16 ILT |
5579 | stage1_libs= |
5580 | else | |
5581 | stage1_libs=$withval | |
5582 | fi | |
5583 | else | |
5584 | stage1_libs=$with_host_libstdcxx | |
5213506e RW |
5585 | fi |
5586 | ||
00020c16 ILT |
5587 | |
5588 | ||
00020c16 ILT |
5589 | # Libraries to use for stage2 and later builds. This defaults to the |
5590 | # argument passed to --with-host-libstdcxx. | |
5591 | ||
5213506e RW |
5592 | # Check whether --with-boot-libs was given. |
5593 | if test "${with_boot_libs+set}" = set; then : | |
5594 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5595 | poststage1_libs= |
5596 | else | |
5597 | poststage1_libs=$withval | |
5598 | fi | |
5599 | else | |
00020c16 | 5600 | poststage1_libs=$with_host_libstdcxx |
5213506e RW |
5601 | fi |
5602 | ||
00020c16 ILT |
5603 | |
5604 | ||
ed2eaa9f ILT |
5605 | # Linker flags to use for stage2 and later builds. |
5606 | ||
5607 | # Check whether --with-boot-ldflags was given. | |
5608 | if test "${with_boot_ldflags+set}" = set; then : | |
5609 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5610 | poststage1_ldflags= | |
5611 | else | |
5612 | poststage1_ldflags=$withval | |
5613 | fi | |
5614 | else | |
5615 | poststage1_ldflags= | |
bec93d73 ILT |
5616 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5617 | # statically. But if the user explicitly specified the libraries to | |
5618 | # use, trust that they are doing what they want. | |
5619 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5620 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5621 | fi | |
5622 | fi | |
5623 | ||
5624 | ||
5625 | ||
33ad93b9 | 5626 | # Check for ISL |
f8bf9252 SP |
5627 | |
5628 | ||
33ad93b9 RG |
5629 | # Check whether --with-isl was given. |
5630 | if test "${with_isl+set}" = set; then : | |
5631 | withval=$with_isl; | |
5213506e | 5632 | fi |
f8bf9252 | 5633 | |
f8bf9252 | 5634 | |
33ad93b9 RG |
5635 | # Check whether --with-isl-include was given. |
5636 | if test "${with_isl_include+set}" = set; then : | |
5637 | withval=$with_isl_include; | |
5213506e RW |
5638 | fi |
5639 | ||
f8bf9252 | 5640 | |
33ad93b9 RG |
5641 | # Check whether --with-isl-lib was given. |
5642 | if test "${with_isl_lib+set}" = set; then : | |
5643 | withval=$with_isl_lib; | |
5213506e | 5644 | fi |
f8bf9252 | 5645 | |
f8bf9252 | 5646 | |
33ad93b9 RG |
5647 | # Check whether --enable-isl-version-check was given. |
5648 | if test "${enable_isl_version_check+set}" = set; then : | |
5649 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5650 | else | |
5651 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
5652 | fi |
5653 | ||
5654 | ||
33ad93b9 RG |
5655 | # Initialize isllibs and islinc. |
5656 | case $with_isl in | |
5657 | no) | |
5658 | isllibs= | |
5659 | islinc= | |
5660 | ;; | |
5661 | "" | yes) | |
5662 | ;; | |
5663 | *) | |
5664 | isllibs="-L$with_isl/lib" | |
5665 | islinc="-I$with_isl/include" | |
5666 | ;; | |
5667 | esac | |
5668 | if test "x${with_isl_include}" != x ; then | |
5669 | islinc="-I$with_isl_include" | |
5670 | fi | |
5671 | if test "x${with_isl_lib}" != x; then | |
5672 | isllibs="-L$with_isl_lib" | |
5673 | fi | |
5674 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5675 | && test -d ${srcdir}/isl; then | |
5676 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5677 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5678 | ENABLE_ISL_CHECK=no | |
5679 | fi | |
7d32a440 | 5680 | |
33ad93b9 | 5681 | isllibs="${isllibs} -lisl" |
7d32a440 | 5682 | |
7d32a440 | 5683 | |
f8bf9252 | 5684 | |
33ad93b9 RG |
5685 | |
5686 | ||
5687 | if test "x$with_isl" != "xno"; then | |
5688 | ||
5689 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5690 | _isl_saved_CFLAGS=$CFLAGS | |
5691 | _isl_saved_LDFLAGS=$LDFLAGS | |
90d4f233 | 5692 | _isl_saved_LIBS=$LIBS |
33ad93b9 RG |
5693 | |
5694 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
90d4f233 RO |
5695 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" |
5696 | LIBS="${_isl_saved_LIBS} -lisl" | |
33ad93b9 RG |
5697 | echo $CFLAGS |
5698 | ||
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5 | |
5700 | $as_echo_n "checking for version 0.10 of ISL... " >&6; } | |
5701 | if test "${gcc_cv_isl+set}" = set; then : | |
7d32a440 SP |
5702 | $as_echo_n "(cached) " >&6 |
5703 | else | |
33ad93b9 | 5704 | if test "$cross_compiling" = yes; then : |
2b2d7c53 | 5705 | gcc_cv_isl=yes |
33ad93b9 RG |
5706 | else |
5707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7d32a440 | 5708 | /* end confdefs.h. */ |
33ad93b9 RG |
5709 | #include <isl/version.h> |
5710 | #include <string.h> | |
7d32a440 SP |
5711 | int |
5712 | main () | |
5713 | { | |
8247e8b2 RG |
5714 | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) |
5715 | return 1; | |
5716 | ||
7d32a440 SP |
5717 | ; |
5718 | return 0; | |
5719 | } | |
5720 | _ACEOF | |
33ad93b9 RG |
5721 | if ac_fn_c_try_run "$LINENO"; then : |
5722 | gcc_cv_isl=yes | |
d789184e | 5723 | else |
33ad93b9 | 5724 | gcc_cv_isl=no |
7d32a440 | 5725 | fi |
33ad93b9 RG |
5726 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5727 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7d32a440 | 5728 | fi |
33ad93b9 | 5729 | |
5213506e | 5730 | fi |
33ad93b9 RG |
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5732 | $as_echo "$gcc_cv_isl" >&6; } | |
5213506e | 5733 | |
33ad93b9 RG |
5734 | CFLAGS=$_isl_saved_CFLAGS |
5735 | LDFLAGS=$_isl_saved_LDFLAGS | |
90d4f233 | 5736 | LIBS=$_isl_saved_LIBS |
7d32a440 | 5737 | fi |
f8bf9252 | 5738 | |
7d32a440 | 5739 | |
f8bf9252 | 5740 | |
f8bf9252 | 5741 | |
33ad93b9 RG |
5742 | |
5743 | ||
5744 | ||
5745 | if test "x${with_isl}" = xno; then | |
5746 | graphite_requested=no | |
5747 | elif test "x${with_isl}" != x \ | |
5748 | || test "x${with_isl_include}" != x \ | |
5749 | || test "x${with_isl_lib}" != x ; then | |
5750 | graphite_requested=yes | |
5751 | else | |
5752 | graphite_requested=no | |
7d32a440 | 5753 | fi |
d789184e | 5754 | |
d789184e SP |
5755 | |
5756 | ||
33ad93b9 RG |
5757 | if test "${gcc_cv_isl}" = no ; then |
5758 | isllibs= | |
5759 | islinc= | |
5760 | fi | |
5761 | ||
5762 | if test "${graphite_requested}" = yes \ | |
5763 | && test "x${isllibs}" = x \ | |
5764 | && test "x${islinc}" = x ; then | |
f8bf9252 | 5765 | |
33ad93b9 RG |
5766 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
5767 | fi | |
f8bf9252 | 5768 | |
d32ef397 | 5769 | |
33ad93b9 RG |
5770 | fi |
5771 | ||
5772 | # Check for CLOOG | |
d789184e SP |
5773 | |
5774 | ||
5213506e RW |
5775 | # Check whether --with-cloog was given. |
5776 | if test "${with_cloog+set}" = set; then : | |
5777 | withval=$with_cloog; | |
5213506e RW |
5778 | fi |
5779 | ||
d789184e | 5780 | |
9965e3cd | 5781 | # Check whether --with-cloog-include was given. |
5213506e RW |
5782 | if test "${with_cloog_include+set}" = set; then : |
5783 | withval=$with_cloog_include; | |
5784 | fi | |
d789184e | 5785 | |
d789184e | 5786 | |
9965e3cd | 5787 | # Check whether --with-cloog-lib was given. |
5213506e RW |
5788 | if test "${with_cloog_lib+set}" = set; then : |
5789 | withval=$with_cloog_lib; | |
5790 | fi | |
d789184e | 5791 | |
d789184e | 5792 | |
d32ef397 AS |
5793 | # Check whether --enable-cloog-version-check was given. |
5794 | if test "${enable_cloog_version_check+set}" = set; then : | |
5795 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5796 | else | |
5797 | ENABLE_CLOOG_CHECK=yes | |
5798 | fi | |
5799 | ||
5800 | ||
5801 | # Initialize clooglibs and clooginc. | |
5802 | case $with_cloog in | |
5803 | no) | |
5804 | clooglibs= | |
5805 | clooginc= | |
5806 | ;; | |
5807 | "" | yes) | |
5808 | ;; | |
5809 | *) | |
5810 | clooglibs="-L$with_cloog/lib" | |
5811 | clooginc="-I$with_cloog/include" | |
5812 | ;; | |
5813 | esac | |
5814 | if test "x${with_cloog_include}" != x ; then | |
5815 | clooginc="-I$with_cloog_include" | |
5816 | fi | |
5817 | if test "x${with_cloog_lib}" != x; then | |
5818 | clooglibs="-L$with_cloog_lib" | |
5819 | fi | |
33ad93b9 RG |
5820 | if test "x${clooginc}" == x && test "x${clooglibs}" == x \ |
5821 | && test -d ${srcdir}/cloog; then | |
33ad93b9 RG |
5822 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' |
5823 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include ' | |
ab4173cf | 5824 | fi |
ad0abd3c | 5825 | |
33ad93b9 RG |
5826 | clooginc="-DCLOOG_INT_GMP ${clooginc}" |
5827 | clooglibs="${clooglibs} -lcloog-isl ${isllibs}" | |
d32ef397 AS |
5828 | |
5829 | ||
d32ef397 | 5830 | |
d32ef397 AS |
5831 | |
5832 | ||
32d024bf RG |
5833 | if test "x$isllibs" = x && test "x$islinc" = x; then |
5834 | clooglibs= | |
5835 | clooginc= | |
5836 | elif test "x$with_cloog" != "xno"; then | |
d32ef397 AS |
5837 | |
5838 | ||
5839 | ||
5840 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5841 | _cloog_saved_CFLAGS=$CFLAGS | |
5842 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5843 | ||
33ad93b9 RG |
5844 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" |
5845 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
d32ef397 | 5846 | |
6886e444 RG |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5 |
5848 | $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; } | |
5849 | if test "${gcc_cv_cloog+set}" = set; then : | |
d32ef397 AS |
5850 | $as_echo_n "(cached) " >&6 |
5851 | else | |
5213506e | 5852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f8bf9252 | 5853 | /* end confdefs.h. */ |
33ad93b9 | 5854 | #include "cloog/version.h" |
f8bf9252 SP |
5855 | int |
5856 | main () | |
5857 | { | |
d32ef397 | 5858 | #if CLOOG_VERSION_MAJOR != 0 \ |
6886e444 RG |
5859 | || CLOOG_VERSION_MINOR != 17 \ |
5860 | || CLOOG_VERSION_REVISION < 0 | |
d32ef397 AS |
5861 | choke me |
5862 | #endif | |
f8bf9252 SP |
5863 | ; |
5864 | return 0; | |
5865 | } | |
5866 | _ACEOF | |
0333b9a6 | 5867 | if ac_fn_c_try_compile "$LINENO"; then : |
6886e444 | 5868 | gcc_cv_cloog=yes |
f8bf9252 | 5869 | else |
6886e444 | 5870 | gcc_cv_cloog=no |
f8bf9252 | 5871 | fi |
5213506e | 5872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d789184e | 5873 | fi |
6886e444 RG |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 |
5875 | $as_echo "$gcc_cv_cloog" >&6; } | |
d32ef397 AS |
5876 | |
5877 | CFLAGS=$_cloog_saved_CFLAGS | |
5878 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5879 | fi | |
f8bf9252 | 5880 | |
f8bf9252 SP |
5881 | |
5882 | ||
5883 | ||
d32ef397 AS |
5884 | |
5885 | ||
5886 | ||
6be7b668 JJ |
5887 | if test "x${with_cloog}" = xno; then |
5888 | graphite_requested=no | |
5889 | elif test "x${with_cloog}" != x \ | |
d32ef397 AS |
5890 | || test "x${with_cloog_include}" != x \ |
5891 | || test "x${with_cloog_lib}" != x ; then | |
5892 | graphite_requested=yes | |
5893 | else | |
5894 | graphite_requested=no | |
5895 | fi | |
5896 | ||
5897 | ||
5898 | ||
6886e444 | 5899 | if test "${gcc_cv_cloog}" = no ; then |
d32ef397 AS |
5900 | clooglibs= |
5901 | clooginc= | |
5902 | fi | |
5903 | ||
5904 | if test "${graphite_requested}" = yes \ | |
5905 | && test "x${clooglibs}" = x \ | |
5906 | && test "x${clooginc}" = x ; then | |
5907 | ||
ab4173cf | 5908 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
d32ef397 AS |
5909 | fi |
5910 | ||
5911 | ||
5912 | fi | |
5913 | ||
32d024bf RG |
5914 | # If either the ISL or the CLooG check failed, disable builds of in-tree |
5915 | # variants of both | |
5916 | if test "x$clooglibs" = x && test "x$clooginc" = x; then | |
5917 | noconfigdirs="$noconfigdirs cloog isl" | |
5918 | fi | |
5919 | ||
d7f09764 DN |
5920 | # Check for LTO support. |
5921 | # Check whether --enable-lto was given. | |
5922 | if test "${enable_lto+set}" = set; then : | |
5923 | enableval=$enable_lto; enable_lto=$enableval | |
5924 | else | |
5925 | enable_lto=yes; default_enable_lto=yes | |
5926 | fi | |
5927 | ||
5928 | ||
7413962d | 5929 | |
9a02962b DK |
5930 | |
5931 | ||
5932 | target_elf=no | |
5933 | case $target in | |
5934 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 5935 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
9a02962b DK |
5936 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
5937 | target_elf=no | |
5938 | ;; | |
5939 | *) | |
5940 | target_elf=yes | |
5941 | ;; | |
5942 | esac | |
5943 | ||
5944 | if test $target_elf = yes; then : | |
48215350 DK |
5945 | # ELF platforms build the lto-plugin always. |
5946 | build_lto_plugin=yes | |
9a02962b | 5947 | |
9a02962b DK |
5948 | else |
5949 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 5950 | case $target in |
2cd815e7 | 5951 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
48215350 | 5952 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
5953 | *) enable_lto=no ;; |
5954 | esac | |
9a02962b | 5955 | else |
db50fe7d IS |
5956 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
5957 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
5958 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
5959 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
5960 | # -flto it won't be needed until after installation anyway. | |
5961 | case $target in | |
1cd0b716 | 5962 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
9a02962b DK |
5963 | *) if test x"$enable_lto" = x"yes"; then |
5964 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
5965 | fi | |
5966 | ;; | |
5967 | esac | |
5968 | fi | |
1cd0b716 | 5969 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 5970 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 5971 | case $target in |
48215350 | 5972 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
5973 | *) ;; |
5974 | esac | |
48215350 | 5975 | |
9a02962b DK |
5976 | fi |
5977 | ||
d7f09764 | 5978 | |
f8bf9252 | 5979 | |
1e0f07d3 | 5980 | # By default, C is the only stage 1 language. |
e1888513 | 5981 | stage1_languages=,c, |
2805b53a | 5982 | |
00020c16 | 5983 | # Target libraries that we bootstrap. |
ad1e5170 | 5984 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 5985 | |
55ffb5ed NN |
5986 | # Figure out what language subdirectories are present. |
5987 | # Look if the user specified --enable-languages="..."; if not, use | |
5988 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
5989 | # go away some day. | |
5990 | # NB: embedded tabs in this IF block -- do not untabify | |
5991 | if test -d ${srcdir}/gcc; then | |
5992 | if test x"${enable_languages+set}" != xset; then | |
5993 | if test x"${LANGUAGES+set}" = xset; then | |
5994 | enable_languages="${LANGUAGES}" | |
5995 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
5996 | else | |
5997 | enable_languages=all | |
5998 | fi | |
5999 | else | |
6000 | if test x"${enable_languages}" = x || | |
6001 | test x"${enable_languages}" = xyes; | |
6002 | then | |
6003 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6004 | exit 1 | |
6005 | fi | |
6006 | fi | |
6007 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6008 | ||
7f26dfa3 FXC |
6009 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6010 | # and make the substitution. | |
6011 | case ,${enable_languages}, in | |
6012 | *,f95,*) | |
6013 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6014 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6015 | ;; | |
6016 | esac | |
6017 | ||
ff3ac0f4 ILT |
6018 | # If bootstrapping, then using --enable-build-with-cxx or |
6019 | # --enable-build-poststage1-with-cxx requires enabling C++. | |
6020 | case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in | |
6021 | *,c++,*:*:*) ;; | |
6022 | *:*,yes,*:yes) | |
6023 | if test -f ${srcdir}/gcc/cp/config-lang.in; then | |
6024 | enable_languages="${enable_languages},c++" | |
6025 | else | |
6026 | as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5 | |
6027 | fi | |
6028 | ;; | |
6029 | esac | |
6030 | ||
55ffb5ed NN |
6031 | # First scan to see if an enabled language requires some other language. |
6032 | # We assume that a given config-lang.in will list all the language | |
6033 | # front ends it requires, even if some are required indirectly. | |
6034 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6035 | case ${lang_frag} in | |
6036 | ..) ;; | |
6037 | # The odd quoting in the next line works around | |
6038 | # an apparent bug in bash 1.12 on linux. | |
6039 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6040 | *) | |
69ecd18f ILT |
6041 | # From the config-lang.in, get $language, $lang_requires, and |
6042 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6043 | language= |
6044 | lang_requires= | |
69ecd18f | 6045 | lang_requires_boot_languages= |
55ffb5ed | 6046 | . ${lang_frag} |
69ecd18f | 6047 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6048 | case ,${enable_languages}, in |
6049 | *,$other,*) ;; | |
6050 | *,all,*) ;; | |
6051 | *,$language,*) | |
6052 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6053 | enable_languages="${enable_languages},${other}" | |
6054 | ;; | |
6055 | esac | |
6056 | done | |
69ecd18f ILT |
6057 | for other in ${lang_requires_boot_languages} ; do |
6058 | if test "$other" != "c"; then | |
6059 | case ,${enable_stage1_languages}, in | |
6060 | *,$other,*) ;; | |
6061 | *,all,*) ;; | |
6062 | *) | |
6063 | case ,${enable_languages}, in | |
6064 | *,$language,*) | |
6065 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6066 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6067 | ;; | |
6068 | esac | |
6069 | ;; | |
6070 | esac | |
6071 | fi | |
6072 | done | |
55ffb5ed NN |
6073 | ;; |
6074 | esac | |
6075 | done | |
6076 | ||
e1888513 | 6077 | new_enable_languages=,c, |
d7f09764 DN |
6078 | |
6079 | # If LTO is enabled, add the LTO front end. | |
6080 | extra_host_libiberty_configure_flags= | |
6081 | if test "$enable_lto" = "yes" ; then | |
e4c5bd48 RW |
6082 | case ,${enable_languages}, in |
6083 | *,lto,*) ;; | |
6084 | *) enable_languages="${enable_languages},lto" ;; | |
6085 | esac | |
1cd0b716 | 6086 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 DN |
6087 | configdirs="$configdirs lto-plugin" |
6088 | extra_host_libiberty_configure_flags=--enable-shared | |
6089 | fi | |
6090 | fi | |
6091 | ||
6092 | ||
55ffb5ed | 6093 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6094 | potential_languages=,c, |
55ffb5ed | 6095 | |
4da3b0f8 ILT |
6096 | enabled_target_libs= |
6097 | disabled_target_libs= | |
6098 | ||
55ffb5ed NN |
6099 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6100 | case ${lang_frag} in | |
6101 | ..) ;; | |
6102 | # The odd quoting in the next line works around | |
6103 | # an apparent bug in bash 1.12 on linux. | |
6104 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6105 | *) | |
1c710c3c | 6106 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6107 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6108 | language= |
6109 | target_libs= | |
6110 | lang_dirs= | |
1546bb64 | 6111 | subdir_requires= |
e1888513 PB |
6112 | boot_language=no |
6113 | build_by_default=yes | |
55ffb5ed | 6114 | . ${lang_frag} |
e1888513 PB |
6115 | if test x${language} = x; then |
6116 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6117 | exit 1 | |
6118 | fi | |
6119 | ||
78767fd9 ILT |
6120 | if test "$language" = "c++"; then |
6121 | if test "$ENABLE_BUILD_WITH_CXX" = "yes" \ | |
6122 | || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
6123 | boot_language=yes | |
6124 | fi | |
00020c16 ILT |
6125 | fi |
6126 | ||
e1888513 PB |
6127 | case ,${enable_languages}, in |
6128 | *,${language},*) | |
d4a10d0a SB |
6129 | # Language was explicitly selected; include it |
6130 | # unless it is C, which is enabled by default. | |
6131 | if test "$language" != "c"; then | |
6132 | add_this_lang=yes | |
6133 | fi | |
55ffb5ed | 6134 | ;; |
e1888513 PB |
6135 | *,all,*) |
6136 | # 'all' was selected, select it if it is a default language | |
6137 | add_this_lang=${build_by_default} | |
55ffb5ed NN |
6138 | ;; |
6139 | *) | |
6140 | add_this_lang=no | |
6141 | ;; | |
6142 | esac | |
6de9cd9a | 6143 | |
1546bb64 | 6144 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6145 | for i in $subdir_requires; do |
b6348cb3 | 6146 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
6147 | case ,${enable_languages}, in |
6148 | *,${language},*) | |
6149 | # Specifically requested language; tell them. | |
5213506e | 6150 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 PB |
6151 | ;; |
6152 | *) | |
6153 | # Silently disable. | |
e1888513 | 6154 | add_this_lang=unsupported |
1546bb64 PB |
6155 | ;; |
6156 | esac | |
6157 | done | |
6158 | ||
e1888513 PB |
6159 | # Disable Ada if no preexisting GNAT is available. |
6160 | case ,${enable_languages},:${language}:${have_gnat} in | |
6161 | *,${language},*:ada:no) | |
6162 | # Specifically requested language; tell them. | |
5213506e | 6163 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
e1888513 PB |
6164 | ;; |
6165 | *:ada:no) | |
6166 | # Silently disable. | |
6167 | add_this_lang=unsupported | |
6168 | ;; | |
6169 | esac | |
6170 | ||
4fab7234 HPN |
6171 | # Disable a language that is unsupported by the target. |
6172 | case " $unsupported_languages " in | |
6173 | *" $language "*) | |
e1888513 | 6174 | add_this_lang=unsupported |
4fab7234 HPN |
6175 | ;; |
6176 | esac | |
6177 | ||
6de9cd9a | 6178 | case $add_this_lang in |
e1888513 | 6179 | unsupported) |
55ffb5ed | 6180 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6181 | disabled_target_libs="$disabled_target_libs $target_libs" |
6182 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6183 | ;; |
e1888513 PB |
6184 | no) |
6185 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6186 | disabled_target_libs="$disabled_target_libs $target_libs" |
6187 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6188 | potential_languages="${potential_languages}${language}," |
6189 | ;; | |
6190 | yes) | |
6191 | new_enable_languages="${new_enable_languages}${language}," | |
6192 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6193 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6194 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6195 | case "${boot_language}:,$enable_stage1_languages," in |
6196 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6197 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6198 | case ",$stage1_languages," in |
6199 | *,$language,* | ,yes, | ,all,) ;; | |
6200 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6201 | esac | |
00020c16 ILT |
6202 | # We need to bootstrap any supporting libraries. |
6203 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6204 | ;; |
6205 | esac | |
6206 | ;; | |
55ffb5ed NN |
6207 | esac |
6208 | ;; | |
6209 | esac | |
6210 | done | |
6211 | ||
4da3b0f8 ILT |
6212 | # Add target libraries which are only needed for disabled languages |
6213 | # to noconfigdirs. | |
6214 | if test -n "$disabled_target_libs"; then | |
6215 | for dir in $disabled_target_libs; do | |
6216 | case " $enabled_target_libs " in | |
6217 | *" ${dir} "*) ;; | |
6218 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6219 | esac | |
6220 | done | |
6221 | fi | |
6222 | ||
5213506e RW |
6223 | # Check whether --enable-stage1-languages was given. |
6224 | if test "${enable_stage1_languages+set}" = set; then : | |
6225 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6226 | ,no,|,,) |
6227 | # Set it to something that will have no effect in the loop below | |
6228 | enable_stage1_languages=c ;; | |
6229 | ,yes,) | |
6230 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6231 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6232 | *,all,*) | |
6233 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6234 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6235 | esac | |
6236 | ||
6237 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6238 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6239 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6240 | case $potential_languages in | |
6241 | *,$i,*) | |
6242 | case $stage1_languages in | |
6243 | *,$i,*) ;; | |
6244 | *) stage1_languages="$stage1_languages$i," ;; | |
6245 | esac ;; | |
6246 | *) | |
6247 | case $missing_languages in | |
6248 | *,$i,*) ;; | |
6249 | *) missing_languages="$missing_languages$i," ;; | |
6250 | esac ;; | |
6251 | esac | |
6252 | done | |
5213506e RW |
6253 | fi |
6254 | ||
e1888513 PB |
6255 | |
6256 | # Remove leading/trailing commas that were added for simplicity | |
6257 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6258 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6259 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6260 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6261 | ||
55ffb5ed | 6262 | if test "x$missing_languages" != x; then |
5213506e | 6263 | as_fn_error " |
0cf085e4 | 6264 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6265 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6266 | fi |
55ffb5ed NN |
6267 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6268 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6269 | enable_languages="$new_enable_languages" |
55ffb5ed | 6270 | fi |
e1888513 | 6271 | |
1c710c3c | 6272 | |
b2eaac4a | 6273 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6274 | fi |
6275 | ||
27079765 AH |
6276 | # Handle --disable-<component> generically. |
6277 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6278 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6279 | varname=`echo $dirname | sed -e s/+/_/g` |
6280 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6281 | noconfigdirs="$noconfigdirs $dir" |
6282 | fi | |
6283 | done | |
6284 | ||
7cd0cf9c | 6285 | # Check for Boehm's garbage collector |
5213506e RW |
6286 | # Check whether --enable-objc-gc was given. |
6287 | if test "${enable_objc_gc+set}" = set; then : | |
6288 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
7cd0cf9c | 6289 | *,objc,*:*:yes:*target-boehm-gc*) |
5213506e | 6290 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
7cd0cf9c DA |
6291 | ;; |
6292 | esac | |
5213506e RW |
6293 | fi |
6294 | ||
7cd0cf9c DA |
6295 | |
6296 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
6297 | case ,${enable_languages},:${enable_objc_gc} in |
6298 | *,objc,*:yes) | |
7cd0cf9c DA |
6299 | # Keep target-boehm-gc if requested for Objective-C. |
6300 | ;; | |
7cd0cf9c | 6301 | *) |
2a79fd67 DA |
6302 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6303 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6304 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6305 | fi | |
7cd0cf9c DA |
6306 | ;; |
6307 | esac | |
6308 | ||
99776ebd RH |
6309 | # Disable libitm if we're not building C++ |
6310 | case ,${enable_languages}, in | |
9696698a | 6311 | *,c++,*) ;; |
99776ebd RH |
6312 | *) |
6313 | noconfigdirs="$noconfigdirs target-libitm" | |
6314 | ;; | |
6315 | esac | |
6316 | ||
ee6a22df L |
6317 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6318 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6319 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6320 | ||
6321 | notsupp="" | |
6322 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6323 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6324 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6325 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6326 | if test -r $srcdir/$dirname/configure ; then | |
6327 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6328 | true | |
6329 | else | |
6330 | notsupp="$notsupp $dir" | |
6331 | fi | |
6332 | fi | |
6333 | fi | |
ee6a22df L |
6334 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6335 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6336 | if test -r $srcdir/$dirname/configure ; then | |
6337 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6338 | true | |
6339 | else | |
6340 | notsupp="$notsupp $dir" | |
6341 | fi | |
6342 | fi | |
6343 | fi | |
55ffb5ed NN |
6344 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6345 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6346 | if test -r $srcdir/$dirname/configure ; then | |
6347 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6348 | true | |
6349 | else | |
6350 | notsupp="$notsupp $dir" | |
6351 | fi | |
6352 | fi | |
6353 | fi | |
6354 | done | |
6355 | ||
55ffb5ed NN |
6356 | # Quietly strip out all directories which aren't configurable in this tree. |
6357 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6358 | # is now the case. | |
23f6b2f9 PB |
6359 | build_configdirs_all="$build_configdirs" |
6360 | build_configdirs= | |
6361 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6362 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6363 | if test -f ${srcdir}/$j/configure ; then |
6364 | build_configdirs="${build_configdirs} $i" | |
6365 | fi | |
6366 | done | |
6367 | ||
55ffb5ed NN |
6368 | configdirs_all="$configdirs" |
6369 | configdirs= | |
6370 | for i in ${configdirs_all} ; do | |
6371 | if test -f ${srcdir}/$i/configure ; then | |
6372 | configdirs="${configdirs} $i" | |
6373 | fi | |
6374 | done | |
23f6b2f9 | 6375 | |
55ffb5ed NN |
6376 | target_configdirs_all="$target_configdirs" |
6377 | target_configdirs= | |
6378 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6379 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6380 | if test -f ${srcdir}/$j/configure ; then |
6381 | target_configdirs="${target_configdirs} $i" | |
6382 | fi | |
6383 | done | |
6384 | ||
6385 | # Produce a warning message for the subdirs we can't configure. | |
6386 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6387 | # FSF releases, it's important to let people know when their machine isn't | |
6388 | # supported by the one or two programs in a package. | |
6389 | ||
6390 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6391 | # If $appdirs is non-empty, at least one of those directories must still | |
6392 | # be configured, or we error out. (E.g., if the gas release supports a | |
6393 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6394 | # pretend that all is well.) | |
6395 | if test -n "$appdirs" ; then | |
6396 | for dir in $appdirs ; do | |
6397 | if test -r $dir/Makefile.in ; then | |
6398 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6399 | appdirs="" | |
6400 | break | |
6401 | fi | |
23f6b2f9 | 6402 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6403 | appdirs="" |
6404 | break | |
6405 | fi | |
6406 | fi | |
6407 | done | |
6408 | if test -n "$appdirs" ; then | |
6409 | echo "*** This configuration is not supported by this package." 1>&2 | |
6410 | exit 1 | |
6411 | fi | |
6412 | fi | |
6413 | # Okay, some application will build, or we don't care to check. Still | |
6414 | # notify of subdirs not getting built. | |
6415 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6416 | echo " ${notsupp}" 1>&2 | |
6417 | echo " (Any other directories should still work fine.)" 1>&2 | |
6418 | fi | |
6419 | ||
6420 | case "$host" in | |
6421 | *msdosdjgpp*) | |
6422 | enable_gdbtk=no ;; | |
6423 | esac | |
6424 | ||
c3a86da9 DJ |
6425 | # To find our prefix, in gcc_cv_tool_prefix. |
6426 | ||
6427 | # The user is always right. | |
6428 | if test "${PATH_SEPARATOR+set}" != set; then | |
6429 | echo "#! /bin/sh" >conf$$.sh | |
6430 | echo "exit 0" >>conf$$.sh | |
6431 | chmod +x conf$$.sh | |
6432 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6433 | PATH_SEPARATOR=';' | |
6434 | else | |
6435 | PATH_SEPARATOR=: | |
6436 | fi | |
6437 | rm -f conf$$.sh | |
6438 | fi | |
6439 | ||
6440 | ||
6441 | ||
6442 | if test "x$exec_prefix" = xNONE; then | |
6443 | if test "x$prefix" = xNONE; then | |
6444 | gcc_cv_tool_prefix=$ac_default_prefix | |
6445 | else | |
6446 | gcc_cv_tool_prefix=$prefix | |
6447 | fi | |
6448 | else | |
6449 | gcc_cv_tool_prefix=$exec_prefix | |
6450 | fi | |
6451 | ||
6452 | # If there is no compiler in the tree, use the PATH only. In any | |
6453 | # case, if there is no compiler in the tree nobody should use | |
6454 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6455 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6456 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6457 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6458 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6459 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6460 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6461 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6462 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6463 | else | |
6464 | gcc_cv_tool_dirs= | |
6465 | fi | |
6466 | ||
6467 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6468 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6469 | fi | |
6470 | ||
6471 | ||
6472 | ||
55ffb5ed NN |
6473 | copy_dirs= |
6474 | ||
1c710c3c | 6475 | |
5213506e RW |
6476 | # Check whether --with-build-sysroot was given. |
6477 | if test "${with_build_sysroot+set}" = set; then : | |
6478 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6479 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6480 | fi | |
6481 | else | |
6482 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6483 | fi |
526635cb MM |
6484 | |
6485 | ||
c8aea42c | 6486 | |
5213506e RW |
6487 | |
6488 | # Check whether --with-debug-prefix-map was given. | |
6489 | if test "${with_debug_prefix_map+set}" = set; then : | |
6490 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6491 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6492 | for debug_map in $withval; do | |
6493 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6494 | done | |
6495 | fi | |
6496 | else | |
6497 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6498 | fi |
6499 | ||
c8aea42c PB |
6500 | |
6501 | ||
1c8bd6a3 PB |
6502 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6503 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6504 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6505 | # We want to ensure that TARGET libraries (which we know are built with | |
6506 | # gcc) are built with "-O2 -g", so include those options when setting | |
6507 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6508 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6509 | CFLAGS_FOR_TARGET=$CFLAGS | |
6510 | case " $CFLAGS " in | |
6511 | *" -O2 "*) ;; | |
bd8e704f | 6512 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6513 | esac |
6514 | case " $CFLAGS " in | |
6515 | *" -g "* | *" -g3 "*) ;; | |
bd8e704f | 6516 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6517 | esac |
6518 | fi | |
6519 | ||
6520 | ||
6521 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6522 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6523 | case " $CXXFLAGS " in | |
6524 | *" -O2 "*) ;; | |
bd8e704f | 6525 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6526 | esac |
6527 | case " $CXXFLAGS " in | |
6528 | *" -g "* | *" -g3 "*) ;; | |
bd8e704f | 6529 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
1c8bd6a3 PB |
6530 | esac |
6531 | fi | |
6532 | ||
6533 | ||
6f57bdf6 DK |
6534 | |
6535 | ||
55ffb5ed NN |
6536 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6537 | # the named directory are copied to $(tooldir)/sys-include. | |
6538 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6539 | if test x${is_cross_compiler} = xno ; then | |
6540 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6541 | exit 1 | |
6542 | fi | |
6543 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6544 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6545 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6546 | fi |
6547 | fi | |
6548 | ||
6549 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6550 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6551 | # are permitted. | |
6552 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6553 | if test x${is_cross_compiler} = xno ; then | |
6554 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6555 | exit 1 | |
6556 | fi | |
6557 | if test x"${with_libs}" != xyes ; then | |
6558 | # Copy the libraries in reverse order, so that files in the first named | |
6559 | # library override files in subsequent libraries. | |
c3a86da9 | 6560 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6561 | for l in ${with_libs}; do |
1c710c3c | 6562 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6563 | done |
6564 | fi | |
6565 | fi | |
6566 | ||
d7f09764 | 6567 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6568 | # |
6569 | # This is done by determining whether or not the appropriate directory | |
6570 | # is available, and by checking whether or not specific configurations | |
6571 | # have requested that this magic not happen. | |
1c710c3c DJ |
6572 | # |
6573 | # The command line options always override the explicit settings in | |
e8b05380 PB |
6574 | # configure.in, and the settings in configure.in override this magic. |
6575 | # | |
1c710c3c | 6576 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6577 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6578 | # --without-gnu-ld options for the configure script. Similarly, if |
6579 | # the default is to use the included zlib and you don't want to do that, | |
6580 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6581 | |
6582 | if test x${use_gnu_as} = x && | |
6583 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6584 | with_gnu_as=yes | |
6585 | extra_host_args="$extra_host_args --with-gnu-as" | |
6586 | fi | |
6587 | ||
6588 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6589 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6590 | with_gnu_ld=yes |
6591 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6592 | fi | |
6593 | ||
d7f09764 DN |
6594 | if test x${use_included_zlib} = x && |
6595 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6596 | : | |
6597 | else | |
6598 | with_system_zlib=yes | |
6599 | extra_host_args="$extra_host_args --with-system-zlib" | |
6600 | fi | |
6601 | ||
e8b05380 PB |
6602 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6603 | # can detect this case. | |
6604 | ||
6605 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6606 | with_newlib=yes | |
6607 | extra_host_args="$extra_host_args --with-newlib" | |
6608 | fi | |
6609 | ||
55ffb5ed NN |
6610 | # Handle ${copy_dirs} |
6611 | set fnord ${copy_dirs} | |
6612 | shift | |
6613 | while test $# != 0 ; do | |
6614 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6615 | : | |
6616 | else | |
6617 | echo Copying $1 to $2 | |
6618 | ||
6619 | # Use the install script to create the directory and all required | |
6620 | # parent directories. | |
6621 | if test -d $2 ; then | |
6622 | : | |
6623 | else | |
6624 | echo >config.temp | |
6625 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6626 | fi | |
6627 | ||
6628 | # Copy the directory, assuming we have tar. | |
6629 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6630 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6631 | ||
6632 | # It is the responsibility of the user to correctly adjust all | |
6633 | # symlinks. If somebody can figure out how to handle them correctly | |
6634 | # here, feel free to add the code. | |
6635 | ||
6636 | echo $1 > $2/COPIED | |
6637 | fi | |
6638 | shift; shift | |
6639 | done | |
6640 | ||
e8b05380 PB |
6641 | # Determine a target-dependent exec_prefix that the installed |
6642 | # gcc will search in. Keep this list sorted by triplet, with | |
6643 | # the *-*-osname triplets last. | |
6644 | md_exec_prefix= | |
6645 | case "${target}" in | |
30b74385 | 6646 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6647 | md_exec_prefix=/dev/env/DJDIR/bin |
6648 | ;; | |
e8b05380 | 6649 | *-*-hpux* | \ |
e8b05380 | 6650 | *-*-nto-qnx* | \ |
6de66370 | 6651 | *-*-solaris2*) |
e8b05380 PB |
6652 | md_exec_prefix=/usr/ccs/bin |
6653 | ;; | |
6654 | esac | |
6655 | ||
671aa708 NN |
6656 | extra_arflags_for_target= |
6657 | extra_nmflags_for_target= | |
6658 | extra_ranlibflags_for_target= | |
6659 | target_makefile_frag=/dev/null | |
6660 | case "${target}" in | |
58e24147 AM |
6661 | spu-*-*) |
6662 | target_makefile_frag="config/mt-spu" | |
6663 | ;; | |
4bf6c438 RS |
6664 | mips*-sde-elf*) |
6665 | target_makefile_frag="config/mt-sde" | |
6666 | ;; | |
1ec3b87b RS |
6667 | mipsisa*-*-elfoabi*) |
6668 | target_makefile_frag="config/mt-mips-elfoabi" | |
6669 | ;; | |
08d0963a RS |
6670 | mips*-*-*linux* | mips*-*-gnu*) |
6671 | target_makefile_frag="config/mt-mips-gnu" | |
6672 | ;; | |
416ac4d4 | 6673 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 6674 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
6675 | ;; |
6676 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 6677 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
6678 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6679 | # harmless if we're using GNU nm or ar. | |
6680 | extra_arflags_for_target=" -X32_64" | |
6681 | extra_nmflags_for_target=" -B -X32_64" | |
6682 | ;; | |
671aa708 NN |
6683 | esac |
6684 | ||
6685 | alphaieee_frag=/dev/null | |
6686 | case $target in | |
6687 | alpha*-*-*) | |
6688 | # This just makes sure to use the -mieee option to build target libs. | |
6689 | # This should probably be set individually by each library. | |
6690 | alphaieee_frag="config/mt-alphaieee" | |
6691 | ;; | |
6692 | esac | |
6693 | ||
6694 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6695 | # the target libraries, similarly if it is not specified, use -Os | |
6696 | # on selected platforms. | |
6697 | ospace_frag=/dev/null | |
6698 | case "${enable_target_optspace}:${target}" in | |
6699 | yes:*) | |
6700 | ospace_frag="config/mt-ospace" | |
6701 | ;; | |
6702 | :d30v-*) | |
6703 | ospace_frag="config/mt-d30v" | |
6704 | ;; | |
6705 | :m32r-* | :d10v-* | :fr30-*) | |
6706 | ospace_frag="config/mt-ospace" | |
6707 | ;; | |
6708 | no:* | :*) | |
6709 | ;; | |
6710 | *) | |
6711 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6712 | ;; | |
6713 | esac | |
6714 | ||
671aa708 NN |
6715 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6716 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 6717 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
6718 | build_tooldir=${tooldir} |
6719 | ||
671aa708 NN |
6720 | # Create a .gdbinit file which runs the one in srcdir |
6721 | # and tells GDB to look there for source files. | |
6722 | ||
6723 | if test -r ${srcdir}/.gdbinit ; then | |
6724 | case ${srcdir} in | |
6725 | .) ;; | |
6726 | *) cat > ./.gdbinit <<EOF | |
6727 | # ${NO_EDIT} | |
6728 | dir ${srcdir} | |
6729 | dir . | |
6730 | source ${srcdir}/.gdbinit | |
6731 | EOF | |
6732 | ;; | |
6733 | esac | |
6734 | fi | |
6735 | ||
671aa708 NN |
6736 | # Make sure that the compiler is able to generate an executable. If it |
6737 | # can't, we are probably in trouble. We don't care whether we can run the | |
6738 | # executable--we might be using a cross compiler--we only care whether it | |
6739 | # can be created. At this point the main configure script has set CC. | |
6740 | we_are_ok=no | |
6741 | echo "int main () { return 0; }" > conftest.c | |
6742 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6743 | if test $? = 0 ; then | |
6744 | if test -s conftest || test -s conftest.exe ; then | |
6745 | we_are_ok=yes | |
6746 | fi | |
1c710c3c | 6747 | fi |
671aa708 NN |
6748 | case $we_are_ok in |
6749 | no) | |
6750 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6751 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6752 | rm -f conftest* | |
6753 | exit 1 | |
6754 | ;; | |
6755 | esac | |
6756 | rm -f conftest* | |
6757 | ||
d89f0ad6 | 6758 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
6759 | case "${host}" in |
6760 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 6761 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 6762 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
6763 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6764 | esac | |
6765 | ||
d89f0ad6 AL |
6766 | # On systems where the dynamic library environment variable is PATH, |
6767 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6768 | # built executables to PATH. | |
6769 | if test "$RPATH_ENVVAR" = PATH; then | |
6770 | GCC_SHLIB_SUBDIR=/shlib | |
6771 | else | |
6772 | GCC_SHLIB_SUBDIR= | |
6773 | fi | |
6774 | ||
671aa708 NN |
6775 | # Record target_configdirs and the configure arguments for target and |
6776 | # build configuration in Makefile. | |
6777 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 6778 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
671aa708 | 6779 | |
ad1e5170 JR |
6780 | # If we are building libgomp, bootstrap it. |
6781 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6782 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6783 | fi | |
6784 | ||
671aa708 NN |
6785 | # Determine whether gdb needs tk/tcl or not. |
6786 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6787 | # and in that case we want gdb to be built without tk. Ugh! | |
6788 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6789 | # so we should be able to put the 'maybe's in unconditionally and | |
6790 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6791 | # 100% sure that that's safe though. | |
e914a571 | 6792 | |
b4f96efe | 6793 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
6794 | case "$enable_gdbtk" in |
6795 | no) | |
6796 | GDB_TK="" ;; | |
e914a571 AC |
6797 | yes) |
6798 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 6799 | *) |
e914a571 AC |
6800 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6801 | # distro. Eventually someone will fix this and move Insight, nee | |
6802 | # gdbtk to a separate directory. | |
6803 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6804 | GDB_TK="${gdb_tk}" | |
6805 | else | |
6806 | GDB_TK="" | |
6807 | fi | |
6808 | ;; | |
671aa708 | 6809 | esac |
ef9db8d5 DJ |
6810 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6811 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 6812 | |
60975492 | 6813 | # Strip out unwanted targets. |
8b87bb96 NN |
6814 | |
6815 | # While at that, we remove Makefiles if we were started for recursive | |
6816 | # configuration, so that the top-level Makefile reconfigures them, | |
6817 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 6818 | |
3e54529c RW |
6819 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6820 | # but now we're fixing up the Makefile ourselves with the additional | |
6821 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6822 | # extrasub-{build,host,target} not because there is any reason to split | |
6823 | # the substitutions up that way, but only to remain below the limit of | |
6824 | # 99 commands in a script, for HP-UX sed. | |
6825 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 6826 | |
79cd2b23 RW |
6827 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6828 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6829 | yes:yes:*\ gold\ *:*) | |
6830 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6831 | ;; | |
6832 | esac | |
6833 | ||
ce521a9c | 6834 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
e12c4094 | 6835 | case $enable_bootstrap in |
f516a7da | 6836 | yes) |
e12c4094 AO |
6837 | bootstrap_suffix=bootstrap |
6838 | BUILD_CONFIG=bootstrap-debug | |
6839 | ;; | |
f516a7da | 6840 | no) |
e12c4094 AO |
6841 | bootstrap_suffix=no-bootstrap |
6842 | BUILD_CONFIG= | |
6843 | ;; | |
f516a7da PB |
6844 | esac |
6845 | ||
e12c4094 AO |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
6847 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
5646b7b9 AO |
6848 | |
6849 | ||
6850 | # Check whether --with-build-config was given. | |
6851 | if test "${with_build_config+set}" = set; then : | |
6852 | withval=$with_build_config; case $with_build_config in | |
6853 | yes) with_build_config= ;; | |
6854 | no) with_build_config= BUILD_CONFIG= ;; | |
6855 | esac | |
6856 | fi | |
6857 | ||
6858 | ||
e12c4094 AO |
6859 | if test "x${with_build_config}" != x; then |
6860 | BUILD_CONFIG=$with_build_config | |
6861 | else | |
6862 | case $BUILD_CONFIG in | |
6863 | bootstrap-debug) | |
6864 | if echo "int f (void) { return 0; }" > conftest.c && | |
6865 | ${CC} -c conftest.c && | |
6866 | mv conftest.o conftest.o.g0 && | |
6867 | ${CC} -c -g conftest.c && | |
6868 | mv conftest.o conftest.o.g && | |
615c8ffa | 6869 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
e12c4094 AO |
6870 | : |
6871 | else | |
6872 | BUILD_CONFIG= | |
6873 | fi | |
6874 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6875 | ;; | |
6876 | esac | |
6877 | fi | |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6879 | $as_echo "$BUILD_CONFIG" >&6; } | |
6880 | ||
6881 | ||
3e54529c | 6882 | extrasub_build= |
23f6b2f9 | 6883 | for module in ${build_configdirs} ; do |
5607edfd PB |
6884 | if test -z "${no_recursion}" \ |
6885 | && test -f ${build_subdir}/${module}/Makefile; then | |
6886 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
6887 | rm -f ${build_subdir}/${module}/Makefile | |
6888 | fi | |
3e54529c | 6889 | extrasub_build="$extrasub_build |
5607edfd PB |
6890 | /^@if build-$module\$/d |
6891 | /^@endif build-$module\$/d | |
6892 | /^@if build-$module-$bootstrap_suffix\$/d | |
6893 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
6894 | done | |
3e54529c | 6895 | extrasub_host= |
5607edfd | 6896 | for module in ${configdirs} ; do |
a6fbc1e2 | 6897 | if test -z "${no_recursion}"; then |
f063a9ed | 6898 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
6899 | if test -f ${file}; then |
6900 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
6901 | rm -f ${file} | |
6902 | fi | |
6903 | done | |
5607edfd | 6904 | fi |
3e54529c | 6905 | extrasub_host="$extrasub_host |
5607edfd PB |
6906 | /^@if $module\$/d |
6907 | /^@endif $module\$/d | |
6908 | /^@if $module-$bootstrap_suffix\$/d | |
6909 | /^@endif $module-$bootstrap_suffix\$/d" | |
6910 | done | |
3e54529c | 6911 | extrasub_target= |
5607edfd PB |
6912 | for module in ${target_configdirs} ; do |
6913 | if test -z "${no_recursion}" \ | |
6914 | && test -f ${target_subdir}/${module}/Makefile; then | |
6915 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
6916 | rm -f ${target_subdir}/${module}/Makefile | |
6917 | fi | |
00020c16 ILT |
6918 | |
6919 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
6920 | case $bootstrap_target_libs in | |
6921 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
6922 | *) target_bootstrap_suffix=no-bootstrap ;; | |
6923 | esac | |
6924 | ||
3e54529c | 6925 | extrasub_target="$extrasub_target |
5607edfd PB |
6926 | /^@if target-$module\$/d |
6927 | /^@endif target-$module\$/d | |
00020c16 ILT |
6928 | /^@if target-$module-$target_bootstrap_suffix\$/d |
6929 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
6930 | done |
6931 | ||
3e54529c RW |
6932 | # Do the final fixup along with target modules. |
6933 | extrasub_target="$extrasub_target | |
60975492 | 6934 | /^@if /,/^@endif /d" |
671aa708 NN |
6935 | |
6936 | # Create the serialization dependencies. This uses a temporary file. | |
6937 | ||
5213506e RW |
6938 | # Check whether --enable-serial-configure was given. |
6939 | if test "${enable_serial_configure+set}" = set; then : | |
6940 | enableval=$enable_serial_configure; | |
6941 | fi | |
ade82b16 AO |
6942 | |
6943 | ||
bf1d3e81 NN |
6944 | case ${enable_serial_configure} in |
6945 | yes) | |
6946 | enable_serial_build_configure=yes | |
6947 | enable_serial_host_configure=yes | |
6948 | enable_serial_target_configure=yes | |
6949 | ;; | |
6950 | esac | |
6951 | ||
671aa708 NN |
6952 | # These force 'configure's to be done one at a time, to avoid problems |
6953 | # with contention over a shared config.cache. | |
6954 | rm -f serdep.tmp | |
ade82b16 | 6955 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 6956 | olditem= |
bf1d3e81 | 6957 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
6958 | for item in ${build_configdirs} ; do |
6959 | case ${olditem} in | |
6960 | "") ;; | |
ade82b16 | 6961 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6962 | esac |
6963 | olditem=${item} | |
6964 | done | |
6965 | olditem= | |
bf1d3e81 | 6966 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
6967 | for item in ${configdirs} ; do |
6968 | case ${olditem} in | |
6969 | "") ;; | |
ade82b16 | 6970 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6971 | esac |
6972 | olditem=${item} | |
6973 | done | |
6974 | olditem= | |
bf1d3e81 | 6975 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
6976 | for item in ${target_configdirs} ; do |
6977 | case ${olditem} in | |
6978 | "") ;; | |
ade82b16 | 6979 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6980 | esac |
6981 | olditem=${item} | |
6982 | done | |
6983 | serialization_dependencies=serdep.tmp | |
6984 | ||
6985 | ||
ade82b16 | 6986 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 6987 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
6988 | # might not want to pass down to subconfigures. The exception being |
6989 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
6990 | # files altogether, and which should be passed on to subconfigures. | |
6991 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
6992 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 6993 | baseargs= |
29a63921 | 6994 | tbaseargs= |
1c710c3c DJ |
6995 | keep_next=no |
6996 | skip_next=no | |
6997 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
6998 | for ac_arg |
6999 | do | |
1c710c3c DJ |
7000 | if test X"$skip_next" = X"yes"; then |
7001 | skip_next=no | |
7002 | continue | |
7003 | fi | |
7004 | if test X"$keep_next" = X"yes"; then | |
7005 | case $ac_arg in | |
7006 | *\'*) | |
7007 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7008 | esac | |
7009 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7010 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7011 | keep_next=no |
7012 | continue | |
7013 | fi | |
7014 | ||
7015 | # Handle separated arguments. Based on the logic generated by | |
7016 | # autoconf 2.59. | |
7017 | case $ac_arg in | |
7018 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7021 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7022 | separate_arg=no | |
7023 | ;; | |
7024 | -*) | |
7025 | separate_arg=yes | |
7026 | ;; | |
7027 | *) | |
7028 | separate_arg=no | |
7029 | ;; | |
7030 | esac | |
7031 | ||
29a63921 AO |
7032 | skip_targ=no |
7033 | case $ac_arg in | |
7034 | ||
7035 | --with-* | --without-*) | |
7036 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7037 | ||
7038 | case $libopt in | |
7039 | *[-_]include) | |
7040 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7041 | ;; | |
7042 | *[-_]lib) | |
7043 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7044 | ;; | |
7045 | *) | |
7046 | lib=$libopt | |
7047 | ;; | |
7048 | esac | |
7049 | ||
7050 | ||
7051 | case $lib in | |
33ad93b9 | 7052 | mpc | mpfr | gmp | cloog) |
29a63921 AO |
7053 | # If we're processing --with-$lib, --with-$lib-include or |
7054 | # --with-$lib-lib, for one of the libs above, and target is | |
7055 | # different from host, don't pass the current argument to any | |
7056 | # target library's configure. | |
7057 | if test x$is_cross_compiler = xyes; then | |
7058 | skip_targ=yes | |
7059 | fi | |
7060 | ;; | |
7061 | esac | |
7062 | ;; | |
7063 | esac | |
7064 | ||
1c710c3c | 7065 | case "$ac_arg" in |
f1a036e4 NC |
7066 | --cache-file=/dev/null | \ |
7067 | -cache-file=/dev/null ) | |
7068 | # Handled here to avoid the test to skip args below. | |
7069 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7070 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7071 | # Assert: $separate_arg should always be no. |
7072 | keep_next=$separate_arg | |
7073 | ;; | |
1c710c3c DJ |
7074 | --no*) |
7075 | continue | |
7076 | ;; | |
7077 | --c* | \ | |
7078 | --sr* | \ | |
7079 | --ho* | \ | |
7080 | --bu* | \ | |
7081 | --t* | \ | |
7082 | --program-* | \ | |
7083 | -cache_file* | \ | |
7084 | -srcdir* | \ | |
7085 | -host* | \ | |
7086 | -build* | \ | |
7087 | -target* | \ | |
7088 | -program-prefix* | \ | |
7089 | -program-suffix* | \ | |
7090 | -program-transform-name* ) | |
7091 | skip_next=$separate_arg | |
7092 | continue | |
7093 | ;; | |
7094 | -*) | |
7095 | # An option. Add it. | |
7096 | case $ac_arg in | |
7097 | *\'*) | |
7098 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7099 | esac | |
7100 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7101 | if test X"$skip_targ" = Xno; then |
7102 | tbaseargs="$tbaseargs '$ac_arg'" | |
7103 | fi | |
1c710c3c DJ |
7104 | keep_next=$separate_arg |
7105 | ;; | |
7106 | *) | |
7107 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7108 | # pass it down; let the Makefile handle this. | |
7109 | continue | |
7110 | ;; | |
7111 | esac | |
7112 | done | |
7113 | # Remove the initial space we just introduced and, as these will be | |
7114 | # expanded by make, quote '$'. | |
7115 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7116 | |
43bb47c2 DJ |
7117 | # Add in --program-transform-name, after --program-prefix and |
7118 | # --program-suffix have been applied to it. Autoconf has already | |
7119 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7120 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7121 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7122 | # Also, because we want to override the logic in subdir configure scripts to |
7123 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7124 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7125 | ${program_transform_name} | |
7126 | EOF_SED | |
7127 | gcc_transform_name=`cat conftestsed.out` | |
7128 | rm -f conftestsed.out | |
7129 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7130 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7131 | if test "$silent" = yes; then |
7132 | baseargs="$baseargs --silent" | |
29a63921 | 7133 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7134 | fi |
0115d4a3 | 7135 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7136 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7137 | |
ffedf511 RW |
7138 | # Record and document user additions to sub configure arguments. |
7139 | ||
7140 | ||
7141 | ||
7142 | ||
671aa708 NN |
7143 | # For the build-side libraries, we just need to pretend we're native, |
7144 | # and not use the same cache file. Multilibs are neither needed nor | |
7145 | # desired. | |
ffedf511 | 7146 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
671aa708 NN |
7147 | |
7148 | # For host modules, accept cache file option, or specification as blank. | |
7149 | case "${cache_file}" in | |
7150 | "") # empty | |
7151 | cache_file_option="" ;; | |
7152 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7153 | cache_file_option="--cache-file=${cache_file}" ;; | |
7154 | *) # relative path | |
7155 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7156 | esac | |
7157 | ||
09438bde NN |
7158 | # Host dirs don't like to share a cache file either, horribly enough. |
7159 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7160 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7161 | |
29a63921 | 7162 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7163 | |
7164 | # Passing a --with-cross-host argument lets the target libraries know | |
7165 | # whether they are being built with a cross-compiler or being built | |
7166 | # native. However, it would be better to use other mechanisms to make the | |
7167 | # sorts of decisions they want to make on this basis. Please consider | |
7168 | # this option to be deprecated. FIXME. | |
7169 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7170 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7171 | fi |
7172 | ||
dc683a3f RW |
7173 | # Default to --enable-multilib. |
7174 | if test x${enable_multilib} = x ; then | |
671aa708 | 7175 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7176 | fi |
671aa708 NN |
7177 | |
7178 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7179 | # changed from the earlier setting of with_newlib. | |
7180 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7181 | target_configargs="--with-newlib ${target_configargs}" | |
7182 | fi | |
7183 | ||
6b9eb62c NN |
7184 | # Different target subdirs use different values of certain variables |
7185 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7186 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7187 | # it doesn't automatically accept command-line overrides of them. | |
7188 | # This means it's not safe for target subdirs to share a cache file, | |
7189 | # which is disgusting, but there you have it. Hopefully this can be | |
7190 | # fixed in future. It's still worthwhile to use a cache file for each | |
7191 | # directory. I think. | |
7192 | ||
bebcd931 MS |
7193 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7194 | # We need to pass --target, as newer autoconf's requires consistency | |
7195 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7196 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7197 | |
671aa708 NN |
7198 | FLAGS_FOR_TARGET= |
7199 | case " $target_configdirs " in | |
7200 | *" newlib "*) | |
7201 | case " $target_configargs " in | |
7202 | *" --with-newlib "*) | |
7203 | case "$target" in | |
5d571eaa OS |
7204 | *-cygwin*) |
7205 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7206 | ;; | |
671aa708 NN |
7207 | esac |
7208 | ||
7209 | # If we're not building GCC, don't discard standard headers. | |
7210 | if test -d ${srcdir}/gcc; then | |
7211 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7212 | ||
7213 | if test "${build}" != "${host}"; then | |
7214 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7215 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7216 | # to it. This is right: we don't want to search that directory | |
7217 | # for binaries, but we want the header files in there, so add | |
7218 | # them explicitly. | |
0463992b | 7219 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7220 | |
7221 | # Someone might think of using the pre-installed headers on | |
7222 | # Canadian crosses, in case the installed compiler is not fully | |
7223 | # compatible with the compiler being built. In this case, it | |
7224 | # would be better to flag an error than risking having | |
7225 | # incompatible object files being constructed. We can't | |
7226 | # guarantee that an error will be flagged, but let's hope the | |
7227 | # compiler will do it, when presented with incompatible header | |
7228 | # files. | |
7229 | fi | |
7230 | fi | |
7231 | ||
7232 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7233 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7234 | # Here host == target, so we don't need to build gcc, |
7235 | # so we don't want to discard standard headers. | |
7236 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7237 | ;; | |
7238 | *) | |
7239 | # If we're building newlib, use its generic headers last, but search | |
7240 | # for any libc-related directories first (so make it the last -B | |
7241 | # switch). | |
7242 | 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 |
7243 | |
7244 | # If we're building libgloss, find the startup file, simulator library | |
7245 | # and linker script. | |
7246 | case " $target_configdirs " in | |
7247 | *" libgloss "*) | |
7248 | # Look for startup file, simulator library and maybe linker script. | |
7249 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7250 | # Look for libnosys.a in case the target needs it. | |
7251 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7252 | # Most targets have the linker script in the source directory. | |
7253 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7254 | ;; | |
7255 | esac | |
671aa708 NN |
7256 | ;; |
7257 | esac | |
7258 | ;; | |
7259 | esac | |
7260 | ;; | |
7261 | esac | |
5d571eaa | 7262 | |
b91f0a41 | 7263 | case "$target" in |
5d571eaa OS |
7264 | x86_64-*mingw* | *-w64-mingw*) |
7265 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7266 | # however, use a symlink named 'mingw' in ${prefix} . | |
7267 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7268 | ;; | |
7269 | *-mingw*) | |
7270 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7271 | 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' | |
7272 | ;; | |
b91f0a41 | 7273 | esac |
671aa708 | 7274 | |
6691a79e ME |
7275 | # Allow the user to override the flags for |
7276 | # our build compiler if desired. | |
f019adc1 MF |
7277 | if test x"${build}" = x"${host}" ; then |
7278 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7279 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7280 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7281 | fi | |
6691a79e | 7282 | |
671aa708 NN |
7283 | # On Canadian crosses, we'll be searching the right directories for |
7284 | # the previously-installed cross compiler, so don't bother to add | |
7285 | # flags for directories within the install tree of the compiler | |
7286 | # being built; programs in there won't even run. | |
7287 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7288 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7289 | 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 |
7290 | fi |
7291 | ||
7292 | if test "x${use_gnu_ld}" = x && | |
7293 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7294 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7295 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7296 | fi |
7297 | ||
e88a2c09 DD |
7298 | # Search for other target-specific linker scripts and such. |
7299 | case "${target}" in | |
3e19841a PB |
7300 | mep*) |
7301 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7302 | ;; | |
e88a2c09 DD |
7303 | esac |
7304 | ||
671aa708 | 7305 | # Makefile fragments. |
7b61653a PE |
7306 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7307 | do | |
7308 | eval fragval=\$$frag | |
7309 | if test $fragval != /dev/null; then | |
7310 | eval $frag=${srcdir}/$fragval | |
7311 | fi | |
7312 | done | |
671aa708 NN |
7313 | |
7314 | ||
7315 | ||
7316 | ||
7317 | ||
7318 | # Miscellanea: directories, flags, etc. | |
7319 | ||
7320 | ||
7321 | ||
7322 | ||
7323 | ||
7324 | ||
7325 | ||
d89f0ad6 | 7326 | |
23f6b2f9 | 7327 | # Build module lists & subconfigure args. |
671aa708 NN |
7328 | |
7329 | ||
7330 | ||
2abefe3d PB |
7331 | # Host module lists & subconfigure args. |
7332 | ||
7333 | ||
7334 | ||
aae29963 | 7335 | |
2abefe3d PB |
7336 | # Target module lists & subconfigure args. |
7337 | ||
7338 | ||
7339 | ||
7340 | # Build tools. | |
7341 | ||
7342 | ||
7343 | ||
0999159b PB |
7344 | |
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | ||
7353 | ||
7354 | ||
7355 | ||
7356 | ||
7357 | ||
2abefe3d PB |
7358 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7359 | # on the build machine. These are used if the Makefile can't locate these | |
7360 | # programs in objdir. | |
7361 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7362 | ||
7363 | for ac_prog in 'bison -y' byacc yacc | |
7364 | do | |
1c710c3c | 7365 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7366 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7368 | $as_echo_n "checking for $ac_word... " >&6; } | |
7369 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7370 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7371 | else |
7372 | if test -n "$YACC"; then | |
7373 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7374 | else | |
1c710c3c DJ |
7375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7376 | for as_dir in $PATH | |
7377 | do | |
7378 | IFS=$as_save_IFS | |
7379 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7380 | for ac_exec_ext in '' $ac_executable_extensions; do |
7381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7382 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7384 | break 2 |
7385 | fi | |
7386 | done | |
5213506e RW |
7387 | done |
7388 | IFS=$as_save_IFS | |
1c710c3c | 7389 | |
2abefe3d PB |
7390 | fi |
7391 | fi | |
1c710c3c | 7392 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7393 | if test -n "$YACC"; then |
5213506e RW |
7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7395 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7396 | else |
5213506e RW |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7398 | $as_echo "no" >&6; } | |
2abefe3d PB |
7399 | fi |
7400 | ||
5213506e | 7401 | |
1c710c3c | 7402 | test -n "$YACC" && break |
2abefe3d PB |
7403 | done |
7404 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7405 | ||
7406 | case " $build_configdirs " in | |
7407 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7408 | esac |
7409 | ||
7410 | for ac_prog in bison | |
7411 | do | |
1c710c3c | 7412 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7413 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7415 | $as_echo_n "checking for $ac_word... " >&6; } | |
7416 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7417 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7418 | else |
7419 | if test -n "$BISON"; then | |
7420 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7421 | else | |
1c710c3c DJ |
7422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7423 | for as_dir in $PATH | |
7424 | do | |
7425 | IFS=$as_save_IFS | |
7426 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7427 | for ac_exec_ext in '' $ac_executable_extensions; do |
7428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7429 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7431 | break 2 |
7432 | fi | |
7433 | done | |
5213506e RW |
7434 | done |
7435 | IFS=$as_save_IFS | |
1c710c3c | 7436 | |
2abefe3d PB |
7437 | fi |
7438 | fi | |
1c710c3c | 7439 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7440 | if test -n "$BISON"; then |
5213506e RW |
7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7442 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7443 | else |
5213506e RW |
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7445 | $as_echo "no" >&6; } | |
2abefe3d PB |
7446 | fi |
7447 | ||
5213506e | 7448 | |
1c710c3c | 7449 | test -n "$BISON" && break |
2abefe3d PB |
7450 | done |
7451 | test -n "$BISON" || BISON="$MISSING bison" | |
7452 | ||
7453 | case " $build_configdirs " in | |
7454 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7455 | esac | |
7456 | ||
7457 | for ac_prog in gm4 gnum4 m4 | |
7458 | do | |
1c710c3c | 7459 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7460 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7462 | $as_echo_n "checking for $ac_word... " >&6; } | |
7463 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7464 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7465 | else |
7466 | if test -n "$M4"; then | |
7467 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7468 | else | |
1c710c3c DJ |
7469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7470 | for as_dir in $PATH | |
7471 | do | |
7472 | IFS=$as_save_IFS | |
7473 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7474 | for ac_exec_ext in '' $ac_executable_extensions; do |
7475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7476 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7478 | break 2 |
7479 | fi | |
7480 | done | |
5213506e RW |
7481 | done |
7482 | IFS=$as_save_IFS | |
1c710c3c | 7483 | |
2abefe3d PB |
7484 | fi |
7485 | fi | |
1c710c3c | 7486 | M4=$ac_cv_prog_M4 |
2abefe3d | 7487 | if test -n "$M4"; then |
5213506e RW |
7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7489 | $as_echo "$M4" >&6; } | |
2abefe3d | 7490 | else |
5213506e RW |
7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7492 | $as_echo "no" >&6; } | |
2abefe3d PB |
7493 | fi |
7494 | ||
5213506e | 7495 | |
1c710c3c | 7496 | test -n "$M4" && break |
2abefe3d PB |
7497 | done |
7498 | test -n "$M4" || M4="$MISSING m4" | |
7499 | ||
7500 | case " $build_configdirs " in | |
7501 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7502 | esac | |
7503 | ||
7504 | for ac_prog in flex lex | |
7505 | do | |
1c710c3c | 7506 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7507 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7509 | $as_echo_n "checking for $ac_word... " >&6; } | |
7510 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7511 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7512 | else |
7513 | if test -n "$LEX"; then | |
7514 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7515 | else | |
1c710c3c DJ |
7516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7517 | for as_dir in $PATH | |
7518 | do | |
7519 | IFS=$as_save_IFS | |
7520 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7521 | for ac_exec_ext in '' $ac_executable_extensions; do |
7522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7523 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7525 | break 2 |
7526 | fi | |
7527 | done | |
5213506e RW |
7528 | done |
7529 | IFS=$as_save_IFS | |
1c710c3c | 7530 | |
2abefe3d PB |
7531 | fi |
7532 | fi | |
1c710c3c | 7533 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7534 | if test -n "$LEX"; then |
5213506e RW |
7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7536 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7537 | else |
5213506e RW |
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7539 | $as_echo "no" >&6; } | |
2abefe3d PB |
7540 | fi |
7541 | ||
5213506e | 7542 | |
1c710c3c | 7543 | test -n "$LEX" && break |
2abefe3d PB |
7544 | done |
7545 | test -n "$LEX" || LEX="$MISSING flex" | |
7546 | ||
7547 | case " $build_configdirs " in | |
7548 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7549 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7550 | esac | |
7551 | ||
7552 | for ac_prog in flex | |
7553 | do | |
1c710c3c | 7554 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7555 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7557 | $as_echo_n "checking for $ac_word... " >&6; } | |
7558 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7559 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7560 | else |
7561 | if test -n "$FLEX"; then | |
7562 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7563 | else | |
1c710c3c DJ |
7564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7565 | for as_dir in $PATH | |
7566 | do | |
7567 | IFS=$as_save_IFS | |
7568 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7569 | for ac_exec_ext in '' $ac_executable_extensions; do |
7570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7571 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7573 | break 2 |
7574 | fi | |
7575 | done | |
5213506e RW |
7576 | done |
7577 | IFS=$as_save_IFS | |
1c710c3c | 7578 | |
2abefe3d PB |
7579 | fi |
7580 | fi | |
1c710c3c | 7581 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7582 | if test -n "$FLEX"; then |
5213506e RW |
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7584 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7585 | else |
5213506e RW |
7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7587 | $as_echo "no" >&6; } | |
2abefe3d PB |
7588 | fi |
7589 | ||
5213506e | 7590 | |
1c710c3c | 7591 | test -n "$FLEX" && break |
2abefe3d PB |
7592 | done |
7593 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7594 | ||
7595 | case " $build_configdirs " in | |
7596 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7597 | esac | |
7598 | ||
7599 | for ac_prog in makeinfo | |
7600 | do | |
1c710c3c | 7601 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7602 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7604 | $as_echo_n "checking for $ac_word... " >&6; } | |
7605 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7606 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7607 | else |
7608 | if test -n "$MAKEINFO"; then | |
7609 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7610 | else | |
1c710c3c DJ |
7611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7612 | for as_dir in $PATH | |
7613 | do | |
7614 | IFS=$as_save_IFS | |
7615 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7616 | for ac_exec_ext in '' $ac_executable_extensions; do |
7617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7618 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 7619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7620 | break 2 |
7621 | fi | |
7622 | done | |
5213506e RW |
7623 | done |
7624 | IFS=$as_save_IFS | |
1c710c3c | 7625 | |
2abefe3d PB |
7626 | fi |
7627 | fi | |
1c710c3c | 7628 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 7629 | if test -n "$MAKEINFO"; then |
5213506e RW |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7631 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 7632 | else |
5213506e RW |
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7634 | $as_echo "no" >&6; } | |
2abefe3d PB |
7635 | fi |
7636 | ||
5213506e | 7637 | |
1c710c3c | 7638 | test -n "$MAKEINFO" && break |
2abefe3d PB |
7639 | done |
7640 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7641 | ||
7642 | case " $build_configdirs " in | |
7643 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7644 | *) | |
7645 | ||
d18ff35a | 7646 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
7647 | # higher, else we use the "missing" dummy. |
7648 | if ${MAKEINFO} --version \ | |
d18ff35a | 7649 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
7650 | : |
7651 | else | |
7652 | MAKEINFO="$MISSING makeinfo" | |
7653 | fi | |
7654 | ;; | |
7655 | ||
7656 | esac | |
671aa708 | 7657 | |
2abefe3d | 7658 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 7659 | |
2abefe3d PB |
7660 | for ac_prog in expect |
7661 | do | |
1c710c3c | 7662 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7663 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7665 | $as_echo_n "checking for $ac_word... " >&6; } | |
7666 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7667 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7668 | else |
7669 | if test -n "$EXPECT"; then | |
7670 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7671 | else | |
1c710c3c DJ |
7672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7673 | for as_dir in $PATH | |
7674 | do | |
7675 | IFS=$as_save_IFS | |
7676 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7677 | for ac_exec_ext in '' $ac_executable_extensions; do |
7678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7679 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 7680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7681 | break 2 |
7682 | fi | |
7683 | done | |
5213506e RW |
7684 | done |
7685 | IFS=$as_save_IFS | |
1c710c3c | 7686 | |
2abefe3d PB |
7687 | fi |
7688 | fi | |
1c710c3c | 7689 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 7690 | if test -n "$EXPECT"; then |
5213506e RW |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7692 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 7693 | else |
5213506e RW |
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7695 | $as_echo "no" >&6; } | |
2abefe3d | 7696 | fi |
671aa708 | 7697 | |
5213506e | 7698 | |
1c710c3c | 7699 | test -n "$EXPECT" && break |
2abefe3d PB |
7700 | done |
7701 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 7702 | |
2abefe3d PB |
7703 | case " $configdirs " in |
7704 | *" expect "*) | |
7705 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7706 | ;; | |
7707 | esac | |
671aa708 | 7708 | |
2abefe3d PB |
7709 | for ac_prog in runtest |
7710 | do | |
1c710c3c | 7711 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7712 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7714 | $as_echo_n "checking for $ac_word... " >&6; } | |
7715 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7716 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7717 | else |
7718 | if test -n "$RUNTEST"; then | |
7719 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 7720 | else |
1c710c3c DJ |
7721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7722 | for as_dir in $PATH | |
7723 | do | |
7724 | IFS=$as_save_IFS | |
7725 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7726 | for ac_exec_ext in '' $ac_executable_extensions; do |
7727 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7728 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 7729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7730 | break 2 |
7731 | fi | |
7732 | done | |
5213506e RW |
7733 | done |
7734 | IFS=$as_save_IFS | |
1c710c3c | 7735 | |
2abefe3d PB |
7736 | fi |
7737 | fi | |
1c710c3c | 7738 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 7739 | if test -n "$RUNTEST"; then |
5213506e RW |
7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7741 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 7742 | else |
5213506e RW |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7744 | $as_echo "no" >&6; } | |
2abefe3d | 7745 | fi |
671aa708 | 7746 | |
5213506e | 7747 | |
1c710c3c | 7748 | test -n "$RUNTEST" && break |
2abefe3d PB |
7749 | done |
7750 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 7751 | |
2abefe3d PB |
7752 | case " $configdirs " in |
7753 | *" dejagnu "*) | |
c394e891 | 7754 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
7755 | ;; |
7756 | esac | |
671aa708 NN |
7757 | |
7758 | ||
671aa708 | 7759 | # Host tools. |
ca9f4b81 AO |
7760 | ncn_tool_prefix= |
7761 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7762 | ncn_target_tool_prefix= | |
7763 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7764 | ||
278a7a38 AO |
7765 | |
7766 | ||
7767 | if test -n "$AR"; then | |
7768 | ac_cv_prog_AR=$AR | |
7769 | elif test -n "$ac_cv_prog_AR"; then | |
7770 | AR=$ac_cv_prog_AR | |
7771 | fi | |
7772 | ||
7773 | if test -n "$ac_cv_prog_AR"; then | |
7774 | for ncn_progname in ar; do | |
7775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7776 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7778 | $as_echo_n "checking for $ac_word... " >&6; } | |
7779 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7780 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
7781 | else |
7782 | if test -n "$AR"; then | |
7783 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7784 | else | |
7785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7786 | for as_dir in $PATH | |
7787 | do | |
7788 | IFS=$as_save_IFS | |
7789 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7790 | for ac_exec_ext in '' $ac_executable_extensions; do |
7791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 7792 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 7793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
7794 | break 2 |
7795 | fi | |
7796 | done | |
5213506e RW |
7797 | done |
7798 | IFS=$as_save_IFS | |
278a7a38 AO |
7799 | |
7800 | fi | |
7801 | fi | |
7802 | AR=$ac_cv_prog_AR | |
7803 | if test -n "$AR"; then | |
5213506e RW |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7805 | $as_echo "$AR" >&6; } | |
278a7a38 | 7806 | else |
5213506e RW |
7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7808 | $as_echo "no" >&6; } | |
278a7a38 AO |
7809 | fi |
7810 | ||
5213506e | 7811 | |
278a7a38 AO |
7812 | done |
7813 | fi | |
7814 | ||
7815 | for ncn_progname in ar; do | |
2693c0b0 PB |
7816 | if test -n "$ncn_tool_prefix"; then |
7817 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7818 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7820 | $as_echo_n "checking for $ac_word... " >&6; } | |
7821 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7822 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
7823 | else |
7824 | if test -n "$AR"; then | |
7825 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7826 | else | |
1c710c3c DJ |
7827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7828 | for as_dir in $PATH | |
7829 | do | |
7830 | IFS=$as_save_IFS | |
7831 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7832 | for ac_exec_ext in '' $ac_executable_extensions; do |
7833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7834 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 7835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7836 | break 2 |
7837 | fi | |
7838 | done | |
5213506e RW |
7839 | done |
7840 | IFS=$as_save_IFS | |
1c710c3c | 7841 | |
ca9f4b81 AO |
7842 | fi |
7843 | fi | |
1c710c3c | 7844 | AR=$ac_cv_prog_AR |
ca9f4b81 | 7845 | if test -n "$AR"; then |
5213506e RW |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7847 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 7848 | else |
5213506e RW |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7850 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
7851 | fi |
7852 | ||
5213506e | 7853 | |
2693c0b0 PB |
7854 | fi |
7855 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
7856 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7857 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7859 | $as_echo_n "checking for $ac_word... " >&6; } | |
7860 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7861 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 7862 | else |
2693c0b0 | 7863 | if test -n "$AR"; then |
af71363e AS |
7864 | ac_cv_prog_AR="$AR" # Let the user override the test. |
7865 | else | |
1c710c3c DJ |
7866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7867 | for as_dir in $PATH | |
7868 | do | |
7869 | IFS=$as_save_IFS | |
7870 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7871 | for ac_exec_ext in '' $ac_executable_extensions; do |
7872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7873 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 7874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7875 | break 2 |
7876 | fi | |
7877 | done | |
5213506e RW |
7878 | done |
7879 | IFS=$as_save_IFS | |
1c710c3c | 7880 | |
ca9f4b81 AO |
7881 | fi |
7882 | fi | |
1c710c3c | 7883 | AR=$ac_cv_prog_AR |
2693c0b0 | 7884 | if test -n "$AR"; then |
5213506e RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7886 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 7887 | else |
5213506e RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7889 | $as_echo "no" >&6; } | |
ca9f4b81 | 7890 | fi |
1c710c3c | 7891 | |
5213506e | 7892 | |
2693c0b0 PB |
7893 | fi |
7894 | test -n "$ac_cv_prog_AR" && break | |
7895 | done | |
7896 | ||
7897 | if test -z "$ac_cv_prog_AR" ; then | |
7898 | set dummy ar | |
7899 | if test $build = $host ; then | |
7900 | AR="$2" | |
ca9f4b81 | 7901 | else |
2693c0b0 | 7902 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 7903 | fi |
ca9f4b81 AO |
7904 | fi |
7905 | ||
278a7a38 AO |
7906 | |
7907 | ||
7908 | if test -n "$AS"; then | |
7909 | ac_cv_prog_AS=$AS | |
7910 | elif test -n "$ac_cv_prog_AS"; then | |
7911 | AS=$ac_cv_prog_AS | |
7912 | fi | |
7913 | ||
7914 | if test -n "$ac_cv_prog_AS"; then | |
7915 | for ncn_progname in as; do | |
7916 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7917 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7919 | $as_echo_n "checking for $ac_word... " >&6; } | |
7920 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7921 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
7922 | else |
7923 | if test -n "$AS"; then | |
7924 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
7925 | else | |
7926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7927 | for as_dir in $PATH | |
7928 | do | |
7929 | IFS=$as_save_IFS | |
7930 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7931 | for ac_exec_ext in '' $ac_executable_extensions; do |
7932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 7933 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 7934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
7935 | break 2 |
7936 | fi | |
7937 | done | |
5213506e RW |
7938 | done |
7939 | IFS=$as_save_IFS | |
278a7a38 AO |
7940 | |
7941 | fi | |
7942 | fi | |
7943 | AS=$ac_cv_prog_AS | |
7944 | if test -n "$AS"; then | |
5213506e RW |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
7946 | $as_echo "$AS" >&6; } | |
278a7a38 | 7947 | else |
5213506e RW |
7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7949 | $as_echo "no" >&6; } | |
278a7a38 AO |
7950 | fi |
7951 | ||
5213506e | 7952 | |
278a7a38 AO |
7953 | done |
7954 | fi | |
7955 | ||
7956 | for ncn_progname in as; do | |
2693c0b0 PB |
7957 | if test -n "$ncn_tool_prefix"; then |
7958 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7959 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7961 | $as_echo_n "checking for $ac_word... " >&6; } | |
7962 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7963 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
7964 | else |
7965 | if test -n "$AS"; then | |
7966 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 7967 | else |
1c710c3c DJ |
7968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7969 | for as_dir in $PATH | |
7970 | do | |
7971 | IFS=$as_save_IFS | |
7972 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7973 | for ac_exec_ext in '' $ac_executable_extensions; do |
7974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7975 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 7976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7977 | break 2 |
7978 | fi | |
7979 | done | |
5213506e RW |
7980 | done |
7981 | IFS=$as_save_IFS | |
1c710c3c | 7982 | |
ca9f4b81 AO |
7983 | fi |
7984 | fi | |
1c710c3c | 7985 | AS=$ac_cv_prog_AS |
ca9f4b81 | 7986 | if test -n "$AS"; then |
5213506e RW |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
7988 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 7989 | else |
5213506e RW |
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7991 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
7992 | fi |
7993 | ||
5213506e | 7994 | |
2693c0b0 PB |
7995 | fi |
7996 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
7997 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7998 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8000 | $as_echo_n "checking for $ac_word... " >&6; } | |
8001 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8002 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8003 | else |
2693c0b0 PB |
8004 | if test -n "$AS"; then |
8005 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8006 | else |
1c710c3c DJ |
8007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8008 | for as_dir in $PATH | |
8009 | do | |
8010 | IFS=$as_save_IFS | |
8011 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8012 | for ac_exec_ext in '' $ac_executable_extensions; do |
8013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8014 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8016 | break 2 |
8017 | fi | |
8018 | done | |
5213506e RW |
8019 | done |
8020 | IFS=$as_save_IFS | |
1c710c3c | 8021 | |
ca9f4b81 AO |
8022 | fi |
8023 | fi | |
1c710c3c | 8024 | AS=$ac_cv_prog_AS |
2693c0b0 | 8025 | if test -n "$AS"; then |
5213506e RW |
8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8027 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8028 | else |
5213506e RW |
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8030 | $as_echo "no" >&6; } | |
ca9f4b81 | 8031 | fi |
1c710c3c | 8032 | |
5213506e | 8033 | |
2693c0b0 PB |
8034 | fi |
8035 | test -n "$ac_cv_prog_AS" && break | |
8036 | done | |
8037 | ||
8038 | if test -z "$ac_cv_prog_AS" ; then | |
8039 | set dummy as | |
8040 | if test $build = $host ; then | |
8041 | AS="$2" | |
ca9f4b81 | 8042 | else |
2693c0b0 | 8043 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8044 | fi |
ca9f4b81 AO |
8045 | fi |
8046 | ||
278a7a38 AO |
8047 | |
8048 | ||
8049 | if test -n "$DLLTOOL"; then | |
8050 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8051 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8052 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8053 | fi | |
8054 | ||
8055 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8056 | for ncn_progname in dlltool; do | |
8057 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8058 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8060 | $as_echo_n "checking for $ac_word... " >&6; } | |
8061 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8062 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8063 | else |
8064 | if test -n "$DLLTOOL"; then | |
8065 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8066 | else | |
8067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8068 | for as_dir in $PATH | |
8069 | do | |
8070 | IFS=$as_save_IFS | |
8071 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8072 | for ac_exec_ext in '' $ac_executable_extensions; do |
8073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8074 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8076 | break 2 |
8077 | fi | |
8078 | done | |
5213506e RW |
8079 | done |
8080 | IFS=$as_save_IFS | |
278a7a38 AO |
8081 | |
8082 | fi | |
8083 | fi | |
8084 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8085 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8087 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8088 | else |
5213506e RW |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8090 | $as_echo "no" >&6; } | |
278a7a38 AO |
8091 | fi |
8092 | ||
5213506e | 8093 | |
278a7a38 AO |
8094 | done |
8095 | fi | |
8096 | ||
8097 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8098 | if test -n "$ncn_tool_prefix"; then |
8099 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8100 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8102 | $as_echo_n "checking for $ac_word... " >&6; } | |
8103 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8104 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8105 | else |
8106 | if test -n "$DLLTOOL"; then | |
8107 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8108 | else | |
1c710c3c DJ |
8109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8110 | for as_dir in $PATH | |
8111 | do | |
8112 | IFS=$as_save_IFS | |
8113 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8114 | for ac_exec_ext in '' $ac_executable_extensions; do |
8115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8116 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8118 | break 2 |
8119 | fi | |
8120 | done | |
5213506e RW |
8121 | done |
8122 | IFS=$as_save_IFS | |
1c710c3c | 8123 | |
ca9f4b81 AO |
8124 | fi |
8125 | fi | |
1c710c3c | 8126 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8127 | if test -n "$DLLTOOL"; then |
5213506e RW |
8128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8129 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8130 | else |
5213506e RW |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8132 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8133 | fi |
8134 | ||
5213506e | 8135 | |
2693c0b0 PB |
8136 | fi |
8137 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8138 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8139 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8141 | $as_echo_n "checking for $ac_word... " >&6; } | |
8142 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8143 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8144 | else |
2693c0b0 PB |
8145 | if test -n "$DLLTOOL"; then |
8146 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8147 | else |
1c710c3c DJ |
8148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8149 | for as_dir in $PATH | |
8150 | do | |
8151 | IFS=$as_save_IFS | |
8152 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8153 | for ac_exec_ext in '' $ac_executable_extensions; do |
8154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8155 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8157 | break 2 |
8158 | fi | |
8159 | done | |
5213506e RW |
8160 | done |
8161 | IFS=$as_save_IFS | |
1c710c3c | 8162 | |
ca9f4b81 AO |
8163 | fi |
8164 | fi | |
1c710c3c | 8165 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8166 | if test -n "$DLLTOOL"; then |
5213506e RW |
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8168 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8169 | else |
5213506e RW |
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8171 | $as_echo "no" >&6; } | |
ca9f4b81 | 8172 | fi |
1c710c3c | 8173 | |
5213506e | 8174 | |
2693c0b0 PB |
8175 | fi |
8176 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8177 | done | |
8178 | ||
8179 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8180 | set dummy dlltool | |
8181 | if test $build = $host ; then | |
8182 | DLLTOOL="$2" | |
ca9f4b81 | 8183 | else |
2693c0b0 | 8184 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8185 | fi |
ca9f4b81 AO |
8186 | fi |
8187 | ||
278a7a38 AO |
8188 | |
8189 | ||
8190 | if test -n "$LD"; then | |
8191 | ac_cv_prog_LD=$LD | |
8192 | elif test -n "$ac_cv_prog_LD"; then | |
8193 | LD=$ac_cv_prog_LD | |
8194 | fi | |
8195 | ||
8196 | if test -n "$ac_cv_prog_LD"; then | |
8197 | for ncn_progname in ld; do | |
8198 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8199 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8201 | $as_echo_n "checking for $ac_word... " >&6; } | |
8202 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8203 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8204 | else |
8205 | if test -n "$LD"; then | |
8206 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8207 | else | |
8208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8209 | for as_dir in $PATH | |
8210 | do | |
8211 | IFS=$as_save_IFS | |
8212 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8213 | for ac_exec_ext in '' $ac_executable_extensions; do |
8214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8215 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8217 | break 2 |
8218 | fi | |
8219 | done | |
5213506e RW |
8220 | done |
8221 | IFS=$as_save_IFS | |
278a7a38 AO |
8222 | |
8223 | fi | |
8224 | fi | |
8225 | LD=$ac_cv_prog_LD | |
8226 | if test -n "$LD"; then | |
5213506e RW |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8228 | $as_echo "$LD" >&6; } | |
278a7a38 | 8229 | else |
5213506e RW |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8231 | $as_echo "no" >&6; } | |
278a7a38 AO |
8232 | fi |
8233 | ||
5213506e | 8234 | |
278a7a38 AO |
8235 | done |
8236 | fi | |
8237 | ||
8238 | for ncn_progname in ld; do | |
2693c0b0 PB |
8239 | if test -n "$ncn_tool_prefix"; then |
8240 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8241 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8243 | $as_echo_n "checking for $ac_word... " >&6; } | |
8244 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8245 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8246 | else |
8247 | if test -n "$LD"; then | |
8248 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8249 | else | |
1c710c3c DJ |
8250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8251 | for as_dir in $PATH | |
8252 | do | |
8253 | IFS=$as_save_IFS | |
8254 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8255 | for ac_exec_ext in '' $ac_executable_extensions; do |
8256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8257 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8259 | break 2 |
8260 | fi | |
8261 | done | |
5213506e RW |
8262 | done |
8263 | IFS=$as_save_IFS | |
1c710c3c | 8264 | |
ca9f4b81 AO |
8265 | fi |
8266 | fi | |
1c710c3c | 8267 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8268 | if test -n "$LD"; then |
5213506e RW |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8270 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8271 | else |
5213506e RW |
8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8273 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8274 | fi |
8275 | ||
5213506e | 8276 | |
2693c0b0 PB |
8277 | fi |
8278 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8279 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8280 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8282 | $as_echo_n "checking for $ac_word... " >&6; } | |
8283 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8284 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8285 | else |
2693c0b0 PB |
8286 | if test -n "$LD"; then |
8287 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8288 | else |
1c710c3c DJ |
8289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8290 | for as_dir in $PATH | |
8291 | do | |
8292 | IFS=$as_save_IFS | |
8293 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8294 | for ac_exec_ext in '' $ac_executable_extensions; do |
8295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8296 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8298 | break 2 |
8299 | fi | |
8300 | done | |
5213506e RW |
8301 | done |
8302 | IFS=$as_save_IFS | |
1c710c3c | 8303 | |
ca9f4b81 AO |
8304 | fi |
8305 | fi | |
1c710c3c | 8306 | LD=$ac_cv_prog_LD |
2693c0b0 | 8307 | if test -n "$LD"; then |
5213506e RW |
8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8309 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8310 | else |
5213506e RW |
8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8312 | $as_echo "no" >&6; } | |
ca9f4b81 | 8313 | fi |
1c710c3c | 8314 | |
5213506e | 8315 | |
2693c0b0 PB |
8316 | fi |
8317 | test -n "$ac_cv_prog_LD" && break | |
8318 | done | |
8319 | ||
8320 | if test -z "$ac_cv_prog_LD" ; then | |
8321 | set dummy ld | |
8322 | if test $build = $host ; then | |
8323 | LD="$2" | |
ca9f4b81 | 8324 | else |
2693c0b0 | 8325 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8326 | fi |
ca9f4b81 AO |
8327 | fi |
8328 | ||
278a7a38 AO |
8329 | |
8330 | ||
8331 | if test -n "$LIPO"; then | |
8332 | ac_cv_prog_LIPO=$LIPO | |
8333 | elif test -n "$ac_cv_prog_LIPO"; then | |
8334 | LIPO=$ac_cv_prog_LIPO | |
8335 | fi | |
8336 | ||
8337 | if test -n "$ac_cv_prog_LIPO"; then | |
8338 | for ncn_progname in lipo; do | |
8339 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8340 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8342 | $as_echo_n "checking for $ac_word... " >&6; } | |
8343 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8344 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8345 | else |
8346 | if test -n "$LIPO"; then | |
8347 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8348 | else | |
8349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8350 | for as_dir in $PATH | |
8351 | do | |
8352 | IFS=$as_save_IFS | |
8353 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8354 | for ac_exec_ext in '' $ac_executable_extensions; do |
8355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8356 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8358 | break 2 |
8359 | fi | |
8360 | done | |
5213506e RW |
8361 | done |
8362 | IFS=$as_save_IFS | |
278a7a38 AO |
8363 | |
8364 | fi | |
8365 | fi | |
8366 | LIPO=$ac_cv_prog_LIPO | |
8367 | if test -n "$LIPO"; then | |
5213506e RW |
8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8369 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8370 | else |
5213506e RW |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8372 | $as_echo "no" >&6; } | |
278a7a38 AO |
8373 | fi |
8374 | ||
5213506e | 8375 | |
278a7a38 AO |
8376 | done |
8377 | fi | |
8378 | ||
8379 | for ncn_progname in lipo; do | |
2abefe3d PB |
8380 | if test -n "$ncn_tool_prefix"; then |
8381 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8382 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8384 | $as_echo_n "checking for $ac_word... " >&6; } | |
8385 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8386 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8387 | else |
8388 | if test -n "$LIPO"; then | |
8389 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8390 | else | |
1c710c3c DJ |
8391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8392 | for as_dir in $PATH | |
8393 | do | |
8394 | IFS=$as_save_IFS | |
8395 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8396 | for ac_exec_ext in '' $ac_executable_extensions; do |
8397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8398 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8400 | break 2 |
8401 | fi | |
8402 | done | |
5213506e RW |
8403 | done |
8404 | IFS=$as_save_IFS | |
1c710c3c | 8405 | |
2abefe3d PB |
8406 | fi |
8407 | fi | |
1c710c3c | 8408 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8409 | if test -n "$LIPO"; then |
5213506e RW |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8411 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8412 | else |
5213506e RW |
8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8414 | $as_echo "no" >&6; } | |
2abefe3d PB |
8415 | fi |
8416 | ||
5213506e | 8417 | |
2abefe3d PB |
8418 | fi |
8419 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8421 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8423 | $as_echo_n "checking for $ac_word... " >&6; } | |
8424 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8425 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8426 | else |
8427 | if test -n "$LIPO"; then | |
8428 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8429 | else | |
1c710c3c DJ |
8430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8431 | for as_dir in $PATH | |
8432 | do | |
8433 | IFS=$as_save_IFS | |
8434 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8435 | for ac_exec_ext in '' $ac_executable_extensions; do |
8436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8437 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8439 | break 2 |
8440 | fi | |
8441 | done | |
5213506e RW |
8442 | done |
8443 | IFS=$as_save_IFS | |
1c710c3c | 8444 | |
2abefe3d PB |
8445 | fi |
8446 | fi | |
1c710c3c | 8447 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8448 | if test -n "$LIPO"; then |
5213506e RW |
8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8450 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8451 | else |
5213506e RW |
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8453 | $as_echo "no" >&6; } | |
2abefe3d | 8454 | fi |
1c710c3c | 8455 | |
5213506e | 8456 | |
2abefe3d PB |
8457 | fi |
8458 | test -n "$ac_cv_prog_LIPO" && break | |
8459 | done | |
8460 | ||
8461 | if test -z "$ac_cv_prog_LIPO" ; then | |
8462 | set dummy lipo | |
8463 | if test $build = $host ; then | |
8464 | LIPO="$2" | |
8465 | else | |
8466 | LIPO="${ncn_tool_prefix}$2" | |
8467 | fi | |
8468 | fi | |
8469 | ||
278a7a38 AO |
8470 | |
8471 | ||
8472 | if test -n "$NM"; then | |
8473 | ac_cv_prog_NM=$NM | |
8474 | elif test -n "$ac_cv_prog_NM"; then | |
8475 | NM=$ac_cv_prog_NM | |
8476 | fi | |
8477 | ||
8478 | if test -n "$ac_cv_prog_NM"; then | |
8479 | for ncn_progname in nm; do | |
8480 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8481 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8483 | $as_echo_n "checking for $ac_word... " >&6; } | |
8484 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8485 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8486 | else |
8487 | if test -n "$NM"; then | |
8488 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8489 | else | |
1c710c3c DJ |
8490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8491 | for as_dir in $PATH | |
8492 | do | |
8493 | IFS=$as_save_IFS | |
8494 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8495 | for ac_exec_ext in '' $ac_executable_extensions; do |
8496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8497 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8499 | break 2 |
8500 | fi | |
8501 | done | |
5213506e RW |
8502 | done |
8503 | IFS=$as_save_IFS | |
1c710c3c | 8504 | |
ca9f4b81 AO |
8505 | fi |
8506 | fi | |
1c710c3c | 8507 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8508 | if test -n "$NM"; then |
5213506e RW |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8510 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8511 | else |
5213506e RW |
8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8513 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8514 | fi |
8515 | ||
5213506e | 8516 | |
278a7a38 AO |
8517 | done |
8518 | fi | |
8519 | ||
8520 | for ncn_progname in nm; do | |
8521 | if test -n "$ncn_tool_prefix"; then | |
8522 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8523 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8525 | $as_echo_n "checking for $ac_word... " >&6; } | |
8526 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8527 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8528 | else |
2693c0b0 PB |
8529 | if test -n "$NM"; then |
8530 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8531 | else |
1c710c3c DJ |
8532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8533 | for as_dir in $PATH | |
8534 | do | |
8535 | IFS=$as_save_IFS | |
8536 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8537 | for ac_exec_ext in '' $ac_executable_extensions; do |
8538 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8539 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8541 | break 2 |
8542 | fi | |
8543 | done | |
5213506e RW |
8544 | done |
8545 | IFS=$as_save_IFS | |
1c710c3c | 8546 | |
ca9f4b81 AO |
8547 | fi |
8548 | fi | |
1c710c3c | 8549 | NM=$ac_cv_prog_NM |
2693c0b0 | 8550 | if test -n "$NM"; then |
5213506e RW |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8552 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8553 | else |
5213506e RW |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8555 | $as_echo "no" >&6; } | |
ca9f4b81 | 8556 | fi |
1c710c3c | 8557 | |
5213506e | 8558 | |
2693c0b0 | 8559 | fi |
278a7a38 AO |
8560 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8561 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8562 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8564 | $as_echo_n "checking for $ac_word... " >&6; } | |
8565 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8566 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8567 | else |
8568 | if test -n "$NM"; then | |
8569 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8570 | else | |
8571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8572 | for as_dir in $PATH | |
8573 | do | |
8574 | IFS=$as_save_IFS | |
8575 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8576 | for ac_exec_ext in '' $ac_executable_extensions; do |
8577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8578 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8580 | break 2 |
8581 | fi | |
8582 | done | |
5213506e RW |
8583 | done |
8584 | IFS=$as_save_IFS | |
278a7a38 AO |
8585 | |
8586 | fi | |
8587 | fi | |
8588 | NM=$ac_cv_prog_NM | |
8589 | if test -n "$NM"; then | |
5213506e RW |
8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8591 | $as_echo "$NM" >&6; } | |
278a7a38 | 8592 | else |
5213506e RW |
8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8594 | $as_echo "no" >&6; } | |
278a7a38 AO |
8595 | fi |
8596 | ||
5213506e | 8597 | |
278a7a38 AO |
8598 | fi |
8599 | test -n "$ac_cv_prog_NM" && break | |
8600 | done | |
8601 | ||
8602 | if test -z "$ac_cv_prog_NM" ; then | |
8603 | set dummy nm | |
8604 | if test $build = $host ; then | |
8605 | NM="$2" | |
8606 | else | |
8607 | NM="${ncn_tool_prefix}$2" | |
8608 | fi | |
8609 | fi | |
8610 | ||
8611 | ||
8612 | ||
8613 | if test -n "$RANLIB"; then | |
8614 | ac_cv_prog_RANLIB=$RANLIB | |
8615 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8616 | RANLIB=$ac_cv_prog_RANLIB | |
8617 | fi | |
8618 | ||
8619 | if test -n "$ac_cv_prog_RANLIB"; then | |
8620 | for ncn_progname in ranlib; do | |
8621 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8622 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8624 | $as_echo_n "checking for $ac_word... " >&6; } | |
8625 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8626 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8627 | else |
8628 | if test -n "$RANLIB"; then | |
8629 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8630 | else | |
8631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8632 | for as_dir in $PATH | |
8633 | do | |
8634 | IFS=$as_save_IFS | |
8635 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8636 | for ac_exec_ext in '' $ac_executable_extensions; do |
8637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8638 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8640 | break 2 |
8641 | fi | |
8642 | done | |
5213506e RW |
8643 | done |
8644 | IFS=$as_save_IFS | |
278a7a38 AO |
8645 | |
8646 | fi | |
8647 | fi | |
8648 | RANLIB=$ac_cv_prog_RANLIB | |
8649 | if test -n "$RANLIB"; then | |
5213506e RW |
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8651 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 8652 | else |
5213506e RW |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8654 | $as_echo "no" >&6; } | |
278a7a38 AO |
8655 | fi |
8656 | ||
5213506e | 8657 | |
278a7a38 AO |
8658 | done |
8659 | fi | |
ca9f4b81 | 8660 | |
278a7a38 | 8661 | for ncn_progname in ranlib; do |
2693c0b0 PB |
8662 | if test -n "$ncn_tool_prefix"; then |
8663 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8664 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8666 | $as_echo_n "checking for $ac_word... " >&6; } | |
8667 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8668 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8669 | else |
8670 | if test -n "$RANLIB"; then | |
8671 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8672 | else | |
1c710c3c DJ |
8673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8674 | for as_dir in $PATH | |
8675 | do | |
8676 | IFS=$as_save_IFS | |
8677 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8678 | for ac_exec_ext in '' $ac_executable_extensions; do |
8679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8680 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8682 | break 2 |
8683 | fi | |
8684 | done | |
5213506e RW |
8685 | done |
8686 | IFS=$as_save_IFS | |
1c710c3c | 8687 | |
ca9f4b81 AO |
8688 | fi |
8689 | fi | |
1c710c3c | 8690 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 8691 | if test -n "$RANLIB"; then |
5213506e RW |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8693 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8694 | else |
5213506e RW |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8696 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8697 | fi |
8698 | ||
5213506e | 8699 | |
2693c0b0 PB |
8700 | fi |
8701 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8702 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8703 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8705 | $as_echo_n "checking for $ac_word... " >&6; } | |
8706 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8707 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8708 | else |
2693c0b0 PB |
8709 | if test -n "$RANLIB"; then |
8710 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 8711 | else |
1c710c3c DJ |
8712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8713 | for as_dir in $PATH | |
8714 | do | |
8715 | IFS=$as_save_IFS | |
8716 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8717 | for ac_exec_ext in '' $ac_executable_extensions; do |
8718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8719 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8721 | break 2 |
8722 | fi | |
8723 | done | |
5213506e RW |
8724 | done |
8725 | IFS=$as_save_IFS | |
1c710c3c | 8726 | |
ca9f4b81 AO |
8727 | fi |
8728 | fi | |
1c710c3c | 8729 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 8730 | if test -n "$RANLIB"; then |
5213506e RW |
8731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8732 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8733 | else |
5213506e RW |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8735 | $as_echo "no" >&6; } | |
ca9f4b81 | 8736 | fi |
1c710c3c | 8737 | |
5213506e | 8738 | |
ca9f4b81 | 8739 | fi |
2693c0b0 PB |
8740 | test -n "$ac_cv_prog_RANLIB" && break |
8741 | done | |
8742 | ||
8743 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 8744 | RANLIB="true" |
ca9f4b81 AO |
8745 | fi |
8746 | ||
278a7a38 AO |
8747 | |
8748 | ||
8749 | if test -n "$STRIP"; then | |
8750 | ac_cv_prog_STRIP=$STRIP | |
8751 | elif test -n "$ac_cv_prog_STRIP"; then | |
8752 | STRIP=$ac_cv_prog_STRIP | |
8753 | fi | |
8754 | ||
8755 | if test -n "$ac_cv_prog_STRIP"; then | |
8756 | for ncn_progname in strip; do | |
8757 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8758 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8760 | $as_echo_n "checking for $ac_word... " >&6; } | |
8761 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8762 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8763 | else |
8764 | if test -n "$STRIP"; then | |
8765 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8766 | else | |
8767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8768 | for as_dir in $PATH | |
8769 | do | |
8770 | IFS=$as_save_IFS | |
8771 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8772 | for ac_exec_ext in '' $ac_executable_extensions; do |
8773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8774 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 8775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8776 | break 2 |
8777 | fi | |
8778 | done | |
5213506e RW |
8779 | done |
8780 | IFS=$as_save_IFS | |
278a7a38 AO |
8781 | |
8782 | fi | |
8783 | fi | |
8784 | STRIP=$ac_cv_prog_STRIP | |
8785 | if test -n "$STRIP"; then | |
5213506e RW |
8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8787 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 8788 | else |
5213506e RW |
8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8790 | $as_echo "no" >&6; } | |
278a7a38 AO |
8791 | fi |
8792 | ||
5213506e | 8793 | |
278a7a38 AO |
8794 | done |
8795 | fi | |
8796 | ||
8797 | for ncn_progname in strip; do | |
2abefe3d PB |
8798 | if test -n "$ncn_tool_prefix"; then |
8799 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8800 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8802 | $as_echo_n "checking for $ac_word... " >&6; } | |
8803 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8804 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8805 | else |
8806 | if test -n "$STRIP"; then | |
8807 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8808 | else | |
1c710c3c DJ |
8809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8810 | for as_dir in $PATH | |
8811 | do | |
8812 | IFS=$as_save_IFS | |
8813 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8814 | for ac_exec_ext in '' $ac_executable_extensions; do |
8815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8816 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8818 | break 2 |
8819 | fi | |
8820 | done | |
5213506e RW |
8821 | done |
8822 | IFS=$as_save_IFS | |
1c710c3c | 8823 | |
2abefe3d PB |
8824 | fi |
8825 | fi | |
1c710c3c | 8826 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 8827 | if test -n "$STRIP"; then |
5213506e RW |
8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8829 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 8830 | else |
5213506e RW |
8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8832 | $as_echo "no" >&6; } | |
2abefe3d PB |
8833 | fi |
8834 | ||
5213506e | 8835 | |
2abefe3d PB |
8836 | fi |
8837 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8838 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8839 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8841 | $as_echo_n "checking for $ac_word... " >&6; } | |
8842 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8843 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8844 | else |
8845 | if test -n "$STRIP"; then | |
8846 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8847 | else | |
1c710c3c DJ |
8848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8849 | for as_dir in $PATH | |
8850 | do | |
8851 | IFS=$as_save_IFS | |
8852 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8853 | for ac_exec_ext in '' $ac_executable_extensions; do |
8854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8855 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 8856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8857 | break 2 |
8858 | fi | |
8859 | done | |
5213506e RW |
8860 | done |
8861 | IFS=$as_save_IFS | |
1c710c3c | 8862 | |
2abefe3d PB |
8863 | fi |
8864 | fi | |
1c710c3c | 8865 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 8866 | if test -n "$STRIP"; then |
5213506e RW |
8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8868 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 8869 | else |
5213506e RW |
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8871 | $as_echo "no" >&6; } | |
2abefe3d | 8872 | fi |
1c710c3c | 8873 | |
5213506e | 8874 | |
2abefe3d PB |
8875 | fi |
8876 | test -n "$ac_cv_prog_STRIP" && break | |
8877 | done | |
8878 | ||
8879 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 8880 | STRIP="true" |
2abefe3d PB |
8881 | fi |
8882 | ||
278a7a38 AO |
8883 | |
8884 | ||
8885 | if test -n "$WINDRES"; then | |
8886 | ac_cv_prog_WINDRES=$WINDRES | |
8887 | elif test -n "$ac_cv_prog_WINDRES"; then | |
8888 | WINDRES=$ac_cv_prog_WINDRES | |
8889 | fi | |
8890 | ||
8891 | if test -n "$ac_cv_prog_WINDRES"; then | |
8892 | for ncn_progname in windres; do | |
8893 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8894 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8896 | $as_echo_n "checking for $ac_word... " >&6; } | |
8897 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8898 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8899 | else |
8900 | if test -n "$WINDRES"; then | |
8901 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8902 | else | |
8903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8904 | for as_dir in $PATH | |
8905 | do | |
8906 | IFS=$as_save_IFS | |
8907 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8908 | for ac_exec_ext in '' $ac_executable_extensions; do |
8909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8910 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 8911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8912 | break 2 |
8913 | fi | |
8914 | done | |
5213506e RW |
8915 | done |
8916 | IFS=$as_save_IFS | |
278a7a38 AO |
8917 | |
8918 | fi | |
8919 | fi | |
8920 | WINDRES=$ac_cv_prog_WINDRES | |
8921 | if test -n "$WINDRES"; then | |
5213506e RW |
8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8923 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 8924 | else |
5213506e RW |
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8926 | $as_echo "no" >&6; } | |
278a7a38 AO |
8927 | fi |
8928 | ||
5213506e | 8929 | |
278a7a38 AO |
8930 | done |
8931 | fi | |
8932 | ||
8933 | for ncn_progname in windres; do | |
2693c0b0 PB |
8934 | if test -n "$ncn_tool_prefix"; then |
8935 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8936 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8938 | $as_echo_n "checking for $ac_word... " >&6; } | |
8939 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8940 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8941 | else |
8942 | if test -n "$WINDRES"; then | |
8943 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8944 | else | |
1c710c3c DJ |
8945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8946 | for as_dir in $PATH | |
8947 | do | |
8948 | IFS=$as_save_IFS | |
8949 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8950 | for ac_exec_ext in '' $ac_executable_extensions; do |
8951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8952 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8954 | break 2 |
8955 | fi | |
8956 | done | |
5213506e RW |
8957 | done |
8958 | IFS=$as_save_IFS | |
1c710c3c | 8959 | |
ca9f4b81 AO |
8960 | fi |
8961 | fi | |
1c710c3c | 8962 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 8963 | if test -n "$WINDRES"; then |
5213506e RW |
8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8965 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 8966 | else |
5213506e RW |
8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8968 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8969 | fi |
8970 | ||
5213506e | 8971 | |
2693c0b0 PB |
8972 | fi |
8973 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
8974 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8975 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8977 | $as_echo_n "checking for $ac_word... " >&6; } | |
8978 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8979 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8980 | else |
2693c0b0 PB |
8981 | if test -n "$WINDRES"; then |
8982 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 8983 | else |
1c710c3c DJ |
8984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8985 | for as_dir in $PATH | |
8986 | do | |
8987 | IFS=$as_save_IFS | |
8988 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8989 | for ac_exec_ext in '' $ac_executable_extensions; do |
8990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8991 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 8992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8993 | break 2 |
8994 | fi | |
8995 | done | |
5213506e RW |
8996 | done |
8997 | IFS=$as_save_IFS | |
1c710c3c | 8998 | |
ca9f4b81 AO |
8999 | fi |
9000 | fi | |
1c710c3c | 9001 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9002 | if test -n "$WINDRES"; then |
5213506e RW |
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9004 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9005 | else |
5213506e RW |
9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9007 | $as_echo "no" >&6; } | |
ca9f4b81 | 9008 | fi |
1c710c3c | 9009 | |
5213506e | 9010 | |
2693c0b0 PB |
9011 | fi |
9012 | test -n "$ac_cv_prog_WINDRES" && break | |
9013 | done | |
9014 | ||
9015 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9016 | set dummy windres | |
9017 | if test $build = $host ; then | |
9018 | WINDRES="$2" | |
ca9f4b81 | 9019 | else |
2693c0b0 | 9020 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9021 | fi |
ca9f4b81 AO |
9022 | fi |
9023 | ||
278a7a38 AO |
9024 | |
9025 | ||
901119ae KT |
9026 | if test -n "$WINDMC"; then |
9027 | ac_cv_prog_WINDMC=$WINDMC | |
9028 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9029 | WINDMC=$ac_cv_prog_WINDMC | |
9030 | fi | |
9031 | ||
9032 | if test -n "$ac_cv_prog_WINDMC"; then | |
9033 | for ncn_progname in windmc; do | |
9034 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9035 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9037 | $as_echo_n "checking for $ac_word... " >&6; } | |
9038 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9039 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9040 | else |
9041 | if test -n "$WINDMC"; then | |
9042 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9043 | else | |
9044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9045 | for as_dir in $PATH | |
9046 | do | |
9047 | IFS=$as_save_IFS | |
9048 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9049 | for ac_exec_ext in '' $ac_executable_extensions; do |
9050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9051 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9053 | break 2 |
9054 | fi | |
9055 | done | |
5213506e RW |
9056 | done |
9057 | IFS=$as_save_IFS | |
901119ae KT |
9058 | |
9059 | fi | |
9060 | fi | |
9061 | WINDMC=$ac_cv_prog_WINDMC | |
9062 | if test -n "$WINDMC"; then | |
5213506e RW |
9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9064 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9065 | else |
5213506e RW |
9066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9067 | $as_echo "no" >&6; } | |
901119ae KT |
9068 | fi |
9069 | ||
5213506e | 9070 | |
901119ae KT |
9071 | done |
9072 | fi | |
9073 | ||
9074 | for ncn_progname in windmc; do | |
9075 | if test -n "$ncn_tool_prefix"; then | |
9076 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9077 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9079 | $as_echo_n "checking for $ac_word... " >&6; } | |
9080 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9081 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9082 | else |
9083 | if test -n "$WINDMC"; then | |
9084 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9085 | else | |
9086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9087 | for as_dir in $PATH | |
9088 | do | |
9089 | IFS=$as_save_IFS | |
9090 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9091 | for ac_exec_ext in '' $ac_executable_extensions; do |
9092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9093 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9095 | break 2 |
9096 | fi | |
9097 | done | |
5213506e RW |
9098 | done |
9099 | IFS=$as_save_IFS | |
901119ae KT |
9100 | |
9101 | fi | |
9102 | fi | |
9103 | WINDMC=$ac_cv_prog_WINDMC | |
9104 | if test -n "$WINDMC"; then | |
5213506e RW |
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9106 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9107 | else |
5213506e RW |
9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9109 | $as_echo "no" >&6; } | |
901119ae KT |
9110 | fi |
9111 | ||
5213506e | 9112 | |
901119ae KT |
9113 | fi |
9114 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9115 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9116 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9118 | $as_echo_n "checking for $ac_word... " >&6; } | |
9119 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9120 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9121 | else |
9122 | if test -n "$WINDMC"; then | |
9123 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9124 | else | |
9125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9126 | for as_dir in $PATH | |
9127 | do | |
9128 | IFS=$as_save_IFS | |
9129 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9130 | for ac_exec_ext in '' $ac_executable_extensions; do |
9131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9132 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9134 | break 2 |
9135 | fi | |
9136 | done | |
5213506e RW |
9137 | done |
9138 | IFS=$as_save_IFS | |
901119ae KT |
9139 | |
9140 | fi | |
9141 | fi | |
9142 | WINDMC=$ac_cv_prog_WINDMC | |
9143 | if test -n "$WINDMC"; then | |
5213506e RW |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9145 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9146 | else |
5213506e RW |
9147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9148 | $as_echo "no" >&6; } | |
901119ae KT |
9149 | fi |
9150 | ||
5213506e | 9151 | |
901119ae KT |
9152 | fi |
9153 | test -n "$ac_cv_prog_WINDMC" && break | |
9154 | done | |
9155 | ||
9156 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9157 | set dummy windmc | |
9158 | if test $build = $host ; then | |
9159 | WINDMC="$2" | |
9160 | else | |
9161 | WINDMC="${ncn_tool_prefix}$2" | |
9162 | fi | |
9163 | fi | |
9164 | ||
9165 | ||
9166 | ||
278a7a38 AO |
9167 | if test -n "$OBJCOPY"; then |
9168 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9169 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9170 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9171 | fi | |
9172 | ||
9173 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9174 | for ncn_progname in objcopy; do | |
9175 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9176 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9178 | $as_echo_n "checking for $ac_word... " >&6; } | |
9179 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9180 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9181 | else |
9182 | if test -n "$OBJCOPY"; then | |
9183 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9184 | else | |
9185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9186 | for as_dir in $PATH | |
9187 | do | |
9188 | IFS=$as_save_IFS | |
9189 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9190 | for ac_exec_ext in '' $ac_executable_extensions; do |
9191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9192 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9194 | break 2 |
9195 | fi | |
9196 | done | |
5213506e RW |
9197 | done |
9198 | IFS=$as_save_IFS | |
278a7a38 AO |
9199 | |
9200 | fi | |
9201 | fi | |
9202 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9203 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9205 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9206 | else |
5213506e RW |
9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9208 | $as_echo "no" >&6; } | |
278a7a38 AO |
9209 | fi |
9210 | ||
5213506e | 9211 | |
278a7a38 AO |
9212 | done |
9213 | fi | |
9214 | ||
9215 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9216 | if test -n "$ncn_tool_prefix"; then |
9217 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9218 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9220 | $as_echo_n "checking for $ac_word... " >&6; } | |
9221 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9222 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9223 | else |
9224 | if test -n "$OBJCOPY"; then | |
9225 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9226 | else | |
1c710c3c DJ |
9227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9228 | for as_dir in $PATH | |
9229 | do | |
9230 | IFS=$as_save_IFS | |
9231 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9232 | for ac_exec_ext in '' $ac_executable_extensions; do |
9233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9234 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9236 | break 2 |
9237 | fi | |
9238 | done | |
5213506e RW |
9239 | done |
9240 | IFS=$as_save_IFS | |
1c710c3c | 9241 | |
ca9f4b81 AO |
9242 | fi |
9243 | fi | |
1c710c3c | 9244 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9245 | if test -n "$OBJCOPY"; then |
5213506e RW |
9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9247 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9248 | else |
5213506e RW |
9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9250 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9251 | fi |
9252 | ||
5213506e | 9253 | |
2693c0b0 PB |
9254 | fi |
9255 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9256 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9257 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9259 | $as_echo_n "checking for $ac_word... " >&6; } | |
9260 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9261 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9262 | else |
2693c0b0 PB |
9263 | if test -n "$OBJCOPY"; then |
9264 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9265 | else |
1c710c3c DJ |
9266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9267 | for as_dir in $PATH | |
9268 | do | |
9269 | IFS=$as_save_IFS | |
9270 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9271 | for ac_exec_ext in '' $ac_executable_extensions; do |
9272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9273 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9275 | break 2 |
9276 | fi | |
9277 | done | |
5213506e RW |
9278 | done |
9279 | IFS=$as_save_IFS | |
1c710c3c | 9280 | |
ca9f4b81 AO |
9281 | fi |
9282 | fi | |
1c710c3c | 9283 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9284 | if test -n "$OBJCOPY"; then |
5213506e RW |
9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9286 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9287 | else |
5213506e RW |
9288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9289 | $as_echo "no" >&6; } | |
ca9f4b81 | 9290 | fi |
1c710c3c | 9291 | |
5213506e | 9292 | |
2693c0b0 PB |
9293 | fi |
9294 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9295 | done | |
9296 | ||
9297 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9298 | set dummy objcopy | |
9299 | if test $build = $host ; then | |
9300 | OBJCOPY="$2" | |
ca9f4b81 | 9301 | else |
2693c0b0 | 9302 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9303 | fi |
ca9f4b81 AO |
9304 | fi |
9305 | ||
278a7a38 AO |
9306 | |
9307 | ||
9308 | if test -n "$OBJDUMP"; then | |
9309 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9310 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9311 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9312 | fi | |
9313 | ||
9314 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9315 | for ncn_progname in objdump; do | |
9316 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9317 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9319 | $as_echo_n "checking for $ac_word... " >&6; } | |
9320 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9321 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9322 | else |
9323 | if test -n "$OBJDUMP"; then | |
9324 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9325 | else | |
9326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9327 | for as_dir in $PATH | |
9328 | do | |
9329 | IFS=$as_save_IFS | |
9330 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9331 | for ac_exec_ext in '' $ac_executable_extensions; do |
9332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9333 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9335 | break 2 |
9336 | fi | |
9337 | done | |
5213506e RW |
9338 | done |
9339 | IFS=$as_save_IFS | |
278a7a38 AO |
9340 | |
9341 | fi | |
9342 | fi | |
9343 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9344 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9346 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9347 | else |
5213506e RW |
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9349 | $as_echo "no" >&6; } | |
278a7a38 AO |
9350 | fi |
9351 | ||
5213506e | 9352 | |
278a7a38 AO |
9353 | done |
9354 | fi | |
9355 | ||
9356 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9357 | if test -n "$ncn_tool_prefix"; then |
9358 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9359 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9361 | $as_echo_n "checking for $ac_word... " >&6; } | |
9362 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9363 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9364 | else |
9365 | if test -n "$OBJDUMP"; then | |
9366 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9367 | else | |
1c710c3c DJ |
9368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9369 | for as_dir in $PATH | |
9370 | do | |
9371 | IFS=$as_save_IFS | |
9372 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9373 | for ac_exec_ext in '' $ac_executable_extensions; do |
9374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9375 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9377 | break 2 |
9378 | fi | |
9379 | done | |
5213506e RW |
9380 | done |
9381 | IFS=$as_save_IFS | |
1c710c3c | 9382 | |
ca9f4b81 AO |
9383 | fi |
9384 | fi | |
1c710c3c | 9385 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9386 | if test -n "$OBJDUMP"; then |
5213506e RW |
9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9388 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9389 | else |
5213506e RW |
9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9391 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9392 | fi |
9393 | ||
5213506e | 9394 | |
2693c0b0 PB |
9395 | fi |
9396 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9397 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9398 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9400 | $as_echo_n "checking for $ac_word... " >&6; } | |
9401 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9402 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9403 | else |
2693c0b0 PB |
9404 | if test -n "$OBJDUMP"; then |
9405 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9406 | else |
1c710c3c DJ |
9407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9408 | for as_dir in $PATH | |
9409 | do | |
9410 | IFS=$as_save_IFS | |
9411 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9412 | for ac_exec_ext in '' $ac_executable_extensions; do |
9413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9414 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9416 | break 2 |
9417 | fi | |
9418 | done | |
5213506e RW |
9419 | done |
9420 | IFS=$as_save_IFS | |
1c710c3c | 9421 | |
ca9f4b81 AO |
9422 | fi |
9423 | fi | |
1c710c3c | 9424 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9425 | if test -n "$OBJDUMP"; then |
5213506e RW |
9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9427 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9428 | else |
5213506e RW |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9430 | $as_echo "no" >&6; } | |
ca9f4b81 | 9431 | fi |
1c710c3c | 9432 | |
5213506e | 9433 | |
2693c0b0 PB |
9434 | fi |
9435 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9436 | done | |
9437 | ||
9438 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9439 | set dummy objdump | |
9440 | if test $build = $host ; then | |
9441 | OBJDUMP="$2" | |
ca9f4b81 | 9442 | else |
2693c0b0 | 9443 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9444 | fi |
ca9f4b81 AO |
9445 | fi |
9446 | ||
671aa708 NN |
9447 | |
9448 | ||
e7a82751 RM |
9449 | if test -n "$READELF"; then |
9450 | ac_cv_prog_READELF=$READELF | |
9451 | elif test -n "$ac_cv_prog_READELF"; then | |
9452 | READELF=$ac_cv_prog_READELF | |
9453 | fi | |
9454 | ||
9455 | if test -n "$ac_cv_prog_READELF"; then | |
9456 | for ncn_progname in readelf; do | |
9457 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9458 | set dummy ${ncn_progname}; ac_word=$2 | |
9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9460 | $as_echo_n "checking for $ac_word... " >&6; } | |
9461 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9462 | $as_echo_n "(cached) " >&6 | |
9463 | else | |
9464 | if test -n "$READELF"; then | |
9465 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9466 | else | |
9467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9468 | for as_dir in $PATH | |
9469 | do | |
9470 | IFS=$as_save_IFS | |
9471 | test -z "$as_dir" && as_dir=. | |
9472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9474 | ac_cv_prog_READELF="${ncn_progname}" | |
9475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9476 | break 2 | |
9477 | fi | |
9478 | done | |
9479 | done | |
9480 | IFS=$as_save_IFS | |
9481 | ||
9482 | fi | |
9483 | fi | |
9484 | READELF=$ac_cv_prog_READELF | |
9485 | if test -n "$READELF"; then | |
9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9487 | $as_echo "$READELF" >&6; } | |
9488 | else | |
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9490 | $as_echo "no" >&6; } | |
9491 | fi | |
9492 | ||
9493 | ||
9494 | done | |
9495 | fi | |
9496 | ||
9497 | for ncn_progname in readelf; do | |
9498 | if test -n "$ncn_tool_prefix"; then | |
9499 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9500 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9502 | $as_echo_n "checking for $ac_word... " >&6; } | |
9503 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9504 | $as_echo_n "(cached) " >&6 | |
9505 | else | |
9506 | if test -n "$READELF"; then | |
9507 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9508 | else | |
9509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9510 | for as_dir in $PATH | |
9511 | do | |
9512 | IFS=$as_save_IFS | |
9513 | test -z "$as_dir" && as_dir=. | |
9514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9516 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9518 | break 2 | |
9519 | fi | |
9520 | done | |
9521 | done | |
9522 | IFS=$as_save_IFS | |
9523 | ||
9524 | fi | |
9525 | fi | |
9526 | READELF=$ac_cv_prog_READELF | |
9527 | if test -n "$READELF"; then | |
9528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9529 | $as_echo "$READELF" >&6; } | |
9530 | else | |
9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9532 | $as_echo "no" >&6; } | |
9533 | fi | |
9534 | ||
9535 | ||
9536 | fi | |
9537 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9538 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9539 | set dummy ${ncn_progname}; ac_word=$2 | |
9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9541 | $as_echo_n "checking for $ac_word... " >&6; } | |
9542 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9543 | $as_echo_n "(cached) " >&6 | |
9544 | else | |
9545 | if test -n "$READELF"; then | |
9546 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9547 | else | |
9548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9549 | for as_dir in $PATH | |
9550 | do | |
9551 | IFS=$as_save_IFS | |
9552 | test -z "$as_dir" && as_dir=. | |
9553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9555 | ac_cv_prog_READELF="${ncn_progname}" | |
9556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9557 | break 2 | |
9558 | fi | |
9559 | done | |
9560 | done | |
9561 | IFS=$as_save_IFS | |
9562 | ||
9563 | fi | |
9564 | fi | |
9565 | READELF=$ac_cv_prog_READELF | |
9566 | if test -n "$READELF"; then | |
9567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9568 | $as_echo "$READELF" >&6; } | |
9569 | else | |
9570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9571 | $as_echo "no" >&6; } | |
9572 | fi | |
9573 | ||
9574 | ||
9575 | fi | |
9576 | test -n "$ac_cv_prog_READELF" && break | |
9577 | done | |
9578 | ||
9579 | if test -z "$ac_cv_prog_READELF" ; then | |
9580 | set dummy readelf | |
9581 | if test $build = $host ; then | |
9582 | READELF="$2" | |
9583 | else | |
9584 | READELF="${ncn_tool_prefix}$2" | |
9585 | fi | |
9586 | fi | |
9587 | ||
9588 | ||
9589 | ||
671aa708 NN |
9590 | |
9591 | ||
9592 | ||
2abefe3d | 9593 | # Target tools. |
1c710c3c | 9594 | |
5213506e RW |
9595 | # Check whether --with-build-time-tools was given. |
9596 | if test "${with_build_time_tools+set}" = set; then : | |
9597 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
9598 | x/*) ;; |
9599 | *) | |
9600 | with_build_time_tools= | |
5213506e RW |
9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9602 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
9603 | ;; |
9604 | esac | |
ca9f4b81 | 9605 | else |
e8b05380 | 9606 | with_build_time_tools= |
5213506e RW |
9607 | fi |
9608 | ||
ca9f4b81 | 9609 | |
278a7a38 AO |
9610 | |
9611 | ||
9612 | if test -n "$CC_FOR_TARGET"; then | |
9613 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9614 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9615 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9616 | fi | |
9617 | ||
9618 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9619 | for ncn_progname in cc gcc; do | |
9620 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9621 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9623 | $as_echo_n "checking for $ac_word... " >&6; } | |
9624 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9625 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9626 | else |
9627 | if test -n "$CC_FOR_TARGET"; then | |
9628 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9629 | else | |
9630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9631 | for as_dir in $PATH | |
9632 | do | |
9633 | IFS=$as_save_IFS | |
9634 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9635 | for ac_exec_ext in '' $ac_executable_extensions; do |
9636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9637 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9639 | break 2 |
9640 | fi | |
9641 | done | |
5213506e RW |
9642 | done |
9643 | IFS=$as_save_IFS | |
278a7a38 AO |
9644 | |
9645 | fi | |
9646 | fi | |
9647 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9648 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9650 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 9651 | else |
5213506e RW |
9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9653 | $as_echo "no" >&6; } | |
278a7a38 AO |
9654 | fi |
9655 | ||
5213506e | 9656 | |
278a7a38 AO |
9657 | done |
9658 | fi | |
9659 | ||
9660 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9661 | for ncn_progname in cc gcc; do |
5213506e RW |
9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9663 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9664 | if test -x $with_build_time_tools/${ncn_progname}; then |
9665 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9667 | $as_echo "yes" >&6; } | |
72a7ab82 | 9668 | break |
e8b05380 | 9669 | else |
5213506e RW |
9670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9671 | $as_echo "no" >&6; } | |
72a7ab82 AP |
9672 | fi |
9673 | done | |
4de997d1 PB |
9674 | fi |
9675 | ||
e8b05380 PB |
9676 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9677 | for ncn_progname in cc gcc; do | |
9678 | if test -n "$ncn_target_tool_prefix"; then | |
9679 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9680 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9682 | $as_echo_n "checking for $ac_word... " >&6; } | |
9683 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9684 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9685 | else |
9686 | if test -n "$CC_FOR_TARGET"; then | |
9687 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9688 | else | |
1c710c3c DJ |
9689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9690 | for as_dir in $PATH | |
9691 | do | |
9692 | IFS=$as_save_IFS | |
9693 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9694 | for ac_exec_ext in '' $ac_executable_extensions; do |
9695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9696 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9698 | break 2 |
9699 | fi | |
9700 | done | |
5213506e RW |
9701 | done |
9702 | IFS=$as_save_IFS | |
1c710c3c | 9703 | |
4de997d1 PB |
9704 | fi |
9705 | fi | |
1c710c3c | 9706 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 9707 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9709 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9710 | else |
5213506e RW |
9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9712 | $as_echo "no" >&6; } | |
4de997d1 PB |
9713 | fi |
9714 | ||
5213506e | 9715 | |
e8b05380 PB |
9716 | fi |
9717 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9718 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9719 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9721 | $as_echo_n "checking for $ac_word... " >&6; } | |
9722 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9723 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 9724 | else |
2693c0b0 PB |
9725 | if test -n "$CC_FOR_TARGET"; then |
9726 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9727 | else |
1c710c3c DJ |
9728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9729 | for as_dir in $PATH | |
9730 | do | |
9731 | IFS=$as_save_IFS | |
9732 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9733 | for ac_exec_ext in '' $ac_executable_extensions; do |
9734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9735 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9737 | break 2 |
9738 | fi | |
9739 | done | |
5213506e RW |
9740 | done |
9741 | IFS=$as_save_IFS | |
1c710c3c | 9742 | |
4de997d1 PB |
9743 | fi |
9744 | fi | |
1c710c3c | 9745 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 9746 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9748 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9749 | else |
5213506e RW |
9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9751 | $as_echo "no" >&6; } | |
4de997d1 | 9752 | fi |
1c710c3c | 9753 | |
5213506e | 9754 | |
e8b05380 PB |
9755 | fi |
9756 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9757 | done | |
9758 | fi | |
1c710c3c | 9759 | |
2693c0b0 PB |
9760 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9761 | set dummy cc gcc | |
9762 | if test $build = $target ; then | |
9763 | CC_FOR_TARGET="$2" | |
4de997d1 | 9764 | else |
2693c0b0 | 9765 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 9766 | fi |
1c00b503 PB |
9767 | else |
9768 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
9769 | fi |
9770 | ||
278a7a38 AO |
9771 | |
9772 | ||
9773 | if test -n "$CXX_FOR_TARGET"; then | |
9774 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9775 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9776 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9777 | fi | |
9778 | ||
9779 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9780 | for ncn_progname in c++ g++ cxx gxx; do | |
9781 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9782 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9784 | $as_echo_n "checking for $ac_word... " >&6; } | |
9785 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9786 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9787 | else |
9788 | if test -n "$CXX_FOR_TARGET"; then | |
9789 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9790 | else | |
9791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9792 | for as_dir in $PATH | |
9793 | do | |
9794 | IFS=$as_save_IFS | |
9795 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9796 | for ac_exec_ext in '' $ac_executable_extensions; do |
9797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9798 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 9799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9800 | break 2 |
9801 | fi | |
9802 | done | |
5213506e RW |
9803 | done |
9804 | IFS=$as_save_IFS | |
278a7a38 AO |
9805 | |
9806 | fi | |
9807 | fi | |
9808 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9809 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9811 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 9812 | else |
5213506e RW |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9814 | $as_echo "no" >&6; } | |
278a7a38 AO |
9815 | fi |
9816 | ||
5213506e | 9817 | |
278a7a38 AO |
9818 | done |
9819 | fi | |
9820 | ||
9821 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9822 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9824 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9825 | if test -x $with_build_time_tools/${ncn_progname}; then |
9826 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9828 | $as_echo "yes" >&6; } | |
e8b05380 PB |
9829 | break |
9830 | else | |
5213506e RW |
9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9832 | $as_echo "no" >&6; } | |
e8b05380 PB |
9833 | fi |
9834 | done | |
9835 | fi | |
9836 | ||
9837 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9838 | for ncn_progname in c++ g++ cxx gxx; do | |
9839 | if test -n "$ncn_target_tool_prefix"; then | |
9840 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9841 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9843 | $as_echo_n "checking for $ac_word... " >&6; } | |
9844 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9845 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9846 | else |
9847 | if test -n "$CXX_FOR_TARGET"; then | |
9848 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9849 | else | |
1c710c3c DJ |
9850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9851 | for as_dir in $PATH | |
9852 | do | |
9853 | IFS=$as_save_IFS | |
9854 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9855 | for ac_exec_ext in '' $ac_executable_extensions; do |
9856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9857 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9859 | break 2 |
9860 | fi | |
9861 | done | |
5213506e RW |
9862 | done |
9863 | IFS=$as_save_IFS | |
1c710c3c | 9864 | |
4de997d1 PB |
9865 | fi |
9866 | fi | |
1c710c3c | 9867 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 9868 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9870 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 9871 | else |
5213506e RW |
9872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9873 | $as_echo "no" >&6; } | |
4de997d1 PB |
9874 | fi |
9875 | ||
5213506e | 9876 | |
e8b05380 PB |
9877 | fi |
9878 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9879 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9880 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9882 | $as_echo_n "checking for $ac_word... " >&6; } | |
9883 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9884 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 9885 | else |
2693c0b0 PB |
9886 | if test -n "$CXX_FOR_TARGET"; then |
9887 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9888 | else |
1c710c3c DJ |
9889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9890 | for as_dir in $PATH | |
9891 | do | |
9892 | IFS=$as_save_IFS | |
9893 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9894 | for ac_exec_ext in '' $ac_executable_extensions; do |
9895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9896 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 9897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9898 | break 2 |
9899 | fi | |
9900 | done | |
5213506e RW |
9901 | done |
9902 | IFS=$as_save_IFS | |
1c710c3c | 9903 | |
4de997d1 PB |
9904 | fi |
9905 | fi | |
1c710c3c | 9906 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 9907 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9909 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 9910 | else |
5213506e RW |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9912 | $as_echo "no" >&6; } | |
4de997d1 | 9913 | fi |
1c710c3c | 9914 | |
5213506e | 9915 | |
e8b05380 PB |
9916 | fi |
9917 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9918 | done | |
9919 | fi | |
1c710c3c | 9920 | |
2693c0b0 PB |
9921 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9922 | set dummy c++ g++ cxx gxx | |
9923 | if test $build = $target ; then | |
9924 | CXX_FOR_TARGET="$2" | |
4de997d1 | 9925 | else |
2693c0b0 | 9926 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 9927 | fi |
1c00b503 PB |
9928 | else |
9929 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
9930 | fi |
9931 | ||
278a7a38 AO |
9932 | |
9933 | ||
9934 | if test -n "$GCC_FOR_TARGET"; then | |
9935 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9936 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9937 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9938 | fi | |
9939 | ||
9940 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9941 | for ncn_progname in gcc; do | |
9942 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9943 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9945 | $as_echo_n "checking for $ac_word... " >&6; } | |
9946 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9947 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9948 | else |
9949 | if test -n "$GCC_FOR_TARGET"; then | |
9950 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9951 | else | |
9952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9953 | for as_dir in $PATH | |
9954 | do | |
9955 | IFS=$as_save_IFS | |
9956 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9957 | for ac_exec_ext in '' $ac_executable_extensions; do |
9958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9959 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 9960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9961 | break 2 |
9962 | fi | |
9963 | done | |
5213506e RW |
9964 | done |
9965 | IFS=$as_save_IFS | |
278a7a38 AO |
9966 | |
9967 | fi | |
9968 | fi | |
9969 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9970 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9972 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 9973 | else |
5213506e RW |
9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9975 | $as_echo "no" >&6; } | |
278a7a38 AO |
9976 | fi |
9977 | ||
5213506e | 9978 | |
278a7a38 AO |
9979 | done |
9980 | fi | |
9981 | ||
9982 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9983 | for ncn_progname in gcc; do |
5213506e RW |
9984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9985 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9986 | if test -x $with_build_time_tools/${ncn_progname}; then |
9987 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9989 | $as_echo "yes" >&6; } | |
e8b05380 PB |
9990 | break |
9991 | else | |
5213506e RW |
9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9993 | $as_echo "no" >&6; } | |
e8b05380 PB |
9994 | fi |
9995 | done | |
9996 | fi | |
9997 | ||
9998 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9999 | for ncn_progname in gcc; do | |
10000 | if test -n "$ncn_target_tool_prefix"; then | |
10001 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10002 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10004 | $as_echo_n "checking for $ac_word... " >&6; } | |
10005 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10006 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10007 | else |
e8b05380 PB |
10008 | if test -n "$GCC_FOR_TARGET"; then |
10009 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10010 | else |
1c710c3c DJ |
10011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10012 | for as_dir in $PATH | |
10013 | do | |
10014 | IFS=$as_save_IFS | |
10015 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10016 | for ac_exec_ext in '' $ac_executable_extensions; do |
10017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10018 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10020 | break 2 |
10021 | fi | |
10022 | done | |
5213506e RW |
10023 | done |
10024 | IFS=$as_save_IFS | |
1c710c3c | 10025 | |
ca9f4b81 AO |
10026 | fi |
10027 | fi | |
1c710c3c | 10028 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10029 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10031 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10032 | else |
5213506e RW |
10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10034 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10035 | fi |
10036 | ||
5213506e | 10037 | |
e8b05380 PB |
10038 | fi |
10039 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10040 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10041 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10043 | $as_echo_n "checking for $ac_word... " >&6; } | |
10044 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10045 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10046 | else |
e8b05380 PB |
10047 | if test -n "$GCC_FOR_TARGET"; then |
10048 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10049 | else |
1c710c3c DJ |
10050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10051 | for as_dir in $PATH | |
10052 | do | |
10053 | IFS=$as_save_IFS | |
10054 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10055 | for ac_exec_ext in '' $ac_executable_extensions; do |
10056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10057 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10059 | break 2 |
10060 | fi | |
10061 | done | |
5213506e RW |
10062 | done |
10063 | IFS=$as_save_IFS | |
1c710c3c | 10064 | |
ca9f4b81 AO |
10065 | fi |
10066 | fi | |
1c710c3c | 10067 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10068 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10070 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10071 | else |
5213506e RW |
10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10073 | $as_echo "no" >&6; } | |
ca9f4b81 | 10074 | fi |
1c710c3c | 10075 | |
5213506e | 10076 | |
e8b05380 PB |
10077 | fi |
10078 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10079 | done | |
10080 | fi | |
1c710c3c | 10081 | |
e8b05380 PB |
10082 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10083 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10084 | else |
10085 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10086 | fi |
10087 | ||
278a7a38 AO |
10088 | |
10089 | ||
10090 | if test -n "$GCJ_FOR_TARGET"; then | |
10091 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10092 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10093 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10094 | fi | |
10095 | ||
10096 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10097 | for ncn_progname in gcj; do | |
10098 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10099 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10101 | $as_echo_n "checking for $ac_word... " >&6; } | |
10102 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10103 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10104 | else |
10105 | if test -n "$GCJ_FOR_TARGET"; then | |
10106 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10107 | else | |
10108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10109 | for as_dir in $PATH | |
10110 | do | |
10111 | IFS=$as_save_IFS | |
10112 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10113 | for ac_exec_ext in '' $ac_executable_extensions; do |
10114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10115 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10117 | break 2 |
10118 | fi | |
10119 | done | |
5213506e RW |
10120 | done |
10121 | IFS=$as_save_IFS | |
278a7a38 AO |
10122 | |
10123 | fi | |
10124 | fi | |
10125 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10126 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10128 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10129 | else |
5213506e RW |
10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10131 | $as_echo "no" >&6; } | |
278a7a38 AO |
10132 | fi |
10133 | ||
5213506e | 10134 | |
278a7a38 AO |
10135 | done |
10136 | fi | |
10137 | ||
10138 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10139 | for ncn_progname in gcj; do |
5213506e RW |
10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10141 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10142 | if test -x $with_build_time_tools/${ncn_progname}; then |
10143 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10145 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10146 | break |
10147 | else | |
5213506e RW |
10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10149 | $as_echo "no" >&6; } | |
e8b05380 PB |
10150 | fi |
10151 | done | |
10152 | fi | |
10153 | ||
10154 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10155 | for ncn_progname in gcj; do | |
10156 | if test -n "$ncn_target_tool_prefix"; then | |
10157 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10158 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10160 | $as_echo_n "checking for $ac_word... " >&6; } | |
10161 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10162 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10163 | else |
fb0103e5 RG |
10164 | if test -n "$GCJ_FOR_TARGET"; then |
10165 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10166 | else | |
1c710c3c DJ |
10167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10168 | for as_dir in $PATH | |
10169 | do | |
10170 | IFS=$as_save_IFS | |
10171 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10172 | for ac_exec_ext in '' $ac_executable_extensions; do |
10173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10174 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10176 | break 2 |
10177 | fi | |
10178 | done | |
5213506e RW |
10179 | done |
10180 | IFS=$as_save_IFS | |
1c710c3c | 10181 | |
e8b05380 PB |
10182 | fi |
10183 | fi | |
278a7a38 AO |
10184 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10185 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10187 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10188 | else |
5213506e RW |
10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10190 | $as_echo "no" >&6; } | |
278a7a38 AO |
10191 | fi |
10192 | ||
5213506e | 10193 | |
278a7a38 AO |
10194 | fi |
10195 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10196 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10197 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10199 | $as_echo_n "checking for $ac_word... " >&6; } | |
10200 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10201 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10202 | else |
10203 | if test -n "$GCJ_FOR_TARGET"; then | |
10204 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10205 | else | |
10206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10207 | for as_dir in $PATH | |
10208 | do | |
10209 | IFS=$as_save_IFS | |
10210 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10211 | for ac_exec_ext in '' $ac_executable_extensions; do |
10212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10213 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10215 | break 2 |
10216 | fi | |
10217 | done | |
5213506e RW |
10218 | done |
10219 | IFS=$as_save_IFS | |
278a7a38 AO |
10220 | |
10221 | fi | |
10222 | fi | |
10223 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10224 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10226 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10227 | else |
5213506e RW |
10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10229 | $as_echo "no" >&6; } | |
278a7a38 AO |
10230 | fi |
10231 | ||
5213506e | 10232 | |
278a7a38 AO |
10233 | fi |
10234 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10235 | done | |
10236 | fi | |
10237 | ||
10238 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10239 | set dummy gcj | |
10240 | if test $build = $target ; then | |
10241 | GCJ_FOR_TARGET="$2" | |
10242 | else | |
10243 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10244 | fi | |
1c00b503 PB |
10245 | else |
10246 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
278a7a38 AO |
10247 | fi |
10248 | ||
10249 | ||
10250 | ||
10251 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10252 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10253 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10254 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10255 | fi |
10256 | ||
278a7a38 AO |
10257 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10258 | for ncn_progname in gfortran; do | |
10259 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10260 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10262 | $as_echo_n "checking for $ac_word... " >&6; } | |
10263 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10264 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10265 | else |
278a7a38 AO |
10266 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10267 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10268 | else |
1c710c3c DJ |
10269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10270 | for as_dir in $PATH | |
10271 | do | |
10272 | IFS=$as_save_IFS | |
10273 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10274 | for ac_exec_ext in '' $ac_executable_extensions; do |
10275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10276 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10278 | break 2 |
10279 | fi | |
10280 | done | |
5213506e RW |
10281 | done |
10282 | IFS=$as_save_IFS | |
1c710c3c | 10283 | |
e8b05380 PB |
10284 | fi |
10285 | fi | |
278a7a38 AO |
10286 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10287 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10289 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10290 | else |
5213506e RW |
10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10292 | $as_echo "no" >&6; } | |
e8b05380 | 10293 | fi |
1c710c3c | 10294 | |
5213506e | 10295 | |
e8b05380 PB |
10296 | done |
10297 | fi | |
1c710c3c | 10298 | |
278a7a38 | 10299 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10300 | for ncn_progname in gfortran; do |
5213506e RW |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10302 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10303 | if test -x $with_build_time_tools/${ncn_progname}; then |
10304 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10306 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10307 | break |
10308 | else | |
5213506e RW |
10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10310 | $as_echo "no" >&6; } | |
e8b05380 PB |
10311 | fi |
10312 | done | |
10313 | fi | |
10314 | ||
10315 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10316 | for ncn_progname in gfortran; do | |
10317 | if test -n "$ncn_target_tool_prefix"; then | |
10318 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10319 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10321 | $as_echo_n "checking for $ac_word... " >&6; } | |
10322 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10323 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10324 | else |
10325 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10326 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10327 | else | |
10328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10329 | for as_dir in $PATH | |
10330 | do | |
10331 | IFS=$as_save_IFS | |
10332 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10333 | for ac_exec_ext in '' $ac_executable_extensions; do |
10334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10335 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10337 | break 2 |
10338 | fi | |
10339 | done | |
5213506e RW |
10340 | done |
10341 | IFS=$as_save_IFS | |
1c710c3c | 10342 | |
e8b05380 PB |
10343 | fi |
10344 | fi | |
1c710c3c | 10345 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10346 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10348 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10349 | else |
5213506e RW |
10350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10351 | $as_echo "no" >&6; } | |
e8b05380 PB |
10352 | fi |
10353 | ||
5213506e | 10354 | |
e8b05380 PB |
10355 | fi |
10356 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10357 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10358 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10360 | $as_echo_n "checking for $ac_word... " >&6; } | |
10361 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10362 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10363 | else |
10364 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10365 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10366 | else | |
1c710c3c DJ |
10367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10368 | for as_dir in $PATH | |
10369 | do | |
10370 | IFS=$as_save_IFS | |
10371 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10372 | for ac_exec_ext in '' $ac_executable_extensions; do |
10373 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10374 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10376 | break 2 |
10377 | fi | |
10378 | done | |
5213506e RW |
10379 | done |
10380 | IFS=$as_save_IFS | |
1c710c3c | 10381 | |
e8b05380 PB |
10382 | fi |
10383 | fi | |
1c710c3c | 10384 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10385 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10387 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10388 | else |
5213506e RW |
10389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10390 | $as_echo "no" >&6; } | |
e8b05380 | 10391 | fi |
1c710c3c | 10392 | |
5213506e | 10393 | |
e8b05380 PB |
10394 | fi |
10395 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10396 | done | |
10397 | fi | |
1c710c3c | 10398 | |
e8b05380 PB |
10399 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10400 | set dummy gfortran | |
2693c0b0 | 10401 | if test $build = $target ; then |
e8b05380 | 10402 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10403 | else |
e8b05380 PB |
10404 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10405 | fi | |
1c00b503 PB |
10406 | else |
10407 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10408 | fi |
10409 | ||
10410 | ||
10411 | ||
632e2a07 ILT |
10412 | if test -n "$GOC_FOR_TARGET"; then |
10413 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10414 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10415 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10416 | fi | |
10417 | ||
10418 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10419 | for ncn_progname in gccgo; do | |
10420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10421 | set dummy ${ncn_progname}; ac_word=$2 | |
10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10423 | $as_echo_n "checking for $ac_word... " >&6; } | |
10424 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10425 | $as_echo_n "(cached) " >&6 | |
10426 | else | |
10427 | if test -n "$GOC_FOR_TARGET"; then | |
10428 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10429 | else | |
10430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10431 | for as_dir in $PATH | |
10432 | do | |
10433 | IFS=$as_save_IFS | |
10434 | test -z "$as_dir" && as_dir=. | |
10435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10437 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10439 | break 2 | |
10440 | fi | |
10441 | done | |
10442 | done | |
10443 | IFS=$as_save_IFS | |
10444 | ||
10445 | fi | |
10446 | fi | |
10447 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10448 | if test -n "$GOC_FOR_TARGET"; then | |
10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10450 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10451 | else | |
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10453 | $as_echo "no" >&6; } | |
10454 | fi | |
10455 | ||
10456 | ||
10457 | done | |
10458 | fi | |
10459 | ||
10460 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10461 | for ncn_progname in gccgo; do | |
10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10463 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10464 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10465 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10467 | $as_echo "yes" >&6; } | |
10468 | break | |
10469 | else | |
10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10471 | $as_echo "no" >&6; } | |
10472 | fi | |
10473 | done | |
10474 | fi | |
10475 | ||
10476 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10477 | for ncn_progname in gccgo; do | |
10478 | if test -n "$ncn_target_tool_prefix"; then | |
10479 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10480 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10482 | $as_echo_n "checking for $ac_word... " >&6; } | |
10483 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10484 | $as_echo_n "(cached) " >&6 | |
10485 | else | |
10486 | if test -n "$GOC_FOR_TARGET"; then | |
10487 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10488 | else | |
10489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10490 | for as_dir in $PATH | |
10491 | do | |
10492 | IFS=$as_save_IFS | |
10493 | test -z "$as_dir" && as_dir=. | |
10494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10496 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10498 | break 2 | |
10499 | fi | |
10500 | done | |
10501 | done | |
10502 | IFS=$as_save_IFS | |
10503 | ||
10504 | fi | |
10505 | fi | |
10506 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10507 | if test -n "$GOC_FOR_TARGET"; then | |
10508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10509 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10510 | else | |
10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10512 | $as_echo "no" >&6; } | |
10513 | fi | |
10514 | ||
10515 | ||
10516 | fi | |
10517 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10518 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10519 | set dummy ${ncn_progname}; ac_word=$2 | |
10520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10521 | $as_echo_n "checking for $ac_word... " >&6; } | |
10522 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10523 | $as_echo_n "(cached) " >&6 | |
10524 | else | |
10525 | if test -n "$GOC_FOR_TARGET"; then | |
10526 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10527 | else | |
10528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10529 | for as_dir in $PATH | |
10530 | do | |
10531 | IFS=$as_save_IFS | |
10532 | test -z "$as_dir" && as_dir=. | |
10533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10535 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10537 | break 2 | |
10538 | fi | |
10539 | done | |
10540 | done | |
10541 | IFS=$as_save_IFS | |
10542 | ||
10543 | fi | |
10544 | fi | |
10545 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10546 | if test -n "$GOC_FOR_TARGET"; then | |
10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10548 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10549 | else | |
10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10551 | $as_echo "no" >&6; } | |
10552 | fi | |
10553 | ||
10554 | ||
10555 | fi | |
10556 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10557 | done | |
10558 | fi | |
10559 | ||
10560 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10561 | set dummy gccgo | |
10562 | if test $build = $target ; then | |
10563 | GOC_FOR_TARGET="$2" | |
10564 | else | |
10565 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10566 | fi | |
10567 | else | |
10568 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10569 | fi | |
10570 | ||
10571 | ||
10572 | ||
e8b05380 PB |
10573 | cat > conftest.c << \EOF |
10574 | #ifdef __GNUC__ | |
10575 | gcc_yay; | |
10576 | #endif | |
10577 | EOF | |
10578 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10579 | have_gcc_for_target=yes | |
10580 | else | |
10581 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10582 | have_gcc_for_target=no | |
10583 | fi | |
10584 | rm conftest.c | |
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10590 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10592 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10593 | if test -x $with_build_time_tools/ar; then |
10594 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10595 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10597 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 10598 | else |
5213506e RW |
10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10600 | $as_echo "no" >&6; } | |
d1f8db0c | 10601 | fi |
e8b05380 PB |
10602 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10603 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
10604 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10605 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
10606 | fi |
10607 | fi | |
3e19841a | 10608 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10609 | # Extract the first word of "ar", so it can be a program name with args. |
10610 | set dummy ar; ac_word=$2 | |
5213506e RW |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10612 | $as_echo_n "checking for $ac_word... " >&6; } | |
10613 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10614 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10615 | else |
1c710c3c DJ |
10616 | case $AR_FOR_TARGET in |
10617 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10618 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10619 | ;; | |
e8b05380 | 10620 | *) |
1c710c3c DJ |
10621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10622 | for as_dir in $gcc_cv_tool_dirs | |
10623 | do | |
10624 | IFS=$as_save_IFS | |
10625 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10626 | for ac_exec_ext in '' $ac_executable_extensions; do |
10627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10628 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10630 | break 2 |
10631 | fi | |
10632 | done | |
5213506e RW |
10633 | done |
10634 | IFS=$as_save_IFS | |
1c710c3c | 10635 | |
e8b05380 PB |
10636 | ;; |
10637 | esac | |
10638 | fi | |
1c710c3c | 10639 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 10640 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10642 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10643 | else |
5213506e RW |
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10645 | $as_echo "no" >&6; } | |
4de997d1 PB |
10646 | fi |
10647 | ||
5213506e | 10648 | |
e8b05380 PB |
10649 | fi |
10650 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
10651 | |
10652 | ||
10653 | if test -n "$AR_FOR_TARGET"; then | |
10654 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10655 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10656 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10657 | fi | |
10658 | ||
10659 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10660 | for ncn_progname in ar; do | |
10661 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10662 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10664 | $as_echo_n "checking for $ac_word... " >&6; } | |
10665 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10666 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10667 | else |
10668 | if test -n "$AR_FOR_TARGET"; then | |
10669 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10670 | else | |
10671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10672 | for as_dir in $PATH | |
10673 | do | |
10674 | IFS=$as_save_IFS | |
10675 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10676 | for ac_exec_ext in '' $ac_executable_extensions; do |
10677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10678 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10680 | break 2 |
10681 | fi | |
10682 | done | |
5213506e RW |
10683 | done |
10684 | IFS=$as_save_IFS | |
278a7a38 AO |
10685 | |
10686 | fi | |
10687 | fi | |
10688 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10689 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10691 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 10692 | else |
5213506e RW |
10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10694 | $as_echo "no" >&6; } | |
278a7a38 AO |
10695 | fi |
10696 | ||
5213506e | 10697 | |
278a7a38 AO |
10698 | done |
10699 | fi | |
10700 | ||
10701 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10702 | for ncn_progname in ar; do |
5213506e RW |
10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10704 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10705 | if test -x $with_build_time_tools/${ncn_progname}; then |
10706 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10708 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10709 | break |
10710 | else | |
5213506e RW |
10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10712 | $as_echo "no" >&6; } | |
e8b05380 PB |
10713 | fi |
10714 | done | |
10715 | fi | |
10716 | ||
10717 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10718 | for ncn_progname in ar; do | |
10719 | if test -n "$ncn_target_tool_prefix"; then | |
10720 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10721 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10723 | $as_echo_n "checking for $ac_word... " >&6; } | |
10724 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10725 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10726 | else |
e8b05380 PB |
10727 | if test -n "$AR_FOR_TARGET"; then |
10728 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10729 | else |
1c710c3c DJ |
10730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10731 | for as_dir in $PATH | |
10732 | do | |
10733 | IFS=$as_save_IFS | |
10734 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10735 | for ac_exec_ext in '' $ac_executable_extensions; do |
10736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10737 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10739 | break 2 |
10740 | fi | |
10741 | done | |
5213506e RW |
10742 | done |
10743 | IFS=$as_save_IFS | |
1c710c3c | 10744 | |
4de997d1 PB |
10745 | fi |
10746 | fi | |
1c710c3c | 10747 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10748 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10750 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 10751 | else |
5213506e RW |
10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10753 | $as_echo "no" >&6; } | |
4de997d1 PB |
10754 | fi |
10755 | ||
5213506e | 10756 | |
e8b05380 PB |
10757 | fi |
10758 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10759 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10760 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10762 | $as_echo_n "checking for $ac_word... " >&6; } | |
10763 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10764 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10765 | else |
10766 | if test -n "$AR_FOR_TARGET"; then | |
10767 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10768 | else | |
1c710c3c DJ |
10769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10770 | for as_dir in $PATH | |
10771 | do | |
10772 | IFS=$as_save_IFS | |
10773 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10774 | for ac_exec_ext in '' $ac_executable_extensions; do |
10775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10776 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10778 | break 2 |
10779 | fi | |
10780 | done | |
5213506e RW |
10781 | done |
10782 | IFS=$as_save_IFS | |
1c710c3c | 10783 | |
e8b05380 PB |
10784 | fi |
10785 | fi | |
1c710c3c | 10786 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10787 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10789 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10790 | else |
5213506e RW |
10791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10792 | $as_echo "no" >&6; } | |
e8b05380 | 10793 | fi |
1c710c3c | 10794 | |
5213506e | 10795 | |
e8b05380 PB |
10796 | fi |
10797 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10798 | done | |
10799 | fi | |
1c710c3c | 10800 | |
e8b05380 PB |
10801 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10802 | set dummy ar | |
10803 | if test $build = $target ; then | |
10804 | AR_FOR_TARGET="$2" | |
10805 | else | |
10806 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 10807 | fi |
1c00b503 PB |
10808 | else |
10809 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
10810 | fi |
10811 | ||
d1f8db0c PB |
10812 | else |
10813 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
10814 | fi |
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10820 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10822 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10823 | if test -x $with_build_time_tools/as; then |
10824 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10825 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10827 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 10828 | else |
5213506e RW |
10829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10830 | $as_echo "no" >&6; } | |
d1f8db0c | 10831 | fi |
e8b05380 PB |
10832 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10833 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
10834 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10835 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
10836 | fi |
10837 | fi | |
3e19841a | 10838 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10839 | # Extract the first word of "as", so it can be a program name with args. |
10840 | set dummy as; ac_word=$2 | |
5213506e RW |
10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10842 | $as_echo_n "checking for $ac_word... " >&6; } | |
10843 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10844 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10845 | else |
1c710c3c DJ |
10846 | case $AS_FOR_TARGET in |
10847 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10848 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10849 | ;; | |
e8b05380 | 10850 | *) |
1c710c3c DJ |
10851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10852 | for as_dir in $gcc_cv_tool_dirs | |
10853 | do | |
10854 | IFS=$as_save_IFS | |
10855 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10856 | for ac_exec_ext in '' $ac_executable_extensions; do |
10857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10858 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10860 | break 2 |
10861 | fi | |
10862 | done | |
5213506e RW |
10863 | done |
10864 | IFS=$as_save_IFS | |
1c710c3c | 10865 | |
e8b05380 PB |
10866 | ;; |
10867 | esac | |
10868 | fi | |
1c710c3c | 10869 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 10870 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10872 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 10873 | else |
5213506e RW |
10874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10875 | $as_echo "no" >&6; } | |
e8b05380 PB |
10876 | fi |
10877 | ||
5213506e | 10878 | |
e8b05380 PB |
10879 | fi |
10880 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
10881 | |
10882 | ||
10883 | if test -n "$AS_FOR_TARGET"; then | |
10884 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10885 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10886 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10887 | fi | |
10888 | ||
10889 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10890 | for ncn_progname in as; do | |
10891 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10892 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10894 | $as_echo_n "checking for $ac_word... " >&6; } | |
10895 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10896 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10897 | else |
10898 | if test -n "$AS_FOR_TARGET"; then | |
10899 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10900 | else | |
10901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10902 | for as_dir in $PATH | |
10903 | do | |
10904 | IFS=$as_save_IFS | |
10905 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10906 | for ac_exec_ext in '' $ac_executable_extensions; do |
10907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10908 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 10909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10910 | break 2 |
10911 | fi | |
10912 | done | |
5213506e RW |
10913 | done |
10914 | IFS=$as_save_IFS | |
278a7a38 AO |
10915 | |
10916 | fi | |
10917 | fi | |
10918 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10919 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
10920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10921 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 10922 | else |
5213506e RW |
10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10924 | $as_echo "no" >&6; } | |
278a7a38 AO |
10925 | fi |
10926 | ||
5213506e | 10927 | |
278a7a38 AO |
10928 | done |
10929 | fi | |
10930 | ||
10931 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10932 | for ncn_progname in as; do |
5213506e RW |
10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10934 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10935 | if test -x $with_build_time_tools/${ncn_progname}; then |
10936 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10938 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10939 | break |
10940 | else | |
5213506e RW |
10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10942 | $as_echo "no" >&6; } | |
e8b05380 PB |
10943 | fi |
10944 | done | |
10945 | fi | |
10946 | ||
10947 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10948 | for ncn_progname in as; do | |
10949 | if test -n "$ncn_target_tool_prefix"; then | |
10950 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10951 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10953 | $as_echo_n "checking for $ac_word... " >&6; } | |
10954 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10955 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10956 | else |
10957 | if test -n "$AS_FOR_TARGET"; then | |
10958 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10959 | else | |
1c710c3c DJ |
10960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10961 | for as_dir in $PATH | |
10962 | do | |
10963 | IFS=$as_save_IFS | |
10964 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10965 | for ac_exec_ext in '' $ac_executable_extensions; do |
10966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10967 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10969 | break 2 |
10970 | fi | |
10971 | done | |
5213506e RW |
10972 | done |
10973 | IFS=$as_save_IFS | |
1c710c3c | 10974 | |
e8b05380 PB |
10975 | fi |
10976 | fi | |
1c710c3c | 10977 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 10978 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10980 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 10981 | else |
5213506e RW |
10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10983 | $as_echo "no" >&6; } | |
e8b05380 PB |
10984 | fi |
10985 | ||
5213506e | 10986 | |
e8b05380 PB |
10987 | fi |
10988 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10989 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10990 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10992 | $as_echo_n "checking for $ac_word... " >&6; } | |
10993 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10994 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10995 | else |
e8b05380 PB |
10996 | if test -n "$AS_FOR_TARGET"; then |
10997 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10998 | else |
1c710c3c DJ |
10999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11000 | for as_dir in $PATH | |
11001 | do | |
11002 | IFS=$as_save_IFS | |
11003 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11004 | for ac_exec_ext in '' $ac_executable_extensions; do |
11005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11006 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11008 | break 2 |
11009 | fi | |
11010 | done | |
5213506e RW |
11011 | done |
11012 | IFS=$as_save_IFS | |
1c710c3c | 11013 | |
4de997d1 PB |
11014 | fi |
11015 | fi | |
1c710c3c | 11016 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11017 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11019 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11020 | else |
5213506e RW |
11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11022 | $as_echo "no" >&6; } | |
4de997d1 | 11023 | fi |
1c710c3c | 11024 | |
5213506e | 11025 | |
e8b05380 PB |
11026 | fi |
11027 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11028 | done | |
11029 | fi | |
1c710c3c | 11030 | |
e8b05380 PB |
11031 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11032 | set dummy as | |
11033 | if test $build = $target ; then | |
11034 | AS_FOR_TARGET="$2" | |
11035 | else | |
11036 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11037 | fi |
1c00b503 PB |
11038 | else |
11039 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11040 | fi |
2693c0b0 | 11041 | |
d1f8db0c PB |
11042 | else |
11043 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11044 | fi |
11045 | ||
e8b05380 PB |
11046 | |
11047 | ||
11048 | ||
11049 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11050 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11052 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11053 | if test -x $with_build_time_tools/dlltool; then |
11054 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11055 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11057 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11058 | else |
5213506e RW |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11060 | $as_echo "no" >&6; } | |
d1f8db0c | 11061 | fi |
e8b05380 PB |
11062 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11063 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11064 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11065 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11066 | fi |
11067 | fi | |
3e19841a | 11068 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11069 | # Extract the first word of "dlltool", so it can be a program name with args. |
11070 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11072 | $as_echo_n "checking for $ac_word... " >&6; } | |
11073 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11074 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11075 | else |
1c710c3c DJ |
11076 | case $DLLTOOL_FOR_TARGET in |
11077 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11078 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11079 | ;; | |
e8b05380 | 11080 | *) |
1c710c3c DJ |
11081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11082 | for as_dir in $gcc_cv_tool_dirs | |
11083 | do | |
11084 | IFS=$as_save_IFS | |
11085 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11086 | for ac_exec_ext in '' $ac_executable_extensions; do |
11087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11088 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11090 | break 2 |
11091 | fi | |
11092 | done | |
5213506e RW |
11093 | done |
11094 | IFS=$as_save_IFS | |
1c710c3c | 11095 | |
e8b05380 PB |
11096 | ;; |
11097 | esac | |
4de997d1 | 11098 | fi |
1c710c3c | 11099 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11100 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11102 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11103 | else |
5213506e RW |
11104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11105 | $as_echo "no" >&6; } | |
4de997d1 PB |
11106 | fi |
11107 | ||
5213506e | 11108 | |
e8b05380 PB |
11109 | fi |
11110 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11111 | |
11112 | ||
11113 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11114 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11115 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11116 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11117 | fi | |
11118 | ||
11119 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11120 | for ncn_progname in dlltool; do | |
11121 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11122 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11124 | $as_echo_n "checking for $ac_word... " >&6; } | |
11125 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11126 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11127 | else |
11128 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11129 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11130 | else | |
11131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11132 | for as_dir in $PATH | |
11133 | do | |
11134 | IFS=$as_save_IFS | |
11135 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11136 | for ac_exec_ext in '' $ac_executable_extensions; do |
11137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11138 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11140 | break 2 |
11141 | fi | |
11142 | done | |
5213506e RW |
11143 | done |
11144 | IFS=$as_save_IFS | |
278a7a38 AO |
11145 | |
11146 | fi | |
11147 | fi | |
11148 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11149 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11151 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11152 | else |
5213506e RW |
11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11154 | $as_echo "no" >&6; } | |
278a7a38 AO |
11155 | fi |
11156 | ||
5213506e | 11157 | |
278a7a38 AO |
11158 | done |
11159 | fi | |
11160 | ||
11161 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11162 | for ncn_progname in dlltool; do |
5213506e RW |
11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11164 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11165 | if test -x $with_build_time_tools/${ncn_progname}; then |
11166 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11168 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11169 | break |
11170 | else | |
5213506e RW |
11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11172 | $as_echo "no" >&6; } | |
e8b05380 PB |
11173 | fi |
11174 | done | |
11175 | fi | |
11176 | ||
11177 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11178 | for ncn_progname in dlltool; do | |
11179 | if test -n "$ncn_target_tool_prefix"; then | |
11180 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11181 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11183 | $as_echo_n "checking for $ac_word... " >&6; } | |
11184 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11185 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11186 | else |
e8b05380 PB |
11187 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11188 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11189 | else |
1c710c3c DJ |
11190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11191 | for as_dir in $PATH | |
11192 | do | |
11193 | IFS=$as_save_IFS | |
11194 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11195 | for ac_exec_ext in '' $ac_executable_extensions; do |
11196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11197 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11199 | break 2 |
11200 | fi | |
11201 | done | |
5213506e RW |
11202 | done |
11203 | IFS=$as_save_IFS | |
1c710c3c | 11204 | |
4de997d1 PB |
11205 | fi |
11206 | fi | |
1c710c3c | 11207 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11208 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11210 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11211 | else |
5213506e RW |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11213 | $as_echo "no" >&6; } | |
4de997d1 | 11214 | fi |
4de997d1 | 11215 | |
5213506e | 11216 | |
e8b05380 PB |
11217 | fi |
11218 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11219 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11220 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11222 | $as_echo_n "checking for $ac_word... " >&6; } | |
11223 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11224 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11225 | else |
e8b05380 PB |
11226 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11227 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11228 | else |
1c710c3c DJ |
11229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11230 | for as_dir in $PATH | |
11231 | do | |
11232 | IFS=$as_save_IFS | |
11233 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11234 | for ac_exec_ext in '' $ac_executable_extensions; do |
11235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11236 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11238 | break 2 |
11239 | fi | |
11240 | done | |
5213506e RW |
11241 | done |
11242 | IFS=$as_save_IFS | |
1c710c3c | 11243 | |
4de997d1 PB |
11244 | fi |
11245 | fi | |
1c710c3c | 11246 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11247 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11249 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11250 | else |
5213506e RW |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11252 | $as_echo "no" >&6; } | |
4de997d1 | 11253 | fi |
1c710c3c | 11254 | |
5213506e | 11255 | |
e8b05380 PB |
11256 | fi |
11257 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11258 | done | |
11259 | fi | |
1c710c3c | 11260 | |
e8b05380 PB |
11261 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11262 | set dummy dlltool | |
11263 | if test $build = $target ; then | |
11264 | DLLTOOL_FOR_TARGET="$2" | |
11265 | else | |
11266 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11267 | fi | |
1c00b503 PB |
11268 | else |
11269 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11270 | fi |
11271 | ||
d1f8db0c PB |
11272 | else |
11273 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11274 | fi |
11275 | ||
4de997d1 | 11276 | |
e8b05380 PB |
11277 | |
11278 | ||
11279 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11280 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11282 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11283 | if test -x $with_build_time_tools/ld; then |
11284 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11285 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11287 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11288 | else |
5213506e RW |
11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11290 | $as_echo "no" >&6; } | |
d1f8db0c | 11291 | fi |
e8b05380 PB |
11292 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11293 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11294 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11295 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11296 | fi |
e8b05380 | 11297 | fi |
3e19841a | 11298 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11299 | # Extract the first word of "ld", so it can be a program name with args. |
11300 | set dummy ld; ac_word=$2 | |
5213506e RW |
11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11302 | $as_echo_n "checking for $ac_word... " >&6; } | |
11303 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11304 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11305 | else |
1c710c3c DJ |
11306 | case $LD_FOR_TARGET in |
11307 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11308 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11309 | ;; | |
e8b05380 | 11310 | *) |
1c710c3c DJ |
11311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11312 | for as_dir in $gcc_cv_tool_dirs | |
11313 | do | |
11314 | IFS=$as_save_IFS | |
11315 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11316 | for ac_exec_ext in '' $ac_executable_extensions; do |
11317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11318 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11320 | break 2 |
11321 | fi | |
11322 | done | |
5213506e RW |
11323 | done |
11324 | IFS=$as_save_IFS | |
1c710c3c | 11325 | |
e8b05380 PB |
11326 | ;; |
11327 | esac | |
4de997d1 | 11328 | fi |
1c710c3c | 11329 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11330 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11332 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11333 | else |
5213506e RW |
11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11335 | $as_echo "no" >&6; } | |
4de997d1 | 11336 | fi |
2693c0b0 | 11337 | |
5213506e | 11338 | |
e8b05380 PB |
11339 | fi |
11340 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11341 | |
11342 | ||
11343 | if test -n "$LD_FOR_TARGET"; then | |
11344 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11345 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11346 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11347 | fi | |
11348 | ||
11349 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11350 | for ncn_progname in ld; do | |
11351 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11352 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11354 | $as_echo_n "checking for $ac_word... " >&6; } | |
11355 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11356 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11357 | else |
11358 | if test -n "$LD_FOR_TARGET"; then | |
11359 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11360 | else | |
11361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11362 | for as_dir in $PATH | |
11363 | do | |
11364 | IFS=$as_save_IFS | |
11365 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11366 | for ac_exec_ext in '' $ac_executable_extensions; do |
11367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11368 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11370 | break 2 |
11371 | fi | |
11372 | done | |
5213506e RW |
11373 | done |
11374 | IFS=$as_save_IFS | |
278a7a38 AO |
11375 | |
11376 | fi | |
11377 | fi | |
11378 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11379 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11381 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 11382 | else |
5213506e RW |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11384 | $as_echo "no" >&6; } | |
278a7a38 AO |
11385 | fi |
11386 | ||
5213506e | 11387 | |
278a7a38 AO |
11388 | done |
11389 | fi | |
11390 | ||
11391 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11392 | for ncn_progname in ld; do |
5213506e RW |
11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11394 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11395 | if test -x $with_build_time_tools/${ncn_progname}; then |
11396 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11398 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11399 | break |
11400 | else | |
5213506e RW |
11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11402 | $as_echo "no" >&6; } | |
e8b05380 PB |
11403 | fi |
11404 | done | |
ca9f4b81 AO |
11405 | fi |
11406 | ||
e8b05380 PB |
11407 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11408 | for ncn_progname in ld; do | |
11409 | if test -n "$ncn_target_tool_prefix"; then | |
11410 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11411 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11413 | $as_echo_n "checking for $ac_word... " >&6; } | |
11414 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11415 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11416 | else |
4de997d1 PB |
11417 | if test -n "$LD_FOR_TARGET"; then |
11418 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11419 | else |
1c710c3c DJ |
11420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11421 | for as_dir in $PATH | |
11422 | do | |
11423 | IFS=$as_save_IFS | |
11424 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11425 | for ac_exec_ext in '' $ac_executable_extensions; do |
11426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11427 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11429 | break 2 |
11430 | fi | |
11431 | done | |
5213506e RW |
11432 | done |
11433 | IFS=$as_save_IFS | |
1c710c3c | 11434 | |
ca9f4b81 AO |
11435 | fi |
11436 | fi | |
1c710c3c | 11437 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11438 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11440 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11441 | else |
5213506e RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11443 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11444 | fi |
11445 | ||
5213506e | 11446 | |
e8b05380 PB |
11447 | fi |
11448 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11449 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11450 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11452 | $as_echo_n "checking for $ac_word... " >&6; } | |
11453 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11454 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11455 | else |
2693c0b0 PB |
11456 | if test -n "$LD_FOR_TARGET"; then |
11457 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11458 | else |
1c710c3c DJ |
11459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11460 | for as_dir in $PATH | |
11461 | do | |
11462 | IFS=$as_save_IFS | |
11463 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11464 | for ac_exec_ext in '' $ac_executable_extensions; do |
11465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11466 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11468 | break 2 |
11469 | fi | |
11470 | done | |
5213506e RW |
11471 | done |
11472 | IFS=$as_save_IFS | |
1c710c3c | 11473 | |
ca9f4b81 AO |
11474 | fi |
11475 | fi | |
1c710c3c | 11476 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 11477 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11479 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11480 | else |
5213506e RW |
11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11482 | $as_echo "no" >&6; } | |
ca9f4b81 | 11483 | fi |
1c710c3c | 11484 | |
5213506e | 11485 | |
e8b05380 PB |
11486 | fi |
11487 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11488 | done | |
11489 | fi | |
1c710c3c | 11490 | |
2693c0b0 PB |
11491 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11492 | set dummy ld | |
11493 | if test $build = $target ; then | |
11494 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 11495 | else |
2693c0b0 | 11496 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11497 | fi |
1c00b503 PB |
11498 | else |
11499 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
11500 | fi |
11501 | ||
d1f8db0c PB |
11502 | else |
11503 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
11504 | fi |
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11510 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11512 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11513 | if test -x $with_build_time_tools/lipo; then |
11514 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11515 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11517 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 11518 | else |
5213506e RW |
11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11520 | $as_echo "no" >&6; } | |
d1f8db0c | 11521 | fi |
e8b05380 PB |
11522 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11523 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
11524 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11525 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
11526 | fi |
11527 | fi | |
278a7a38 AO |
11528 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11529 | # Extract the first word of "lipo", so it can be a program name with args. | |
11530 | set dummy lipo; ac_word=$2 | |
5213506e RW |
11531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11532 | $as_echo_n "checking for $ac_word... " >&6; } | |
11533 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11534 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11535 | else |
11536 | case $LIPO_FOR_TARGET in | |
11537 | [\\/]* | ?:[\\/]*) | |
11538 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11539 | ;; | |
11540 | *) | |
11541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11542 | for as_dir in $gcc_cv_tool_dirs | |
11543 | do | |
11544 | IFS=$as_save_IFS | |
11545 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11546 | for ac_exec_ext in '' $ac_executable_extensions; do |
11547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11548 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11550 | break 2 |
11551 | fi | |
11552 | done | |
5213506e RW |
11553 | done |
11554 | IFS=$as_save_IFS | |
278a7a38 AO |
11555 | |
11556 | ;; | |
11557 | esac | |
11558 | fi | |
11559 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 11560 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11562 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 11563 | else |
5213506e RW |
11564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11565 | $as_echo "no" >&6; } | |
278a7a38 AO |
11566 | fi |
11567 | ||
5213506e | 11568 | |
278a7a38 AO |
11569 | fi |
11570 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11571 | ||
11572 | ||
11573 | if test -n "$LIPO_FOR_TARGET"; then | |
11574 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11575 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11576 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11577 | fi | |
11578 | ||
11579 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11580 | for ncn_progname in lipo; do | |
11581 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11582 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11584 | $as_echo_n "checking for $ac_word... " >&6; } | |
11585 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11586 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11587 | else |
278a7a38 AO |
11588 | if test -n "$LIPO_FOR_TARGET"; then |
11589 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11590 | else | |
11591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11592 | for as_dir in $PATH | |
1c710c3c DJ |
11593 | do |
11594 | IFS=$as_save_IFS | |
11595 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11596 | for ac_exec_ext in '' $ac_executable_extensions; do |
11597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11598 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11600 | break 2 |
11601 | fi | |
11602 | done | |
5213506e RW |
11603 | done |
11604 | IFS=$as_save_IFS | |
1c710c3c | 11605 | |
e8b05380 | 11606 | fi |
278a7a38 AO |
11607 | fi |
11608 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 11609 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11611 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 11612 | else |
5213506e RW |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11614 | $as_echo "no" >&6; } | |
e8b05380 PB |
11615 | fi |
11616 | ||
5213506e | 11617 | |
278a7a38 | 11618 | done |
e8b05380 | 11619 | fi |
278a7a38 AO |
11620 | |
11621 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11622 | for ncn_progname in lipo; do |
5213506e RW |
11623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11624 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11625 | if test -x $with_build_time_tools/${ncn_progname}; then |
11626 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11628 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11629 | break |
11630 | else | |
5213506e RW |
11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11632 | $as_echo "no" >&6; } | |
e8b05380 PB |
11633 | fi |
11634 | done | |
11635 | fi | |
11636 | ||
11637 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11638 | for ncn_progname in lipo; do | |
11639 | if test -n "$ncn_target_tool_prefix"; then | |
11640 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11641 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11643 | $as_echo_n "checking for $ac_word... " >&6; } | |
11644 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11645 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11646 | else |
11647 | if test -n "$LIPO_FOR_TARGET"; then | |
11648 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11649 | else | |
1c710c3c DJ |
11650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11651 | for as_dir in $PATH | |
11652 | do | |
11653 | IFS=$as_save_IFS | |
11654 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11655 | for ac_exec_ext in '' $ac_executable_extensions; do |
11656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11657 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11659 | break 2 |
11660 | fi | |
11661 | done | |
5213506e RW |
11662 | done |
11663 | IFS=$as_save_IFS | |
1c710c3c | 11664 | |
040b1c5a GK |
11665 | fi |
11666 | fi | |
1c710c3c | 11667 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11668 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11670 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11671 | else |
5213506e RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11673 | $as_echo "no" >&6; } | |
040b1c5a GK |
11674 | fi |
11675 | ||
5213506e | 11676 | |
e8b05380 PB |
11677 | fi |
11678 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11679 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11680 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11682 | $as_echo_n "checking for $ac_word... " >&6; } | |
11683 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11684 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11685 | else |
11686 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
11687 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11688 | else | |
1c710c3c DJ |
11689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11690 | for as_dir in $PATH | |
11691 | do | |
11692 | IFS=$as_save_IFS | |
11693 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11694 | for ac_exec_ext in '' $ac_executable_extensions; do |
11695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11696 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11698 | break 2 |
11699 | fi | |
11700 | done | |
5213506e RW |
11701 | done |
11702 | IFS=$as_save_IFS | |
1c710c3c | 11703 | |
040b1c5a GK |
11704 | fi |
11705 | fi | |
1c710c3c | 11706 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11707 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11709 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11710 | else |
5213506e RW |
11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11712 | $as_echo "no" >&6; } | |
040b1c5a | 11713 | fi |
1c710c3c | 11714 | |
5213506e | 11715 | |
e8b05380 PB |
11716 | fi |
11717 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11718 | done | |
11719 | fi | |
1c710c3c | 11720 | |
040b1c5a GK |
11721 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11722 | set dummy lipo | |
11723 | if test $build = $target ; then | |
11724 | LIPO_FOR_TARGET="$2" | |
11725 | else | |
11726 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11727 | fi | |
1c00b503 PB |
11728 | else |
11729 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
11730 | fi |
11731 | ||
d1f8db0c PB |
11732 | else |
11733 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
11734 | fi |
11735 | ||
11736 | ||
11737 | ||
11738 | ||
11739 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11740 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11742 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11743 | if test -x $with_build_time_tools/nm; then |
11744 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11745 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11747 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 11748 | else |
5213506e RW |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11750 | $as_echo "no" >&6; } | |
d1f8db0c | 11751 | fi |
e8b05380 PB |
11752 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11753 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
11754 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11755 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
11756 | fi |
11757 | fi | |
3e19841a | 11758 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11759 | # Extract the first word of "nm", so it can be a program name with args. |
11760 | set dummy nm; ac_word=$2 | |
5213506e RW |
11761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11762 | $as_echo_n "checking for $ac_word... " >&6; } | |
11763 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11764 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11765 | else |
1c710c3c DJ |
11766 | case $NM_FOR_TARGET in |
11767 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11768 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11769 | ;; | |
e8b05380 | 11770 | *) |
1c710c3c DJ |
11771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11772 | for as_dir in $gcc_cv_tool_dirs | |
11773 | do | |
11774 | IFS=$as_save_IFS | |
11775 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11776 | for ac_exec_ext in '' $ac_executable_extensions; do |
11777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11778 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11780 | break 2 |
11781 | fi | |
11782 | done | |
5213506e RW |
11783 | done |
11784 | IFS=$as_save_IFS | |
1c710c3c | 11785 | |
e8b05380 PB |
11786 | ;; |
11787 | esac | |
11788 | fi | |
1c710c3c | 11789 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 11790 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11792 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 11793 | else |
5213506e RW |
11794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11795 | $as_echo "no" >&6; } | |
e8b05380 PB |
11796 | fi |
11797 | ||
5213506e | 11798 | |
e8b05380 PB |
11799 | fi |
11800 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
11801 | |
11802 | ||
11803 | if test -n "$NM_FOR_TARGET"; then | |
11804 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11805 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11806 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11807 | fi | |
11808 | ||
11809 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11810 | for ncn_progname in nm; do | |
11811 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11812 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11814 | $as_echo_n "checking for $ac_word... " >&6; } | |
11815 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11816 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11817 | else |
11818 | if test -n "$NM_FOR_TARGET"; then | |
11819 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11820 | else | |
11821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11822 | for as_dir in $PATH | |
11823 | do | |
11824 | IFS=$as_save_IFS | |
11825 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11826 | for ac_exec_ext in '' $ac_executable_extensions; do |
11827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11828 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 11829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11830 | break 2 |
11831 | fi | |
11832 | done | |
5213506e RW |
11833 | done |
11834 | IFS=$as_save_IFS | |
278a7a38 AO |
11835 | |
11836 | fi | |
11837 | fi | |
11838 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11839 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11841 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 11842 | else |
5213506e RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11844 | $as_echo "no" >&6; } | |
278a7a38 AO |
11845 | fi |
11846 | ||
5213506e | 11847 | |
278a7a38 AO |
11848 | done |
11849 | fi | |
11850 | ||
11851 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11852 | for ncn_progname in nm; do |
5213506e RW |
11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11854 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11855 | if test -x $with_build_time_tools/${ncn_progname}; then |
11856 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11858 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11859 | break |
11860 | else | |
5213506e RW |
11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11862 | $as_echo "no" >&6; } | |
e8b05380 PB |
11863 | fi |
11864 | done | |
11865 | fi | |
11866 | ||
11867 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11868 | for ncn_progname in nm; do | |
11869 | if test -n "$ncn_target_tool_prefix"; then | |
11870 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11871 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11873 | $as_echo_n "checking for $ac_word... " >&6; } | |
11874 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11875 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11876 | else |
4de997d1 PB |
11877 | if test -n "$NM_FOR_TARGET"; then |
11878 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11879 | else |
1c710c3c DJ |
11880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11881 | for as_dir in $PATH | |
11882 | do | |
11883 | IFS=$as_save_IFS | |
11884 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11885 | for ac_exec_ext in '' $ac_executable_extensions; do |
11886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11887 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11889 | break 2 |
11890 | fi | |
11891 | done | |
5213506e RW |
11892 | done |
11893 | IFS=$as_save_IFS | |
1c710c3c | 11894 | |
ca9f4b81 AO |
11895 | fi |
11896 | fi | |
1c710c3c | 11897 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 11898 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11900 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 11901 | else |
5213506e RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11903 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11904 | fi |
11905 | ||
5213506e | 11906 | |
e8b05380 PB |
11907 | fi |
11908 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11909 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11910 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11912 | $as_echo_n "checking for $ac_word... " >&6; } | |
11913 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11914 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11915 | else |
2693c0b0 PB |
11916 | if test -n "$NM_FOR_TARGET"; then |
11917 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11918 | else |
1c710c3c DJ |
11919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11920 | for as_dir in $PATH | |
11921 | do | |
11922 | IFS=$as_save_IFS | |
11923 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11924 | for ac_exec_ext in '' $ac_executable_extensions; do |
11925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11926 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 11927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11928 | break 2 |
11929 | fi | |
11930 | done | |
5213506e RW |
11931 | done |
11932 | IFS=$as_save_IFS | |
1c710c3c | 11933 | |
ca9f4b81 AO |
11934 | fi |
11935 | fi | |
1c710c3c | 11936 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 11937 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11939 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 11940 | else |
5213506e RW |
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11942 | $as_echo "no" >&6; } | |
ca9f4b81 | 11943 | fi |
1c710c3c | 11944 | |
5213506e | 11945 | |
e8b05380 PB |
11946 | fi |
11947 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11948 | done | |
11949 | fi | |
1c710c3c | 11950 | |
2693c0b0 PB |
11951 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11952 | set dummy nm | |
11953 | if test $build = $target ; then | |
11954 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 11955 | else |
2693c0b0 | 11956 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11957 | fi |
1c00b503 PB |
11958 | else |
11959 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
11960 | fi |
11961 | ||
d1f8db0c PB |
11962 | else |
11963 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
11964 | fi |
11965 | ||
11966 | ||
11967 | ||
11968 | ||
11969 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11970 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11972 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11973 | if test -x $with_build_time_tools/objdump; then |
11974 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11975 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11977 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 11978 | else |
5213506e RW |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11980 | $as_echo "no" >&6; } | |
d1f8db0c | 11981 | fi |
e8b05380 PB |
11982 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11983 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
11984 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
11985 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
11986 | fi |
11987 | fi | |
3e19841a | 11988 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11989 | # Extract the first word of "objdump", so it can be a program name with args. |
11990 | set dummy objdump; ac_word=$2 | |
5213506e RW |
11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11992 | $as_echo_n "checking for $ac_word... " >&6; } | |
11993 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11994 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11995 | else |
1c710c3c DJ |
11996 | case $OBJDUMP_FOR_TARGET in |
11997 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11998 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
11999 | ;; | |
e8b05380 | 12000 | *) |
1c710c3c DJ |
12001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12002 | for as_dir in $gcc_cv_tool_dirs | |
12003 | do | |
12004 | IFS=$as_save_IFS | |
12005 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12006 | for ac_exec_ext in '' $ac_executable_extensions; do |
12007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12008 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12010 | break 2 |
12011 | fi | |
12012 | done | |
5213506e RW |
12013 | done |
12014 | IFS=$as_save_IFS | |
1c710c3c | 12015 | |
e8b05380 PB |
12016 | ;; |
12017 | esac | |
12018 | fi | |
1c710c3c | 12019 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12020 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12022 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12023 | else |
5213506e RW |
12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12025 | $as_echo "no" >&6; } | |
e8b05380 PB |
12026 | fi |
12027 | ||
5213506e | 12028 | |
e8b05380 PB |
12029 | fi |
12030 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12031 | |
12032 | ||
12033 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12034 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12035 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12036 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12037 | fi | |
12038 | ||
12039 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12040 | for ncn_progname in objdump; do | |
12041 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12042 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12044 | $as_echo_n "checking for $ac_word... " >&6; } | |
12045 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12046 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12047 | else |
12048 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12049 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12050 | else | |
12051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12052 | for as_dir in $PATH | |
12053 | do | |
12054 | IFS=$as_save_IFS | |
12055 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12056 | for ac_exec_ext in '' $ac_executable_extensions; do |
12057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12058 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12060 | break 2 |
12061 | fi | |
12062 | done | |
5213506e RW |
12063 | done |
12064 | IFS=$as_save_IFS | |
278a7a38 AO |
12065 | |
12066 | fi | |
12067 | fi | |
12068 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12069 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12071 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12072 | else |
5213506e RW |
12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12074 | $as_echo "no" >&6; } | |
278a7a38 AO |
12075 | fi |
12076 | ||
5213506e | 12077 | |
278a7a38 AO |
12078 | done |
12079 | fi | |
12080 | ||
12081 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12082 | for ncn_progname in objdump; do |
5213506e RW |
12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12084 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12085 | if test -x $with_build_time_tools/${ncn_progname}; then |
12086 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12088 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12089 | break |
12090 | else | |
5213506e RW |
12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12092 | $as_echo "no" >&6; } | |
e8b05380 PB |
12093 | fi |
12094 | done | |
12095 | fi | |
12096 | ||
12097 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12098 | for ncn_progname in objdump; do | |
12099 | if test -n "$ncn_target_tool_prefix"; then | |
12100 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12101 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12103 | $as_echo_n "checking for $ac_word... " >&6; } | |
12104 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12105 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12106 | else |
12107 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12108 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12109 | else | |
1c710c3c DJ |
12110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12111 | for as_dir in $PATH | |
12112 | do | |
12113 | IFS=$as_save_IFS | |
12114 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12115 | for ac_exec_ext in '' $ac_executable_extensions; do |
12116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12117 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12119 | break 2 |
12120 | fi | |
12121 | done | |
5213506e RW |
12122 | done |
12123 | IFS=$as_save_IFS | |
1c710c3c | 12124 | |
d739199a DJ |
12125 | fi |
12126 | fi | |
1c710c3c | 12127 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12128 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12130 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12131 | else |
5213506e RW |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12133 | $as_echo "no" >&6; } | |
d739199a DJ |
12134 | fi |
12135 | ||
5213506e | 12136 | |
e8b05380 PB |
12137 | fi |
12138 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12139 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12140 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12142 | $as_echo_n "checking for $ac_word... " >&6; } | |
12143 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12144 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12145 | else |
12146 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12147 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12148 | else | |
1c710c3c DJ |
12149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12150 | for as_dir in $PATH | |
12151 | do | |
12152 | IFS=$as_save_IFS | |
12153 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12154 | for ac_exec_ext in '' $ac_executable_extensions; do |
12155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12156 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12158 | break 2 |
12159 | fi | |
12160 | done | |
5213506e RW |
12161 | done |
12162 | IFS=$as_save_IFS | |
1c710c3c | 12163 | |
d739199a DJ |
12164 | fi |
12165 | fi | |
1c710c3c | 12166 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12167 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12169 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12170 | else |
5213506e RW |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12172 | $as_echo "no" >&6; } | |
d739199a | 12173 | fi |
1c710c3c | 12174 | |
5213506e | 12175 | |
e8b05380 PB |
12176 | fi |
12177 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12178 | done | |
12179 | fi | |
1c710c3c | 12180 | |
d739199a DJ |
12181 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12182 | set dummy objdump | |
12183 | if test $build = $target ; then | |
12184 | OBJDUMP_FOR_TARGET="$2" | |
12185 | else | |
12186 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12187 | fi | |
1c00b503 PB |
12188 | else |
12189 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12190 | fi |
12191 | ||
d1f8db0c PB |
12192 | else |
12193 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12194 | fi |
12195 | ||
12196 | ||
12197 | ||
12198 | ||
12199 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12200 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12202 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12203 | if test -x $with_build_time_tools/ranlib; then |
12204 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12205 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12207 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 12208 | else |
5213506e RW |
12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12210 | $as_echo "no" >&6; } | |
d1f8db0c | 12211 | fi |
e8b05380 PB |
12212 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12213 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
12214 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12215 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
12216 | fi |
12217 | fi | |
3e19841a | 12218 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12219 | # Extract the first word of "ranlib", so it can be a program name with args. |
12220 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
12221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12222 | $as_echo_n "checking for $ac_word... " >&6; } | |
12223 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12224 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12225 | else |
1c710c3c DJ |
12226 | case $RANLIB_FOR_TARGET in |
12227 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12228 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12229 | ;; | |
e8b05380 | 12230 | *) |
1c710c3c DJ |
12231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12232 | for as_dir in $gcc_cv_tool_dirs | |
12233 | do | |
12234 | IFS=$as_save_IFS | |
12235 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12236 | for ac_exec_ext in '' $ac_executable_extensions; do |
12237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12238 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12240 | break 2 |
12241 | fi | |
12242 | done | |
5213506e RW |
12243 | done |
12244 | IFS=$as_save_IFS | |
1c710c3c | 12245 | |
e8b05380 PB |
12246 | ;; |
12247 | esac | |
12248 | fi | |
1c710c3c | 12249 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 12250 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12252 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 12253 | else |
5213506e RW |
12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12255 | $as_echo "no" >&6; } | |
e8b05380 PB |
12256 | fi |
12257 | ||
5213506e | 12258 | |
e8b05380 PB |
12259 | fi |
12260 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
12261 | |
12262 | ||
12263 | if test -n "$RANLIB_FOR_TARGET"; then | |
12264 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12265 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12266 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12267 | fi | |
12268 | ||
12269 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12270 | for ncn_progname in ranlib; do | |
12271 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12272 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12274 | $as_echo_n "checking for $ac_word... " >&6; } | |
12275 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12276 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12277 | else |
12278 | if test -n "$RANLIB_FOR_TARGET"; then | |
12279 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12280 | else | |
12281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12282 | for as_dir in $PATH | |
12283 | do | |
12284 | IFS=$as_save_IFS | |
12285 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12286 | for ac_exec_ext in '' $ac_executable_extensions; do |
12287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12288 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12290 | break 2 |
12291 | fi | |
12292 | done | |
5213506e RW |
12293 | done |
12294 | IFS=$as_save_IFS | |
278a7a38 AO |
12295 | |
12296 | fi | |
12297 | fi | |
12298 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12299 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12301 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 12302 | else |
5213506e RW |
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12304 | $as_echo "no" >&6; } | |
278a7a38 AO |
12305 | fi |
12306 | ||
5213506e | 12307 | |
278a7a38 AO |
12308 | done |
12309 | fi | |
12310 | ||
12311 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12312 | for ncn_progname in ranlib; do |
5213506e RW |
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12314 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12315 | if test -x $with_build_time_tools/${ncn_progname}; then |
12316 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12318 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12319 | break |
12320 | else | |
5213506e RW |
12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12322 | $as_echo "no" >&6; } | |
e8b05380 PB |
12323 | fi |
12324 | done | |
12325 | fi | |
12326 | ||
12327 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12328 | for ncn_progname in ranlib; do | |
12329 | if test -n "$ncn_target_tool_prefix"; then | |
12330 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 12331 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12333 | $as_echo_n "checking for $ac_word... " >&6; } | |
12334 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12335 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12336 | else |
4de997d1 PB |
12337 | if test -n "$RANLIB_FOR_TARGET"; then |
12338 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12339 | else |
1c710c3c DJ |
12340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12341 | for as_dir in $PATH | |
12342 | do | |
12343 | IFS=$as_save_IFS | |
12344 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12345 | for ac_exec_ext in '' $ac_executable_extensions; do |
12346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12347 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12349 | break 2 |
12350 | fi | |
12351 | done | |
5213506e RW |
12352 | done |
12353 | IFS=$as_save_IFS | |
1c710c3c | 12354 | |
ca9f4b81 AO |
12355 | fi |
12356 | fi | |
1c710c3c | 12357 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 12358 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12360 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12361 | else |
5213506e RW |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12363 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12364 | fi |
12365 | ||
5213506e | 12366 | |
e8b05380 PB |
12367 | fi |
12368 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12369 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12370 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12372 | $as_echo_n "checking for $ac_word... " >&6; } | |
12373 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12374 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12375 | else |
2693c0b0 PB |
12376 | if test -n "$RANLIB_FOR_TARGET"; then |
12377 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12378 | else |
1c710c3c DJ |
12379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12380 | for as_dir in $PATH | |
12381 | do | |
12382 | IFS=$as_save_IFS | |
12383 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12384 | for ac_exec_ext in '' $ac_executable_extensions; do |
12385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12386 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12388 | break 2 |
12389 | fi | |
12390 | done | |
5213506e RW |
12391 | done |
12392 | IFS=$as_save_IFS | |
1c710c3c | 12393 | |
ca9f4b81 AO |
12394 | fi |
12395 | fi | |
1c710c3c | 12396 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 12397 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12399 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12400 | else |
5213506e RW |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12402 | $as_echo "no" >&6; } | |
ca9f4b81 | 12403 | fi |
1c710c3c | 12404 | |
5213506e | 12405 | |
e8b05380 PB |
12406 | fi |
12407 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12408 | done | |
12409 | fi | |
1c710c3c | 12410 | |
e8b05380 PB |
12411 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12412 | set dummy ranlib | |
12413 | if test $build = $target ; then | |
12414 | RANLIB_FOR_TARGET="$2" | |
12415 | else | |
12416 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 12417 | fi |
1c00b503 PB |
12418 | else |
12419 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 12420 | fi |
2693c0b0 | 12421 | |
d1f8db0c PB |
12422 | else |
12423 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
12424 | fi |
12425 | ||
e8b05380 PB |
12426 | |
12427 | ||
12428 | ||
e7a82751 RM |
12429 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12430 | if test -n "$with_build_time_tools"; then | |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12432 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12433 | if test -x $with_build_time_tools/readelf; then | |
12434 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12435 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12437 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12438 | else | |
12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12440 | $as_echo "no" >&6; } | |
12441 | fi | |
12442 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12443 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12444 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12445 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12446 | fi | |
12447 | fi | |
12448 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12449 | # Extract the first word of "readelf", so it can be a program name with args. | |
12450 | set dummy readelf; ac_word=$2 | |
12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12452 | $as_echo_n "checking for $ac_word... " >&6; } | |
12453 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12454 | $as_echo_n "(cached) " >&6 | |
12455 | else | |
12456 | case $READELF_FOR_TARGET in | |
12457 | [\\/]* | ?:[\\/]*) | |
12458 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12459 | ;; | |
12460 | *) | |
12461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12462 | for as_dir in $gcc_cv_tool_dirs | |
12463 | do | |
12464 | IFS=$as_save_IFS | |
12465 | test -z "$as_dir" && as_dir=. | |
12466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12468 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12470 | break 2 | |
12471 | fi | |
12472 | done | |
12473 | done | |
12474 | IFS=$as_save_IFS | |
12475 | ||
12476 | ;; | |
12477 | esac | |
12478 | fi | |
12479 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12480 | if test -n "$READELF_FOR_TARGET"; then | |
12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12482 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12483 | else | |
12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12485 | $as_echo "no" >&6; } | |
12486 | fi | |
12487 | ||
12488 | ||
12489 | fi | |
12490 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12491 | ||
12492 | ||
12493 | if test -n "$READELF_FOR_TARGET"; then | |
12494 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12495 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12496 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12497 | fi | |
12498 | ||
12499 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12500 | for ncn_progname in readelf; do | |
12501 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12502 | set dummy ${ncn_progname}; ac_word=$2 | |
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12504 | $as_echo_n "checking for $ac_word... " >&6; } | |
12505 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12506 | $as_echo_n "(cached) " >&6 | |
12507 | else | |
12508 | if test -n "$READELF_FOR_TARGET"; then | |
12509 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12510 | else | |
12511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12512 | for as_dir in $PATH | |
12513 | do | |
12514 | IFS=$as_save_IFS | |
12515 | test -z "$as_dir" && as_dir=. | |
12516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12518 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12520 | break 2 | |
12521 | fi | |
12522 | done | |
12523 | done | |
12524 | IFS=$as_save_IFS | |
12525 | ||
12526 | fi | |
12527 | fi | |
12528 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12529 | if test -n "$READELF_FOR_TARGET"; then | |
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12531 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12532 | else | |
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12534 | $as_echo "no" >&6; } | |
12535 | fi | |
12536 | ||
12537 | ||
12538 | done | |
12539 | fi | |
12540 | ||
12541 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12542 | for ncn_progname in readelf; do | |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12544 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12545 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12546 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12548 | $as_echo "yes" >&6; } | |
12549 | break | |
12550 | else | |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12552 | $as_echo "no" >&6; } | |
12553 | fi | |
12554 | done | |
12555 | fi | |
12556 | ||
12557 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12558 | for ncn_progname in readelf; do | |
12559 | if test -n "$ncn_target_tool_prefix"; then | |
12560 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12561 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12563 | $as_echo_n "checking for $ac_word... " >&6; } | |
12564 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12565 | $as_echo_n "(cached) " >&6 | |
12566 | else | |
12567 | if test -n "$READELF_FOR_TARGET"; then | |
12568 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12569 | else | |
12570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12571 | for as_dir in $PATH | |
12572 | do | |
12573 | IFS=$as_save_IFS | |
12574 | test -z "$as_dir" && as_dir=. | |
12575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12577 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12579 | break 2 | |
12580 | fi | |
12581 | done | |
12582 | done | |
12583 | IFS=$as_save_IFS | |
12584 | ||
12585 | fi | |
12586 | fi | |
12587 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12588 | if test -n "$READELF_FOR_TARGET"; then | |
12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12590 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12591 | else | |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12593 | $as_echo "no" >&6; } | |
12594 | fi | |
12595 | ||
12596 | ||
12597 | fi | |
12598 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12599 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12600 | set dummy ${ncn_progname}; ac_word=$2 | |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12602 | $as_echo_n "checking for $ac_word... " >&6; } | |
12603 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12604 | $as_echo_n "(cached) " >&6 | |
12605 | else | |
12606 | if test -n "$READELF_FOR_TARGET"; then | |
12607 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12608 | else | |
12609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12610 | for as_dir in $PATH | |
12611 | do | |
12612 | IFS=$as_save_IFS | |
12613 | test -z "$as_dir" && as_dir=. | |
12614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12616 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12618 | break 2 | |
12619 | fi | |
12620 | done | |
12621 | done | |
12622 | IFS=$as_save_IFS | |
12623 | ||
12624 | fi | |
12625 | fi | |
12626 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12627 | if test -n "$READELF_FOR_TARGET"; then | |
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12629 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12630 | else | |
12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12632 | $as_echo "no" >&6; } | |
12633 | fi | |
12634 | ||
12635 | ||
12636 | fi | |
12637 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12638 | done | |
12639 | fi | |
12640 | ||
12641 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12642 | set dummy readelf | |
12643 | if test $build = $target ; then | |
12644 | READELF_FOR_TARGET="$2" | |
12645 | else | |
12646 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12647 | fi | |
12648 | else | |
12649 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12650 | fi | |
12651 | ||
12652 | else | |
12653 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12654 | fi | |
12655 | ||
12656 | ||
12657 | ||
12658 | ||
e8b05380 PB |
12659 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12660 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12662 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12663 | if test -x $with_build_time_tools/strip; then |
12664 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12665 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12667 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 12668 | else |
5213506e RW |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12670 | $as_echo "no" >&6; } | |
d1f8db0c | 12671 | fi |
e8b05380 PB |
12672 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12673 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
12674 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12675 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
12676 | fi |
12677 | fi | |
3e19841a | 12678 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12679 | # Extract the first word of "strip", so it can be a program name with args. |
12680 | set dummy strip; ac_word=$2 | |
5213506e RW |
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12682 | $as_echo_n "checking for $ac_word... " >&6; } | |
12683 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12684 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12685 | else |
1c710c3c DJ |
12686 | case $STRIP_FOR_TARGET in |
12687 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12688 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12689 | ;; | |
e8b05380 | 12690 | *) |
1c710c3c DJ |
12691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12692 | for as_dir in $gcc_cv_tool_dirs | |
12693 | do | |
12694 | IFS=$as_save_IFS | |
12695 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12696 | for ac_exec_ext in '' $ac_executable_extensions; do |
12697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12698 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12700 | break 2 |
12701 | fi | |
12702 | done | |
5213506e RW |
12703 | done |
12704 | IFS=$as_save_IFS | |
1c710c3c | 12705 | |
e8b05380 PB |
12706 | ;; |
12707 | esac | |
12708 | fi | |
1c710c3c | 12709 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 12710 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12712 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 12713 | else |
5213506e RW |
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12715 | $as_echo "no" >&6; } | |
e8b05380 PB |
12716 | fi |
12717 | ||
5213506e | 12718 | |
e8b05380 PB |
12719 | fi |
12720 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
12721 | |
12722 | ||
12723 | if test -n "$STRIP_FOR_TARGET"; then | |
12724 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12725 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12726 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12727 | fi | |
12728 | ||
12729 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12730 | for ncn_progname in strip; do | |
12731 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12732 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12734 | $as_echo_n "checking for $ac_word... " >&6; } | |
12735 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12736 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12737 | else |
12738 | if test -n "$STRIP_FOR_TARGET"; then | |
12739 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12740 | else | |
12741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12742 | for as_dir in $PATH | |
12743 | do | |
12744 | IFS=$as_save_IFS | |
12745 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12746 | for ac_exec_ext in '' $ac_executable_extensions; do |
12747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12748 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 12749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12750 | break 2 |
12751 | fi | |
12752 | done | |
5213506e RW |
12753 | done |
12754 | IFS=$as_save_IFS | |
278a7a38 AO |
12755 | |
12756 | fi | |
12757 | fi | |
12758 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12759 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12761 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 12762 | else |
5213506e RW |
12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12764 | $as_echo "no" >&6; } | |
278a7a38 AO |
12765 | fi |
12766 | ||
5213506e | 12767 | |
278a7a38 AO |
12768 | done |
12769 | fi | |
12770 | ||
12771 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12772 | for ncn_progname in strip; do |
5213506e RW |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12774 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12775 | if test -x $with_build_time_tools/${ncn_progname}; then |
12776 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12778 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12779 | break |
12780 | else | |
5213506e RW |
12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12782 | $as_echo "no" >&6; } | |
e8b05380 PB |
12783 | fi |
12784 | done | |
12785 | fi | |
12786 | ||
12787 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12788 | for ncn_progname in strip; do | |
12789 | if test -n "$ncn_target_tool_prefix"; then | |
12790 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12791 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12793 | $as_echo_n "checking for $ac_word... " >&6; } | |
12794 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12795 | $as_echo_n "(cached) " >&6 | |
af71363e AS |
12796 | else |
12797 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
12798 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
12799 | else | |
12800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12801 | for as_dir in $PATH | |
12802 | do | |
12803 | IFS=$as_save_IFS | |
12804 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12805 | for ac_exec_ext in '' $ac_executable_extensions; do |
12806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12807 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12809 | break 2 |
12810 | fi | |
12811 | done | |
5213506e RW |
12812 | done |
12813 | IFS=$as_save_IFS | |
1c710c3c | 12814 | |
040b1c5a GK |
12815 | fi |
12816 | fi | |
1c710c3c | 12817 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 12818 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12820 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 12821 | else |
5213506e RW |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12823 | $as_echo "no" >&6; } | |
040b1c5a GK |
12824 | fi |
12825 | ||
5213506e | 12826 | |
e8b05380 PB |
12827 | fi |
12828 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12829 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12830 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12832 | $as_echo_n "checking for $ac_word... " >&6; } | |
12833 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12834 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
12835 | else |
12836 | if test -n "$STRIP_FOR_TARGET"; then | |
12837 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12838 | else | |
1c710c3c DJ |
12839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12840 | for as_dir in $PATH | |
12841 | do | |
12842 | IFS=$as_save_IFS | |
12843 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12844 | for ac_exec_ext in '' $ac_executable_extensions; do |
12845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12846 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 12847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12848 | break 2 |
12849 | fi | |
12850 | done | |
5213506e RW |
12851 | done |
12852 | IFS=$as_save_IFS | |
1c710c3c | 12853 | |
040b1c5a GK |
12854 | fi |
12855 | fi | |
1c710c3c | 12856 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 12857 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
12858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12859 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 12860 | else |
5213506e RW |
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12862 | $as_echo "no" >&6; } | |
040b1c5a | 12863 | fi |
1c710c3c | 12864 | |
5213506e | 12865 | |
e8b05380 PB |
12866 | fi |
12867 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12868 | done | |
12869 | fi | |
1c710c3c | 12870 | |
040b1c5a GK |
12871 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12872 | set dummy strip | |
12873 | if test $build = $target ; then | |
12874 | STRIP_FOR_TARGET="$2" | |
12875 | else | |
12876 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12877 | fi | |
1c00b503 PB |
12878 | else |
12879 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
12880 | fi |
12881 | ||
d1f8db0c PB |
12882 | else |
12883 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
12884 | fi |
12885 | ||
12886 | ||
12887 | ||
12888 | ||
12889 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12890 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12892 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12893 | if test -x $with_build_time_tools/windres; then |
12894 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12895 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12897 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 12898 | else |
5213506e RW |
12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12900 | $as_echo "no" >&6; } | |
d1f8db0c | 12901 | fi |
e8b05380 PB |
12902 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12903 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
12904 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12905 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
12906 | fi |
12907 | fi | |
3e19841a | 12908 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12909 | # Extract the first word of "windres", so it can be a program name with args. |
12910 | set dummy windres; ac_word=$2 | |
5213506e RW |
12911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12912 | $as_echo_n "checking for $ac_word... " >&6; } | |
12913 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12914 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12915 | else |
1c710c3c DJ |
12916 | case $WINDRES_FOR_TARGET in |
12917 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12918 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12919 | ;; | |
e8b05380 | 12920 | *) |
1c710c3c DJ |
12921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12922 | for as_dir in $gcc_cv_tool_dirs | |
12923 | do | |
12924 | IFS=$as_save_IFS | |
12925 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12926 | for ac_exec_ext in '' $ac_executable_extensions; do |
12927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12928 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12930 | break 2 |
12931 | fi | |
12932 | done | |
5213506e RW |
12933 | done |
12934 | IFS=$as_save_IFS | |
1c710c3c | 12935 | |
e8b05380 PB |
12936 | ;; |
12937 | esac | |
12938 | fi | |
1c710c3c | 12939 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 12940 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12942 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 12943 | else |
5213506e RW |
12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12945 | $as_echo "no" >&6; } | |
e8b05380 PB |
12946 | fi |
12947 | ||
5213506e | 12948 | |
e8b05380 PB |
12949 | fi |
12950 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
12951 | |
12952 | ||
12953 | if test -n "$WINDRES_FOR_TARGET"; then | |
12954 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12955 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12956 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12957 | fi | |
12958 | ||
12959 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12960 | for ncn_progname in windres; do | |
12961 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12962 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12964 | $as_echo_n "checking for $ac_word... " >&6; } | |
12965 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12966 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12967 | else |
12968 | if test -n "$WINDRES_FOR_TARGET"; then | |
12969 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12970 | else | |
12971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12972 | for as_dir in $PATH | |
12973 | do | |
12974 | IFS=$as_save_IFS | |
12975 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12976 | for ac_exec_ext in '' $ac_executable_extensions; do |
12977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12978 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 12979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12980 | break 2 |
12981 | fi | |
12982 | done | |
5213506e RW |
12983 | done |
12984 | IFS=$as_save_IFS | |
278a7a38 AO |
12985 | |
12986 | fi | |
12987 | fi | |
12988 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12989 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12991 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 12992 | else |
5213506e RW |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12994 | $as_echo "no" >&6; } | |
278a7a38 AO |
12995 | fi |
12996 | ||
5213506e | 12997 | |
278a7a38 AO |
12998 | done |
12999 | fi | |
13000 | ||
13001 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13002 | for ncn_progname in windres; do |
5213506e RW |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13004 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13005 | if test -x $with_build_time_tools/${ncn_progname}; then |
13006 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13008 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13009 | break |
13010 | else | |
5213506e RW |
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13012 | $as_echo "no" >&6; } | |
e8b05380 PB |
13013 | fi |
13014 | done | |
13015 | fi | |
13016 | ||
13017 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13018 | for ncn_progname in windres; do | |
13019 | if test -n "$ncn_target_tool_prefix"; then | |
13020 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13021 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13023 | $as_echo_n "checking for $ac_word... " >&6; } | |
13024 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13025 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13026 | else |
4de997d1 PB |
13027 | if test -n "$WINDRES_FOR_TARGET"; then |
13028 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13029 | else |
1c710c3c DJ |
13030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13031 | for as_dir in $PATH | |
13032 | do | |
13033 | IFS=$as_save_IFS | |
13034 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13035 | for ac_exec_ext in '' $ac_executable_extensions; do |
13036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13037 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13039 | break 2 |
13040 | fi | |
13041 | done | |
5213506e RW |
13042 | done |
13043 | IFS=$as_save_IFS | |
1c710c3c | 13044 | |
ca9f4b81 AO |
13045 | fi |
13046 | fi | |
1c710c3c | 13047 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 13048 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13050 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13051 | else |
5213506e RW |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13053 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13054 | fi |
13055 | ||
5213506e | 13056 | |
e8b05380 PB |
13057 | fi |
13058 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13059 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13060 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13062 | $as_echo_n "checking for $ac_word... " >&6; } | |
13063 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13064 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13065 | else |
2693c0b0 PB |
13066 | if test -n "$WINDRES_FOR_TARGET"; then |
13067 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13068 | else |
1c710c3c DJ |
13069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13070 | for as_dir in $PATH | |
13071 | do | |
13072 | IFS=$as_save_IFS | |
13073 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13074 | for ac_exec_ext in '' $ac_executable_extensions; do |
13075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13076 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13078 | break 2 |
13079 | fi | |
13080 | done | |
5213506e RW |
13081 | done |
13082 | IFS=$as_save_IFS | |
1c710c3c | 13083 | |
ca9f4b81 AO |
13084 | fi |
13085 | fi | |
1c710c3c | 13086 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 13087 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13089 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13090 | else |
5213506e RW |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13092 | $as_echo "no" >&6; } | |
ca9f4b81 | 13093 | fi |
1c710c3c | 13094 | |
5213506e | 13095 | |
e8b05380 PB |
13096 | fi |
13097 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13098 | done | |
13099 | fi | |
1c710c3c | 13100 | |
2693c0b0 PB |
13101 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13102 | set dummy windres | |
13103 | if test $build = $target ; then | |
13104 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 13105 | else |
2693c0b0 | 13106 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13107 | fi |
1c00b503 PB |
13108 | else |
13109 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
13110 | fi |
13111 | ||
d1f8db0c PB |
13112 | else |
13113 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
13114 | fi |
13115 | ||
4977bab6 | 13116 | |
901119ae KT |
13117 | |
13118 | ||
13119 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13120 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13122 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
13123 | if test -x $with_build_time_tools/windmc; then |
13124 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13125 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13127 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13128 | else |
5213506e RW |
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13130 | $as_echo "no" >&6; } | |
901119ae KT |
13131 | fi |
13132 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13133 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
13134 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13135 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
13136 | fi |
13137 | fi | |
13138 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13139 | # Extract the first word of "windmc", so it can be a program name with args. | |
13140 | set dummy windmc; ac_word=$2 | |
5213506e RW |
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13142 | $as_echo_n "checking for $ac_word... " >&6; } | |
13143 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13144 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13145 | else |
13146 | case $WINDMC_FOR_TARGET in | |
13147 | [\\/]* | ?:[\\/]*) | |
13148 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13149 | ;; | |
13150 | *) | |
13151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13152 | for as_dir in $gcc_cv_tool_dirs | |
13153 | do | |
13154 | IFS=$as_save_IFS | |
13155 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13156 | for ac_exec_ext in '' $ac_executable_extensions; do |
13157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13158 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13160 | break 2 |
13161 | fi | |
13162 | done | |
5213506e RW |
13163 | done |
13164 | IFS=$as_save_IFS | |
901119ae KT |
13165 | |
13166 | ;; | |
13167 | esac | |
13168 | fi | |
13169 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 13170 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13172 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13173 | else |
5213506e RW |
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13175 | $as_echo "no" >&6; } | |
901119ae KT |
13176 | fi |
13177 | ||
5213506e | 13178 | |
901119ae KT |
13179 | fi |
13180 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13181 | ||
13182 | ||
13183 | if test -n "$WINDMC_FOR_TARGET"; then | |
13184 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13185 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13186 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13187 | fi | |
13188 | ||
13189 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13190 | for ncn_progname in windmc; do | |
13191 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13192 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13194 | $as_echo_n "checking for $ac_word... " >&6; } | |
13195 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13196 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13197 | else |
13198 | if test -n "$WINDMC_FOR_TARGET"; then | |
13199 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13200 | else | |
13201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13202 | for as_dir in $PATH | |
13203 | do | |
13204 | IFS=$as_save_IFS | |
13205 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13206 | for ac_exec_ext in '' $ac_executable_extensions; do |
13207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13208 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13210 | break 2 |
13211 | fi | |
13212 | done | |
5213506e RW |
13213 | done |
13214 | IFS=$as_save_IFS | |
901119ae KT |
13215 | |
13216 | fi | |
13217 | fi | |
13218 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13219 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13221 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13222 | else |
5213506e RW |
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13224 | $as_echo "no" >&6; } | |
901119ae KT |
13225 | fi |
13226 | ||
5213506e | 13227 | |
901119ae KT |
13228 | done |
13229 | fi | |
13230 | ||
13231 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13232 | for ncn_progname in windmc; do | |
5213506e RW |
13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13234 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
13235 | if test -x $with_build_time_tools/${ncn_progname}; then |
13236 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13238 | $as_echo "yes" >&6; } | |
901119ae KT |
13239 | break |
13240 | else | |
5213506e RW |
13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13242 | $as_echo "no" >&6; } | |
901119ae KT |
13243 | fi |
13244 | done | |
13245 | fi | |
13246 | ||
13247 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13248 | for ncn_progname in windmc; do | |
13249 | if test -n "$ncn_target_tool_prefix"; then | |
13250 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13251 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13253 | $as_echo_n "checking for $ac_word... " >&6; } | |
13254 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13255 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13256 | else |
13257 | if test -n "$WINDMC_FOR_TARGET"; then | |
13258 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13259 | else | |
13260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13261 | for as_dir in $PATH | |
13262 | do | |
13263 | IFS=$as_save_IFS | |
13264 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13265 | for ac_exec_ext in '' $ac_executable_extensions; do |
13266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13267 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13269 | break 2 |
13270 | fi | |
13271 | done | |
5213506e RW |
13272 | done |
13273 | IFS=$as_save_IFS | |
901119ae KT |
13274 | |
13275 | fi | |
13276 | fi | |
13277 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13278 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13280 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13281 | else |
5213506e RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13283 | $as_echo "no" >&6; } | |
901119ae KT |
13284 | fi |
13285 | ||
5213506e | 13286 | |
901119ae KT |
13287 | fi |
13288 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13290 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13292 | $as_echo_n "checking for $ac_word... " >&6; } | |
13293 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13294 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13295 | else |
13296 | if test -n "$WINDMC_FOR_TARGET"; then | |
13297 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13298 | else | |
13299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13300 | for as_dir in $PATH | |
13301 | do | |
13302 | IFS=$as_save_IFS | |
13303 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13304 | for ac_exec_ext in '' $ac_executable_extensions; do |
13305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13306 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13308 | break 2 |
13309 | fi | |
13310 | done | |
5213506e RW |
13311 | done |
13312 | IFS=$as_save_IFS | |
901119ae KT |
13313 | |
13314 | fi | |
13315 | fi | |
13316 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13317 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13319 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13320 | else |
5213506e RW |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13322 | $as_echo "no" >&6; } | |
901119ae KT |
13323 | fi |
13324 | ||
5213506e | 13325 | |
901119ae KT |
13326 | fi |
13327 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13328 | done | |
13329 | fi | |
13330 | ||
13331 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13332 | set dummy windmc | |
13333 | if test $build = $target ; then | |
13334 | WINDMC_FOR_TARGET="$2" | |
13335 | else | |
13336 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13337 | fi | |
1c00b503 PB |
13338 | else |
13339 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
13340 | fi |
13341 | ||
13342 | else | |
13343 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13344 | fi | |
13345 | ||
13346 | ||
2abefe3d PB |
13347 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13348 | ||
5213506e RW |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13350 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 13351 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13352 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13353 | # We already found the complete path | |
172e41aa | 13354 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13356 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13357 | else |
13358 | # Canadian cross, just use what we found | |
5213506e RW |
13359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13360 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13361 | fi |
2abefe3d PB |
13362 | else |
13363 | ok=yes | |
13364 | case " ${configdirs} " in | |
13365 | *" binutils "*) ;; | |
13366 | *) ok=no ;; | |
13367 | esac | |
1c710c3c | 13368 | |
2abefe3d PB |
13369 | if test $ok = yes; then |
13370 | # An in-tree tool is available and we can use it | |
13371 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13373 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13374 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13375 | # We already found the complete path | |
172e41aa | 13376 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13378 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13379 | elif test "x$target" = "x$host"; then |
13380 | # We can use an host tool | |
13381 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13383 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13384 | else |
13385 | # We need a cross tool | |
5213506e RW |
13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13387 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13388 | fi |
13389 | fi | |
0b0dc272 | 13390 | |
5213506e RW |
13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13392 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 13393 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13394 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13395 | # We already found the complete path | |
172e41aa | 13396 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13398 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13399 | else |
13400 | # Canadian cross, just use what we found | |
5213506e RW |
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13402 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13403 | fi |
2abefe3d PB |
13404 | else |
13405 | ok=yes | |
13406 | case " ${configdirs} " in | |
13407 | *" gas "*) ;; | |
13408 | *) ok=no ;; | |
13409 | esac | |
1c710c3c | 13410 | |
2abefe3d PB |
13411 | if test $ok = yes; then |
13412 | # An in-tree tool is available and we can use it | |
13413 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13415 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13416 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13417 | # We already found the complete path | |
172e41aa | 13418 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13420 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13421 | elif test "x$target" = "x$host"; then |
13422 | # We can use an host tool | |
13423 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13425 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13426 | else |
13427 | # We need a cross tool | |
5213506e RW |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13429 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13430 | fi |
13431 | fi | |
0b0dc272 | 13432 | |
5213506e RW |
13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13434 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 13435 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13436 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13437 | # We already found the complete path | |
172e41aa | 13438 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13440 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13441 | else |
13442 | # Canadian cross, just use what we found | |
5213506e RW |
13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13444 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13445 | fi |
2abefe3d PB |
13446 | else |
13447 | ok=yes | |
13448 | case " ${configdirs} " in | |
13449 | *" gcc "*) ;; | |
13450 | *) ok=no ;; | |
13451 | esac | |
1c710c3c | 13452 | |
2abefe3d PB |
13453 | if test $ok = yes; then |
13454 | # An in-tree tool is available and we can use it | |
13455 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13457 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13458 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13459 | # We already found the complete path | |
172e41aa | 13460 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13462 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13463 | elif test "x$target" = "x$host"; then |
13464 | # We can use an host tool | |
13465 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13467 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13468 | else |
13469 | # We need a cross tool | |
5213506e RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13471 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13472 | fi |
13473 | fi | |
0b0dc272 | 13474 | |
5213506e RW |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13476 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 13477 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13478 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13479 | # We already found the complete path | |
172e41aa | 13480 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13482 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13483 | else |
13484 | # Canadian cross, just use what we found | |
5213506e RW |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13486 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13487 | fi |
2abefe3d PB |
13488 | else |
13489 | ok=yes | |
13490 | case " ${configdirs} " in | |
13491 | *" gcc "*) ;; | |
13492 | *) ok=no ;; | |
13493 | esac | |
13494 | case ,${enable_languages}, in | |
13495 | *,c++,*) ;; | |
13496 | *) ok=no ;; | |
13497 | esac | |
13498 | if test $ok = yes; then | |
13499 | # An in-tree tool is available and we can use it | |
9aff220f | 13500 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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' |
5213506e RW |
13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13502 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13503 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13504 | # We already found the complete path | |
172e41aa | 13505 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13507 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13508 | elif test "x$target" = "x$host"; then |
13509 | # We can use an host tool | |
13510 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13512 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13513 | else |
13514 | # We need a cross tool | |
5213506e RW |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13516 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13517 | fi |
13518 | fi | |
0b0dc272 | 13519 | |
5213506e RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13521 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 13522 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13523 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13524 | # We already found the complete path | |
172e41aa | 13525 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13527 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13528 | else |
13529 | # Canadian cross, just use what we found | |
5213506e RW |
13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13531 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13532 | fi |
2abefe3d PB |
13533 | else |
13534 | ok=yes | |
13535 | case " ${configdirs} " in | |
13536 | *" gcc "*) ;; | |
13537 | *) ok=no ;; | |
13538 | esac | |
13539 | case ,${enable_languages}, in | |
13540 | *,c++,*) ;; | |
13541 | *) ok=no ;; | |
13542 | esac | |
13543 | if test $ok = yes; then | |
13544 | # An in-tree tool is available and we can use it | |
13545 | 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' | |
5213506e RW |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13547 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13548 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13549 | # We already found the complete path | |
172e41aa | 13550 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13552 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13553 | elif test "x$target" = "x$host"; then |
13554 | # We can use an host tool | |
13555 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13557 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13558 | else |
13559 | # We need a cross tool | |
5213506e RW |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13561 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13562 | fi |
13563 | fi | |
0b0dc272 | 13564 | |
5213506e RW |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13566 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 13567 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13568 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13569 | # We already found the complete path | |
172e41aa | 13570 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13572 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13573 | else |
13574 | # Canadian cross, just use what we found | |
5213506e RW |
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13576 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13577 | fi |
2abefe3d PB |
13578 | else |
13579 | ok=yes | |
13580 | case " ${configdirs} " in | |
13581 | *" binutils "*) ;; | |
13582 | *) ok=no ;; | |
13583 | esac | |
1c710c3c | 13584 | |
2abefe3d PB |
13585 | if test $ok = yes; then |
13586 | # An in-tree tool is available and we can use it | |
13587 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13589 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13590 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13591 | # We already found the complete path | |
172e41aa | 13592 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13594 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13595 | elif test "x$target" = "x$host"; then |
13596 | # We can use an host tool | |
13597 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13599 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13600 | else |
13601 | # We need a cross tool | |
5213506e RW |
13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13603 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13604 | fi |
13605 | fi | |
0b0dc272 | 13606 | |
5213506e RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13608 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 13609 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13610 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13611 | # We already found the complete path | |
172e41aa | 13612 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13614 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13615 | else |
13616 | # Canadian cross, just use what we found | |
5213506e RW |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13618 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13619 | fi |
2abefe3d PB |
13620 | else |
13621 | ok=yes | |
13622 | case " ${configdirs} " in | |
13623 | *" gcc "*) ;; | |
13624 | *) ok=no ;; | |
13625 | esac | |
1c710c3c | 13626 | |
2abefe3d PB |
13627 | if test $ok = yes; then |
13628 | # An in-tree tool is available and we can use it | |
13629 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13631 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13632 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13633 | # We already found the complete path | |
172e41aa | 13634 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13636 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13637 | elif test "x$target" = "x$host"; then |
13638 | # We can use an host tool | |
13639 | GCC_FOR_TARGET='$()' | |
5213506e RW |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13641 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13642 | else |
13643 | # We need a cross tool | |
5213506e RW |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13645 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13646 | fi |
13647 | fi | |
0b0dc272 | 13648 | |
5213506e RW |
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13650 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
2abefe3d | 13651 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13652 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13653 | # We already found the complete path | |
172e41aa | 13654 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13656 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13657 | else |
13658 | # Canadian cross, just use what we found | |
5213506e RW |
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13660 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13661 | fi |
2abefe3d PB |
13662 | else |
13663 | ok=yes | |
13664 | case " ${configdirs} " in | |
13665 | *" gcc "*) ;; | |
13666 | *) ok=no ;; | |
13667 | esac | |
13668 | case ,${enable_languages}, in | |
13669 | *,java,*) ;; | |
13670 | *) ok=no ;; | |
13671 | esac | |
13672 | if test $ok = yes; then | |
13673 | # An in-tree tool is available and we can use it | |
13674 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13676 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13677 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13678 | # We already found the complete path | |
172e41aa | 13679 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13681 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13682 | elif test "x$target" = "x$host"; then |
13683 | # We can use an host tool | |
13684 | GCJ_FOR_TARGET='$(GCJ)' | |
5213506e RW |
13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13686 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13687 | else |
13688 | # We need a cross tool | |
5213506e RW |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13690 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13691 | fi |
13692 | fi | |
0b0dc272 | 13693 | |
5213506e RW |
13694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13695 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 13696 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13697 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13698 | # We already found the complete path | |
172e41aa | 13699 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13701 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13702 | else |
13703 | # Canadian cross, just use what we found | |
5213506e RW |
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13705 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13706 | fi |
2abefe3d PB |
13707 | else |
13708 | ok=yes | |
13709 | case " ${configdirs} " in | |
13710 | *" gcc "*) ;; | |
13711 | *) ok=no ;; | |
13712 | esac | |
13713 | case ,${enable_languages}, in | |
13714 | *,fortran,*) ;; | |
13715 | *) ok=no ;; | |
13716 | esac | |
13717 | if test $ok = yes; then | |
13718 | # An in-tree tool is available and we can use it | |
13719 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13721 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13722 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13723 | # We already found the complete path | |
172e41aa | 13724 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13726 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13727 | elif test "x$target" = "x$host"; then |
13728 | # We can use an host tool | |
13729 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13731 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13732 | else |
13733 | # We need a cross tool | |
5213506e RW |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13735 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13736 | fi |
13737 | fi | |
0b0dc272 | 13738 | |
632e2a07 ILT |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13740 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13741 | if test "x${build}" != "x${host}" ; then | |
13742 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13743 | # We already found the complete path | |
13744 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13746 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13747 | else | |
13748 | # Canadian cross, just use what we found | |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13750 | $as_echo "pre-installed" >&6; } | |
13751 | fi | |
13752 | else | |
13753 | ok=yes | |
13754 | case " ${configdirs} " in | |
13755 | *" gcc "*) ;; | |
13756 | *) ok=no ;; | |
13757 | esac | |
13758 | case ,${enable_languages}, in | |
13759 | *,go,*) ;; | |
13760 | *) ok=no ;; | |
13761 | esac | |
13762 | if test $ok = yes; then | |
13763 | # An in-tree tool is available and we can use it | |
13764 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13766 | $as_echo "just compiled" >&6; } | |
13767 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13768 | # We already found the complete path | |
13769 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13771 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13772 | elif test "x$target" = "x$host"; then | |
13773 | # We can use an host tool | |
13774 | GOC_FOR_TARGET='$(GOC)' | |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13776 | $as_echo "host tool" >&6; } | |
13777 | else | |
13778 | # We need a cross tool | |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13780 | $as_echo "pre-installed" >&6; } | |
13781 | fi | |
13782 | fi | |
13783 | ||
5213506e RW |
13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13785 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 13786 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13787 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13788 | # We already found the complete path | |
172e41aa | 13789 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13791 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13792 | else |
13793 | # Canadian cross, just use what we found | |
5213506e RW |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13795 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13796 | fi |
2abefe3d PB |
13797 | else |
13798 | ok=yes | |
13799 | case " ${configdirs} " in | |
13800 | *" ld "*) ;; | |
13801 | *) ok=no ;; | |
13802 | esac | |
1c710c3c | 13803 | |
2abefe3d PB |
13804 | if test $ok = yes; then |
13805 | # An in-tree tool is available and we can use it | |
13806 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13808 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13809 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13810 | # We already found the complete path | |
172e41aa | 13811 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13813 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13814 | elif test "x$target" = "x$host"; then |
13815 | # We can use an host tool | |
13816 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
13817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13818 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13819 | else |
13820 | # We need a cross tool | |
5213506e RW |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13822 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13823 | fi |
13824 | fi | |
0b0dc272 | 13825 | |
5213506e RW |
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13827 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 13828 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13829 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13830 | # We already found the complete path | |
172e41aa | 13831 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13833 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13834 | else |
13835 | # Canadian cross, just use what we found | |
5213506e RW |
13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13837 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13838 | fi |
2abefe3d | 13839 | else |
e8b05380 PB |
13840 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13841 | # We already found the complete path | |
172e41aa | 13842 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13844 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 13845 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
13846 | # We can use an host tool |
13847 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13849 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13850 | else |
13851 | # We need a cross tool | |
5213506e RW |
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13853 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13854 | fi |
13855 | fi | |
0b0dc272 | 13856 | |
5213506e RW |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13858 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 13859 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13860 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13861 | # We already found the complete path | |
172e41aa | 13862 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13864 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13865 | else |
13866 | # Canadian cross, just use what we found | |
5213506e RW |
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13868 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13869 | fi |
2abefe3d PB |
13870 | else |
13871 | ok=yes | |
13872 | case " ${configdirs} " in | |
13873 | *" binutils "*) ;; | |
13874 | *) ok=no ;; | |
13875 | esac | |
1c710c3c | 13876 | |
2abefe3d PB |
13877 | if test $ok = yes; then |
13878 | # An in-tree tool is available and we can use it | |
13879 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13881 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13882 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13883 | # We already found the complete path | |
172e41aa | 13884 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13886 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13887 | elif test "x$target" = "x$host"; then |
13888 | # We can use an host tool | |
13889 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13891 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13892 | else |
13893 | # We need a cross tool | |
5213506e RW |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13895 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13896 | fi |
13897 | fi | |
0b0dc272 | 13898 | |
5213506e RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13900 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 13901 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13902 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13903 | # We already found the complete path | |
172e41aa | 13904 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13906 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13907 | else |
13908 | # Canadian cross, just use what we found | |
5213506e RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13910 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13911 | fi |
2abefe3d PB |
13912 | else |
13913 | ok=yes | |
13914 | case " ${configdirs} " in | |
13915 | *" binutils "*) ;; | |
13916 | *) ok=no ;; | |
13917 | esac | |
1c710c3c | 13918 | |
2abefe3d PB |
13919 | if test $ok = yes; then |
13920 | # An in-tree tool is available and we can use it | |
13921 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13923 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13924 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13925 | # We already found the complete path | |
172e41aa | 13926 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
13927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13928 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13929 | elif test "x$target" = "x$host"; then |
13930 | # We can use an host tool | |
13931 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13933 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13934 | else |
13935 | # We need a cross tool | |
5213506e RW |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13937 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13938 | fi |
13939 | fi | |
0b0dc272 | 13940 | |
5213506e RW |
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13942 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 13943 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13944 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13945 | # We already found the complete path | |
172e41aa | 13946 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13948 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13949 | else |
13950 | # Canadian cross, just use what we found | |
5213506e RW |
13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13952 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13953 | fi |
2abefe3d PB |
13954 | else |
13955 | ok=yes | |
13956 | case " ${configdirs} " in | |
13957 | *" binutils "*) ;; | |
13958 | *) ok=no ;; | |
13959 | esac | |
1c710c3c | 13960 | |
2abefe3d PB |
13961 | if test $ok = yes; then |
13962 | # An in-tree tool is available and we can use it | |
13963 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13965 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13966 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13967 | # We already found the complete path | |
172e41aa | 13968 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13970 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13971 | elif test "x$target" = "x$host"; then |
13972 | # We can use an host tool | |
13973 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13975 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13976 | else |
13977 | # We need a cross tool | |
5213506e RW |
13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13979 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13980 | fi |
13981 | fi | |
0b0dc272 | 13982 | |
e7a82751 RM |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
13984 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
13985 | if test "x${build}" != "x${host}" ; then | |
13986 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
13987 | # We already found the complete path | |
13988 | ac_dir=`dirname $READELF_FOR_TARGET` | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13990 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13991 | else | |
13992 | # Canadian cross, just use what we found | |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13994 | $as_echo "pre-installed" >&6; } | |
13995 | fi | |
13996 | else | |
13997 | ok=yes | |
13998 | case " ${configdirs} " in | |
13999 | *" binutils "*) ;; | |
14000 | *) ok=no ;; | |
14001 | esac | |
14002 | ||
14003 | if test $ok = yes; then | |
14004 | # An in-tree tool is available and we can use it | |
14005 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14007 | $as_echo "just compiled" >&6; } | |
14008 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14009 | # We already found the complete path | |
14010 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14012 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14013 | elif test "x$target" = "x$host"; then | |
14014 | # We can use an host tool | |
14015 | READELF_FOR_TARGET='$(READELF)' | |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14017 | $as_echo "host tool" >&6; } | |
14018 | else | |
14019 | # We need a cross tool | |
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14021 | $as_echo "pre-installed" >&6; } | |
14022 | fi | |
14023 | fi | |
14024 | ||
5213506e RW |
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14026 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 14027 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14028 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14029 | # We already found the complete path | |
172e41aa | 14030 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14032 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14033 | else |
14034 | # Canadian cross, just use what we found | |
5213506e RW |
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14036 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14037 | fi |
2abefe3d PB |
14038 | else |
14039 | ok=yes | |
14040 | case " ${configdirs} " in | |
14041 | *" binutils "*) ;; | |
14042 | *) ok=no ;; | |
14043 | esac | |
1c710c3c | 14044 | |
2abefe3d PB |
14045 | if test $ok = yes; then |
14046 | # An in-tree tool is available and we can use it | |
455c8f48 | 14047 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14049 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14050 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14051 | # We already found the complete path | |
172e41aa | 14052 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14054 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14055 | elif test "x$target" = "x$host"; then |
14056 | # We can use an host tool | |
14057 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14059 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14060 | else |
14061 | # We need a cross tool | |
5213506e RW |
14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14063 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14064 | fi |
14065 | fi | |
0b0dc272 | 14066 | |
5213506e RW |
14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14068 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 14069 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14070 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14071 | # We already found the complete path | |
172e41aa | 14072 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14074 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14075 | else |
14076 | # Canadian cross, just use what we found | |
5213506e RW |
14077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14078 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14079 | fi |
2abefe3d PB |
14080 | else |
14081 | ok=yes | |
14082 | case " ${configdirs} " in | |
14083 | *" binutils "*) ;; | |
14084 | *) ok=no ;; | |
14085 | esac | |
1c710c3c | 14086 | |
2abefe3d PB |
14087 | if test $ok = yes; then |
14088 | # An in-tree tool is available and we can use it | |
14089 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14091 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14092 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14093 | # We already found the complete path | |
172e41aa | 14094 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14096 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14097 | elif test "x$target" = "x$host"; then |
14098 | # We can use an host tool | |
14099 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14101 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14102 | else |
14103 | # We need a cross tool | |
5213506e RW |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14105 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 14106 | fi |
671aa708 | 14107 | fi |
be912515 | 14108 | |
5213506e RW |
14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14110 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
14111 | if test "x${build}" != "x${host}" ; then |
14112 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14113 | # We already found the complete path | |
14114 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14116 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14117 | else |
14118 | # Canadian cross, just use what we found | |
5213506e RW |
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14120 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14121 | fi |
14122 | else | |
14123 | ok=yes | |
14124 | case " ${configdirs} " in | |
14125 | *" binutils "*) ;; | |
14126 | *) ok=no ;; | |
14127 | esac | |
14128 | ||
14129 | if test $ok = yes; then | |
14130 | # An in-tree tool is available and we can use it | |
14131 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14133 | $as_echo "just compiled" >&6; } | |
901119ae KT |
14134 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14135 | # We already found the complete path | |
14136 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14138 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14139 | elif test "x$target" = "x$host"; then |
14140 | # We can use an host tool | |
14141 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14143 | $as_echo "host tool" >&6; } | |
901119ae KT |
14144 | else |
14145 | # We need a cross tool | |
5213506e RW |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14147 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14148 | fi |
14149 | fi | |
14150 | ||
be912515 NN |
14151 | |
14152 | ||
2abefe3d | 14153 | |
0b0dc272 | 14154 | |
671aa708 NN |
14155 | # Certain tools may need extra flags. |
14156 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14157 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14158 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14159 | ||
2abefe3d PB |
14160 | # When building target libraries, except in a Canadian cross, we use |
14161 | # the same toolchain as the compiler we just built. | |
14162 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14163 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14164 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14165 | if test $host = $build; then | |
14166 | case " $configdirs " in | |
14167 | *" gcc "*) | |
14168 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14169 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14170 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14171 | ;; | |
14172 | esac | |
14173 | fi | |
14174 | ||
14175 | ||
14176 | ||
14177 | ||
14178 | ||
5213506e RW |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14180 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14181 | # Check whether --enable-maintainer-mode was given. | |
14182 | if test "${enable_maintainer_mode+set}" = set; then : | |
14183 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
14184 | else |
14185 | USE_MAINTAINER_MODE=no | |
5213506e RW |
14186 | fi |
14187 | ||
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14189 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
14190 | |
14191 | ||
14192 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14193 | MAINTAINER_MODE_TRUE= | |
14194 | MAINTAINER_MODE_FALSE='#' | |
14195 | else | |
14196 | MAINTAINER_MODE_TRUE='#' | |
14197 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 14198 | fi |
ee03dc5e AO |
14199 | MAINT=$MAINTAINER_MODE_TRUE |
14200 | ||
2805b53a NN |
14201 | # --------------------- |
14202 | # GCC bootstrap support | |
14203 | # --------------------- | |
14204 | ||
14205 | # Stage specific cflags for build. | |
14206 | stage1_cflags="-g" | |
14207 | case $build in | |
14208 | vax-*-*) | |
14209 | case ${GCC} in | |
14210 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14211 | *) stage1_cflags="-g -J" ;; | |
14212 | esac ;; | |
2805b53a NN |
14213 | esac |
14214 | ||
0b50988a | 14215 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
00020c16 | 14216 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
0b50988a EB |
14217 | saved_CFLAGS="$CFLAGS" |
14218 | ||
14219 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
14220 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
5213506e RW |
14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
14222 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
14223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
14224 | /* end confdefs.h. */ |
14225 | ||
9cc1244e JJ |
14226 | #if (__GNUC__ < 3) \ |
14227 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
14228 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
14229 | #error http://gcc.gnu.org/PR29382 | |
14230 | #endif | |
14231 | ||
1c710c3c DJ |
14232 | int |
14233 | main () | |
14234 | { | |
14235 | ||
14236 | ; | |
14237 | return 0; | |
14238 | } | |
14239 | _ACEOF | |
5213506e RW |
14240 | if ac_fn_c_try_compile "$LINENO"; then : |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14242 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
1c710c3c | 14243 | else |
5213506e RW |
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14245 | $as_echo "no" >&6; } | |
1c710c3c | 14246 | fi |
5213506e | 14247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0b50988a EB |
14248 | |
14249 | CFLAGS="$saved_CFLAGS" | |
14250 | fi | |
14251 | ||
14252 | ||
2805b53a | 14253 | |
8efea775 | 14254 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
14255 | # Check whether --enable-stage1-checking was given. |
14256 | if test "${enable_stage1_checking+set}" = set; then : | |
14257 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 14258 | else |
e643dc23 | 14259 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
7e98624c | 14260 | stage1_checking=--enable-checking=yes,types |
8efea775 | 14261 | else |
e643dc23 | 14262 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 14263 | fi |
5213506e | 14264 | fi |
8efea775 PB |
14265 | |
14266 | ||
2aeb72e9 | 14267 | |
5213506e RW |
14268 | # Enable -Werror in bootstrap stage2 and later. |
14269 | # Check whether --enable-werror was given. | |
14270 | if test "${enable_werror+set}" = set; then : | |
14271 | enableval=$enable_werror; | |
2805b53a | 14272 | else |
416cfb5e | 14273 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 14274 | enable_werror=yes |
88fceb68 PB |
14275 | else |
14276 | enable_werror=no | |
14277 | fi | |
5213506e RW |
14278 | fi |
14279 | ||
09a9c095 NN |
14280 | case ${enable_werror} in |
14281 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14282 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
14283 | esac |
14284 | ||
14285 | ||
78767fd9 ILT |
14286 | # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass |
14287 | # --enable-build-with-cxx after stage1. | |
14288 | if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
14289 | POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx | |
14290 | else | |
14291 | POSTSTAGE1_CONFIGURE_FLAGS= | |
14292 | fi | |
14293 | ||
14294 | ||
f2689b09 SE |
14295 | # Specify what files to not compare during bootstrap. |
14296 | ||
14297 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14298 | case "$target" in | |
14299 | hppa*64*-*-hpux*) ;; | |
14300 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14301 | esac | |
14302 | ||
14303 | ||
5213506e RW |
14304 | ac_config_files="$ac_config_files Makefile" |
14305 | ||
1c710c3c | 14306 | cat >confcache <<\_ACEOF |
671aa708 NN |
14307 | # This file is a shell script that caches the results of configure |
14308 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
14309 | # scripts and configure runs, see configure's option --config-cache. |
14310 | # It is not useful on other systems. If it contains results you don't | |
14311 | # want to keep, you may remove or edit it. | |
671aa708 | 14312 | # |
1c710c3c DJ |
14313 | # config.status only pays attention to the cache file if you give it |
14314 | # the --recheck option to rerun configure. | |
671aa708 | 14315 | # |
1c710c3c DJ |
14316 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14317 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14318 | # following values. | |
14319 | ||
14320 | _ACEOF | |
14321 | ||
671aa708 NN |
14322 | # The following way of writing the cache mishandles newlines in values, |
14323 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 14324 | # So, we kill variables containing newlines. |
671aa708 NN |
14325 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14326 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
14327 | ( |
14328 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14329 | eval ac_val=\$$ac_var | |
14330 | case $ac_val in #( | |
14331 | *${as_nl}*) | |
14332 | case $ac_var in #( | |
14333 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14334 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14335 | esac | |
14336 | case $ac_var in #( | |
14337 | _ | IFS | as_nl) ;; #( | |
14338 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14339 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14340 | esac ;; | |
14341 | esac | |
14342 | done | |
14343 | ||
1c710c3c | 14344 | (set) 2>&1 | |
5213506e RW |
14345 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14346 | *${as_nl}ac_space=\ *) | |
14347 | # `set' does not quote correctly, so add quotes: double-quote | |
14348 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
14349 | sed -n \ |
14350 | "s/'/'\\\\''/g; | |
14351 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 14352 | ;; #( |
1c710c3c DJ |
14353 | *) |
14354 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 14355 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 14356 | ;; |
5213506e RW |
14357 | esac | |
14358 | sort | |
14359 | ) | | |
1c710c3c | 14360 | sed ' |
5213506e | 14361 | /^ac_cv_env_/b end |
1c710c3c | 14362 | t clear |
5213506e | 14363 | :clear |
1c710c3c DJ |
14364 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14365 | t end | |
5213506e RW |
14366 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14367 | :end' >>confcache | |
14368 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14369 | if test -w "$cache_file"; then | |
14370 | test "x$cache_file" != "x/dev/null" && | |
14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14372 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 14373 | cat confcache >$cache_file |
671aa708 | 14374 | else |
5213506e RW |
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14376 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 14377 | fi |
4977bab6 | 14378 | fi |
671aa708 | 14379 | rm -f confcache |
79c06341 | 14380 | |
671aa708 NN |
14381 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14382 | # Let make expand exec_prefix. | |
14383 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 14384 | |
671aa708 NN |
14385 | # Transform confdefs.h into DEFS. |
14386 | # Protect against shell expansion while executing Makefile rules. | |
14387 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
14388 | # |
14389 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 14390 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 14391 | # look for a macro that doesn't take arguments. |
5213506e RW |
14392 | ac_script=' |
14393 | :mline | |
14394 | /\\$/{ | |
14395 | N | |
14396 | s,\\\n,, | |
14397 | b mline | |
14398 | } | |
1c710c3c | 14399 | t clear |
5213506e RW |
14400 | :clear |
14401 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 14402 | t quote |
5213506e | 14403 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 14404 | t quote |
5213506e RW |
14405 | b any |
14406 | :quote | |
14407 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14408 | s/\[/\\&/g | |
14409 | s/\]/\\&/g | |
14410 | s/\$/$$/g | |
14411 | H | |
14412 | :any | |
14413 | ${ | |
14414 | g | |
14415 | s/^\n// | |
14416 | s/\n/ /g | |
14417 | p | |
14418 | } | |
14419 | ' | |
14420 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
14421 | |
14422 | ||
14423 | ac_libobjs= | |
14424 | ac_ltlibobjs= | |
14425 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14426 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
14427 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14428 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14429 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14430 | # will be set to the directory where LIBOBJS objects are built. | |
14431 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14432 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
14433 | done |
14434 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 14435 | |
1c710c3c | 14436 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 14437 | |
af71363e | 14438 | |
1c710c3c DJ |
14439 | |
14440 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 14441 | ac_write_fail=0 |
1c710c3c DJ |
14442 | ac_clean_files_save=$ac_clean_files |
14443 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
14444 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14445 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14446 | as_write_fail=0 | |
14447 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
14448 | #! $SHELL |
14449 | # Generated by $as_me. | |
671aa708 | 14450 | # Run this file to recreate the current configuration. |
671aa708 | 14451 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 14452 | # configure, is in config.log if it exists. |
0b0dc272 | 14453 | |
1c710c3c DJ |
14454 | debug=false |
14455 | ac_cs_recheck=false | |
14456 | ac_cs_silent=false | |
1c710c3c | 14457 | |
5213506e RW |
14458 | SHELL=\${CONFIG_SHELL-$SHELL} |
14459 | export SHELL | |
14460 | _ASEOF | |
14461 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14462 | ## -------------------- ## | |
14463 | ## M4sh Initialization. ## | |
14464 | ## -------------------- ## | |
14465 | ||
14466 | # Be more Bourne compatible | |
14467 | DUALCASE=1; export DUALCASE # for MKS sh | |
14468 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
14469 | emulate sh |
14470 | NULLCMD=: | |
5213506e | 14471 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
14472 | # is contrary to our usage. Disable this feature. |
14473 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
14474 | setopt NO_GLOB_SUBST |
14475 | else | |
14476 | case `(set -o) 2>/dev/null` in #( | |
14477 | *posix*) : | |
14478 | set -o posix ;; #( | |
14479 | *) : | |
14480 | ;; | |
14481 | esac | |
1c710c3c | 14482 | fi |
1c710c3c | 14483 | |
5213506e RW |
14484 | |
14485 | as_nl=' | |
14486 | ' | |
14487 | export as_nl | |
14488 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14489 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14490 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14491 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14492 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14493 | # but without wasting forks for bash or zsh. | |
14494 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14495 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14496 | as_echo='print -r --' | |
14497 | as_echo_n='print -rn --' | |
14498 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14499 | as_echo='printf %s\n' | |
14500 | as_echo_n='printf %s' | |
14501 | else | |
14502 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14503 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14504 | as_echo_n='/usr/ucb/echo -n' | |
14505 | else | |
14506 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14507 | as_echo_n_body='eval | |
14508 | arg=$1; | |
14509 | case $arg in #( | |
14510 | *"$as_nl"*) | |
14511 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14512 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14513 | esac; | |
14514 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14515 | ' | |
14516 | export as_echo_n_body | |
14517 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14518 | fi | |
14519 | export as_echo_body | |
14520 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
14521 | fi |
14522 | ||
5213506e RW |
14523 | # The user is always right. |
14524 | if test "${PATH_SEPARATOR+set}" != set; then | |
14525 | PATH_SEPARATOR=: | |
14526 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14527 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14528 | PATH_SEPARATOR=';' | |
14529 | } | |
14530 | fi | |
14531 | ||
14532 | ||
14533 | # IFS | |
14534 | # We need space, tab and new line, in precisely that order. Quoting is | |
14535 | # there to prevent editors from complaining about space-tab. | |
14536 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14537 | # splitting by setting IFS to empty value.) | |
14538 | IFS=" "" $as_nl" | |
14539 | ||
14540 | # Find who we are. Look in the path if we contain no directory separator. | |
14541 | case $0 in #(( | |
14542 | *[\\/]* ) as_myself=$0 ;; | |
14543 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14544 | for as_dir in $PATH | |
14545 | do | |
14546 | IFS=$as_save_IFS | |
14547 | test -z "$as_dir" && as_dir=. | |
14548 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14549 | done | |
14550 | IFS=$as_save_IFS | |
14551 | ||
14552 | ;; | |
14553 | esac | |
14554 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14555 | # in which case we are not to be found in the path. | |
14556 | if test "x$as_myself" = x; then | |
14557 | as_myself=$0 | |
14558 | fi | |
14559 | if test ! -f "$as_myself"; then | |
14560 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14561 | exit 1 | |
14562 | fi | |
1c710c3c | 14563 | |
5213506e RW |
14564 | # Unset variables that we do not need and which cause bugs (e.g. in |
14565 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14566 | # suppresses any "Segmentation fault" message there. '((' could | |
14567 | # trigger a bug in pdksh 5.2.14. | |
14568 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14569 | do eval test x\${$as_var+set} = xset \ | |
14570 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14571 | done | |
1c710c3c DJ |
14572 | PS1='$ ' |
14573 | PS2='> ' | |
14574 | PS4='+ ' | |
14575 | ||
14576 | # NLS nuisances. | |
5213506e RW |
14577 | LC_ALL=C |
14578 | export LC_ALL | |
14579 | LANGUAGE=C | |
14580 | export LANGUAGE | |
14581 | ||
14582 | # CDPATH. | |
14583 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14584 | ||
14585 | ||
14586 | # as_fn_error ERROR [LINENO LOG_FD] | |
14587 | # --------------------------------- | |
14588 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14589 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14590 | # script with status $?, using 1 if that was 0. | |
14591 | as_fn_error () | |
14592 | { | |
14593 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14594 | if test "$3"; then | |
14595 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14596 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1c710c3c | 14597 | fi |
5213506e RW |
14598 | $as_echo "$as_me: error: $1" >&2 |
14599 | as_fn_exit $as_status | |
14600 | } # as_fn_error | |
14601 | ||
14602 | ||
14603 | # as_fn_set_status STATUS | |
14604 | # ----------------------- | |
14605 | # Set $? to STATUS, without forking. | |
14606 | as_fn_set_status () | |
14607 | { | |
14608 | return $1 | |
14609 | } # as_fn_set_status | |
14610 | ||
14611 | # as_fn_exit STATUS | |
14612 | # ----------------- | |
14613 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14614 | as_fn_exit () | |
14615 | { | |
14616 | set +e | |
14617 | as_fn_set_status $1 | |
14618 | exit $1 | |
14619 | } # as_fn_exit | |
14620 | ||
14621 | # as_fn_unset VAR | |
14622 | # --------------- | |
14623 | # Portably unset VAR. | |
14624 | as_fn_unset () | |
14625 | { | |
14626 | { eval $1=; unset $1;} | |
14627 | } | |
14628 | as_unset=as_fn_unset | |
14629 | # as_fn_append VAR VALUE | |
14630 | # ---------------------- | |
14631 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14632 | # advantage of any shell optimizations that allow amortized linear growth over | |
14633 | # repeated appends, instead of the typical quadratic growth present in naive | |
14634 | # implementations. | |
14635 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14636 | eval 'as_fn_append () | |
14637 | { | |
14638 | eval $1+=\$2 | |
14639 | }' | |
14640 | else | |
14641 | as_fn_append () | |
14642 | { | |
14643 | eval $1=\$$1\$2 | |
14644 | } | |
14645 | fi # as_fn_append | |
14646 | ||
14647 | # as_fn_arith ARG... | |
14648 | # ------------------ | |
14649 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14650 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14651 | # must be portable across $(()) and expr. | |
14652 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14653 | eval 'as_fn_arith () | |
14654 | { | |
14655 | as_val=$(( $* )) | |
14656 | }' | |
14657 | else | |
14658 | as_fn_arith () | |
14659 | { | |
14660 | as_val=`expr "$@" || test $? -eq 1` | |
14661 | } | |
14662 | fi # as_fn_arith | |
14663 | ||
1c710c3c | 14664 | |
5213506e RW |
14665 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14666 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
14667 | as_expr=expr |
14668 | else | |
14669 | as_expr=false | |
14670 | fi | |
14671 | ||
5213506e | 14672 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
14673 | as_basename=basename |
14674 | else | |
14675 | as_basename=false | |
14676 | fi | |
14677 | ||
5213506e RW |
14678 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14679 | as_dirname=dirname | |
14680 | else | |
14681 | as_dirname=false | |
14682 | fi | |
1c710c3c | 14683 | |
5213506e | 14684 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
14685 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14686 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
14687 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14688 | $as_echo X/"$0" | | |
14689 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14690 | s//\1/ | |
14691 | q | |
14692 | } | |
14693 | /^X\/\(\/\/\)$/{ | |
14694 | s//\1/ | |
14695 | q | |
14696 | } | |
14697 | /^X\/\(\/\).*/{ | |
14698 | s//\1/ | |
14699 | q | |
14700 | } | |
14701 | s/.*/./; q'` | |
2aeb72e9 | 14702 | |
2aeb72e9 DD |
14703 | # Avoid depending upon Character Ranges. |
14704 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14705 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14706 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14707 | as_cr_digits='0123456789' | |
14708 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14709 | ||
5213506e RW |
14710 | ECHO_C= ECHO_N= ECHO_T= |
14711 | case `echo -n x` in #((((( | |
14712 | -n*) | |
14713 | case `echo 'xy\c'` in | |
14714 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14715 | xy) ECHO_C='\c';; | |
14716 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14717 | ECHO_T=' ';; | |
14718 | esac;; | |
14719 | *) | |
14720 | ECHO_N='-n';; | |
1c710c3c DJ |
14721 | esac |
14722 | ||
5213506e RW |
14723 | rm -f conf$$ conf$$.exe conf$$.file |
14724 | if test -d conf$$.dir; then | |
14725 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 14726 | else |
5213506e RW |
14727 | rm -f conf$$.dir |
14728 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 14729 | fi |
5213506e RW |
14730 | if (echo >conf$$.file) 2>/dev/null; then |
14731 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 14732 | as_ln_s='ln -s' |
5213506e RW |
14733 | # ... but there are two gotchas: |
14734 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14735 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14736 | # In both cases, we have to default to `cp -p'. | |
14737 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14738 | as_ln_s='cp -p' | |
14739 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14740 | as_ln_s=ln | |
14741 | else | |
14742 | as_ln_s='cp -p' | |
2aeb72e9 | 14743 | fi |
1c710c3c DJ |
14744 | else |
14745 | as_ln_s='cp -p' | |
14746 | fi | |
5213506e RW |
14747 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14748 | rmdir conf$$.dir 2>/dev/null | |
14749 | ||
14750 | ||
14751 | # as_fn_mkdir_p | |
14752 | # ------------- | |
14753 | # Create "$as_dir" as a directory, including parents if necessary. | |
14754 | as_fn_mkdir_p () | |
14755 | { | |
14756 | ||
14757 | case $as_dir in #( | |
14758 | -*) as_dir=./$as_dir;; | |
14759 | esac | |
14760 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14761 | as_dirs= | |
14762 | while :; do | |
14763 | case $as_dir in #( | |
14764 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14765 | *) as_qdir=$as_dir;; | |
14766 | esac | |
14767 | as_dirs="'$as_qdir' $as_dirs" | |
14768 | as_dir=`$as_dirname -- "$as_dir" || | |
14769 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14770 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14771 | X"$as_dir" : 'X\(//\)$' \| \ | |
14772 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14773 | $as_echo X"$as_dir" | | |
14774 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14775 | s//\1/ | |
14776 | q | |
14777 | } | |
14778 | /^X\(\/\/\)[^/].*/{ | |
14779 | s//\1/ | |
14780 | q | |
14781 | } | |
14782 | /^X\(\/\/\)$/{ | |
14783 | s//\1/ | |
14784 | q | |
14785 | } | |
14786 | /^X\(\/\).*/{ | |
14787 | s//\1/ | |
14788 | q | |
14789 | } | |
14790 | s/.*/./; q'` | |
14791 | test -d "$as_dir" && break | |
14792 | done | |
14793 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14794 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14795 | ||
1c710c3c | 14796 | |
5213506e | 14797 | } # as_fn_mkdir_p |
1c710c3c | 14798 | if mkdir -p . 2>/dev/null; then |
5213506e | 14799 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
14800 | else |
14801 | test -d ./-p && rmdir ./-p | |
14802 | as_mkdir_p=false | |
14803 | fi | |
14804 | ||
5213506e RW |
14805 | if test -x / >/dev/null 2>&1; then |
14806 | as_test_x='test -x' | |
14807 | else | |
14808 | if ls -dL / >/dev/null 2>&1; then | |
14809 | as_ls_L_option=L | |
14810 | else | |
14811 | as_ls_L_option= | |
14812 | fi | |
14813 | as_test_x=' | |
14814 | eval sh -c '\'' | |
14815 | if test -d "$1"; then | |
14816 | test -d "$1/."; | |
14817 | else | |
14818 | case $1 in #( | |
14819 | -*)set "./$1";; | |
14820 | esac; | |
14821 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14822 | ???[sx]*):;;*)false;;esac;fi | |
14823 | '\'' sh | |
14824 | ' | |
14825 | fi | |
14826 | as_executable_p=$as_test_x | |
1c710c3c DJ |
14827 | |
14828 | # Sed expression to map a string onto a valid CPP name. | |
14829 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14830 | ||
14831 | # Sed expression to map a string onto a valid variable name. | |
14832 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14833 | ||
14834 | ||
1c710c3c | 14835 | exec 6>&1 |
5213506e RW |
14836 | ## ----------------------------------- ## |
14837 | ## Main body of $CONFIG_STATUS script. ## | |
14838 | ## ----------------------------------- ## | |
14839 | _ASEOF | |
14840 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14841 | ||
14842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14843 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 14844 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
14845 | # values after options handling. |
14846 | ac_log=" | |
1c710c3c | 14847 | This file was extended by $as_me, which was |
5213506e | 14848 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
14849 | |
14850 | CONFIG_FILES = $CONFIG_FILES | |
14851 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14852 | CONFIG_LINKS = $CONFIG_LINKS | |
14853 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14854 | $ $0 $@ | |
14855 | ||
5213506e RW |
14856 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14857 | " | |
14858 | ||
1c710c3c DJ |
14859 | _ACEOF |
14860 | ||
5213506e RW |
14861 | case $ac_config_files in *" |
14862 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14863 | esac | |
1c710c3c | 14864 | |
2aeb72e9 | 14865 | |
2aeb72e9 | 14866 | |
5213506e RW |
14867 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14868 | # Files that config.status was made for. | |
14869 | config_files="$ac_config_files" | |
1c710c3c | 14870 | |
5213506e | 14871 | _ACEOF |
2aeb72e9 | 14872 | |
5213506e | 14873 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 14874 | ac_cs_usage="\ |
5213506e RW |
14875 | \`$as_me' instantiates files and other configuration actions |
14876 | from templates according to the current configuration. Unless the files | |
14877 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 14878 | |
5213506e | 14879 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
14880 | |
14881 | -h, --help print this help, then exit | |
5213506e RW |
14882 | -V, --version print version number and configuration settings, then exit |
14883 | -q, --quiet, --silent | |
14884 | do not print progress messages | |
1c710c3c DJ |
14885 | -d, --debug don't remove temporary files |
14886 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
14887 | --file=FILE[:TEMPLATE] |
14888 | instantiate the configuration file FILE | |
1c710c3c DJ |
14889 | |
14890 | Configuration files: | |
14891 | $config_files | |
14892 | ||
5213506e | 14893 | Report bugs to the package provider." |
2aeb72e9 | 14894 | |
5213506e RW |
14895 | _ACEOF |
14896 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1c710c3c DJ |
14897 | ac_cs_version="\\ |
14898 | config.status | |
5213506e RW |
14899 | configured by $0, generated by GNU Autoconf 2.64, |
14900 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 14901 | |
5213506e | 14902 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
14903 | This config.status script is free software; the Free Software Foundation |
14904 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
14905 | |
14906 | ac_pwd='$ac_pwd' | |
14907 | srcdir='$srcdir' | |
14908 | INSTALL='$INSTALL' | |
87264276 | 14909 | AWK='$AWK' |
5213506e | 14910 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
14911 | _ACEOF |
14912 | ||
5213506e RW |
14913 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14914 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
14915 | ac_need_defaults=: |
14916 | while test $# != 0 | |
a4b9e93e | 14917 | do |
1c710c3c DJ |
14918 | case $1 in |
14919 | --*=*) | |
5213506e RW |
14920 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14921 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
14922 | ac_shift=: |
14923 | ;; | |
5213506e | 14924 | *) |
1c710c3c DJ |
14925 | ac_option=$1 |
14926 | ac_optarg=$2 | |
14927 | ac_shift=shift | |
14928 | ;; | |
1c710c3c DJ |
14929 | esac |
14930 | ||
14931 | case $ac_option in | |
14932 | # Handling of the options. | |
671aa708 | 14933 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 14934 | ac_cs_recheck=: ;; |
5213506e RW |
14935 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14936 | $as_echo "$ac_cs_version"; exit ;; | |
14937 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
14938 | debug=: ;; |
14939 | --file | --fil | --fi | --f ) | |
14940 | $ac_shift | |
5213506e RW |
14941 | case $ac_optarg in |
14942 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14943 | esac | |
14944 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 14945 | ac_need_defaults=false;; |
5213506e RW |
14946 | --he | --h | --help | --hel | -h ) |
14947 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
14948 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14949 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14950 | ac_cs_silent=: ;; | |
14951 | ||
14952 | # This is an error. | |
5213506e RW |
14953 | -*) as_fn_error "unrecognized option: \`$1' |
14954 | Try \`$0 --help' for more information." ;; | |
1c710c3c | 14955 | |
5213506e RW |
14956 | *) as_fn_append ac_config_targets " $1" |
14957 | ac_need_defaults=false ;; | |
1c710c3c | 14958 | |
0b0dc272 | 14959 | esac |
1c710c3c | 14960 | shift |
0b0dc272 AM |
14961 | done |
14962 | ||
1c710c3c | 14963 | ac_configure_extra_args= |
0b0dc272 | 14964 | |
1c710c3c DJ |
14965 | if $ac_cs_silent; then |
14966 | exec 6>/dev/null | |
14967 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14968 | fi | |
0b0dc272 | 14969 | |
1c710c3c | 14970 | _ACEOF |
5213506e | 14971 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 14972 | if \$ac_cs_recheck; then |
5213506e RW |
14973 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14974 | shift | |
14975 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14976 | CONFIG_SHELL='$SHELL' | |
14977 | export CONFIG_SHELL | |
14978 | exec "\$@" | |
1c710c3c DJ |
14979 | fi |
14980 | ||
14981 | _ACEOF | |
5213506e RW |
14982 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14983 | exec 5>>config.log | |
14984 | { | |
14985 | echo | |
14986 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14987 | ## Running $as_me. ## | |
14988 | _ASBOX | |
14989 | $as_echo "$ac_log" | |
14990 | } >&5 | |
1c710c3c | 14991 | |
5213506e RW |
14992 | _ACEOF |
14993 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
14994 | # |
14995 | # INIT-COMMANDS | |
14996 | # | |
14997 | extrasub_build="$extrasub_build" | |
14998 | extrasub_host="$extrasub_host" | |
14999 | extrasub_target="$extrasub_target" | |
15000 | ||
5213506e | 15001 | _ACEOF |
1c710c3c | 15002 | |
5213506e | 15003 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 15004 | |
5213506e | 15005 | # Handling of arguments. |
1c710c3c DJ |
15006 | for ac_config_target in $ac_config_targets |
15007 | do | |
5213506e RW |
15008 | case $ac_config_target in |
15009 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15010 | ||
15011 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1c710c3c DJ |
15012 | esac |
15013 | done | |
15014 | ||
5213506e | 15015 | |
1c710c3c DJ |
15016 | # If the user did not use the arguments to specify the items to instantiate, |
15017 | # then the envvar interface is used. Set only those that are not. | |
15018 | # We use the long form for the default assignment because of an extremely | |
15019 | # bizarre bug on SunOS 4.1.3. | |
15020 | if $ac_need_defaults; then | |
15021 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15022 | fi | |
15023 | ||
15024 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 15025 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 15026 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
15027 | # Hook for its removal unless debugging. |
15028 | # Note that there is a small window in which the directory will not be cleaned: | |
15029 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
15030 | $debug || |
15031 | { | |
5213506e RW |
15032 | tmp= |
15033 | trap 'exit_status=$? | |
15034 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15035 | ' 0 | |
15036 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 15037 | } |
1c710c3c DJ |
15038 | # Create a (secure) tmp directory for tmp files. |
15039 | ||
15040 | { | |
5213506e | 15041 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
15042 | test -n "$tmp" && test -d "$tmp" |
15043 | } || | |
15044 | { | |
5213506e RW |
15045 | tmp=./conf$$-$RANDOM |
15046 | (umask 077 && mkdir "$tmp") | |
15047 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15048 | ||
15049 | # Set up the scripts for CONFIG_FILES section. | |
15050 | # No need to generate them if there are no CONFIG_FILES. | |
15051 | # This happens for instance with `./config.status config.h'. | |
15052 | if test -n "$CONFIG_FILES"; then | |
15053 | ||
15054 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15055 | ac_cs_awk_getline=: | |
15056 | ac_cs_awk_pipe_init= | |
15057 | ac_cs_awk_read_file=' | |
15058 | while ((getline aline < (F[key])) > 0) | |
15059 | print(aline) | |
15060 | close(F[key])' | |
15061 | ac_cs_awk_pipe_fini= | |
15062 | else | |
15063 | ac_cs_awk_getline=false | |
15064 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15065 | ac_cs_awk_read_file=' | |
15066 | print "|#_!!_#|" | |
15067 | print "cat " F[key] " &&" | |
15068 | '$ac_cs_awk_pipe_init | |
15069 | # The final `:' finishes the AND list. | |
15070 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15071 | fi | |
15072 | ac_cr=`echo X | tr X '\015'` | |
15073 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15074 | # But we know of no other shell where ac_cr would be empty at this | |
15075 | # point, so we can use a bashism as a fallback. | |
15076 | if test "x$ac_cr" = x; then | |
15077 | eval ac_cr=\$\'\\r\' | |
15078 | fi | |
15079 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15080 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15081 | ac_cs_awk_cr='\r' | |
15082 | else | |
15083 | ac_cs_awk_cr=$ac_cr | |
15084 | fi | |
15085 | ||
15086 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15087 | _ACEOF | |
15088 | ||
15089 | # Create commands to substitute file output variables. | |
1c710c3c | 15090 | { |
5213506e RW |
15091 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15092 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15093 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15094 | echo "_ACAWK" && | |
15095 | echo "_ACEOF" | |
15096 | } >conf$$files.sh && | |
15097 | . ./conf$$files.sh || | |
15098 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15099 | rm -f conf$$files.sh | |
1c710c3c | 15100 | |
5213506e RW |
15101 | { |
15102 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15103 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15104 | echo "_ACEOF" | |
15105 | } >conf$$subs.sh || | |
15106 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15107 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15108 | ac_delim='%!_!# ' | |
15109 | for ac_last_try in false false false false false :; do | |
15110 | . ./conf$$subs.sh || | |
15111 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15112 | ||
15113 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15114 | if test $ac_delim_n = $ac_delim_num; then | |
15115 | break | |
15116 | elif $ac_last_try; then | |
15117 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15118 | else | |
15119 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15120 | fi | |
15121 | done | |
15122 | rm -f conf$$subs.sh | |
15123 | ||
15124 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15125 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
2aeb72e9 | 15126 | _ACEOF |
5213506e RW |
15127 | sed -n ' |
15128 | h | |
15129 | s/^/S["/; s/!.*/"]=/ | |
15130 | p | |
15131 | g | |
15132 | s/^[^!]*!// | |
15133 | :repl | |
15134 | t repl | |
15135 | s/'"$ac_delim"'$// | |
15136 | t delim | |
15137 | :nl | |
15138 | h | |
15139 | s/\(.\{148\}\).*/\1/ | |
15140 | t more1 | |
15141 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15142 | p | |
15143 | n | |
15144 | b repl | |
15145 | :more1 | |
15146 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15147 | p | |
15148 | g | |
15149 | s/.\{148\}// | |
15150 | t nl | |
15151 | :delim | |
15152 | h | |
15153 | s/\(.\{148\}\).*/\1/ | |
15154 | t more2 | |
15155 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15156 | p | |
15157 | b | |
15158 | :more2 | |
15159 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15160 | p | |
15161 | g | |
15162 | s/.\{148\}// | |
15163 | t delim | |
15164 | ' <conf$$subs.awk | sed ' | |
15165 | /^[^""]/{ | |
15166 | N | |
15167 | s/\n// | |
15168 | } | |
15169 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15170 | rm -f conf$$subs.awk | |
15171 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15172 | _ACAWK | |
15173 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15174 | for (key in S) S_is_set[key] = 1 | |
15175 | FS = "\a" | |
15176 | \$ac_cs_awk_pipe_init | |
15177 | } | |
15178 | { | |
15179 | line = $ 0 | |
15180 | nfields = split(line, field, "@") | |
15181 | substed = 0 | |
15182 | len = length(field[1]) | |
15183 | for (i = 2; i < nfields; i++) { | |
15184 | key = field[i] | |
15185 | keylen = length(key) | |
15186 | if (S_is_set[key]) { | |
15187 | value = S[key] | |
15188 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15189 | len += length(value) + length(field[++i]) | |
15190 | substed = 1 | |
15191 | } else | |
15192 | len += 1 + keylen | |
15193 | } | |
15194 | if (nfields == 3 && !substed) { | |
15195 | key = field[2] | |
15196 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15197 | \$ac_cs_awk_read_file | |
15198 | next | |
15199 | } | |
15200 | } | |
15201 | print line | |
15202 | } | |
15203 | \$ac_cs_awk_pipe_fini | |
15204 | _ACAWK | |
15205 | _ACEOF | |
15206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15207 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15208 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15209 | else | |
15210 | cat | |
15211 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15212 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15213 | _ACEOF | |
15214 | ||
15215 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15216 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15217 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15218 | # (actually we leave an empty line to preserve line numbers). | |
15219 | if test "x$srcdir" = x.; then | |
15220 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15221 | s/:*\$(srcdir):*/:/ | |
15222 | s/:*\${srcdir}:*/:/ | |
15223 | s/:*@srcdir@:*/:/ | |
15224 | s/^\([^=]*=[ ]*\):*/\1/ | |
15225 | s/:*$// | |
15226 | s/^[^=]*=[ ]*$// | |
15227 | }' | |
15228 | fi | |
2aeb72e9 | 15229 | |
5213506e RW |
15230 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15231 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 15232 | |
1c710c3c | 15233 | |
5213506e RW |
15234 | eval set X " :F $CONFIG_FILES " |
15235 | shift | |
15236 | for ac_tag | |
15237 | do | |
15238 | case $ac_tag in | |
15239 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15240 | esac | |
15241 | case $ac_mode$ac_tag in | |
15242 | :[FHL]*:*);; | |
15243 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15244 | :[FH]-) ac_tag=-:-;; | |
15245 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15246 | esac | |
15247 | ac_save_IFS=$IFS | |
15248 | IFS=: | |
15249 | set x $ac_tag | |
15250 | IFS=$ac_save_IFS | |
15251 | shift | |
15252 | ac_file=$1 | |
15253 | shift | |
79c06341 | 15254 | |
5213506e RW |
15255 | case $ac_mode in |
15256 | :L) ac_source=$1;; | |
15257 | :[FH]) | |
15258 | ac_file_inputs= | |
15259 | for ac_f | |
15260 | do | |
15261 | case $ac_f in | |
15262 | -) ac_f="$tmp/stdin";; | |
15263 | *) # Look for the file first in the build tree, then in the source tree | |
15264 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15265 | # because $ac_f cannot contain `:'. | |
15266 | test -f "$ac_f" || | |
15267 | case $ac_f in | |
15268 | [\\/$]*) false;; | |
15269 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15270 | esac || | |
15271 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15272 | esac | |
15273 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15274 | as_fn_append ac_file_inputs " '$ac_f'" | |
15275 | done | |
1c710c3c | 15276 | |
5213506e RW |
15277 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15278 | # use $as_me), people would be surprised to read: | |
15279 | # /* config.h. Generated by config.status. */ | |
15280 | configure_input='Generated from '` | |
15281 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15282 | `' by configure.' | |
15283 | if test x"$ac_file" != x-; then | |
15284 | configure_input="$ac_file. $configure_input" | |
15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15286 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 15287 | fi |
5213506e RW |
15288 | # Neutralize special characters interpreted by sed in replacement strings. |
15289 | case $configure_input in #( | |
15290 | *\&* | *\|* | *\\* ) | |
15291 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15292 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15293 | *) ac_sed_conf_input=$configure_input;; | |
15294 | esac | |
11a67599 | 15295 | |
5213506e RW |
15296 | case $ac_tag in |
15297 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15298 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15299 | esac | |
15300 | ;; | |
11a67599 ZW |
15301 | esac |
15302 | ||
5213506e | 15303 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
15304 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15305 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15306 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
15307 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15308 | $as_echo X"$ac_file" | | |
15309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15310 | s//\1/ | |
15311 | q | |
15312 | } | |
15313 | /^X\(\/\/\)[^/].*/{ | |
15314 | s//\1/ | |
15315 | q | |
15316 | } | |
15317 | /^X\(\/\/\)$/{ | |
15318 | s//\1/ | |
15319 | q | |
15320 | } | |
15321 | /^X\(\/\).*/{ | |
15322 | s//\1/ | |
15323 | q | |
15324 | } | |
15325 | s/.*/./; q'` | |
15326 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 15327 | ac_builddir=. |
0b0dc272 | 15328 | |
5213506e RW |
15329 | case "$ac_dir" in |
15330 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15331 | *) | |
15332 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15333 | # A ".." for each directory in $ac_dir_suffix. | |
15334 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15335 | case $ac_top_builddir_sub in | |
15336 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15337 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15338 | esac ;; | |
15339 | esac | |
15340 | ac_abs_top_builddir=$ac_pwd | |
15341 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15342 | # for backward compatibility: | |
15343 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
15344 | |
15345 | case $srcdir in | |
5213506e | 15346 | .) # We are building in place. |
1c710c3c | 15347 | ac_srcdir=. |
5213506e RW |
15348 | ac_top_srcdir=$ac_top_builddir_sub |
15349 | ac_abs_top_srcdir=$ac_pwd ;; | |
15350 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 15351 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
15352 | ac_top_srcdir=$srcdir |
15353 | ac_abs_top_srcdir=$srcdir ;; | |
15354 | *) # Relative name. | |
15355 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15356 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15357 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 15358 | esac |
5213506e | 15359 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 15360 | |
0b0dc272 | 15361 | |
5213506e RW |
15362 | case $ac_mode in |
15363 | :F) | |
15364 | # | |
15365 | # CONFIG_FILE | |
15366 | # | |
1c710c3c DJ |
15367 | |
15368 | case $INSTALL in | |
15369 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 15370 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 15371 | esac |
5213506e | 15372 | _ACEOF |
11a67599 | 15373 | |
5213506e RW |
15374 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15375 | # If the template does not know about datarootdir, expand it. | |
15376 | # FIXME: This hack should be removed a few years after 2.60. | |
15377 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15378 | ac_sed_dataroot=' | |
15379 | /datarootdir/ { | |
15380 | p | |
15381 | q | |
15382 | } | |
15383 | /@datadir@/p | |
15384 | /@docdir@/p | |
15385 | /@infodir@/p | |
15386 | /@localedir@/p | |
15387 | /@mandir@/p' | |
15388 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15389 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15390 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15392 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 15393 | _ACEOF |
5213506e RW |
15394 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15395 | ac_datarootdir_hack=' | |
15396 | s&@datadir@&$datadir&g | |
15397 | s&@docdir@&$docdir&g | |
15398 | s&@infodir@&$infodir&g | |
15399 | s&@localedir@&$localedir&g | |
15400 | s&@mandir@&$mandir&g | |
15401 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15402 | esac | |
15403 | _ACEOF | |
15404 | ||
15405 | # Neutralize VPATH when `$srcdir' = `.'. | |
15406 | # Shell code in configure.ac might set extrasub. | |
15407 | # FIXME: do we really want to maintain this feature? | |
15408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15409 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
15410 | $extrasub |
15411 | _ACEOF | |
5213506e | 15412 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
15413 | :t |
15414 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
15415 | s|@configure_input@|$ac_sed_conf_input|;t t |
15416 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15417 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15418 | s&@srcdir@&$ac_srcdir&;t t | |
15419 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15420 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15421 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15422 | s&@builddir@&$ac_builddir&;t t | |
15423 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15424 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15425 | s&@INSTALL@&$ac_INSTALL&;t t | |
15426 | $ac_datarootdir_hack | |
15427 | " | |
15428 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15429 | if $ac_cs_awk_getline; then | |
15430 | $AWK -f "$tmp/subs.awk" | |
15431 | else | |
15432 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15433 | fi >$tmp/out \ | |
15434 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15435 | ||
15436 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15437 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15438 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15440 | which seems to be undefined. Please make sure it is defined." >&5 | |
15441 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15442 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15443 | ||
15444 | rm -f "$tmp/stdin" | |
15445 | case $ac_file in | |
15446 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15447 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15448 | esac \ | |
15449 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15450 | ;; | |
11a67599 | 15451 | |
11a67599 | 15452 | |
79c06341 | 15453 | |
5213506e RW |
15454 | esac |
15455 | ||
3e54529c RW |
15456 | |
15457 | case $ac_file$ac_mode in | |
15458 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15459 | sed "$extrasub_host" | | |
15460 | sed "$extrasub_target" > mf$$ | |
15461 | mv -f mf$$ Makefile ;; | |
15462 | ||
15463 | esac | |
5213506e RW |
15464 | done # for ac_tag |
15465 | ||
15466 | ||
15467 | as_fn_exit 0 | |
1c710c3c | 15468 | _ACEOF |
1c710c3c DJ |
15469 | ac_clean_files=$ac_clean_files_save |
15470 | ||
5213506e RW |
15471 | test $ac_write_fail = 0 || |
15472 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15473 | ||
1c710c3c DJ |
15474 | |
15475 | # configure is writing to config.log, and then calls config.status. | |
15476 | # config.status does its own redirection, appending to config.log. | |
15477 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15478 | # by configure, so config.status won't be able to write to it; its | |
15479 | # output is simply discarded. So we exec the FD to /dev/null, | |
15480 | # effectively closing config.log, so it can be properly (re)opened and | |
15481 | # appended to by config.status. When coming back to configure, we | |
15482 | # need to make the FD available again. | |
15483 | if test "$no_create" != yes; then | |
15484 | ac_cs_success=: | |
15485 | ac_config_status_args= | |
15486 | test "$silent" = yes && | |
15487 | ac_config_status_args="$ac_config_status_args --quiet" | |
15488 | exec 5>/dev/null | |
15489 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15490 | exec 5>>config.log | |
15491 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15492 | # would make configure fail if this is the last instruction. | |
5213506e RW |
15493 | $ac_cs_success || as_fn_exit $? |
15494 | fi | |
15495 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15496 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15497 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 15498 | fi |
79c06341 | 15499 |